Freedom Pay
  1. Card token
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
          POST
        • Delete token
          POST
        • Card token list
          POST
        • Create payment (with CVC)
          POST
        • Confirm payment (with CVC)
          POST
        • Create payment
          POST
        • Confirm payment
          POST
      • Create payment
        POST
      • Any amount
        POST
      • Cancel payment
        POST
      • Clearing
        POST
      • Refund payment
        POST
      • Status
        POST
    • 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)
      • Statement
      • Statement extended
      • Create client
      • Edit client
      • Сards' list
      • Request' status
      • Create transaction
      • Clearing transaction
      • Refund transaction
      • Transaction request' status
      • Transaction info
    • 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. Card token

Card token list

POST
https://api.freedompay.kz/v1/merchant/{merchant_id}/cardstorage/list
This method is used to get a list of previously saved bank cards

Interaction diagram#

Status: success/error
G2G_API_V3-Get card list.drawio.png

Request

Path Params
merchant_id
string 
required
Body Params multipart/form-data
pg_merchant_id
integer 
required
Merchant ID in {{project}}
Issued upon connection
pg_user_id
string 
required
User ID in the merchant system
<= 50 characters
Example:
No65GFR755789T
Match pattern:
^[a-zA-Z0-9_-]+$
pg_extend_data
enum<integer> 
optional
For obtaining additional card details, namely:
1 . Card brand (brand_alias)
2 . Card expiration date (expiry_year and expiry_month)
3 . Bank alias of the card (bank_alias)
To receive this information, you need to send 1.
Allowed values:
01
pg_salt
string 
required
A random string consisting of arbitrary numbers and Latin letters
pg_sig
string 
required
Request signature

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/v1/merchant//cardstorage/list' \
--form 'pg_merchant_id=""' \
--form 'pg_user_id="No65GFR755789T"' \
--form 'pg_extend_data=""' \
--form 'pg_salt=""' \
--form 'pg_sig=""'

Responses

🟢200Success
application/xml
Body
card
object 
required
Card details.
pg_status
string 
optional
Shows the status of the card.
pg_merchant_id
integer 
optional
Merchant ID in the system {{project}}.
pg_card_id
integer 
optional
Card ID (Deprecated).
pg_card_token
string 
optional
Card token.
pg_card_hash
string 
optional
Masked PAN card.
pg_card_hhash
string 
optional
Hash of the masked PAN card.
pg_recurring_profile_id
string 
optional
Recurring payment profile ID.
created_at
string <date-time>
optional
Date when the card was added.
bank_alias
string 
optional
Bank alias of the card. Available if pg_extend_data=1.
brand_alias
string 
optional
Card brand. Available if pg_extend_data=1.
expiry_year
string 
optional
Card expiration year. Available if pg_extend_data=1.
expiry_month
string 
optional
Card expiration month. Available if pg_extend_data=1.
pg_sig
string 
required
Request signature.
pg_salt
string 
required
Random string.
Example
<?xml version="1.0" encoding="UTF-8"?>
<root>
  <card>
    <pg_status>string</pg_status>
    <pg_merchant_id>0</pg_merchant_id>
    <pg_card_id>0</pg_card_id>
    <pg_card_token>string</pg_card_token>
    <pg_card_hash>string</pg_card_hash>
    <pg_card_hhash>string</pg_card_hhash>
    <pg_recurring_profile_id>string</pg_recurring_profile_id>
    <created_at>2019-08-24T14:15:22Z</created_at>
    <bank_alias>string</bank_alias>
    <brand_alias>string</brand_alias>
    <expiry_year>string</expiry_year>
    <expiry_month>string</expiry_month>
  </card>
  <pg_sig>string</pg_sig>
  <pg_salt>string</pg_salt>
</root>
Previous
Delete token
Next
Create payment (with CVC)