Freedom Pay
  1. read
Freedom Pay
  • Overview
  • Gateway API
    • Overview
    • Sync API
      • Overview
      • Purchase
        • Overview
        • Create payment
        • Any amount
        • Card
        • 3DSecure
        • Recurrent
        • 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
          POST
        • read request
          POST
      • edit
        • edit payment.refund
        • edit payment.reverse
        • edit payment.clearing
  • 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
      • Set limits
      • Limits list
    • 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
      • Refund
  1. read

read payment

POST
https://api.freedompay.kz/v5/g2g/read

Request

Header Params
Accept
string 
required
Indicates the media types that the client is able to understand from the server response.
Default:
application/json
Content-Type
string 
required
Specifies the media type of the resource being sent to the server.
X-JWS-Signature
string 
required
Request signature.
Example:
eyJhbGciOiJSUzI1NiIsImtpZCI6IjEyMzQ1NiJ9.eyJpc3MiOiJleGFtcGxlLmNvbSIsInN1YiI6InVzZXIxMjMiLCJhdWQiOiJhcGkuZXhhbXBsZS5jb20iLCJleHAiOjE2MzAwMDAwMDAsImlhdCI6MTYyOTk5NjQwMH0.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
X-Action
string 
required
Invoked method.
If the same request_id is sent more than once, the API guarantees idempotent behavior and returns the original response.
Default:
gateway.payment.status
X-Request-Id
string 
required
Unique request ID (UUID).
Example:
01978cb8-60f4-7b04-8b8d-8075a11d56a3
Body Params application/json
id
string 
Required if "order_id" is not provided
required
Payment ID (UUID).
Example:
01978c2f-79bc-72de-85f1-2ca183462dc5
order_id
string 
Required if "id" is not provided
optional
Order number in the merchant's system.
Example:
12345
Example
{
    "id": "01907dac-a93d-776e-b475-cba6a54a4888",
    "order_id": "1234"
}

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/v5/g2g/read' \
--header 'Accept;' \
--header 'X-JWS-Signature;' \
--header 'X-Action;' \
--header 'X-Request-Id;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "id": "01907dac-a93d-776e-b475-cba6a54a4888",
    "order_id": "1234"
}'

Responses

🟢200OK
application/json
Headers
x-request-id
string 
required
Request ID (UUID), equals X-Request-Id from request headers.
Example:
01978c2b-f191-7b56-92f8-20c7c401d1fc
x-request-status
string 
required
Request status.
Example:
success
x-datetime
string 
required
Request datetime.
Example:
2025-06-20T07:13:31Z
Body
id
string <uuid>
required
Unique identifier of the payment generated by the gateway.
Example:
01978d0e-b956-7ea2-9a42-32cff1f44ede
order_id
string <char>
required
Merchant’s order reference that links the payment to the merchant system.
Example:
12345
parent_id
string <uuid>
required
UUID of the parent payment
Example:
01978d27-fdb1-7fd1-8812-ce7a83414c72
status
string <char>
required
Current processing state of the payment (approved, success, error, etc.).
Examples:
processsuccessapprovedreversederror
amount
number <float>
required
Transaction amount in the original currency units (e.g., “103” = 103 KZT).
Example:
100
created_at
string <date-time>
required
Timestamp when the payment record was created on the gateway.
Example:
2025-06-20T07:13:31.068188524Z
3ds
object 
required
Object containing information for the client’s 3DS authentication.
flow_type
string 
required
Details of 3DS flow used (Challenge or Frictionless).
Examples:
FC
acs_url
string 
required
URL to which the client should be redirected via POST. The request body must include the parameter TermUrl, which is the URL the client will be returned to after 3DS completion.
Example:
https://acs.com/something
from
object 
required
recurrent
object 
optional
card
object 
optional
Card token
clearing
object 
required
cleared
boolean 
required
Payment clearing status
amount
number <float>
required
Amount cleared
Example:
100
additional
object 
optional
approval_code
string 
required
Payment approval code sent by the issuing bank
reference
string 
required
Unique bank transaction identifier assigned by the bank (RRN)
intreference
string 
required
Unique bank transaction internal identifier assigned by the bank
refund_payments
array [object {3}] 
optional
Array containing information about refund payments
id
string 
required
UUID of the refund payment
amount
integer  | number 
required
Amount of the refund payment
status
string 
required
Status of the refund payment
reverse_payments
array [object {3}] 
optional
Array containing information about reversed (canceled) payments
id
string 
required
UUID of the reversed payment
amount
integer 
required
Amount of the reversed payment
status
string 
required
Status of the reversed payment
Examples
Since the API operates asynchronously, whenever the payment status is returned as process, you must continuously query the payment status until you receive a final status such as approved or success.
{
    "id": "01978d0e-b956-7ea2-9a42-32cff1f44ede",
    "status": "approved",
    "amount": 100,
    "created_at": "2025-06-20T07:13:31.068188524Z",
    "order_id": "1234",
    "clearing": {
        "cleared": false,
        "amount": 0
    },
    "from": {
        "card": {
            "token": "01978d11-669e-7dd1-bf1b-75a12bf57ca9",
            "brand": "VI"
        }
    },
    "additional": {
        "approval_code": "95F69T",
        "reference": "1234567891234",
        "intreference": "AC1BFED11052BFAC"
    },
    "3ds": {
        "acs_url": "",
        "flow_type": "F"
    }
}
Modified at 2025-06-26 13:34:50
Previous
create payment
Next
read request