Freedom Pay
  1. Payment Cards
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
        • create payment recurrent
      • 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
    • Result notify
    • Payout notify
    • Check request
  • Card API
    • Overview
    • Payment Cards
      • Overview
      • Dictionaries
      • Bulk issue
        POST
      • Issue card
        POST
      • Issue plastic card
        POST
      • Activate card
        POST
      • Block card
        POST
      • Unblock card
        POST
      • Set PIN
        POST
      • Reset PIN counter
        POST
      • Close card
        POST
      • Update client
        POST
      • Card info
        POST
      • Balance
        POST
      • Secret data
        POST
      • Secret data (version 2)
        POST
      • Statement
        POST
      • Statement extended
        POST
      • Create client
        POST
      • Edit client
        POST
      • Сards' list
        POST
      • Request' status
        POST
      • Create transaction
        POST
      • Clearing transaction
        POST
      • Refund transaction
        POST
      • Transaction request' status
        POST
      • Transaction info
        POST
    • 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
  1. Payment Cards

Create client

POST
https://api.freedompay.kz/v5/card-api/client/add
This method is used to create a client in the Freedom Processing system. As a result, the client is assigned a unique identifier client_id, which is then used to link the client to issued payment cards.
After creation, the client_id can be used in other methods, such as updating client data or linking the client to a specific card.

Request

Body Params application/json
request_id
string 
required
Unique request ID in the partner system (UUID).
product_id
integer 
required
Identifier of the product within which the client is created.
branch_id
string 
optional
Branch code. If not provided, the default branch is selected.
client
object 
required
Client data.
phone
integer 
required
Client's phone number.
type
integer 
required
Client type:
1: Individual
2: Legal entity
3: Individual entrepreneur
resident
integer 
required
Resident status of the client:
1: Resident
2: Non-resident
first_name
string 
required
Client's first name (Latin).
last_name
string 
required
Client's last name (Latin).
middle_name
string 
optional
Client's middle name (Latin).
birthdate
string <date>
optional
Cardholder's birthdate (format: YYYY-MM-DD).
email
string 
optional
Client's email address.
country
string 
optional
Client's country of residence (alpha-3 code).
person_id
string 
optional
Identifier of the client in the country of residence (e.g., Kazakhstan's IIN).
language
string 
optional
Client's language of communication (alpha-2 code).
document
string 
optional
Scan copy of the document verifying the client's identity (Base64 encoded, PDF format, max size 2MB).
external_user_id
string 
optional
Identifier of the client in the partner system.
address1
object 
optional
address2
object 
optional
identification_info
object 
optional
idn_date
string 
required
Date of identification (format: RFC 3339, YYYY-MM-DDThh:mm:ss+hh:mm).
identified_by
string 
required
Identifier of the user who conducted the client's identification.
Example
{
  "request_id": "string",
  "product_id": 0,
  "branch_id": "string",
  "client": {
    "phone": 0,
    "type": 0,
    "resident": 0,
    "first_name": "string",
    "last_name": "string",
    "middle_name": "string",
    "birthdate": "2019-08-24",
    "email": "string",
    "country": "string",
    "person_id": "string",
    "language": "string",
    "document": "string",
    "external_user_id": "string",
    "address1": {
      "country": "string",
      "postal_code": "string",
      "address_line1": "string",
      "address_line2": "string",
      "address_line3": "string"
    },
    "address2": {
      "country": "string",
      "postal_code": "string",
      "address_line1": "string",
      "address_line2": "string",
      "address_line3": "string"
    }
  },
  "identification_info": {
    "idn_date": "string",
    "identified_by": "string"
  }
}

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/card-api/client/add' \
--header 'Content-Type: application/json' \
--data-raw '{
    "request_id": "string",
    "product_id": 0,
    "branch_id": "string",
    "client": {
        "phone": 0,
        "type": 0,
        "resident": 0,
        "first_name": "string",
        "last_name": "string",
        "middle_name": "string",
        "birthdate": "2019-08-24",
        "email": "string",
        "country": "string",
        "person_id": "string",
        "language": "string",
        "document": "string",
        "external_user_id": "string",
        "address1": {
            "country": "string",
            "postal_code": "string",
            "address_line1": "string",
            "address_line2": "string",
            "address_line3": "string"
        },
        "address2": {
            "country": "string",
            "postal_code": "string",
            "address_line1": "string",
            "address_line2": "string",
            "address_line3": "string"
        }
    },
    "identification_info": {
        "idn_date": "string",
        "identified_by": "string"
    }
}'

Responses

🟢200Success
application/json
Body
status
string 
required
Status of the request. Possible values:
ok: Request completed successfully.
error: Request completed with an error.
request_status
string 
required
Execution status of the request. Refer to the documentation.
dt
string <date-time>
required
Date and time of the request (format: RFC 3339, YYYY-MM-DDThh:mm:ss+hh:mm).
Example
{
  "status": "string",
  "request_status": "string",
  "dt": "2019-08-24T14:15:22Z"
}
Previous
Statement extended
Next
Edit client