Storrik LogoStorrik Docs
APIReferenceCustomer

Retrieve customer profile and purchase history

Returns basic customer information, aggregate purchase statistics, and a list of successful purchase transactions.

GET
/v1/customer/me
Authorization<token>

Use Authorization: Bearer pk_...

In: header

Response Body

curl -X GET "https://api.storrik.com/v1/customer/me"
{
  "ok": true,
  "customer": {
    "id": "CUS_xxxxx",
    "email": "user@example.com",
    "name": "string",
    "balance": 0,
    "balanceCurrency": "USD",
    "lastLoginAt": 0
  },
  "stats": {
    "totalSpentCents": "84",
    "purchasesCount": 3
  },
  "transactions": [
    {
      "id": "txn_xxxxx",
      "method": "card",
      "currency": "AUD",
      "quantity": 1,
      "createdAt": 0
    }
  ]
}
Empty
Empty