- 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
Non-acceptance payments (Pay)
POST
https://api.freedompay.kg/v1/merchant/{{paybox_merchant_id}}/card/direct
Request
Body Params multipart/form-data
pg_merchant_id
string
required
pg_payment_id
integer
required
Example:
12345
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 -g --request POST 'https://api.freedompay.kg/v1/merchant/{{paybox_merchant_id}}/card/direct' \
--form 'pg_merchant_id=""' \
--form 'pg_payment_id="12345"' \
--form 'pg_salt="some random string"' \
--form 'pg_sig=""'
Responses
🟢200Success
application/xml
Body
pg_status
string
required
Status Description
ok — Request was successful,
error — Request was successful
pg_payment_id
integer
required
pg_merchant_id
integer
required
pg_order_id
string
required
pg_salt
string
required
pg_sig
string
required
Example
<?xml version="1.0" encoding="utf-8"?>
<response>
<pg_status>ok</pg_status>
<pg_payment_id>7999007883</pg_payment_id>
<pg_can_reject>1</pg_can_reject>
<pg_payment_method>bankcard</pg_payment_method>
<pg_amount>100</pg_amount>
<pg_currency>KZT</pg_currency>
<pg_transaction_status>ok</pg_transaction_status>
<pg_captured>1</pg_captured>
<pg_card_pan>4111-11XX-XXXX-1111</pg_card_pan>
<pg_card_id>56</pg_card_id>
<pg_card_token>541c0533-a131-48fa-909c-dd0662aea3bc</pg_card_token>
<pg_auth_code>487129</pg_auth_code>
<pg_create_date>2024-11-19 11:40:49</pg_create_date>
<pg_salt>X0yt6VlmpbACmjlt</pg_salt>
<pg_sig>b714dcd1cd0c3c2b482a6d87c46fac2b</pg_sig>
</response>
🟢200Error
🟢200Invalid Signature
Modified at 2025-02-03 10:08:06