API ReferenceCheckout sessions
List checkout sessions
GET
Checkout sessions created through the API, newest first. Requires checkout:read.
BearerAuthheader
AuthorizationBearer <token>Secret API key: tp_test_. or tp_live_.. Server-side only.
limit?integerRange
1 <= value <= 50Default
20cursor?stringMatch
^[A-Za-z0-9_-]{1,256}$Page of checkout sessions
application/json- response
object*unknownitems*array<>next_cursor*string|nullcurl -X GET 'https://api.teepay.me/v1/checkout-sessions'Example Response
{ "object": "list", "items": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "object": "checkout_session", "status": "open", "title": "string", "description": "string", "currency": "string", "amount_minor": "string", "checkout_url": "http://example.com", "payment_profile_id": "string", "reference": "string", "metadata": { "property1": "string", "property2": "string" }, "payment": { "reference": "string" }, "environment": "live", "created_at": "string", "expires_at": "string" } ], "next_cursor": "string"}Get a checkout session GET
One checkout session. status becomes paid only after TeePay verified and ledger-posted the payment, and payment.reference is then set. Requires checkout:read.
Create a Control Number POST
Issues a Tanzanian Control Number (TZS) for a bill or a customer. 201 returns the number; 202 means issuance is still in progress, so retry with the same Idempotency-Key, never a new one. Requires control_number:create and approved Control Number access.