{
"webhook_type": "invoice.payment_failure",
"object_type": "payment_provider_invoice_payment_error",
"organization_id": "00000000-0000-4000-8000-000000000001",
"payment_provider_invoice_payment_error": {
"invoice_id": "00000000-0000-4000-8000-000000000002",
"customer_id": "00000000-0000-4000-8000-000000000003",
"external_customer_id": "sdkv3rw-1791865926",
"provider_customer_id": "cus_example",
"payment_provider": "razorpay",
"payment_provider_code": "rzp_sdkv3_test",
"provider_error": {
"message": "Your card was declined.",
"error_code": "card_declined"
},
"error_details": {}
}
}A payment attempt for an invoice has failed on a payment provider
A payment attempt for an invoice fails at the provider, or a duplicate payment is refunded. provider_error says why.
{
"webhook_type": "invoice.payment_failure",
"object_type": "payment_provider_invoice_payment_error",
"organization_id": "00000000-0000-4000-8000-000000000001",
"payment_provider_invoice_payment_error": {
"invoice_id": "00000000-0000-4000-8000-000000000002",
"customer_id": "00000000-0000-4000-8000-000000000003",
"external_customer_id": "sdkv3rw-1791865926",
"provider_customer_id": "cus_example",
"payment_provider": "razorpay",
"payment_provider_code": "rzp_sdkv3_test",
"provider_error": {
"message": "Your card was declined.",
"error_code": "card_declined"
},
"error_details": {}
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Signature of the webhook payload
"Ap¶5ɿΣ6ÐfV£Ä\u0015\u0015ºõÔõÔ[DæAâÿüÚ"
Algorithm used to generate the signature
jwt, hmac "hmac"
Unique id of the webhook. It can be used for idempotency
"1a901a90-1a90-1a90-1a90-1a901a901a90"
Body
Details of the invoice and of the payment provider error
invoice.payment_failure payment_provider_invoice_payment_error Unique identifier of the organization, created by Nozle.
"1a901a90-1a90-1a90-1a90-1a901a901a90"
Show child attributes
Show child attributes
Response
Return a 2xx status within 30 seconds to acknowledge the delivery. Any other status, a timeout or a connection error is a failed attempt; Nozle makes up to 3 attempts.