From Advice Local Wiki
Jump to: navigation, search

The Get Cards

This endpoint will return the credit cards that are on file. In order to create orders, you need to POST a "card_id" in the body of the JSON request. The card id can be retrieved from this endpoint. Currently, cards can not be added via the API. They must be added using the dashboard interface.

Example Request

GET /cardsHTTP/1.1
x-api-token: YOUR_API_KEY
Content-Type: application/json

Example Response

    "status": 200,
    "success": true,
    "error": null,
    "data": {
        "object": "list",
        "data": [
               "id": "CARD_ID_TO_USE_WHEN_PLACING_ORDERS",