Webhook for One-Time Payments by Wire Transfer

Wire Transfers

As the final phase of the wire transfer payment reception process, Kushki offers you the possibility of sending events to the webhook notifying your application when a wire transfer payment is completed.

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
amountobject
amount.subtotalIva0integer
amount.ivainteger
amount.subtotalIvainteger
amount.icenumber
amount.currencystring
amount.extraTaxesobject
amount.extraTaxes.agenciaDeViajesnumber
amount.extraTaxes.propinanumber
amount.extraTaxes.iacnumber
amount.extraTaxes.tasaAeroportuarianumber
processorStatestring OK NOT_AUTHORIZED FAILED
documentTypestring
createdinteger (Unix Timestamp Format)
documentNumberstring
transactionCyclestring
paymentDescriptionstring
responseCodestring
responseTextstring
tokenstring
publicMerchantIdstring
returnCodestring
bankIdstring
userIpstring
userTypestring “Persona Natural” (0) o “Persona Jurídica” (1)
trazabilityCodestring
statusstring initializedTransaction approvedTransaction declinedTransaction expiredTransaction
completedAtnumber (Unix Timestamp Format)
countrystring
ticketNumberstring
metadataobject
metadata.key0string
metadata.key1string
metadata.key2string
serviceCodestring
processorTypestring
transferProcessorstring
entityCodestring
processorIdstring
bankurlstring
callbackUrlstring
currencystring
sessionIdstring
userIdstring
emailstring
processorTokenstring
signatureTokenstring
termsUrlstring

Examples

  • JSON
  • JSON
// Approved Transaction
{
"country": "Peru",
"ticketNumber": "2538198913451930",
"documentType": "PAS",
"documentNumber": "1716458334",
"transferProcessor": "Kushki Transfer Processor",
"requestAmount": 50,
"merchantName": "Tu comercio PE",
"credentialAlias": "Peru",
"processorId": "6000000000166481842792745253988",
"referenceProcessor": "914195410",
"credentialInfo": {
"alias": "Peru",
"credentialId": "7388ae8d2eee499b8643457aa1c4b648",
"publicCredentialId": "5a69591c85e64d618a58881ca2489744"
},
"bankurl": "https://uat-transfer-core-peru.kushkipagos.com/payment/fd87012b030d49a38d8b50825e0aca1c",
"callbackUrl": "https://kushki.com",
"currency": "PEN",
"email": "user@example.com",
"amount": {
"subtotalIva0": 50,
"iva": 0,
"subtotalIva": 0,
"extraTaxes": {
"agenciaDeViajes": 0,
"iac": 0,
"tasaAeroportuaria": 0
}
},
"completedAt": 1682538203760,
"transactionReference": "90dc0db6-8676-4601-aebf-65e6245c2dbe",
"created": 1682538177756,
"userAgent": "PostmanRuntime/7.29.2",
"sessionId": "-",
"publicCredentialId": "5a69591c85e64d618a58881ca2489744",
"userId": "-",
"paymentDescription": "Description of the payment.",
"token": "fd87012b030d49a38d8b50825e0aca1c",
"publicMerchantId": "20000000108481570000",
"bankId": "1022",
"expirationTime": 1683142977756,
"credentialId": "7388ae8d2eee499b8643457aa1c4b648",
"userIp": "189.169.112.110",
"config": {
"region": "us-east-1"
},
"status": "approvedTransaction"
}
// Declined Transaction
{
"country": "Peru",
"metadata": {
"userId": "IB344"
},
"credentialMetadata": null,
"documentType": "PAS",
"documentNumber": "1716458334",
"processorType": "aggregator_formal",
"responseText": "Monto inválido",
"transferProcessor": "Kushki Transfer Processor",
"merchantName": "Tu comercio PE",
"responseCode": "T003",
"credentialAlias": null,
"credentialInfo": {
"alias": "Peru",
"credentialId": "7388ae8d2eee499b8643457aa1c4b648",
"publicCredentialId": "5a69591c85e64d618a58881ca2489744"
},
"callbackUrl": "https://kushki.com",
"currency": "PEN",
"email": "user@example.com",
"amount": {
"subtotalIva0": 50,
"iva": 0,
"subtotalIva": 0,
"extraTaxes": {
"agenciaDeViajes": 0,
"iac": 0,
"tasaAeroportuaria": 0
}
},
"completedAt": 1682538349585,
"transactionReference": "3606b18c-2e7e-4911-8d21-d4bdc8ad5ab2",
"created": 1682538309878,
"userAgent": "PostmanRuntime/7.29.2",
"sessionId": "-",
"publicCredentialId": null,
"userId": "-",
"paymentDescription": "Description of the payment.",
"token": "ae284c46af9d41358f6526cd82a3b7ee",
"publicMerchantId": "20000000108481570000",
"bankId": "1022",
"credentialId": null,
"userIp": "189.169.112.110",
"config": {
"region": "us-east-1"
},
"status": "declinedTransaction"
}