Onerway
POST

Update payment link status

Use this endpoint to enable or disable an existing payment link by submitting its Payment Link ID and target status.

Request

id
Payment Link ID returned by Create payment link or List payment links. Submit it as a string.
Example:
linkStatus
Target payment link status.
Example:
Constraints
Values
Submit boolean true to enable the payment link or boolean false to disable it; do not submit numeric 1 or 0 for this update endpoint.
merchantNo
Merchant number assigned by Onerway. See Setup for how to obtain it.
Example:
sign
Request signature string. See Request signing for how to generate it.

Request example

curl -X POST 'https://sandbox-acq.onerway.com/v1/txn/paymentLink/updateStatus' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "id": "payment_link_demo_202606210001",
  "linkStatus": true,
  "merchantNo": "replace_with_merchant_no",
  "sign": "{{SIGN}}"
}'

Response

respCode
20000 means the status update request was processed successfully. Other values are error codes. See Response codes.
respMsg
Human-readable message for the response code.
data
Status update result data.

Response example

Example code is unavailable.

No error responses are documented for this endpoint.