API documentation

Set Card as default

PATCH /api/car_driver/cards/:id/set_default

Include access_token in HTTP header:

Authorization: Bearer 09ba487fc3df...

Description

This web service sets the default card

Response

Status Code: 200 if OK

{ 
    "id": "2", 
    "card_mask": "1****2345", 
    "is_default": "true" 
}
Parameter name Parameter type Description
id int id of the card
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 user's default card

Status Code: 401 if request not authorized