- 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
- Mobile SDK
- CMS
Status
POST
https://api.freedompay.kz/g2g/status_v2
Request
Body Params multipart/form-data
pg_merchant_id
integer
required
Issued upon connection
pg_payment_id
integer
required
pg_order_id
string
required
pg_salt
string
required
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/g2g/status_v2' \
--form 'pg_merchant_id=""' \
--form 'pg_payment_id=""' \
--form 'pg_order_id=""' \
--form 'pg_salt=""' \
--form 'pg_sig=""'
Responses
🟢200Success
application/xml
Body
pg_payment_id
number
required
pg_order_id
string
required
Match pattern:
^[a-zA-Z0-9]+$
pg_currency
string
required
pg_status
string
required
pg_payment_status
string
optional
pg_amount
number
required
pg_clearing_amount
number
optional
pg_refund_amount
number
optional
pg_user_email
string <email>
required
pg_card_name
string
optional
pg_card_id
number
optional
pg_card_token
string
optional
pg_card_pan
string
optional
pg_card_exp
string
optional
pg_card_brand
string
optional
pg_user_phone
string
optional
pg_payment_date
string <date-time>
required
pg_captured
number
optional
pg_refund_payments
array [object {7}]
optional
pg_payment_id
number
optional
pg_payment_status
string
optional
pg_amount
number
optional
pg_payment_date
string <date-time>
optional
pg_reference
string
optional
pg_failure_code
number
optional
pg_failure_description
string
optional
pg_revoked_payments
array [object {2}]
optional
pg_payment_id
number
optional
pg_payment_status
string
optional
pg_reference
string
optional
pg_intreference
string
optional
pg_failure_code
number
optional
pg_failure_description
string
optional
pg_auth_code
string
optional
pg_salt
string
required
pg_sig
string
required
pg_datetime
string <date-time>
required
Example
<?xml version="1.0" encoding="UTF-8"?>
<response>
<pg_payment_id>1427057029</pg_payment_id>
<pg_order_id>2343253465454</pg_order_id>
<pg_currency>KZT</pg_currency>
<pg_status>ok</pg_status>
<pg_payment_status>success</pg_payment_status>
<pg_amount>1030</pg_amount>
<pg_clearing_amount>0</pg_clearing_amount>
<pg_refund_amount>0</pg_refund_amount>
<pg_user_email></pg_user_email>
<pg_card_name>NAME NAME</pg_card_name>
<pg_user_phone></pg_user_phone>
<pg_payment_date>2024-11-28 15:44:53</pg_payment_date>
<pg_card_pan>4400-44XX-XXXX-4444</pg_card_pan>
<pg_card_exp>12/24</pg_card_exp>
<pg_card_brand>string</pg_card_brand>
<pg_net_amount>1005.28</pg_net_amount>
<pg_reference>4333333333</pg_reference>
<pg_captured>0</pg_captured>
<pg_auth_code>932495</pg_auth_code>
<pg_intreference>TE5XTR4GGFF</pg_intreference>
<pg_salt>XeFNeRYiwcqlWPg9TZUj6pc9gj6KYBSb</pg_salt>
<pg_sig>d333fb3333b3f6e861c61682ba173c46</pg_sig>
<pg_datetime>2024-11-28T10:44:55+00:00</pg_datetime>
</response>
🟢200Error
Modified at 2025-03-03 09:03:59