Bag is live — accept USDC & card payments globally. Get started →
BagBag Docs
API ReferenceCustomers

Get a customer

Retrieve a customer by their unique ID.

GET
/api/customers/{id}
AuthorizationBearer <token>

API key authentication for programmatic access. Include your key in the Authorization header:

Authorization: Bearer bag_live_sk_a1b2c3d4e5f6...

Keys are prefixed with bag_live_sk_ (production) or bag_test_sk_ (sandbox). Generate keys from the Bag Dashboard.

In: header

Path Parameters

id*string

The customer's unique ID.

Formatuuid

Response Body

application/json

application/json

application/json

curl -X GET "https://getbags.app/api/customers/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{
  "status": "success",
  "data": {
    "id": "c1d2e3f4-a5b6-4c7d-8e9f-0a1b2c3d4e5f",
    "email": "alice@example.com",
    "name": "Alice Johnson",
    "walletAddress": "0xCuStOmEr1234567890abCdEf1234567890aBcDeF",
    "country": "US",
    "metadata": {},
    "totalSpent": 89.97,
    "transactionCount": 3,
    "createdAt": "2026-02-15T10:00:00.000Z",
    "updatedAt": "2026-03-28T14:22:00.000Z"
  }
}
{
  "status": "error",
  "message": "Invalid or revoked API key",
  "code": "UNAUTHORIZED",
  "hint": "Include a valid API key in the Authorization header: Bearer bag_live_sk_..."
}
{
  "status": "error",
  "message": "Not found",
  "code": "NOT_FOUND"
}