Skip to main content
One-call shortcut: create party, counterparty, payment source (invoice or order), and checkout context from payer details. Try in API Reference: Create checkout source

When to use

  • Faster integration than the document-first Quick Start
  • Hosted checkout with mode: "HOSTED" — customer pays with mobile money or card on a Dollr page
  • API-embedded collection — continue with sessions → payment account → execute
Request body uses source_kind; session and execution calls use source_type for the same concept (INVOICE or ORDER).

Required fields

FieldDescription
modeHOSTED for Dollr-hosted payment page
source_kindINVOICE or ORDER
party_phonePayer phone (E.164 without +)
currencyISO 4217 code
itemsLine items (name, currency, amount)

Hosted checkout example

curl -X POST "https://api.heydollr.app/v1/checkouts/create" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "mode": "HOSTED",
    "source_kind": "INVOICE",
    "party_name": "Amara Kamara",
    "party_phone": "231771234567",
    "party_email": "amara@example.com",
    "currency": "USD",
    "items": [{ "name": "Consulting", "currency": "USD", "amount": 250 }],
    "success_url": "https://yourstore.com/success",
    "cancel_url": "https://yourstore.com/cancel"
  }'
Response highlights:
FieldDescription
urlHosted payment URL — redirect customer here
hosted_path_or_tokenPath/token for the hosted session
source_idInvoice or order ID
source_numberDocument number for link APIs
success_url / cancel_urlPost-payment redirects

API-embedded flow

After creating a checkout source, continue with sessionspayment accountsexecutions. See Quick Start.

Checkout mode values

ModeBehavior
HOSTEDReturns url — customer pays on Dollr page (MoMo + card). See Hosted checkout.
Other valuesContact Dollr if you need a non-hosted integration mode. Default API-embedded flow: create source without HOSTED, then session → payment account → execute.

url vs hosted_path_or_token

Use url for customer redirects. hosted_path_or_token is for internal Dollr routing — prefer url unless support directs otherwise.

Optional fields

party_name, party_email, party_relationship, reference_id, note, due_date, expires_at, counterparty_id.
Last modified on June 23, 2026