9. Cancellation

Cancellation Service

Cancellation

POST {{Private Base Address}}/api/paywall/private/cancel

Yukarıda verilmiş olan adrese istek atmanız yeterli olacaktır. Test ortamı ve Gerçek ortam için 'Base Address' istediğiniz gibi kullanabilirsiniz.

Important: To use the cancellation service, you need to send the 'apikeyprivate' and 'apiclientprivate' parameters in the 'Header' section.

PaymentAPI Address

ParameterTypeMandatoryDescription

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:

ParameterTypeMandatoryDescription

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:

ParameterTypeDescription

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