Disabling the payment link

The method allows you to disable the payment link. You will no longer be able to connect subscriptions and make payments using this payment link

post
Header parameters
x-api-public-keystringoptional

Public API-key

x-api-signaturestringoptional

Signing the request body with a private API-key

Content-typestringoptional

Request content type

Example: application/json
Body

Request body to disable the payment link

idstringrequired

Payment link ID

Example: 60b5c367-1b93-448a-b08a-16da458102b5
merchantIdstringrequired

Merchant ID

Example: 41fe615a-96dc-42c2-9629-196383411cd4
Responses
curl -L \
  --request POST \
  --url 'https://ocp.onchainpay.io/api-gateway/recurrents/disable-subscriber-billing-link' \
  --header 'Content-Type: application/json' \
  --data '{
    "id": "60b5c367-1b93-448a-b08a-16da458102b5",
    "merchantId": "41fe615a-96dc-42c2-9629-196383411cd4"
  }'
{
  "success": true,
  "response": {
    "id": "60b5c367-1b93-448a-b08a-16da458102b5",
    "merchantId": "41fe615a-96dc-42c2-9629-196383411cd4",
    "currency": "USDT",
    "network": "ethereum",
    "status": "BLOCKED",
    "createdAt": "2024-12-26T08:21:33.220Z",
    "updatedAt": "2024-12-26T08:21:33.220Z"
  }
}

Last updated