5. Close Provision

You can complete pre-authorized transactions made through APM via this service.

Close Provision

POST {{Base Adres}}/api/paywall/apm/provision/close

Important: To use the APM Payment Close Provision service, you must include the apikeypublic and apiclientpublic parameters in the Header section. PaymentAPI Address

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

Parameter
Type
Compulsory
Description

apikeypublic

string

Yes

The Public Key obtained from the merchant panel.

apiclientpublic

string

Yes

The Public Client obtained from the merchant panel.

The (BODY) parameters that must be sent to the service are as follows:

Parameter
Type
Compulsory
Description

UniqueCode

string

Yes

This is the UniqueCode parameter related to the APM payment. It is included in the response returned by the API at the time of creation.

Amount

decimal

Yes

Provision amount

The parameters returned by the service are as follows:

Parameter
Type
Desciption

ErrorCode

int

Error code. If the operation is successful, it returns a value of '0'.

Result

bool

Returns a value of true or false. If the operation is successful, it returns true.

Message

string

If the operation fails, this is the error message provided. It supports localization based on the locale parameter.

Body

object

If the operation fails, this is the detailed object related to the error.

{
  "ErrorCodeType": 1,
  "ErrorMessage": null,
  "ErrorCode": 0,
  "Result": true,
  "Message": "",
  "Body": {
    "LinkModel": true,
    "ApmTransactionDate": "2025-07-18T17:15:08.753357",
    "UniqueCode": "4035eb60-62b6-4620-9e9b-8d9f15396814",
    "MerchantUniqueCode": "0e0e2885-961f-4685-9fb8-7ce306c07844",
    "TrackingCode": null,
    "Amount": 8.00,
    "ApmTransactionId": 14140,
    "KeyType": 8,
    "ApmProviderMessage": "Ödeme başarılı",
    "AcquirerProviderIcaNumber": null,
    "AcquirerIcaNumber": null,
    "RetrievalReferenceNumber": "",
    "AcquirerAuthorizationCode": "",
    "BankRetrievalReferenceNumber": "",
    "BankReferenceId": "",
    "AdditionalBankReferenceId": "",
    "AcquirerRetrievalNumber": ""
  }
}

Last updated