{
"eventId": "<string>",
"eventType": "PAYMENT_ATTEMPT_FAILED",
"data": {
"paymentAttempt": {
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"success": true,
"startedOn": "<string>",
"automatic": true,
"scheduled": true,
"wasAttemptedByOrganization": true,
"attemptNumber": 123,
"errorCode": "<string>",
"errorType": "<string>",
"errorResponse": "<string>"
},
"payment": {
"id": "<string>",
"amount": 123,
"currency": "<string>",
"type": "<string>",
"status": "<string>",
"isCompleted": true,
"authorizationCode": "<string>",
"cardDetail": {
"id": "<string>",
"cardholder": "<string>",
"last4": "<string>",
"brand": "<string>",
"expiryMonth": 123,
"expiryYear": 123,
"funding": "<string>",
"issuer": "<string>",
"country": "<string>"
},
"metadata": [
{
"key": "<string>",
"value": "<string>"
}
],
"meta": {}
},
"customer": {
"id": "<string>",
"name": "<string>",
"email": "<string>",
"phoneNumber": "<string>",
"username": "<string>",
"metadata": [
{
"key": "<string>",
"value": "<string>"
}
],
"meta": {}
},
"paymentSession": {
"id": "<string>",
"returnUrl": "<string>",
"cancelUrl": "<string>",
"totalAmount": 123,
"currency": "<string>",
"status": "<string>",
"displayMode": "<string>",
"origin": "<string>",
"metadata": [
{
"key": "<string>",
"value": "<string>"
}
],
"meta": {}
}
}
}Webhooks
Intento de cobro fallido
Payload enviado cuando un intento de cobro es rechazado o falla.
WEBHOOK
paymentAttemptFailed
{
"eventId": "<string>",
"eventType": "PAYMENT_ATTEMPT_FAILED",
"data": {
"paymentAttempt": {
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"success": true,
"startedOn": "<string>",
"automatic": true,
"scheduled": true,
"wasAttemptedByOrganization": true,
"attemptNumber": 123,
"errorCode": "<string>",
"errorType": "<string>",
"errorResponse": "<string>"
},
"payment": {
"id": "<string>",
"amount": 123,
"currency": "<string>",
"type": "<string>",
"status": "<string>",
"isCompleted": true,
"authorizationCode": "<string>",
"cardDetail": {
"id": "<string>",
"cardholder": "<string>",
"last4": "<string>",
"brand": "<string>",
"expiryMonth": 123,
"expiryYear": 123,
"funding": "<string>",
"issuer": "<string>",
"country": "<string>"
},
"metadata": [
{
"key": "<string>",
"value": "<string>"
}
],
"meta": {}
},
"customer": {
"id": "<string>",
"name": "<string>",
"email": "<string>",
"phoneNumber": "<string>",
"username": "<string>",
"metadata": [
{
"key": "<string>",
"value": "<string>"
}
],
"meta": {}
},
"paymentSession": {
"id": "<string>",
"returnUrl": "<string>",
"cancelUrl": "<string>",
"totalAmount": 123,
"currency": "<string>",
"status": "<string>",
"displayMode": "<string>",
"origin": "<string>",
"metadata": [
{
"key": "<string>",
"value": "<string>"
}
],
"meta": {}
}
}
}Body
application/json
Response
2XX
Webhook accepted by the receiver.
Was this page helpful?