- Gateway API
- Overview
- Sync API
- Async API
- Merchant API
- Card API
- Overview
- Payment Cards
- Overview
- Dictionaries
- Bulk issue
- Issue card
- Issue plastic card
- Activate card
- Block card
- Unblock card
- Set PIN
- Reset PIN counter
- Close card
- Update client
- Card info
- Balance
- Secret data
- Statement
- Statement extended
- Create client
- Edit client
- Сards' list
- Request' status
- Create transaction
- Clearing transaction
- Refund transaction
- Transaction request' status
- Transaction info
- Gift Cards
- Partner API
- Rates
- Products
- E-Money
- Freedom ID
- IMTS "Leskar"
- Mobile SDK
- CMS
Status by order_id
Deprecated
POST
https://api.freedompay.kz/get_status2.php
Request
Body Params multipart/form-data
pg_merchant_id
integer
required
pg_order_id
string
required
Example:
00102
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.kz/get_status2.php' \
--form 'pg_merchant_id=""' \
--form 'pg_order_id="00102"' \
--form 'pg_salt="some random string"' \
--form 'pg_sig=""'
Responses
🟢200OK
application/xml
Body
pg_status
string
required
ok
— Request was successful.error
— Request encountered an error.pg_payment_id
integer
required
If in response to the payment status check you receive payment_id = 0 within a minute, then the payment does not exist in our system.
pg_transaction_status
string
required
partial
— New payment.pending
— Awaiting payer or payment system action.ok
— Payment successfully completed.failed
— Payment encountered an error.incomplete
— Payment lifetime expired.pg_can_reject
enum<integer>
required
0 | 1
.Allowed values:
01
pg_testing_mode
enum<integer>
optional
0
— Payment is in production mode.1
— Payment is in test mode.Allowed values:
01
pg_captured
enum<integer>
required
0 | 1
.Allowed values:
01
pg_create_date
string <date-time>
required
pg_salt
string
required
pg_sig
string
required
pg_failure_code
string
optional
pg_failure_description
string
optional
Example
<?xml version="1.0" encoding="utf-8"?>
<response>
<pg_status>ok</pg_status>
<pg_payment_id>511194</pg_payment_id>
<pg_transaction_status>ok</pg_transaction_status>
<pg_can_reject>0</pg_can_reject>
<pg_captured>1</pg_captured>
<pg_create_date>2021-08-26 11:52:25</pg_create_date>
<pg_salt>41F5ZyqcOabTG5u7</pg_salt>
<pg_sig>34484775bd62986753429d6af57e94eb</pg_sig>
</response>
🟢200Failed
🟢200Partial
🟢200Pending
Modified at 2025-03-02 18:21:15