Invoices vs orders: These guides walk through invoices (formal billing, line items, publish). The collect flow is the same for orders — use
/v1/orders/* instead of /v1/invoices/* and set source_type: "ORDER" on the checkout session. See Orders and Parties & counterparties.Hosted checkout: To skip party, invoice, session, and execute steps entirely, see Hosted checkout.requests. For cURL and Node.js in parallel, see Quick Start.
API Reference: Obtain token · Collect
Prerequisites
- Python 3.9+
pip install requests- API credentials from the merchant portal (server-side only)
Steps
1
Authenticate
2
Party and counterparty
3
Invoice → publish
4
Execute collection
5
Poll status
Try it yourself
Hosted checkout
Mobile money and card on a Dollr-hosted page — fastest path.
Orders
Same collect flow with
source_type: ORDER and /v1/orders/*.Direct checkout
One API call to create source — API-embedded flow.
