token provided by Kushki which represents the customer's payment.
webhooksfield is an arraySend webhook configurations as an array. Example: { "token": "{{token}}", "amount": { "subtotalIva": 0, "subtotalIva0": 1000, "iva": 0 }, "webhooks": [ { "events": ["approvedTransaction", "declinedTransaction"], "headers": [{ "label": "json", "value": "12" }], "urls": ["https://your-endpoint.com/webhook"] } ] }
curl --location 'https://api-uat.kushkipagos.com/payouts/transfer/v1/init' \
--header 'Private-Merchant-Id;' \
--header 'Content-Type: application/json' \
--data '{
"token": "string",
"amount": {
"subtotalIva": 0,
"subtotalIva0": 0,
"iva": 0,
"extraTaxes": {
"iac": 0,
"tasaAeroportuaria": 0,
"agenciaDeViaje": 0,
"propina": 0,
"tip": 0,
"stateTax": 0,
"municipalTax": 0,
"reducedStateTax": 0
}
},
"metadata": {
"key0": "string",
"key1": "string",
"key2": "string"
},
"webhooks": [
{
"events": [
"approvedTransaction"
],
"headers": [
{
"label": "string",
"value": "string"
}
],
"urls": [
"string"
]
}
],
"fullResponse": "v2"
}'{
"status": "INITIALIZED",
"ticketNumber": "1574298975417951",
"transactionReference": "aef8884f-cd4d-4b9b-9efa-ad582629e4f2"
}