- Gateway API
- Introduction
- Reference
- Sync API
- Async API
- Merchant API
- Introduction
- Reference
- Page
- Pay
- Payout
- Mobile balance
- Card
- Token
- Invoice
- ATM
- Additional
- Card API
- Introduction
- Payment Cards
- Gift Cards
- Partner API
- Rates
- Products
- E-Money
- Freedom ID
- Mobile SDK
- CMS
Clearing
POST
https://api.freedompay.kg/do_capture.php
Request
Body Params multipart/form-data
pg_merchant_id
string
required
pg_payment_id
integer
required
Example:
12345
pg_clearing_amount
number
required
Example:
10
pg_salt
string
required
Example:
some random string
pg_sig
string
required
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.freedompay.kg/do_capture.php' \
--form 'pg_merchant_id=""' \
--form 'pg_payment_id="12345"' \
--form 'pg_clearing_amount="10"' \
--form 'pg_salt="some random string"' \
--form 'pg_sig=""'
Responses
🟢200Success
application/xml
Body
pg_amount
number
required
pg_clearing_amount
number
optional
pg_status
string
required
ok
if the request is accepted for processing.error
otherwise.pg_error_description
string
optional
pg_status
is error
.pg_salt
string
required
pg_sig
string
required
Example
<?xml version="1.0" encoding="UTF-8"?>
<root>
<pg_amount>0</pg_amount>
<pg_clearing_amount>0</pg_clearing_amount>
<pg_status>string</pg_status>
<pg_error_description>string</pg_error_description>
<pg_salt>string</pg_salt>
<pg_sig>string</pg_sig>
</root>
Modified at 2025-02-03 10:08:06