Skip to main content
POST
cURL

Authorizations

X-API-Key
string
header
required

Customer API key created in the Sendora dashboard.

Headers

Idempotency-Key
string | null
X-API-Key
string | null
Authorization
string | null

Body

application/json
kind
enum<string>
required

Kind returned by the Sendora API.

Available options:
phone_number,
domain,
mailbox,
channel_account
step
enum<string>
required

quote prices one thing and charges nothing; buy spends against a current quote

Available options:
quote,
buy
contact_details
DomainContact · object | null

domain: the registrant's contact details

domain_id
string | null

mailbox: the domain's id from List domains

domain_name
string | null

domain: the name from the quote

mailboxes
MailboxSpec · object[] | null

mailbox: up to five mailboxes to create

Maximum array length: 5
pay_with
enum<string>
default:wallet

phone_number: wallet spends prepaid credit now; card returns a checkout link a person must open

Available options:
card,
wallet
phone_number
string | null

phone_number: the number from the quote, with country code

provider
string | null

channel_account: whatsapp

Allowed value: "whatsapp"
quote_id
string | null

buy: the id from the quote

Required string length: 1 - 80
registration_years
integer
default:1

Registration years returned by the Sendora API.

Required range: 1 <= x <= 1
selection
Selection · object | null

quote: phone_number: {phone_number}. domain: {domain_name, registration_years}. mailbox: {domain_id, quantity}. channel_account: {connected service: whatsapp}

Response

Successful Response

The response is of type Response Buy Api V1 Public Purchases Post · object.