{
"attempt": {
"attempt_number": 123,
"created_at": "2023-11-07T05:31:56Z",
"error": {
"code": "<string>",
"reason": "<string>",
"source": "<string>",
"step": "<string>"
},
"error_message": "<string>",
"gateway_attempt_id": "<string>",
"id": "<string>",
"metadata": {},
"payment_method": {
"bank": {
"account_type": "<string>",
"auth_type": "<string>",
"bank": "<string>",
"ifsc": "<string>",
"last4": "<string>"
},
"card": {
"brand": "<string>",
"exp_month": 123,
"exp_year": 123,
"fingerprint": "<string>",
"funding": "<string>",
"issuer": "<string>",
"last4": "<string>"
},
"wallet": {
"provider": "<string>"
}
}
},
"checkout_session": {
"cancelled_at": "2023-11-07T05:31:56Z",
"checkout_invoice_id": "<string>",
"checkout_payment_id": "<string>",
"completed_at": "2023-11-07T05:31:56Z",
"customer_id": "<string>",
"expires_at": "2023-11-07T05:31:56Z",
"failure_reason": "<string>",
"id": "<string>",
"payment_action": {
"url": "<string>"
}
},
"event_type": "payment.attempt.succeeded",
"payment": {
"amount": "<string>",
"connection_id": "<string>",
"currency": "<string>",
"destination_id": "<string>",
"error_message": "<string>",
"failed_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"invoice_number": "<string>",
"payment_gateway": "<string>",
"refunded_at": "2023-11-07T05:31:56Z",
"succeeded_at": "2023-11-07T05:31:56Z",
"voided_at": "2023-11-07T05:31:56Z"
}
}Payment and refund
Payment attempt succeeded
Fired when one charge attempt succeeds.
WEBHOOK
payment.attempt.succeeded
{
"attempt": {
"attempt_number": 123,
"created_at": "2023-11-07T05:31:56Z",
"error": {
"code": "<string>",
"reason": "<string>",
"source": "<string>",
"step": "<string>"
},
"error_message": "<string>",
"gateway_attempt_id": "<string>",
"id": "<string>",
"metadata": {},
"payment_method": {
"bank": {
"account_type": "<string>",
"auth_type": "<string>",
"bank": "<string>",
"ifsc": "<string>",
"last4": "<string>"
},
"card": {
"brand": "<string>",
"exp_month": 123,
"exp_year": 123,
"fingerprint": "<string>",
"funding": "<string>",
"issuer": "<string>",
"last4": "<string>"
},
"wallet": {
"provider": "<string>"
}
}
},
"checkout_session": {
"cancelled_at": "2023-11-07T05:31:56Z",
"checkout_invoice_id": "<string>",
"checkout_payment_id": "<string>",
"completed_at": "2023-11-07T05:31:56Z",
"customer_id": "<string>",
"expires_at": "2023-11-07T05:31:56Z",
"failure_reason": "<string>",
"id": "<string>",
"payment_action": {
"url": "<string>"
}
},
"event_type": "payment.attempt.succeeded",
"payment": {
"amount": "<string>",
"connection_id": "<string>",
"currency": "<string>",
"destination_id": "<string>",
"error_message": "<string>",
"failed_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"invoice_number": "<string>",
"payment_gateway": "<string>",
"refunded_at": "2023-11-07T05:31:56Z",
"succeeded_at": "2023-11-07T05:31:56Z",
"voided_at": "2023-11-07T05:31:56Z"
}
}Headers
Space-separated v1,<base64> signatures. See Signature verification. Sent by Flexprice Cloud only.
Body
application/json
Response
2XX
Return any 2xx status to acknowledge receipt.

