1. Saved cards
Freedom Pay
  • Overview
  • Gateway API
    • Overview
    • Sync API
      • Overview
      • Card data encryption
      • Payments
        • Overview
        • Pay by card
        • Pay by card: complete 3DS
        • Pay with Apple Pay
        • Pay with Google Pay
        • Pay by recurring profile
        • Create payment page
        • Create payment page with any amount
        • Capture payment (clearing)
        • Cancel payment
        • Refund payment
        • Get payment status
      • Payout
        • Overview
        • Pay out to card
        • Pay out to IBAN
        • Get payout balance
        • Get payout status
      • Transfer
        • Overview
        • Transfer from card to card
        • Transfer from card to card: complete 3DS
        • Get exchange rates
        • Get transfer status
      • Saved cards
        • Overview
        • Save card
        • Save card: complete 3DS
        • List saved cards
        • Remove saved card
        • Pay by card token
        • Pay out to card token
        • Get payment status
    • Async API
      • Overview
      • Create
        • Create payment
      • Read
        • Get payment status
        • Get request result
      • Edit
        • Capture payment (clearing)
        • Cancel payment (reverse)
        • Refund payment
  • Merchant API
    • Overview
    • Purchase
      • Overview
      • Checkout
      • Pay by saved card
        • Overview
        • Create payment
        • Confirm payment with CVC
        • Confirm payment without the client
      • Create payment
      • Create payment with a payment page template
      • Create payment in a payment frame
      • Create payment with any amount
      • Create recurring payment
      • Cancel payment
      • Capture payment (clearing)
      • Refund payment
      • Get payment status
    • Payout
      • Overview
      • Create payment
      • IBAN
      • Balance status
      • Create payment
      • Status
    • Mobile balance
      • Overview
      • Init
      • Pay
      • Approve
      • Resend code
      • Status
    • Invoice
      • Overview
      • Recurring profile
        • Overview
        • Create
        • Cancel
        • Info
        • Notify
      • Tips
        • Overview
        • Create
      • Create
      • Execute
      • Info
      • Refund
      • Status
      • Cancel
    • SDK
      • JS SDK
      • Merchant SDK
        • Google Pay
        • Android
        • IOS
    • 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
    • Installment
      • Overview
      • Status
        • Application Status
        • Application Callback Status
        • Application Change Status
      • Get partners
      • Create application
    • Saved cards
      • Get saved cards
        POST
      • Save card
        POST
      • Save card for payouts
        POST
      • Delete saved card
        POST
      • Save card without a charge
        POST
    • Redirect back
      POST
    • Result notify
      POST
    • Payout notify
      POST
    • Check request
      POST
  • Partner API
    • Rates
      • Overview
      • Rates
    • Products
      • Overview
      • Dictionaries
      • Add client with product
      • Client request status
      • Create terminal
      • Update terminal limits
      • Product request status
    • E-Money
      • Overview
      • Add
      • Owner identification
      • Info
      • Close
      • Block
      • Balance
      • Statement
      • Request Status
    • Device ID
      • Android SDK
      • iOS SDK
    • Implement SuperApp
      • Overview
      • Pay
      • Refund
      • Status
    • Account
      • Overview
      • Create payment
      • Payment status
      • Batch statuses
      • Statement
      • Statement status
      • Balance
      • Balance status
    • Invoices
      • Info
  1. Saved cards

Get saved cards

KZ
https://api.freedompay.kz
KZ
https://api.freedompay.kz
POST
https://api.freedompay.kz
/v1/merchant/{merchant_id}/cardstorage/list
Returns the cards saved for pg_user_id: their tokens pg_card_token, masked numbers and status.
Cards are saved by Save card, Save card without a charge and Save card for payouts.
If saving cards for payouts is enabled for the merchant, the list contains payout cards too: they have pg_is_full = 0 and cannot be used for payments.
If the client has no saved cards, the response contains only pg_salt and pg_sig.

Request flow#

Result#

ResponseMeaningNext step
One or more card elementsSaved cards of the client.Pay by a card with Create payment.
Only pg_salt and pg_sigThe client has no saved cards.Save a card with Save card.
pg_status = errorThe request is rejected.See «Errors» below.

Errors#

The error is returned in pg_error_code and pg_error_description; the HTTP status depends on the error. Error responses are not signed.
HTTPpg_error_codeWhenWhat to do
2000A parameter is missing or invalid: pg_error_description names it.Fix the request.
4011100The signature is missing or invalid.Check the signature: see Merchant API Overview.

Request example#

Required fields only. pg_sig is calculated with the secret key test_secret_key.
Line breaks in the body are added for readability: send the body as one line.

Request

Path Params

Body Params multipart/form-data

Responses

🟢200Success
application/xml
Bodyapplication/xml

Examples
<?xml version="1.0" encoding="utf-8"?>
<response>
    <card>
        <pg_merchant_id>13991</pg_merchant_id>
        <pg_status>approved</pg_status>
        <pg_card_token>fbf5aa8b-3780-47f8-809a-e61a94c69b47</pg_card_token>
        <pg_card_hash>4716-04XX-XXXX-1981</pg_card_hash>
        <pg_is_full>1</pg_is_full>
        <pg_card_id></pg_card_id>
        <created_at></created_at>
        <pg_recurring_profile_id></pg_recurring_profile_id>
        <bank_alias>innforunionpaycardnetwork</bank_alias>
        <brand_alias>UNIONPAY</brand_alias>
        <expiry_year>30</expiry_year>
        <expiry_month>12</expiry_month>
    </card>
    <card>
        <pg_merchant_id>13991</pg_merchant_id>
        <pg_status>approved</pg_status>
        <pg_card_token>a783d897-4167-46ba-85dc-2dbd8246fc48</pg_card_token>
        <pg_card_hash>4111-11XX-XXXX-1111</pg_card_hash>
        <pg_is_full>1</pg_is_full>
        <pg_card_id></pg_card_id>
        <created_at></created_at>
        <pg_recurring_profile_id></pg_recurring_profile_id>
        <bank_alias>UNKNOWN</bank_alias>
        <brand_alias>UNKNOWN</brand_alias>
        <expiry_year>30</expiry_year>
        <expiry_month>12</expiry_month>
    </card>
    <pg_salt>eBjYyfeB</pg_salt>
    <pg_sig>5769db51b29e49fddf2d1530aaac8494</pg_sig>
</response>
🟢200Error
🟠401Unauthorized
Previous
Create application
Next
Save card