Freedom Pay
  1. Implement SuperApp
Freedom Pay
  • Overview
  • Gateway API
    • Overview
    • Sync API
      • Overview
      • Purchase
        • Overview
        • Create payment
        • Any amount
        • Card
        • 3DSecure
        • Cancel
        • Clearing
        • Refund
        • Status
      • Payout
        • Overview
        • Card
        • IBAN
        • Balance
        • Status
      • Transfer
        • Overview
        • Card
        • 3DSecure
        • Rates
        • Status
      • Card
        • Overview
        • Add
        • 3DSecure
        • List
        • Remove
        • Status
      • Token
        • Overview
        • Token Pay
        • Apple Pay
        • Google Pay
        • Token Payout
        • Status
    • Async API
      • Overview
      • create
        • create payment
      • read
        • read payment
        • read request
      • edit
        • edit payment.refund
        • edit payment.reverse
        • edit payment.clearing
      • delete
  • Merchant API
    • Overview
    • Purchase
      • Overview
      • Checkout
      • Card token
        • Overview
        • Tokenize card
        • Delete token
        • Card token list
        • Create payment (with CVC)
        • Confirm payment (with CVC)
        • Create payment
        • Confirm payment
      • Create payment
      • Any amount
      • Cancel payment
      • Clearing
      • Refund payment
      • Status
    • Payout
      • Overview
      • Card token
        • Tokenize card
        • Delete token
        • Card token list
        • Create payment
      • Create payment
      • IBAN
      • Balance status
      • Status by order_id
      • Status by Payment ID
      • Status
    • Mobile balance
      • Overview
      • Init
      • Pay
      • Approve
      • Resend code
      • Status
    • Invoice
      • Overview
      • Init
      • Info
      • Pay
      • Status
    • SDK
      • JS SDK
      • Google Pay
      • Freedom QR
        • Reader SDK (Android)
        • Provider SDK (Android)
      • Payment SDK
        • iOS
        • Android
    • CMS
      • Overview
      • Get Merchant ID and key
      • WordPress
        • Overview
        • Installation
        • Configuration
        • Test
        • Live payments
        • Update
      • Tilda
        • Overview
        • Installation
        • Configuration
        • Test
        • Live payments
      • InSales
        • Overview
        • Installation
        • Configuration
        • Test
        • Live payments
      • Ecwid
        • Overview
        • Installation
        • Configuration
        • Test
        • Live payments
      • Bitrix
        • Overview
        • Installation
        • Configuration
        • Test
        • Live payments
      • PrestaShop
        • Overview
        • Installation
        • Configuration
        • Test
        • Live payments
      • OpenCart
        • Overview
        • Installation
        • Configuration
        • Test
        • Live payments
    • Redirect back
      POST
    • Result notify
      POST
    • Payout notify
      POST
    • Check request
      POST
  • 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
      • Secret data (version 2)
      • Operations' list
      • Statement extended
      • Create client
      • Edit client
      • Сards' list
      • Request' status
      • Create transaction
      • Clearing transaction
      • Refund transaction
      • Transaction info
      • Cardholder validation
    • Gift Cards
      • Overview
      • List
      • Issue
      • Confirm
      • Resend
      • Resend code
      • Status
  • Partner API
    • Rates
      • Overview
      • Rates
    • Products
      • Overview
      • Dictionaries
      • Add client with product
      • Request status
    • E-Money
      • Overview
      • Add
      • Owner identification
      • Info
      • Close
      • Block
      • Balance
      • Statement
      • Request Status
    • Freedom ID
      • Overview
      • Design
      • iOS SDK
      • Android SDK
      • OAuth2
        • Authorization link
        • Token exchange
        • Token refresh
        • User info
        • Request profile
        • Get profile status
        • Create user
        • Update user
      • OIDC
        • Authorization endpoint
        • Token exchange
        • Userinfo
      • Error codes
      • Examples
        • Keycloak
    • Transfer
      • Overview
      • Get token
      • Refresh token
      • Get agents
      • Fees
      • Create person
      • Create business
      • Create transfer
      • Print application
      • Confirm
      • Search
      • Payout
      • Payout confirm
      • Cancel
      • Get person info
      • Get business info
      • Status
      • Info
    • Device ID
      • Android SDK
      • iOS SDK
    • Implement SuperApp
      • Overview
      • Pay
        POST
      • Refund
        POST
  1. Implement SuperApp

Pay

POST
https://api.freedompay.kzhttps://api.freedompay.kz/implement/superapp/pay

Request

Body Params application/json
pg_merchant_id
integer 
required
Merchant ID in the Aggregator system
order_number
string 
required
Order number
payment_amount
number <float>
required
Payment amount
commission_amount
number <float>
required
Commission amount
cashback_amount
number <float>
required
Cashback amount
currency
string 
required
Payment currency
payment_datetime
string <date-time>
required
Payment date and time
additional
object 
required
Additional customer info
iin
string 
optional
Individual Identification Number
last_name
string 
optional
Customer's last name
first_name
string 
optional
Customer's first name
phone_number
string 
optional
Phone number
iban
string 
optional
International Bank Account Number
order_id
string 
optional
Order ID
email
string 
optional
Customer's email
pg_salt
string 
required
Random string
pg_sig
string 
required
Request signature
Example
{
    "order_number": "ADDKL4DM",
    "merchant_id": "555555",
    "payment_amount": 5000,
    "commission_amount": 11.33,
    "cashback_amount": 55.28,
    "currency": "KZT",
    "payment_datetime": "2025-05-20T17:44:31.693",
    "additional": {
        "iin": "940603300370",
        "last_name": "Ivanov",
        "first_name": "Ivan",
        "phone_number": "77777777777",
        "iban": "KZ505518729251417KZT,10e86a7d-1915-11f0-a0ec-e21ec0a212a0,tous",
        "order_id": "6051c4e3-41d7-4805-bcf7-4e9d398505bb",
        "email": "Ivanov@gmail.com"
    },
    "salt": "iHteyukKiXFfCQ",
    "sig": "bbf37dc8b7bb5a618d634r28ae6bbe5d"
}

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/implement/superapp/pay' \
--header 'Content-Type: application/json' \
--data-raw '{
    "order_number": "ADDKL4DM",
    "merchant_id": "555555",
    "payment_amount": 5000,
    "commission_amount": 11.33,
    "cashback_amount": 55.28,
    "currency": "KZT",
    "payment_datetime": "2025-05-20T17:44:31.693",
    "additional": {
        "iin": "940603300370",
        "last_name": "Ivanov",
        "first_name": "Ivan",
        "phone_number": "77777777777",
        "iban": "KZ505518729251417KZT,10e86a7d-1915-11f0-a0ec-e21ec0a212a0,tous",
        "order_id": "6051c4e3-41d7-4805-bcf7-4e9d398505bb",
        "email": "Ivanov@gmail.com"
    },
    "salt": "iHteyukKiXFfCQ",
    "sig": "bbf37dc8b7bb5a618d634r28ae6bbe5d"
}'

Responses

🟢200Success
application/json
Body
message
string 
required
Payment description
status
string 
required
Payment status
Example
{
    "message": "Payment 1578152613 created successfully",
    "status": "success"
}
Modified at 2025-06-16 15:47:36
Previous
Overview
Next
Refund