token provided by Kushki. The Init Transaction delivers a pin number to perform the customer payment and the URL of the receipt.Got a suggestion on this documentation? Contact Us.
curl --location --request POST 'https://api-uat.kushkipagos.com/cash/v1/charges/init' \
--header 'Private-Merchant-Id;' \
--header 'Content-Type: application/json' \
--data-raw '{
"token": "string",
"expirationDate": "7 days",
"amount": {
"currency": "CLP",
"subtotalIva": 0,
"subtotalIva0": 0,
"iva": 0,
"ice": 0,
"extraTaxes": {
"iac": 0,
"tasaAeroportuaria": 0,
"agenciaDeViaje": 0
}
},
"metadata": {
"key0": "value0",
"key1": "value1",
"key2": "value2"
},
"webhooks": {
"events": [
"approvedTransaction"
],
"headers": [
{
"label": "string",
"value": "string"
}
],
"urls": [
"string"
]
},
"fullResponse": "v2"
}'{
"details": {
"agreementDetails": [
{
"storeName": [
{
"agreementNumber": "string",
"processorName": "string"
}
]
}
],
"amount": {
"currency": "CLP",
"subtotalIva": 0,
"subtotalIva0": 0,
"iva": 0,
"ice": 0,
"extraTaxes": {
"iac": 0,
"tasaAeroportuaria": 0,
"agenciaDeViaje": 0
}
},
"description": "string",
"documentNumber": "CC",
"documentType": "string",
"expiration": 0,
"lastName": "string",
"merchantId": "string",
"merchantName": "string",
"name": "string",
"transactionId": "string",
"transactionStatus": "string"
},
"pdfUrl": "string",
"pin": "string",
"ticketNumber": "string",
"transactionReference": "string"
}