GET
/
wallets
Authorization
Query
LAGO_URL="https://api.getlago.com"
API_KEY="__YOUR_API_KEY__"

curl --location --request GET "$LAGO_URL/api/v1/wallets?external_customer_id&per_page=2&page=1" \
  --header "Authorization: Bearer $API_KEY"
{
  "meta": {
    "current_page": 2,
    "next_page": 3,
    "prev_page": 1,
    "total_count": 70,
    "total_pages": 4
  },
  "wallets": [
    {
      "balance_cents": 1000,
      "consumed_credits": "2.0",
      "created_at": "2022-04-29T08:59:51Z",
      "credits_balance": "28.0",
      "currency": "USD",
      "expiration_at": "null",
      "external_customer_id": "hooli_1234",
      "lago_customer_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
      "lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
      "last_balance_sync_at": "2022-04-29T08:59:51Z",
      "last_consumed_credit_at": "2022-04-29T08:59:51Z",
      "name": "Prepaid",
      "rate_amount": "1.5",
      "status": "active",
      "terminated_at": "2022-09-14T16:35:31Z"
    }
  ]
}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

page
integer

Page number.

per_page
integer

Number of records per page.

external_customer_id
string
required

The customer external unique identifier (provided by your own application).

Response

200 - application/json
meta
object
required
wallets
object[]
required