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
| Name | Mandatory | Type | Description |
|---|---|---|---|
order_id | + | string | Payment 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
| Name | Mandatory | Type | Description |
|---|---|---|---|
status | + | string | Final link status |
order_id | - | string | Payment link ID |
error | - | object | Error 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"
}
}