PayOrc
Payment Link

Activate Payment Link

Reactivate a previously deactivated payment link to resume accepting payments.

Version: 3.0.0

Generate an API Key for the Payment Link channel before making requests.

Reactivate a previously deactivated payment link to resume accepting payments. The link must be in a deactivated state — expired or completed links cannot be reactivated.

Only previously deactivated links can be activated. If a link has expired, create a new one using the create endpoint.

Endpoint

MethodURL
POSThttps://api.payorc.com/payment-links/v1/activate

Please use the test credentials for sandbox testing.

Authentication

HeaderTypeDescription
merchant-keyStringYour merchant key
merchant-secretStringYour merchant secret

Request Body

FieldTypeRequiredDescription
data_idStringYesData ID of the payment link to activate

Response (200 OK)

FieldTypeDescription
statusStringResponse status
messageStringResponse message
codeStringResponse code

Code Examples

curl -X POST https://api.payorc.com/payment-links/v1/activate \
  -H "Content-Type: application/json" \
  -H "merchant-key: YOUR_MERCHANT_KEY" \
  -H "merchant-secret: YOUR_MERCHANT_SECRET" \
  -d '{
    "data_id": "lnk_8x7kP2mN4qR"
  }'

Example Response

{
  "message": "Payment link activated successfully",
  "status": "success",
  "code": "00"
}

Error Response

{
  "message": "Record not found or already activated.",
  "status": "fail",
  "code": "E0021"
}

Expired payment links cannot be reactivated. Create a new link if the previous one has expired.

On this page