Skip to main content

Base URL and versioning

All endpoints use the v1 prefix:
https://api.heydollr.app/v1/<resource>
See Environments for credentials and testing guidance.

Request format

  • Content-Type: application/json for requests and responses
  • Timestamps: ISO 8601 (e.g. 2025-06-01T14:30:00Z)
  • Currency: ISO 4217, uppercase (e.g. USD, LRD)
  • Phone: E.164 digits without + (e.g. 231771234567)
  • Amounts: Positive numbers; minimum 0.01 for decimals, 1 for integers
  • reference_id: Version-4 UUID on every execution (idempotency key)

Resource ID types

Some fields accept the same logical ID in different JSON types depending on the endpoint:
FieldEndpointJSON typeExample
session_idPOST /v1/executions/*string"55"
session_idPOST /v1/realtime-keys/collectioninteger55
payment_account_idExecutionsstring"18"
payout_account_idSessions / executionsinteger or number18
source_idSessions, status, predictionsinteger101
When in doubt, match the type shown in API Reference for that specific endpoint.

source_kind vs source_type

A frequent source of 422 errors:
ContextField nameUsed on
Creating checkout sourcesource_kindPOST /v1/checkouts/create
Sessions, status, links, predictionssource_typePOST /v1/sessions/checkout, GET /v1/status/source, etc.
Values are the same: INVOICE or ORDER.
// Checkouts create
{ "source_kind": "INVOICE" }

// Checkout session
{ "source_type": "INVOICE", "source_id": 101 }
SUBSCRIPTION appears in some OpenAPI enums but is not publicly supported yet.

Validation errors (422)

{
  "detail": [
    {
      "loc": ["body", "currency"],
      "msg": "field required",
      "type": "value_error.missing"
    }
  ]
}
Inspect the detail array for field-level messages.

HTTP status codes

CodeMeaningTypical action
200SuccessUse response body
401UnauthorizedRefresh JWT
403ForbiddenCheck verification / permissions
404Not foundVerify resource ID
422Validation errorFix payload per detail
429Rate limitedBack off; honor Retry-After
5xxServer errorRetry with exponential backoff
Last modified on June 23, 2026