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

Disabling the 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: c7358087-4e45-44b7-8de2-427621f2eaf4
merchantIdstringRequired

Merchant ID

Example: 3ef22c52-c364-4acd-941d-5940f647a4f1
Responses
200Success
application/json
post
POST /api-gateway/recurrents/disable-subscriber-billing-link HTTP/1.1
Host: ocp.onchainpay.io
Content-Type: application/json
Accept: */*
Content-Length: 97

{
  "id": "c7358087-4e45-44b7-8de2-427621f2eaf4",
  "merchantId": "3ef22c52-c364-4acd-941d-5940f647a4f1"
}
200Success
{
  "success": true,
  "response": {
    "id": "c7358087-4e45-44b7-8de2-427621f2eaf4",
    "merchantId": "3ef22c52-c364-4acd-941d-5940f647a4f1",
    "currency": "USDT",
    "network": "ethereum",
    "status": "BLOCKED",
    "createdAt": "2025-06-09T11:38:26.573Z",
    "updatedAt": "2025-06-09T11:38:26.573Z"
  }
}

Last updated