curl --location --request POST '/smartlink/v2/smart-link' \
--header 'Private-Merchant-Id: {{PE-Private-Merchant-Id}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"publicMerchantId": "{{PE-Public-Merchant-Id}}",
"merchantName": "Global",
"paymentConfig": {
"paymentType": "unique",
"amount": {
"currency": "PEN",
"subtotalIva": 0,
"subtotalIva0": 50,
"iva": 0
},
"paymentMethod": [
"cash",
"credit-card",
"transfer"
]
},
"generalConfig": {
"productName": "Plan Hogar",
"description": "<p>Cobertura completa</p>",
"productImage": "https://kushki-static.s3.amazonaws.com/smartlinks/product-image.png",
"brandLogo": "https://kushki-static.s3.amazonaws.com/smartlinks/logo.png",
"executionLimit": 0,
"showTimer": false,
"enabled": true,
"termsAndConditions": "",
"promotionalText": "",
"buyButtonText": "Pagar"
},
"styleAndStructure": {
"structure": "checkout",
"coverModel": "center",
"buttonStyle": "round",
"primaryColor": "#00E6B2",
"secondaryColor": "#ca0fea"
},
"contact": {
"email": "soporte@soporte.com",
"phoneNumber": "988238833"
},
"formConfig": [
{
"label": "Nombres y apellidos",
"type": "input",
"split": false,
"required": true,
"disabled": false,
"name": "nombresyapellidos",
"placeholder": "Nombres y apellidos",
"value": ""
},
{
"split": true,
"name": "documentodeid",
"disabled": false,
"label": "Documento de Id.",
"placeholder": "Documento de Id.",
"type": "input",
"required": false
},
{
"split": true,
"name": "email",
"disabled": false,
"label": "E-mail",
"placeholder": "E-mail",
"type": "input",
"required": false
}
],
"fullResponse": "v2"
}'