Skip to main content

Deactivation

To deactivate a payment link, it is necessary to make a PATCH request following the defined parameters below:

URL

https://api.bembit.com/api/v1/checkouts/{id}/deactivate

Method

PATCH

Params

Important

The parameters for this request should be passed to the endpoint via headers, and the ID must be included in the URL at the time of the request.

ParamsTypeDefault valuesDescription
apistringundefinedYour API Key.
secretstringundefinedYour Secret.
idstringundefinedPayment's link ID.

cURL:

curl -X 'PATCH' \
'https://api.bembit.com/api/v1/checkouts/{id}/deactivate' \
-H 'accept: */*' \
-H 'api: [Your API]' \
-H 'secret: [Your Secret]'

Server Responses:

Response headers (example)

access-control-allow-origin: *
alt-svc: h3=":443"; ma=86400
cf-cache-status: DYNAMIC
cf-ray: 7d497ba0fe9251cc-GRU
date: Fri,09 Jun 2023 12:47:25 GMT
nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
ratelimit-limit: 100
ratelimit-remaining: 99
ratelimit-reset: 2
report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=w5oSnLcDAlObIGFVcw34h9UkyT6ZClM8Ccnb70RzEGJDEjS2vecJyliBy9EIk1m4cBciVpzrSAlI2q3w7jLYiVoOsPd%2BVDopzi2L%2FCFa1kU%2F5YE8QGJAKw0GADYtSC%2Fi3yIqiyhKDFsG%2B8xFOA%3D%3D"}],"group":"cf-nel","max_age":604800}
server: cloudflare
via: 1.1 vegur

Status 200:

Deactivated

Status 403:

Unauthorized

Status 404:

Not found

See and test our API on Swagger.