Partners

From Advice Local Wiki
Revision as of 13:14, 12 February 2020 by Harv (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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
Host: p.lssdev.com
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",
               ...
            }
        ]
    }
}