post https://crazytel.io/api/v1/phone-numbers/purchase
Purchase a DID (Direct Inward Dialing) number.
This endpoint allows you to purchase a new DID number. It first checks if you have
sufficient account balance, then processes the purchase through the Crazytel API.
Parameters
purchase_request
- Purchase details including:- DID number
- Address ID
- Person ID
- Primary route configuration
Returns
A success message if the purchase is completed
Raises
400
- If there are insufficient funds404
- If the DID is not available500
- If there is an error communicating with the Crazytel API