Create a customer
Creates a customer under the authenticated partner tenant. Returns 201 Created for a new customer, or 200 OK when a customer with the same email already exists and is returned instead of duplicated (created: false). Idempotent on the Idempotency-Key header: replaying the same key returns the original result — the same response and status as the first call — never a duplicate. If a create fails before it commits, the key is released; fix the request and retry with the same key.
Authorizations
Partner API key. Send the raw key as the Authorization header value — e.g. dk_test_… in sandbox or dk_live_… in production. Generate and rotate keys in the doola Partner Portal.
Headers
Unique key that makes the create safe to retry. Reuse the same value to retry; if the create fails before committing, the key is released, so retry with the same value.
Body
Request body to create a customer under your partner tenant.
Customer email address.
"founder@example.com"
Customer legal first name.
"Ada"
Customer legal last name.
"Lovelace"
ISO 3166-1 alpha-3 country of residence (e.g. USA).
"USA"
Customer phone number in E.164 format. Optional.
"+12125550100"