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).