Wavix Cart API
Numbers
Numbers
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/wavix-com:wavix-com-cart-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Wavix Cart API
description: Wavix provides robust APIs that let you integrate voice and text messaging features directly into your app. Send text, place calls, and access detailed reports programmatically.
termsOfService: https://wavix.com/terms-and-conditions
license:
name: MIT
identifier: MIT
contact:
name: Wavix
url: https://wavix.com
email: support@wavix.com
version: 3.2.0
servers:
- url: https://api.wavix.com
description: https://api.wavix.com
variables: {}
security:
- bearerAuth: []
tags:
- name: Cart
description: Numbers
paths:
/v1/buy/cart:
put:
tags:
- Cart
summary: Add to cart
description: Adds the listed phone numbers to the purchase cart.
operationId: cart_add
security:
- bearerAuth:
- numbers:write
x-fern-sdk-group-name:
- cart
x-fern-sdk-method-name: add
x-mcp:
readOnly: false
destructive: false
openWorld: true
expose: true
toolset: numbers
parameters: []
requestBody:
description: Phone numbers to add to the cart.
content:
application/json:
schema:
type: object
additionalProperties: false
required:
- ids
properties:
ids:
type: array
description: Phone numbers to add to the cart.
items:
type: string
example:
- '541139862174'
- '541139862175'
required: true
responses:
'200':
description: Returns the phone numbers now in the cart.
headers: {}
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/AvailableNumber'
example:
- activation_fee: '15.0'
channels: '4'
city: Buenos Aires
cnam: false
country: Argentina
country_short_name: AR
domestic_cli: false
free_min: 0
id: 541139862174
monthly_fee: '10.0'
number: '541139862174'
per_min: '0.01'
require_docs: []
sms_enabled: false
sms_price: 0
examples:
default:
value:
- activation_fee: '15.0'
channels: '4'
city: Buenos Aires
cnam: false
country: Argentina
country_short_name: AR
domestic_cli: false
free_min: 0
id: 541139862174
monthly_fee: '10.0'
number: '541139862174'
per_min: '0.01'
require_docs: []
sms_enabled: false
sms_price: 0
'400':
$ref: '#/components/responses/BadRequestErrorResponse'
'401':
$ref: '#/components/responses/UnauthorizedErrorResponse'
'403':
$ref: '#/components/responses/ForbiddenErrorResponse'
'404':
$ref: '#/components/responses/NotFoundErrorResponse'
deprecated: false
get:
tags:
- Cart
summary: Retrieve the cart
description: Returns the current purchase cart, including the phone numbers it contains and the documents each requires.
operationId: cart_get
security:
- bearerAuth:
- numbers:read
x-fern-sdk-group-name:
- cart
x-fern-sdk-method-name: get
x-mcp:
readOnly: true
destructive: false
openWorld: true
expose: true
toolset: numbers
parameters: []
responses:
'200':
description: Returns the cart.
headers: {}
content:
application/json:
schema:
$ref: '#/components/schemas/CartResponse'
examples:
default:
value:
dids:
- activation_fee: '15.0'
channels: '4'
city: Buenos Aires
cnam: false
country: Argentina
country_short_name: AR
domestic_cli: false
free_min: 0
id: 541139862174
monthly_fee: '10.0'
number: '541139862174'
per_min: '0.01'
require_docs: []
sms_enabled: false
sms_price: 0
unavailable_dids:
- '541139862175'
doc_types:
- id: 1
name: id
title: Any form of ID
- id: 2
name: address
title: Proof of address
- id: 3
name: localaddress
title: Proof of local address
'401':
$ref: '#/components/responses/UnauthorizedErrorResponse'
'403':
$ref: '#/components/responses/ForbiddenErrorResponse'
'503':
description: Returns when the availability of the phone numbers in the cart can't be checked. The cart isn't changed; retry the request.
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationErrorResponse'
examples:
default:
value:
success: false
message: Failed to load the cart. Please try again later.
deprecated: false
delete:
tags:
- Cart
summary: Remove from cart
description: Removes the listed phone numbers from the purchase cart.
operationId: cart_remove
security:
- bearerAuth:
- numbers:write
x-fern-sdk-group-name:
- cart
x-fern-sdk-method-name: remove
x-mcp:
readOnly: false
destructive: true
openWorld: true
expose: true
toolset: numbers
requestBody:
required: true
content:
application/json:
schema:
type: object
additionalProperties: false
required:
- ids
properties:
ids:
type: array
items:
type: string
description: Phone numbers to remove from the cart.
example:
- '541139862174'
- '541139862175'
responses:
'200':
description: Returns a success confirmation. The numbers are removed from the cart.
headers: {}
content:
application/json:
schema:
$ref: '#/components/schemas/SuccessResponse'
examples:
default:
value:
success: true
'400':
$ref: '#/components/responses/BadRequestErrorResponse'
'401':
$ref: '#/components/responses/UnauthorizedErrorResponse'
'403':
$ref: '#/components/responses/ForbiddenErrorResponse'
'404':
$ref: '#/components/responses/NotFoundErrorResponse'
deprecated: false
/v1/buy/cart/checkout:
post:
tags:
- Cart
summary: Check out the cart
description: Purchases the listed phone numbers from the cart. Activation and monthly fees are debited from the account balance immediately, and the purchase cannot be reversed through this API.
operationId: cart_checkout
security:
- bearerAuth:
- numbers:write
x-fern-sdk-group-name:
- cart
x-fern-sdk-method-name: checkout
x-mcp:
readOnly: false
destructive: true
openWorld: true
expose: true
billable: true
toolset: numbers
parameters: []
requestBody:
description: Phone numbers from the cart to purchase.
content:
application/json:
schema:
type: object
additionalProperties: false
required:
- ids
properties:
ids:
type: array
description: Phone numbers from the cart to purchase.
items:
type: string
example:
- '541139862174'
- '541139862175'
required: true
responses:
'201':
description: Returns a success confirmation. The phone numbers are purchased.
headers: {}
content:
application/json:
schema:
$ref: '#/components/schemas/SuccessResponse'
examples:
success:
summary: Successful response
value:
success: true
'400':
$ref: '#/components/responses/BadRequestErrorResponse'
'401':
$ref: '#/components/responses/UnauthorizedErrorResponse'
'403':
$ref: '#/components/responses/ForbiddenErrorResponse'
'404':
$ref: '#/components/responses/NotFoundErrorResponse'
'422':
description: Returns when the account balance cannot cover the cart total. The numbers that could not be purchased are listed in `error_dids`.
headers: {}
content:
application/json:
schema:
type: object
properties:
error:
type: string
description: Human-readable error description.
example: Insufficient funds
error_dids:
type: array
description: Numbers from the cart that could not be purchased.
items:
type: string
example:
- '12565378257'
examples:
insufficient_funds:
summary: Insufficient account balance
value:
error: Insufficient funds
error_dids:
- '12565378257'
deprecated: false
components:
responses:
UnauthorizedErrorResponse:
description: Unauthorized
headers: {}
content:
application/json:
schema:
$ref: '#/components/schemas/UnauthorizedErrorResponse'
BadRequestErrorResponse:
description: Request failed. Missing or invalid parameter <param_name>
headers: {}
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationErrorResponse'
ForbiddenErrorResponse:
description: Request failed. The feature is disabled for your account.
headers: {}
content:
application/json:
schema:
$ref: '#/components/schemas/ForbiddenErrorResponse'
NotFoundErrorResponse:
description: Request failed. An object with the specified ID is not found.
headers: {}
content:
application/json:
schema:
$ref: '#/components/schemas/NotFoundErrorResponse'
schemas:
ValidationErrorResponse:
title: ValidationErrorResponse
type: object
properties:
success:
type: boolean
description: Indicates whether the request was successful. Always `false` for this error.
example: false
message:
type: string
description: Human-readable description naming the missing or invalid request parameter.
example: Missing or invalid parameter <param_name>
DocumentTypeInfo:
title: DocumentTypeInfo
description: Document type required to activate a phone number.
required:
- id
- name
- title
type: object
additionalProperties: false
properties:
id:
type: integer
format: int32
description: Document type ID.
example: 2
name:
$ref: '#/components/schemas/DocumentType'
title:
type: string
description: Document type name.
example: Proof of address
SuccessResponse:
title: SuccessResponse
required:
- success
type: object
properties:
success:
type: boolean
description: Indicates whether the request was successful.
example: true
CartResponse:
title: CartResponse
required:
- dids
- doc_types
type: object
additionalProperties: false
properties:
dids:
type: array
description: Phone numbers in the cart that are available for purchase.
items:
$ref: '#/components/schemas/AvailableNumber'
unavailable_dids:
type: array
description: Phone numbers in the cart that are no longer available for purchase. Retrieving the cart doesn't remove them. Empty when every number is available.
items:
type: string
example:
- '541139862175'
doc_types:
type: array
items:
$ref: '#/components/schemas/DocumentTypeInfo'
description: Document types required to activate phone numbers.
UnauthorizedErrorResponse:
title: UnauthorizedErrorResponse
type: object
properties:
success:
type: boolean
description: Indicates whether the request was successful. Always `false` for this error.
example: false
error:
type: boolean
description: Indicates that the response represents an error. Always `true` for this error.
example: true
message:
type: string
description: Human-readable description stating that authentication is missing or invalid.
example: Unauthorized
ForbiddenErrorResponse:
title: ForbiddenErrorResponse
type: object
properties:
success:
type: boolean
description: Indicates whether the request was successful. Always `false` for this error.
example: false
message:
type: string
description: Human-readable description of why access is forbidden.
example: The service is not provisioned for your account.
NotFoundErrorResponse:
title: NotFoundErrorResponse
type: object
properties:
success:
type: boolean
description: Indicates whether the request was successful. Always `false` for this error.
example: false
message:
type: string
description: Human-readable description stating that no resource matches the given ID.
example: Record not found
AvailableNumber:
title: AvailableNumber
required:
- id
- activation_fee
- monthly_fee
- per_min
- channels
- city
- country
- country_short_name
- cnam
- free_min
- number
- require_docs
- sms_enabled
- sms_price
type: object
additionalProperties: false
properties:
id:
type: integer
description: Phone number ID.
format: int64
example: 541139862174
activation_fee:
type: string
description: One-time activation fee in USD.
example: '15.0'
monthly_fee:
type: string
description: Monthly fee in USD.
example: '10.0'
per_min:
type: string
description: Price per inbound minute in USD.
example: '0.01'
channels:
type: string
description: Maximum number of concurrent inbound calls.
format: int32
example: '4'
city:
type: string
description: City where the phone number originates.
example: Buenos Aires
country:
type: string
description: Country where the phone number originates.
example: Argentina
country_short_name:
type: string
description: Two-letter ISO country code.
example: AR
cnam:
type:
- boolean
- 'null'
description: Indicates whether CNAM can be activated.
example: false
free_min:
type: integer
description: Number of free inbound minutes.
format: int32
example: 0
number:
type: string
description: Phone number in E.164 format.
example: '541139862174'
require_docs:
type: array
items:
$ref: '#/components/schemas/DocumentType'
description: Documents to activate the number.
example:
- address
sms_enabled:
type: boolean
description: "Indicates whether the phone number can receive inbound\n SMS and MMS messages."
example: false
sms_price:
type: number
format: float
description: Price per inbound SMS segment in USD.
example: 0
domestic_cli:
type: boolean
description: Indicates whether the number can be used as the Caller ID for local calls.
example: true
description: Phone number available for purchase.
DocumentType:
title: DocumentType
type: string
description: 'Document type required to activate a phone number. One of: `id` - any form of ID,
`address` - proof of address, `localaddress` - proof of local address within the country.'
enum:
- id
- address
- localaddress
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: 'Wavix API key. Pass as `Authorization: Bearer <api_key>`. Keys support per-resource scopes (none / read / write). See [Restricted keys and scopes](https://docs.wavix.com/api-reference/authentication#restricted-keys-and-scopes).
'