TODO
The Links Modification API allows you to perform operations on existing payment links. Currently, the API supports cancellation. Prevent further payments when order is no longer valid.
| Operation | Description |
|---|---|
Cancel | Immediately deactivate an existing payment link to prevent further transactions. |
Use the following request to immediately deactivate an active payment link.
curl --location 'https://api-services.pxpfinancial.com/api/v1/paybylink/site-1/906416c5-b4df-4c25-b3a9-fd2bb98c306f' \
--header 'Content-Type: application/json' \
--data '{
"operation": "cancel"
}'| Parameter | Description |
|---|---|
sitestring (≤ 20 characters) required | Your unique site identifier, as assigned by PXP. |
linkIdstring required | The unique identifier of the payment link to modify. |
| Parameter | Description |
|---|---|
operationstring required | The operation to perform on the payment link. Set this to cancel. |
If your request is successful, you'll receive a 200 response containing a Cancelled state.
{
"state": "Cancelled",
"stateData": null,
"linkId": "8a283e55-f904-4751-81b9-3a2e7310aff0",
"merchantTransactionId": "TXN-ORDER-26"
}| Property | Description |
|---|---|
statestring required | The current status of the payment link after the modification. If cancellation was successful, the state will be Cancelled. |
stateDataobject or null | Additional information about the link state. |
linkIdstring required | The identifier of the modified payment link. |
merchantTransactionIdstring (≤ 50 characters) required | The unique identifier for this transaction, as chosen by you. |