Checkout Purchase Mailboxes
POST /provider-domains/{domain_id}/checkout-mailboxes
Buy one or more mailboxes on a domain. SPENDS REAL CREDITS — unrestricted, same as the app; there is no per-key spend cap.
Send an Idempotency-Key header to make a retry safe. Returns 402 if
the credit hold can’t clear, 422 if the org’s plan can’t fund a purchase
at all, 400 for an unconnected/wrong-platform domain, too many mailboxes,
or a missing username, 404 if domain_id doesn’t belong to this org.
Authorizations
Parameters
Path Parameters
Provider domain ID (provider_domains.id) — from GET /provider-domains
Provider domain ID (provider_domains.id) — from GET /provider-domains
Header Parameters
Request Body required
Buy one or more mailboxes on an already-purchased/connected domain. Spends real credits — see the 402 contract on the route docstring.
object
Enroll each mailbox in warmup immediately after purchase
Mailboxes to create. Up to 5 per domain for a provider=‘managed’ purchase, and up to 250 per request.
One mailbox to create. Supply username for a managed purchase
(provider='managed') or a full email for registrar/pilot.
Responses
202
Successful Response
object
object
422
Validation Error