curl --location --request POST '/smartlink/v2/smart-link' \
--header 'Private-Merchant-Id: {{CL-Private-Merchant-Id}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"publicMerchantId": "{{CL-Public-Merchant-Id}}",
"merchantName": "Merchant CL",
"paymentConfig": {
"paymentType": "subscription",
"amount": {
"currency": "CLP",
"subtotalIva": 0,
"subtotalIva0": 0,
"iva": 0
},
"paymentMethod": "subscription",
"subscriptionOptions": {
"amount": {
"currency": "CLP",
"subtotalIva": 0,
"subtotalIva0": 15000,
"iva": 0
},
"periodicity": "monthly",
"planName": "Starter",
"startDate": "2022-03-12",
"terms": "Example terms"
}
},
"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": ""
},
"styleAndStructure": {
"structure": "checkout"
},
"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
}
]
}'