addedOutput schema / $defs
Added value: +{
+ "OfferVerification": {
+ "properties": {
+ "held_cents": {
+ "default": 0,
+ "description": "Credit, in USD cents, set aside from your balance for this verification: setup and the first month of the offer it was started for. A purchase with this verification counts it toward the price. 0 when nothing is set aside.",
+ "title": "Held Cents",
+ "type": "integer"
+ },
+ "id": {
+ "description": "Hail verification id. Read it with GET /v1/verifications/{verification_id}.",
+ "format": "uuid",
+ "title": "Id",
+ "type": "string"
+ },
+ "state": {
+ "description": "State of that verification, such as draft, submitted or approved.",
+ "title": "State",
+ "type": "string"
+ },
+ "subject_name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Name of the person or company that verification is for, as typed in the verification form. Null when unknown.",
+ "title": "Subject Name"
+ },
+ "subject_type": {
+ "description": "Who that verification is for: 'person' (you) or 'business' (your company).",
+ "enum": [
+ "person",
+ "business"
+ ],
+ "title": "Subject Type",
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "state",
+ "subject_type",
+ "subject_name",
+ "held_cents"
+ ],
+ "title": "OfferVerification",
+ "type": "object"
+ },
+ "QuoteOffer": {
+ "description": "One number offer as the public API shows it. It never names the\ncarrier or carries a carrier-issued id: Hail picks the carrier.",
+ "properties": {
+ "by_request": {
+ "default": false,
+ "description": "True when support orders this number by hand: it cannot be bought with POST /numbers. Ask support for it. Its quote_id still works for verification.",
+ "title": "By Request",
+ "type": "boolean"
+ },
+ "capabilities": {
+ "description": "Voice/SMS capabilities reported by live carrier inventory; SMS registration may still be required.",
+ "items": {
+ "type": "string"
+ },
+ "title": "Capabilities",
+ "type": "array"
+ },
+ "country_code": {
+ "description": "ISO alpha-2 country code of the number.",
+ "title": "Country Code",
+ "type": "string"
+ },
+ "currency": {
+ "const": "USD",
+ "default": "USD",
+ "description": "Currency of the quoted rental and setup amounts.",
+ "title": "Currency",
+ "type": "string"
+ },
+ "e164": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Available phone number in E.164 format. Null for a by-request offer: support picks the number when it orders it.",
+ "title": "E164"
+ },
+ "locality": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "City or area the carrier lists for this number, such as Phoenix or London; null when unknown.",
+ "title": "Locality"
+ },
+ "monthly_cents": {
+ "description": "Monthly number rental in USD cents, charged from organization credits.",
+ "minimum": 1,
+ "title": "Monthly Cents",
+ "type": "integer"
+ },
+ "number_type": {
+ "description": "Local, mobile, national, or toll-free number type.",
+ "enum": [
+ "local",
+ "mobile",
+ "toll_free",
+ "national"
+ ],
+ "title": "Number Type",
+ "type": "string"
+ },
+ "paperwork": {
+ "description": "Always null for this tool. Applicant-specific paperwork is available from get_verification_requirements for the chosen offer.",
+ "type": "null"
+ },
+ "quote_id": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Organization-bound quote identifier to pass to POST /numbers before expiry.",
+ "title": "Quote Id"
+ },
+ "readiness": {
+ "description": "Whether regulatory preflight permits purchase for this organization; rechecked at purchase.",
+ "enum": [
+ "ready",
+ "verification_required"
+ ],
+ "title": "Readiness",
+ "type": "string"
+ },
+ "region": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "State, province or region the carrier lists, such as AZ or England; null when unknown.",
+ "title": "Region"
+ },
+ "regulatory_friction": {
+ "default": "unknown",
+ "description": "Remaining verification effort derived from live requirements: none, information/address entry, document uploads, or unknown. This does not establish legal eligibility.",
+ "enum": [
+ "none",
+ "information",
+ "documents",
+ "unknown"
+ ],
+ "title": "Regulatory Friction",
+ "type": "string"
+ },
+ "requirements": {
+ "description": "Carrier regulatory requirement labels associated with this offer.",
+ "items": {
+ "type": "string"
+ },
+ "title": "Requirements",
+ "type": "array"
+ },
+ "setup_cents": {
+ "description": "One-time setup charge in USD cents, payable with the first month.",
+ "minimum": 0,
+ "title": "Setup Cents",
+ "type": "integer"
+ },
+ "subject_types": {
+ "description": "Who can verify for this number: 'person' (you), 'business' (your company), or both. Empty when no verification is needed.",
+ "items": {
+ "enum": [
+ "person",
+ "business"
+ ],
+ "type": "string"
+ },
+ "title": "Subject Types",
+ "type": "array"
+ },
+ "verification": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/OfferVerification"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Deprecated: read `verifications`. The verification a purchase without verification_id would use: the one approved verification in `verifications`, else the newest one there; null when there is none."
+ },
+ "verifications": {
+ "description": "The verifications you can buy this offer with, approved first, then newest first: yours of a subject type in `subject_types` that are under review, and the approved ones the carrier still accepts for this offer. Once one is approved, pass its `id` as `verification_id` to POST /numbers to buy with it.",
+ "items": {
+ "$ref": "#/$defs/OfferVerification"
+ },
+ "title": "Verifications",
+ "type": "array"
+ }
+ },
+ "required": [
+ "e164",
+ "country_code",
+ "number_type",
+ "capabilities",
+ "monthly_cents",
+ "setup_cents",
+ "currency",
+ "readiness",
+ "regulatory_friction",
+ "requirements",
+ "locality",
+ "region",
+ "quote_id",
+ "subject_types",
+ "verifications",
+ "verification",
+ "by_request",
+ "paperwork"
+ ],
+ "title": "QuoteOffer",
+ "type": "object"
+ }
+}
addedOutput schema / anyOf
Added value: +[
+ {
+ "properties": {
+ "expires_at": {
+ "description": "UTC expiry of these persisted quotes; request fresh offers afterward.",
+ "format": "date-time",
+ "title": "Expires At",
+ "type": "string"
+ },
+ "incomplete": {
+ "description": "True when some carriers did not answer, so the offers may not be complete. Search again later for a full comparison.",
+ "title": "Incomplete",
+ "type": "boolean"
+ },
+ "offers": {
+ "description": "Live offers ordered by readiness, remaining verification effort, monthly price and setup price.",
+ "items": {
+ "$ref": "#/$defs/QuoteOffer"
+ },
+ "title": "Offers",
+ "type": "array"
+ },
+ "recommended_quote_id": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Recommended ready offer, or null if none qualifies.",
+ "title": "Recommended Quote Id"
+ }
+ },
+ "required": [
+ "offers",
+ "recommended_quote_id",
+ "incomplete",
+ "expires_at"
+ ],
+ "title": "NumberQuotesResponse",
+ "type": "object"
+ },
+ {
+ "properties": {
+ "error": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "error"
+ ],
+ "type": "object"
+ }
+]