Webhook para dispersión de dinero con transferencia

Estructura

Los webhooks enviados por Kushki contendrán los encabezados (headers) aquí listados.
Estas son las posibles variables que se entregan en el cuerpo del webhook:

Método: POST

Body: Object

VariableTipo
countrystring
amountobject
amount.subtotalIva0number
amount.ivanumber
amount.subtotalIvanumber
amount.extraTaxesobject
amount.extraTaxes.propinanumber
amount.extraTaxes.tasaAeroportuarianumber
amount.extraTaxes.agenciaDeViajesnumber
amount.extraTaxes.iacnumber
accountType"CA" "CC"
accountNumberstring
publicCredentialIdstring
transactionIdstring
tokenstring
bankIdstring
credentialIdstring
kushkiAmountnumber
documentType"CC" "NIT" "CE" "TI" "PP"
documentNumberstring
processorTypestring
creatednumber
transactionStatus"APPROVAL", "DECLINED"
transactionType"PAYOUT"
merchantIdstring
responseTextstring
responseCodestring
credentialInfoobject
credentialInfo.credentialAliasstring
credentialInfo.credentialMetadataobject
credentialInfo.credentialIdstring
merchantNamestring
credentialAliasstring
ticketNumberstring
totalAmountnumber
processorIdstring
kushkiFeeobject
Kushki service rates
kushkiFee.surchargenumber
kushkiFee.totalAmountnumber
kushkiFee.variableFeenumber
kushkiFee.maximumAmountnumber
kushkiFee.minimumAmountnumber
kushkiFee.discountAmountnumber
kushkiFee.fixedFeenumber
currency"COP"
metadataobject
metadata.ref1string
metadata.ref2string
metadata.ref3string
transactionReferencestring

Ejemplos

  • JSON
  • JSON
// Transacción aprobada
{
"country": "Colombia",
"ticketNumber": "1602088278680851",
"amount": {
"subtotalIva0": 10000,
"iva": 0,
"subtotalIva": 0,
"extraTaxes": {
"agenciaDeViajes": 0,
"iac": 0,
"propina": 0,
"tasaAeroportuaria": 0
}
},
"documentType": "CC",
"transactionStatus": "APPROVAL",
"created": 1602088271751,
"documentNumber": "123456789",
"processorType": "gateway",
"accountType": "CA",
"kushkiAmount": 0,
"accountNumber": "123456",
"transactionId": "e56c6344-d6be-4702-83f8-ea758188c6f6",
"merchantName": "Tu Gran Empresa",
"token": "4b680bc3d3214071910af2d08ec33af3",
"transactionType": "PAYOUT",
"totalAmount": 10000,
"bankId": "000051",
"processorId": "600000000015XXXXXXXXXXXX18652",
"merchantId": "20000000XXXXXXX2000",
"currency": "COP",
"transactionReference": "e56c6344-d6be-4702-83f8-ea758188c6f6"
}
// Transacción declinada
{
"country": "Colombia",
"ticketNumber": "1602088434652337",
"amount": {
"subtotalIva0": 10000,
"iva": 0,
"subtotalIva": 0,
"extraTaxes": {
"agenciaDeViajes": 0,
"iac": 0,
"propina": 0,
"tasaAeroportuaria": 0
}
},
"documentType": "CC",
"transactionStatus": "DECLINED",
"responseCode": "084",
"responseText": "Cuenta no vigente",
"created": 1602088427391,
"documentNumber": "999999990",
"processorType": "gateway",
"accountType": "CA",
"kushkiAmount": 0,
"accountNumber": "123456",
"transactionId": "5b0a04be-3d42-4935-af2e-ffda5b8ee1de",
"merchantName": "Tu Gran Empresa",
"token": "80f9b1bf314d4d3b9c6e7b36d8c81216",
"transactionType": "PAYOUT",
"totalAmount": 10000,
"bankId": "000051",
"processorId": "600000000015XXXXXXXXXXXX18652",
"merchantId": "20000000XXXXXXX2000",
"currency": "COP",
"processorName": "Banco Davivienda Processor",
"transactionReference": "5b0a04be-3d42-4935-af2e-ffda5b8ee1de"
}