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
idPayment Link ID returned by Create payment link or List payment links. Submit it as a string.
Example:
payment_link_demo_202606210001linkStatusTarget payment link status.
Example:
trueConstraints
- Values
- Submit boolean
trueto enable the payment link or booleanfalseto disable it; do not submit numeric1or0for this update endpoint.
merchantNoMerchant number assigned by Onerway. See Setup for how to obtain it.
Example:
replace_with_merchant_nosignRequest signature string. See Request signing for how to generate it.
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
respCode20000 means the status update request was processed successfully. Other values are error codes. See Response codes.respMsgHuman-readable message for the response code.
dataStatus update result data.
Response example
Example code is unavailable.
No error responses are documented for this endpoint.