Payment Link
Activate Payment Link
Reactivate a previously deactivated payment link to resume accepting payments.
Activate Payment Link
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
| Method | URL |
|---|---|
| POST | https://api.payorc.com/payment-links/v1/activate |
Please use the test credentials for sandbox testing.
Authentication
| Header | Type | Description |
|---|---|---|
merchant-key | String | Your merchant key |
merchant-secret | String | Your merchant secret |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
data_id | String | Yes | Data ID of the payment link to activate |
Response (200 OK)
| Field | Type | Description |
|---|---|---|
status | String | Response status |
message | String | Response message |
code | String | Response 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.