Payment Rejected Webhook event
Trigger: An Open Banking payment moves to SETTLEMENT_REJECTED status.
Tip: Webhooks may be updated from time to time and it is important to consider the Versioning and Backward Compatibility guidelines when developing your solution. We recommend that your handler ignores new fields it is not expecting; any new fields that may be added will provide new information, which may be safely ignored.
Webhook Message Details
This Webhook has a single event type: PaymentRejected
Tip: For Developer Dashboard users: select the Open Banking Rejected Credit Transfer event.
Webhook Event Message Details
The following table describes the details of the Webhook notification:
Parent | Parameter | Type | Mandatory/Optional | Description |
---|---|---|---|---|
root | eventTimestamp | number | Mandatory | The Unix epoch timestamp |
root | eventType | string | Mandatory | PaymentRejected |
root | resourceReference | string | optional | This can be the business reference of the resource, useful when filtering events via the Webhooks area of the Developer Dashboard. |
root | resourceReferenceType | string | optional | This can be a business reference of the resource, useful when filtering events via the Webhooks area of the Developer Dashboard. |
root | resourceUri | string | Mandatory | This is URI of the payment resource. Use the URI in the Retrieve Payment call. |
root | resourceType | string | Mandatory | This is the type of the resource to which the URI is related. In this case it is a payment resource. |
root | reasonCode | string | Mandatory | Returns one of the following, based on the reason for the rejection:
CONSENT_API_REJECTED - indicates that the reject occurred because the bank was not available. UNEXPECTED_ERROR - generated where there is a communication issue between TPP and the bank. See Payment Statuses for more information on payment transitions. |
root | resourceOwner | string | Mandatory | This is the identifier of the merchant resource to which this notification is linked. |
root | resourceRemittanceInformation | string | optional | Remittance information related to the transaction. |
JSON Sample
The following is an example of a Received Payment event JSON:
Headers:
POST | http://example.com/webhooks |
Content-Type: | application/json;charset=UTF-8 |
x-signature: | 123ab01d030dee864fb44cc65a3be52ae591f46cde8d14d3e72fbc3790e4a304 |
Content-Length: | 261 |
X-Request-Id: | dc645679-71a5-498d-bb29-ec027948c7c1 |
JSON Request Body
{
"eventTimestamp": 1501169079000,
"eventType": "PaymentRejected",
"resourceReference": "93t8f5g234rg8b4d16473r",
"resourceReferenceType": "reference",
"resourceUri": "/payments/n7rklmvdmq",
"resourceType": "payment",
"reasonCode": "PIS01 - SETTLEMENT_REJECTED,
"resourceOwner": "tc47ygrg72",
"resourceRemittanceInformation": null
}