Skip to content
developers

Pay-in

Cancel a payment link

DELETE/v1/recharge-links/{slug}Sandbox · coming soon

Base URL
Sandboxhttps://sandbox.zulu.com.co/v1
Not in production yet: it arrives with this same signature. Try it in the sandbox.

Cancels a link that was not paid yet: it becomes CANCELLED and stops taking payments (answers 204). Cancelling an already cancelled link also answers 204; a PAID or EXPIRED one answers 422. A PSE payment already in flight at the bank is still credited.

Authentication

Authorization: Bearer <access_token> (401 when missing or expired) and X-API-Key (403 when missing or not matching).

Request

Path parameters

  • slugstringrequired
    Link slug.
    Example: "7QmVt3KpXz"

Responses

  • 204Done; no content.

    No content.

  • 401The access token is missing, invalid or expired.

  • 403The `X-API-Key` is missing, invalid or does not match the token.

  • 404The resource does not exist.

  • 422The operation can not be processed; nothing is recorded.

  • 429Too many requests: wait the seconds in `Retry-After`.

  • 500Internal error.

Errors

The exact causes this operation can answer, from the error catalog. Compare error and the HTTP status; the cause text is stable but meant for people.

HTTPerrorcauseDescription

Also, like every authenticated endpoint: 401 Unauthorized, 403 Forbidden, 429 Too Many Requests (with Retry-After) and 500.

Examples

Cancel an open link204

Request

curl -X DELETE https://sandbox.zulu.com.co/v1/recharge-links/7QmVt3KpXz \
  -H "Authorization: Bearer $ZULU_ACCESS_TOKEN" \
  -H "X-API-Key: $ZULU_API_KEY"

Response 204

No content.
An already paid link422

Request

curl -X DELETE https://sandbox.zulu.com.co/v1/recharge-links/7QmVt3KpXz \
  -H "Authorization: Bearer $ZULU_ACCESS_TOKEN" \
  -H "X-API-Key: $ZULU_API_KEY"

Response 422

{
  "error": "UnprocessableEntityApiError",
  "cause": "recharge link \"7QmVt3KpXz\" is PAID"
}