1. Home
  2. Docs
  3. Developers Guide
  4. Integration APIs
  5. Store Card
  6. get_user_cards

get_user_cards

This API is used to fetch all the cards corresponding to the user. In this API, card number and other sensitive information is not returned.

Web Service Request Parameter

ParameterDescriptionSample Value
var1 user_credentials (In the format MerchantKey:UserIdentifier)JQBlG:abc

Web Service Responses

a.Cards are found in the vault:

Array 
(
    [status] => 1
    [msg] => Cards fetched Succesfully
    [user_cards] => Array
     (
        [745d72e2fd9b7e88824fef4e7ed7dac1fe624b7] => Array
        (
          JQBlG:abc
          [name_on_card] => {name}
          [card_name] => nickname but if sent empty then 
           (cardType****last 4 digits of card) e.g. mastercard****2346 ) )
           [card_type] => CC(ibibo_code)
           [card_token] => 745d72e2fd9b7e88824fef4e7ed7dac1fe624b7 
           [is_expired] => 1(1 when card is expired , 0 when not) 
           [card_mode] => CC(card Category)
           [card_no] => 412345xxxxxx2356(masked Card Number) 
           [card_brand] => VISA
           [card_bin] => 412345
           [expiry_year] => 2017
           [expiry_month] => 10
        )
)

b. No cards are found for the user :

Array
(
[status] => 0
[msg] => Card not found. 
)