Credits API
Manage store credit balances for your customers.
Overview
Credits are tracked per customer as a ledger of grants and spends.
Endpoints
| Method | Endpoint | Description |
|---|---|---|
| GET | /v1/credits/{customer}/balance | Get balance |
| POST | /v1/credits/{customer}/grants | Grant credits |
| POST | /v1/credits/{customer}/spends | Spend credits |
Idempotency
Send an Idempotency-Key header on writes to avoid duplicate grants.
