Non-acceptance payments
POST
https://api.freedompay.kz/v1/merchant/{{paybox_merchant_id}}/card/init
pg_card_token
sent by the merchant is verified. If everything is correct, Freedom Pay Gateway responds with a payment_id
Interaction diagram
Request
Body Params multipart/form-data
pg_merchant_id
integer
required
pg_order_id
string
required
Example:
550e8400-e29b-41d4-a716-446655440000
pg_amount
number
required
>= 0.01<= 99999999
pg_description
string
required
pg_user_id
string
required
<= 50 characters
Example:
No65GFR755789T
Match pattern:
^[a-zA-Z0-9_-]+$
pg_user_ip
string
optional
Example:
127.0.0.1
pg_user_phone
number
optional
Example:
77777777777
pg_user_email
string <email>
optional
pg_card_token
string
required
<= 255 characters
Example:
ef741cfc-f85e-41a0-84e6-2ba964912182
pg_result_url
string
optional
<= 255 characters
Example:
https://site.com/result
pg_success_url
string
optional
<= 255 characters
Example:
https://site.com/success
pg_failure_url
string
optional
<= 255 characters
Example:
https://site.com/failure
pg_receipt_positions[0][count]
integer
optional
>= 1
Example:
2
pg_receipt_positions[0][name]
string
optional
>= 1 characters
Example:
Mouse pad
pg_receipt_positions[0][tax_type]
enum<integer>
optional
0 - Without tax,
1 - VAT 0%,
2 - VAT 12%,
3 - VAT 12/112,
4 - VAT 18%,
5 - VAT 18/118
6 - VAT 10%,
7 - VAT 10/110,
8 - VAT 20%,
9 - VAT 20/120.
Allowed values:
0123456789
pg_receipt_positions[0][price]
number
optional
>= 0.01<= 9999999
pg_param1
string
optional
<= 255 characters
Example:
Additional Information
pg_param2
string
optional
<= 255 characters
Example:
Additional Information
pg_param3
string
optional
<= 255 characters
Example:
Additional Information
pg_idempotency_key
string
optional
<= 255 characters
Example:
550e8400-e29b-41d4-a716-446655440000
pg_loyalty_id
number
optional
pg_loyalty_amount
number
optional
pg_freedom_id
string
optional
pg_salt
string
required
pg_sig
string
required
Request samples
Responses
Modified at 2025-03-24 15:39:32