Webhook for payment disbursement through wire transfer

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
countrystring
amountobject
amount.subtotalIva0number
amount.ivanumber
amount.subtotalIvanumber
amount.extraTaxesobject
amount.extraTaxes.propinanumber
amount.extraTaxes.tasaAeroportuarianumber
amount.extraTaxes.agenciaDeViajesnumber
amount.extraTaxes.iacnumber
accountType"CB"
accountNumberstring
publicCredentialIdstring
transactionIdstring
tokenstring
bankIdstring
namestring
credentialIdstring
kushkiAmountnumber
documentType"CURP" "RFC"
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
processorNamestring
currency"MXN"
metadataobject
metadata.processorStatusstring
metadata.processorStatusDescriptionstring
metadata.ref1string
metadata.ref2string
metadata.ref3string
transactionReferencestring

Examples

  • JSON
  • JSON
// Transacción aprobada
{
"country": "Mexico",
"ticketNumber": "1648580447848870",
"metadata": {
"processorStatus": "LIQUIDADO",
"contractID": "AB123",
"processorStatusDescription": null
},
"documentType": "RFC",
"documentNumber": "KUSHKI12345",
"processorType": "aggregator_gateway",
"responseText": "Transacción aprobada",
"merchantName": "Tu Comercio",
"responseCode": "000",
"credentialAlias": "Postman",
"processorId": "6000000000164745263355215877169",
"kushkiFee": {
"surcharge": 0,
"totalAmount": 0,
"variableFee": 0,
"maximumAmount": 0,
"minimumAmount": 0,
"discountAmount": 0,
"fixedFee": 0
},
"merchantId": "20000000104096130000",
"credentialInfo": {
"credentialAlias": "Postman",
"credentialMetadata": {},
"credentialId": "f88698f7208c49dbb5a53cdf79b9dca1"
},
"currency": "MXN",
"processorName": "STP Processor",
"amount": {
"subtotalIva0": 0.6,
"iva": 0,
"subtotalIva": 0,
"extraTaxes": {
"agenciaDeViajes": 0,
"propina": 0,
"iac": 0,
"tasaAeroportuaria": 0
}
},
"transactionReference": "55971ac1-1f41-4620-10b7-5e67a7416ab2",
"transactionStatus": "APPROVAL",
"created": 1648580431970,
"accountType": "CB",
"kushkiAmount": 0,
"accountNumber": "646280140400000007",
"publicCredentialId": "a011c73bc43144c4b83df2c37a563de2",
"transactionId": "55971ac1-1f41-4620-10b7-5e67a7416ab2",
"token": "97695ca609d94736801d3a443ba11c5a",
"transactionType": "PAYOUT",
"totalAmount": 0.6,
"bankId": "0074",
"name": "John Doe",
"credentialId": "f88698f7208c49dbb5a53cdf79b9dca1"
}
// Transacción declinada
{
"country": "Mexico",
"ticketNumber": "1648580326151434",
"metadata": {
"contractID": "AB123"
},
"documentType": "RFC",
"documentNumber": "KUSHKI12345",
"processorType": "aggregator_gateway",
"merchantName": "Tu Comercio",
"credentialAlias": "Postman",
"processorId": "6000000000164745263355215877169",
"kushkiFee": {
"surcharge": 0,
"totalAmount": 0,
"variableFee": 0,
"maximumAmount": 0,
"minimumAmount": 0,
"discountAmount": 0,
"fixedFee": 0
},
"merchantId": "20000000104096130000",
"credentialInfo": {
"credentialAlias": "Postman",
"credentialMetadata": {},
"credentialId": "f88698f7208c49dbb5a53cdf79b9dca1"
},
"currency": "MXN",
"processorName": "STP Processor",
"amount": {
"subtotalIva0": 0.6,
"iva": 0,
"subtotalIva": 0,
"extraTaxes": {
"agenciaDeViajes": 0,
"propina": 0,
"iac": 0,
"tasaAeroportuaria": 0
}
},
"transactionStatus": "DECLINED",
"ResponseCode": "530",
"ResponseText": "Transacción rechazada error en la información",
"created": 1648580280774,
"accountType": "CB",
"kushkiAmount": 0,
"accountNumber": "646280140400000007",
"publicCredentialId": "a011c73bc43144c4b83df2c37a563de2",
"transactionId": "c41c3fb6-a803-4e24-8be1-bb6be0606ab1",
"token": "cbfc30e705a34455b969ab282606f241",
"transactionType": "PAYOUT",
"totalAmount": 0.6,
"bankId": "0074",
"name": "John Doe",
"credentialId": "f88698f7208c49dbb5a53cdf79b9dca1",
"transactionReference": "c41c3fb6-a803-4e24-8be1-bb6be0606ab1"
}