Skip to main content
lc-phoneVersion: v3New

Purchase number for location

POST/phone-system/numbers/location/{locationId}/purchase

Purchase number for location. With version: v3, the HTTP 201 body is the standard success envelope (status, data, message, statusCode). The v3 purchase fields live under data: number, locationId, id, and underLcAccount (renamed from under_ghl_account).

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your access token.

Scope:phonenumbers.write
Auth methods:OAuthPrivate Integration
Token type:Sub-Account Token

Request​

Headers

versionstringrequired

Send v3 to use the v3 response contract (AIP). This is the supported version value for these endpoints.

Available optionsv3
Example:v3

Path Parameters

locationIdstringrequired

Location ID as string

Example:tDtDnQdgm2LXpyiqYvZ6

Body

phoneNumberstringrequired

phoneNumber to purchase

Example:830236932
addressSidstringrequired

addressSid twilio address id

Example:ADXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
bundleSidstringrequired

bundleSid twilio bundle id

Example:BUXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
countryCodestringrequired

country for which the phone numbers are being requested

Example:US
numberTypeobjectrequired

type of phone number to be purchased

Example:local
paymentIntentIdstringrequired

stripe payment intent id

Example:pi_3Oxxxxxxxxxxxxxxxxxxxx
stripeAccountIdstringrequired

stripe account id

Example:acct_1Oxxxxxxxxxxxxxxxx
paymentMethodIdstringrequired

stripe registered payment method id

Example:pm_1Oxxxxxxxxxxxxxxxx
localitystringrequired

locality of the user in which number is being purchased

Example:Austin
regionstringrequired

region of the user in which number is being purchased

Example:TX
fingerprintIdstringrequired

fingerprintId is request id which is unique for every purchase number request

Example:purchase-req-abc-123
skipLocationKYCbooleanrequired

Skip location-level KYC verification if agency-level compliance has already been verified

Example:false

Response

Success envelope; v3 purchase details are in data (slim shape: number, locationId, id, underLcAccount).

statusstringrequired

Outcome indicator from the shared success helper.

Available optionssuccess
Example:success
dataobjectrequired

V3 purchase payload: purchased number, location, Twilio account id, and underLcAccount.

messagestringrequired

Human-readable success message.

Example:Number purchase successful
statusCodenumberrequired

HTTP status echoed in the response body.

Example:201