API documentation

Get Cards list

GET /api/car_driver/cards

Include access_token in HTTP header:

Authorization: Bearer 09ba487fc3df...


This web service returns the list of credit cards saved by the user in the application.


Status Code: 200 if OK

          "id": 12,
          "description": "Blue VISA",
          "card_mask": "9****5098",
          "is_default": true 
          "id": 13,
          "description": "Multicolored VISA",
          "card_mask": "1****2345",
          "is_default": false


Parameter name Parameter type Description
id int id of the card
description string description of the card set by the user
card_mask string mask of the card that can be displayed to the user ex:'1****2345'
is_default bool true if it is the users default card

OR (if no cards exist)


Status Code: 401 if request not ok