Quick Start
Note:
Try in API Reference: Obtain token · Create invoice · Collect · Collection status
Get from zero to your first successful payment collection in under 10 minutes.
This quick start shows the document-first (invoice/order) collection flow. The public API also supports creating a checkout source directly from payer details via the Checkouts API (POST /v1/checkouts/create). See API Reference → Checkouts for the direct checkout-source flow.
Base URL: https://api.heydollr.app
Before You Begin
You need a verified Dollr merchant account with API credentials. If you haven’t done this yet:
- Register at merchant.heydollr.app
- Complete identity verification (1–72 hours)
- Go to Settings → Developer → API Keys and generate a Client ID and Client Secret
Step 1 — Get an Access Token
Exchange your credentials for a JWT Bearer token. Every API call requires this token in the Authorization header.
Response:
Tip:
Tokens expire after expires_in minutes. Refresh proactively — request a new token when less than 5 minutes remain.
Step 2 — Create a Party
A Party is a contact record for the person you’re collecting from.
Response:
Step 3 — Create a Counterparty
Link the Party to your merchant account with a relationship type.
Note:
This step is required for the direct invoice flow shown here. If you use the checkout-source shortcut (POST /v1/checkouts/create), Dollr can create or match the Party and Counterparty automatically from payer details.
Step 4 — Create and Publish an Invoice
Create the invoice, add a line item, then publish it.
Same flow with orders
For e-commerce or retail checkouts, swap invoice endpoints for orders and use source_type: "ORDER" in Step 5:
See Orders. Stack guides under Integrate by stack use invoices as the default example; the steps are the same.
Step 5 — Collect Payment
Create a checkout session, register the customer’s wallet, then execute.
Warning:
Generate your reference_id before calling execute
Store the UUID before the network call. You’ll need it to query status if the response is lost.
Step 6 — Check Payment Status
Status progression: PENDING → PROCESSING → COMPLETED (or FAILED)
Note:
Mobile money payments may stay in PROCESSING for several minutes while the carrier confirms. Do not retry during this window — query status instead.
Retrieve Receipt
After a successful collection (source status PAID), retrieve the receipt for the matching source family:
Use the invoice or order system ID from your published source.
What’s Next
Integrate by stack
Payouts
More guides
Last modified on June 23, 2026