- Gateway API
- Introduction
- Reference
- Sync API
- Introduction
- Page
- Pay
- Payout
- Transfer
- Card
- Token
- Async API
- Merchant API
- Introduction
- Reference
- Page
- Pay
- Payout
- Mobile balance
- Card
- Token
- Invoice
- ATM
- Additional
- Card API
- Partner API
- Mobile SDK
- CMS
Clearing
POST
https://api.freedompay.uz/g2g/clearing
Request
Body Params multipart/form-data
pg_merchant_id
integer
required
Numbers.||integer
Example:
{{paybox_merchant_id}}
pg_payment_id
integer
required
Numbers.||integer
pg_salt
string
required
pg_sig
string
required
Example:
{{paybox_signature}}
pg_clearing_amount
number
optional
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.uz/g2g/clearing' \
--form 'pg_merchant_id="{{paybox_merchant_id}}"' \
--form 'pg_payment_id=""' \
--form 'pg_salt=""' \
--form 'pg_sig="{{paybox_signature}}"' \
--form 'pg_clearing_amount=""'
Responses
🟢200Success
application/xml
Body
pg_payment_id
integer
required
pg_amount
integer
required
pg_clearing_amount
integer
required
pg_status
string
required
pg_clearing_status
string
required
1 - Clearing completed, 0 - Clearing not completed
pg_salt
string
required
Arbitrary digits and Latin letters
pg_sig
string
required
Example
<?xml version="1.0" encoding="utf-8"?>
<response>
<pg_payment_id>7777777777</pg_payment_id>
<pg_amount>1000</pg_amount>
<pg_clearing_amount>500</pg_clearing_amount>
<pg_status>ok</pg_status>
<pg_status_clearing>1</pg_status_clearing>
<pg_salt>YtfwCGiBHsFLpYGk</pg_salt>
<pg_sig>ccee466c01c2332d8a065d6108fd686b</pg_sig>
</response>
🟢200Error
🟢200Invalid Signature
Modified at 2025-02-03 10:55:01