Billing · customers
The customers are in Stripe.
They must all be read, every night.
Stripe's API served by localstripe, in test
The problem
Stripe returns its customers in pages of 10.
- Each page says whether more remain.
- The next is asked for from the last customer read.
What is not changed
The account stays as it is.
- A test key, stored with lm secret.
- Stripe's standard API.
What had to be written
pagination: { kind: stripe }Name the API.
One 24-line connector.
The result
25 customers, 3 pages.
- Each customer under its Stripe id.
- The creation date converted from epoch.
The next day
5 new customers: 30 rows.
- One row per customer, no duplicate.
- The night rereads the whole account.
The limit
Replayed on localstripe, not Stripe.
- An open-source, stateful Stripe stand-in used in tests.
- The real Stripe reads the same, with the account's key.
Try it
The scenario replays locally.
Every step is published with its output.