Skip to main content
lc-phoneVersion: 2021-07-28

Purchase number for location

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

This endpoint has been deprecated and may be replaced or removed in future versions of the API.

Purchase number for location.

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​

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