ghl_phone_purchase_number
Purchase a phone number for a location using required fields like phone number, address, country, and payment. Returns the purchased number and location ID.
Instructions
Purchase number for location
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).
Endpoint: POST /phone-system/numbers/location/{locationId}/purchase (Version header: v3; source: v3/phone-system-v3.json)
OAuth scopes: phonenumbers.write
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Request body (schema carried verbatim from the official OpenAPI spec). | |
| locationId | Yes | Location ID as string |