Purchase phone number
Deprecated alias of /v1/phone-numbers/purchase; same contract. New integrations should use that path.
Payment-first: the system provisions a number and auto-assigns it, unless you pass phoneNumber to buy one exact number from GET /v1/phone-numbers/available. With usage-based billing active and a payment method on file, the number provisions inline and bills per month on your usage-based invoice (there is no checkout redirect). No payment method on file returns 402 PAYMENT_REQUIRED; a regulated country returns 202 with status: "kyc_required" and a kycUrl.
The monthly price is the one GET /v1/phone-numbers/countries quotes for that country and numberType at the time of purchase, and it is stamped on the number: later rate-card changes never move a number you already own.
Requires usage-based billing (the Usage plan). The maximum number of phone numbers is determined by the user's plan.
Request body
Response
Either a checkout URL (first number) or the provisioned phone number (subsequent numbers).
Changes
Changed in 4 of the 56 revisions of this API.32
- ●
added the new
NO_WHATSAPP_ELIGIBLE_NUMBERenum value to theresponse property for the response statusresponse-property-enum-value-added
- ●
- ●
added the new
COUNTRY_OUT_OF_STOCKenum value to theresponse property for the response statusresponse-property-enum-value-added
- ●
- ○
added the non-success response with the status
response-non-success-status-added
- ○
- ●
added the new
PHONE_NUMBER_UNAVAILABLEenum value to theresponse property for the response statusresponse-property-enum-value-added
- ○
added the new optional request property
new-optional-request-property
- ●