11. Cancellation
Cancellation Service
Cancellation
POST
{{Base Address}}/api/paywall/private/cancel
All you have to do is send a request to the address given above. You can use 'Base Address' as you wish for Test environment and Real environment.
apikeyprivate
string
Yes
The Private Key obtained from the merchant panel.
apiclientprivate
string
Yes
The Private Client obtained from the merchant panel.
The parameters that need to be sent to the service are as follows:
MerchantUniqueCode
string
Yes
The MerchantUniqueCode in the request sent to initiate the payment must have the same value. This code is a unique value provided by your side for each transaction. It is used to uniquely identify and track a payment in all Cancel/Refund/Payment Inquiry operations.
Date
date
Yes
Transaction date
{
"Date": "2023-01-23",
"MerchantUniqueCode": "12222a2222a"
}
Response from the service:
ErrorCode
int
Error code. If the operation is successful, it returns a value of '0'.
Result
bool
It returns a true or false value. If the operation is successful, it returns 'true'.
Message
string
If the operation is in error, this is the specified message, providing language support based on the locale parameter.
{
"ErrorCode": 0,
"Result": true,
"Message": "Success",
"Body": null
}
Last updated