Customer Notification
Customer Notifications represent the notification which is due to be sent to a customer
after an event has happened. The event, the resource and the customer to be notified
are all identified in the links property.
Note that these are ephemeral records - once the notification has been actioned in some way, it is no longer visible using this API.
Restricted: This API is currently only available for approved integrators - please get in touch if you would like to use this API.
Handle a notification#
/customer_notifications/{customer_notification_id}/actions/handle"Handling" a notification means that you have sent the notification yourself (and
don't want GoCardless to send it).
If the notification has already been actioned, or the deadline to notify has passed,
this endpoint will return an already_actioned error and you should not take
further action. This endpoint takes no additional parameters.
Path Parameters
| Name | Type | Description |
|---|---|---|
customer_notification_idrequired | string | The customer notification id |
Request Body
customer_notificationsobjectResponse 200
Action completed successfully
customer_notificationsobject6 properties
idstring
The id of the notification.
typestring
The type of notification the customer shall receive. One of:
payment_createdpayment_cancelledmandate_createdmandate_blockedsubscription_createdsubscription_cancelledinstalment_schedule_createdinstalment_schedule_cancelled
payment_createdpayment_cancelledmandate_createdmandate_blockedsubscription_createdsubscription_cancelledinstalment_schedule_createdinstalment_schedule_cancelledaction_takenstring
The action that was taken on the notification. Currently this can only be handled,
which means the integrator sent the notification themselves.
handledaction_taken_atstring
Fixed timestamp, recording when this action was taken.
action_taken_bystring
A string identifying the integrator who was able to handle this notification.
linksobject
6 properties
paymentstring
The identifier of the related payment.
mandatestring
The identifier of the related mandate.
refundstring
The identifier of the related refund.
subscriptionstring
The identifier of the related subscription.
customerstring
The customer who should be contacted with this notification.
eventstring
The event that triggered the notification to be scheduled.
Errors 400401404422500
Bad Request
Unauthorised
Not found
Validation Error
Internal Error
Error Body
codeintegerdocumentation_urlstringerrorsarray2 properties
reasonstringmessagestringmessagestringrequest_idstringtypestringmetadataobjectlinksobject