Skip to main content

payment_link/deactivate

payment_link/deactivate​

Use this request to permanently deactivate a payment link that belongs to you. A deactivated link no longer accepts payments.

A link that has already been paid cannot be deactivated. In this case, you will receive the INVALID_LINK_STATUS error in response.

Endpoint​

api/v1/payment_link/deactivate

Request parameters​

NameMandatoryTypeDescription
order_id+stringPayment link ID
Request example
curl -X POST \
https://demo.smart-glocal.com/api/v1/payment_link/deactivate \
-H 'content-type: application/json' \
-H 'X-PARTNER-PROJECT: your_project_name' \
-H 'X-PARTNER-SIGN: signature' \
-d '{
"order_id": "B0k84Lo"
}'

Response parameters​

NameMandatoryTypeDescription
status+stringFinal link status
order_id-stringPayment link ID
error-objectError description
Successful response example
{
"status": "deactivated",
"order_id": "B0k84Lo"
}
Unsuccessful response example
{
"status": "error",
"error": {
"description": "Payment link not found",
"code": "payment_link_not_found"
}
}