Abort a Pay Link
After a Pay Link is sent, it is possible to abort it via an api call. Once it is done, that checkout session is aborted and cannot be reused. A notification callback will be sent, and when fetching the checkout, the status will be Aborted.
Important
You cannot abort a Pay Link when the user is committed to a purchase, or if the purchase has already been completed. You will get HTTP error code 409 if committed, or custom error code 900 if already completed.
Abort Pay Link Examples​
- Request
- Response
DELETE /checkouts/1eec44b5-66d3-4058-a31f-3444229fb727 HTTP/1.1
Host: api.uat.walleydev.com // (Different hostname in production)
Authorization: Bearer bXlVc2VybmFtZTpmN2E1ODA4MGQzZTk0M2VmNWYyMTZlMDE...
Content-Type: application/json
{
"id": "f5f4e86d-95b1-4c1a-8ad0-1d5907236bd7",
"data": null,
"error": null
}
Request Properties​
Request headers
| Header | Required | Explanation |
|---|---|---|
| Authorization | Yes | Instructions on how to generate the authorization header value can be found here. |