Check country availability
Changed onDeprecated alias of /v1/phone-numbers/availability; same contract. New integrations should use that path.
A pre-purchase check, so you can warn BEFORE a customer invests in KYC (regulated review is async, 1-3 days). It tells you whether we have deliverable inventory, and what address the customer needs. Call this before starting the KYC form for regulated countries.
Address constraints
- addressConstraint: geo: the registered address MUST be in one of the returned areas (the only place we have stock). A different-area address passes pre-approval but the number can never be assigned.
- addressConstraint: country: any in-country address works.
- addressConstraint: none: field-only / instant country, no address.
Request
- Base URLhttps://zernio.com/api
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
ISO-2 country code.
Check a specific offered type (stock and address constraints are per type). Omitted = the country's default type.
Pass true when the buyer wants SMS: availability, areas, and areaOptions then describe the SMS-capable pool (an SMS purchase orders from it), not the wider voice-only pool.
Response
Availability + address constraint.
Changes
- warning
added the new
accountenum value to the/response property for the response status
- warning
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- info