For early termination of the recurrent payments, they may be deleted without possibility of renewal.
The request is generated on the side of the merchant and transferred with the help of POST method to URL https://api.wayforpay.com/regularApi
Request parameters
Parameter | Description | Type |
---|---|---|
requestType | Request type: REMOVE | Mandatory |
merchantAccount | Merchant identifier | Mandatory |
merchantPassword | Merchant password | Mandatory |
orderReference | Order number in the merchant system, under which there was created successful payment | Mandatory |
Response parameters
Parameter | Description | Example |
---|---|---|
reasonCode | Rejection code | 4100 |
reason | Rejection reason | Ok |
Examples of request and response
Request example:
{
"requestType": "REMOVE",
"merchantAccount": "test_merch_n1",
"merchantPassword": "d485396ae413eb60dc251b0899b261c2",
"orderReference": "P21435306374431"
}
Response example:
{
"reasonCode": 4100,
"reason": "Ok"
}