Webhook for Payment Distribution in Cash

Structure

The webhooks sent by Kushki will contain the headers listed here.
These are the possible variables that are submitted in the Webhook body:

Method: POST

Body: Object

VariableType
ticketNumberstring
tokenstring
totalAmountnumber
amountobject
amount.ivanumber
amount.subtotalIvanumber
amount.subtotalIva0number
amount.extraTaxesobject
amount.extraTaxes.agenciaDeViajesnumber
amount.extraTaxes.iacnumber
amount.extraTaxes.propinanumber
amount.extraTaxes.tasaAeroportuarianumber
currencystring
creatednumber (Unix Timestamp Format)
expirationnumber (Unix Timestamp Format)
transactionStatus"approvedTransaction" "declinedTransaction" "expiredTransaction"
documentNumberstring
namestring
lastNamestring
merchantIdstring
merchantNamestring
processorNamestring
transactionIdstring
completedAtnumber (Unix Timestamp Format)
metadataobject
metadata.key0string
metadata.key1string`
descriptionstring
pinstring
emailstring
documentTypestring
kushkiAmountnumber
transactionType"PAYOUT"
phoneNumberstring
paymentMethod"cash"

Example

// Approved Transaction
{
"country": "Colombia",
"lastName": "Gómez",
"ticketNumber": "481602087838868847",
"metadata": {
"ref1": "Kushki test"
},
"documentType": "CC",
"documentNumber": "123456789",
"processorType": "gateway",
"description": "Description of the payment",
"merchantName": "Tu Gran Empresa",
"processorId": "6000000000160XXXXXXXXXXXXX1786",
"pin": "2087838888",
"merchantId": "20000000XXXXXXXX2000",
"currency": "COP",
"processorName": "PuntoRed Processor",
"email": "test@kushki.com",
"amount": {
"subtotalIva0": 50000,
"iva": 0,
"subtotalIva": 0
},
"completedAt": 1602087880267,
"transactionStatus": "approvedTransaction",
"created": 1602087815429,
"kushkiAmount": 0,
"transactionId": "eb41fa79-d936-4798-999a-001fc45767ab",
"token": "0d951738a6094cd3bec5254dbe35b182",
"transactionType": "PAYOUT",
"totalAmount": 50000,
"phoneNumber": "0934748855",
"name": "Rafael",
"paymentMethod": "cash",
"expiration": 1602260615429,
"transactionReference": "eb41fa79-d936-4798-999a-001fc45767ab"
}