Setup
Put them in your environment or
.env; Data APIs covers the other ways.
Notes
- Amounts are integers in the currency’s smallest unit (cents for USD: 1099 = $10.99); timestamps are Unix seconds.
- List endpoints page with cursors: pass the last object’s id as starting_after (has_more says whether to continue); limit is 1-100, default 10.
- Search endpoints page with the next_page value from the previous response as page, not starting_after. Search data can lag writes by up to a minute (an hour during outages) and is not available to merchants in India.
- A test key (sk_test_) only sees sandbox data; live data needs a live or restricted key. Prefer a read-only restricted key for this catalog.
- Responses follow the account’s API version unless a Stripe-Version header is sent; field shapes can differ between versions.
- Refunds, payouts, customer updates and other writes are not in this entry.
Endpoints
Get account balance
List balance transactions
List charges
- An unknown customer id is an error, not an empty list.
Search charges
List customers
Get a customer
- A deleted customer comes back with deleted: true and few other fields.