5. Provision Close

Provision Close

POST {{Base Address}}/api/paywall/payment/provision

You just need to make a request to the address provided above. You can use the 'Base Address' as you like for both the Test environment and the Production environment.

Important: To use the Provision Close service, you need to send the 'apikeypublic' and 'apiclientpublic' parameters in the 'Header' field.

PaymentAPI Address

Parameter
Type
Compulsory
Description

apikeypublic

string

Yes

The Public Key you obtained from the merchant panel.

apiclientpublic

string

Yes

The Public Client you obtained from the merchant panel.

The parameters that need to be sent to the service are as follows:

Parameter
Type
Compulsory
Description

MerchantUniqueCode

string

Yes

It must be the same value as the MerchantUniqueCode sent in the request to initiate the payment. This code is the unique value provided by you for the transaction. It is used to uniquely identify and track a payment for all Cancel/Refund/Payment Inquiry operations.

Date

date

Yes

The date information when the payment was made

ProvisionAmount

decimal?

No

The final amount at which the payment authorization will be closed. It is a nullable value; if left empty or sent as 0, the authorization will be closed with the main amount.

{
    "Date": "2024-06-13",
    "MerchantUniqueCode": "aaa"
}

The response returned from the service:

Parameter
Type
Description

ErrorCode

int

This indicates the result of the operation. It returns '0' if successful, otherwise '1'.

Result

string

It returns 'true' if the operation is successful, otherwise 'false'.

Message

string

It reports the result message of the operation.

Sample Code:

{
    "ErrorCode": 0,
    "Result": true,
    "Message": "",
    "Body": ""
}

Last updated