Wavix Billing API
Billing, transactions, and invoices
Billing, transactions, and invoices
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-billing-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 Billing 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: Billing
description: Billing, transactions, and invoices
paths:
/v1/billing/transactions:
get:
tags:
- Billing
summary: List transactions
description: Returns a paginated list of billing transactions for the authenticated account within the requested date range.
operationId: billing_transactions_list
security:
- bearerAuth:
- billing:read
x-fern-sdk-group-name:
- billing
- transactions
x-fern-sdk-method-name: list
x-mcp:
readOnly: true
destructive: false
openWorld: false
expose: true
toolset: account
parameters:
- name: from_date
in: query
description: Start of the date range to query, in `YYYY-MM-DD` format. Inclusive.
required: true
style: form
explode: true
schema:
type: string
format: date
example: '2023-08-01'
- name: to_date
in: query
description: End of the date range to query, in `YYYY-MM-DD` format. Inclusive.
required: true
style: form
explode: true
schema:
type: string
format: date
example: '2023-08-31'
- name: type
in: query
description: Filters transactions by type. Accepts a `TransactionType` value.
style: form
explode: true
schema:
$ref: '#/components/schemas/TransactionType'
type: integer
- name: details_contains
in: query
description: Filters transactions whose `details` contain the given substring.
style: form
explode: true
schema:
type: string
example: monthly
- name: payments
in: query
description: When `true`, returns only account top-up transactions. Defaults to all transaction types.
style: form
explode: true
schema:
type: boolean
example: true
- name: page
in: query
description: Page number to retrieve. Default `1`.
style: form
explode: true
schema:
type: integer
format: int32
example: 1
- name: per_page
in: query
description: Number of records to return per page. Default `25`.
style: form
explode: true
schema:
type: integer
format: int32
example: 25
responses:
'200':
description: Returns a paginated list of billing transactions.
headers: {}
content:
application/json:
schema:
$ref: '#/components/schemas/BillingTransactionListResponse'
examples:
default:
value:
is_empty: false
transactions:
- id: 24789389
amount: -0.99
balance_after: 309.0601
date: '2023-08-29T14:48:38.000Z'
details: Monthly fee for 16419252149
status: Committed
type: 3
show_invoice: false
pagination:
current_page: 1
per_page: 25
total: 1
total_pages: 1
'400':
$ref: '#/components/responses/BadRequestErrorResponse'
'401':
$ref: '#/components/responses/UnauthorizedErrorResponse'
'403':
$ref: '#/components/responses/ForbiddenErrorResponse'
'404':
$ref: '#/components/responses/NotFoundErrorResponse'
'503':
description: Returns when the billing service is temporarily unavailable.
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationErrorResponse'
deprecated: false
/v1/billing/invoices:
get:
tags:
- Billing
summary: List financial statements
description: Returns the auto-generated financial statements for the authenticated account, paginated and ordered by billing period.
operationId: billing_invoices_list
security:
- bearerAuth:
- billing:read
x-fern-sdk-group-name:
- billing
- invoices
x-fern-sdk-method-name: list
x-mcp:
readOnly: true
destructive: false
openWorld: false
expose: true
toolset: account
parameters:
- name: page
in: query
description: Page number to retrieve. Default `1`.
style: form
explode: true
schema:
type: integer
format: int32
example: 1
- name: per_page
in: query
description: Number of records to return per page. Default `25`.
style: form
explode: true
schema:
type: integer
format: int32
example: 25
responses:
'200':
description: Returns a paginated list of financial statements.
headers: {}
content:
application/json:
schema:
$ref: '#/components/schemas/InvoiceListResponse'
examples:
success:
summary: Successful response
value:
is_empty: false
invoices:
- id: 1
from_date: '2023-08-01'
to_date: '2023-08-31'
amount: '25.00'
pagination:
current_page: 1
per_page: 25
total: 1
total_pages: 1
'400':
$ref: '#/components/responses/BadRequestErrorResponse'
'401':
$ref: '#/components/responses/UnauthorizedErrorResponse'
'403':
$ref: '#/components/responses/ForbiddenErrorResponse'
deprecated: false
/v1/billing/invoices/{id}:
get:
tags:
- Billing
summary: Download statement PDF
description: Returns the financial statement identified by `id` as a PDF file.
operationId: billing_invoices_download
security:
- bearerAuth:
- billing:read
x-fern-sdk-group-name:
- billing
- invoices
x-fern-sdk-method-name: download
x-mcp:
readOnly: true
destructive: false
openWorld: false
expose: false
toolset: account
parameters:
- name: id
in: path
description: The unique ID of the financial statement to download.
required: true
style: simple
schema:
type: integer
format: int32
example: 123
responses:
'200':
description: Returns the financial statement as a PDF file.
headers: {}
content:
application/pdf:
schema:
type: string
format: binary
'401':
$ref: '#/components/responses/UnauthorizedErrorResponse'
'403':
$ref: '#/components/responses/ForbiddenErrorResponse'
'404':
$ref: '#/components/responses/NotFoundErrorResponse'
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:
TransactionStatus:
title: TransactionStatus
enum:
- Created
- Pending
- Committed
- Reverted
type: string
description: Current status of the transaction. One of `Created` (the transaction was created but not yet processed), `Pending` (the transaction is being processed), `Committed` (the transaction was applied to the balance), or `Reverted` (the transaction was rolled back).
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>
TransactionType:
title: TransactionType
enum:
- 0
- 2
- 3
- 6
- 11
- 14
- 15
- 19
- 20
- 23
- 24
- 25
- 26
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 66
x-enum-varnames:
- PAYMENT_ADJUSTMENT
- PHONE_NUMBER_ACTIVATION_FEE
- PHONE_NUMBER_MONTHLY_FEES
- PHONE_NUMBER_FORWARDING
- PSTN_FORWARDING_FEE
- OUTBOUND_CALL
- OUTBOUND_SMS
- CREDIT_CARD_PAYMENT
- PAYMENT_FEE
- PORTING_FEE
- INBOUND_SMS
- ADMIN_PAYMENT
- SUBSCRIPTION_PAYMENT
- NUMBER_VALIDATOR
- CALL_RECORDING
- STORAGE_CHARGE
- CAMPAIGN_BUILDER
- VOICEMAIL_DETECTION
- SENDER_ID_REGISTRATION
- SENDER_ID_MONTHLY_FEE
- TWO_FA
- IVR
- E911_ACTIVATION
- OUTBOUND_MMS
- INBOUND_MMS
- CALL_TRANSCRIPTION
- TEN_DLC_BRAND_REGISTRATION
- TEN_DLC_CAMPAIGN_REGISTRATION
- PHONE_NUMBER_ORDER
- ADJUSTMENT_IN
- URL_SHORTENER
- TEN_DLC_BRAND_UPDATE
- TEN_DLC_BRAND_APPEAL
- AUDIO_TRANSCRIPTION
- TEN_DLC_BRAND_VETTING
- TEN_DLC_BRAND_VETTING_APPEAL
- OUTBOUND_SMS_CARRIER_FEE
- INBOUND_SMS_CARRIER_FEE
- OUTBOUND_MMS_CARRIER_FEE
- INBOUND_MMS_CARRIER_FEE
- TEN_DLC_CAMPAIGN_VETTING_FEE
- OUTBOUND_SMS_SEGMENT
- INBOUND_SMS_SEGMENT
- OUTBOUND_MMS_SEGMENT
- INBOUND_MMS_SEGMENT
- WHATSAPP_MESSAGE
type: integer
description: "Transaction type:\n * 0 - Payment adjustment\n * 2 - Phone number activation fee\n * 3 - Phone number monthly fees\n * 6 - Phone number forwarding\n * 11 - PSTN forwarding fee\n * 14 - Outbound call\n * 15 - Outbound SMS\n * 19 - Credit card payment\n * 20 - Payment fee\n * 23 - Porting fee\n * 24 - Inbound SMS\n * 25 - Admin payment\n * 26 - Subscription payment\n * 29 - Number validator\n * 30 - Call recording\n * 31 - Storage charge\n * 32 - Campaign builder\n * 33 - Voicemail detection\n * 34 - Sender ID registration\n * 35 - Sender ID monthly fee\n * 36 - 2FA\n * 37 - IVR\n * 38 - E911 activation\n * 39 - Outbound MMS\n * 40 - Inbound MMS\n * 41 - Call transcription\n * 42 - 10DLC Brand registration\n * 43 - 10DLC Campaign registration\n * 44 - Phone number order\n * 45 - Adjustment in\n * 46 - URL shortener\n * 47 - 10DLC Brand update\n * 48 - 10DLC Brand appeal\n * 49 - Audio transcription\n * 50 - 10DLC Brand vetting\n * 51 - 10DLC Brand vetting appeal\n * 52 - Outbound SMS carrier fee\n * 53 - Inbound SMS carrier fee\n * 54 - Outbound MMS carrier fee\n * 55 - Inbound MMS carrier fee\n * 56 - 10DLC Campaign vetting fee\n * 57 - Outbound SMS segment\n * 58 - Inbound SMS segment\n * 59 - Outbound MMS segment\n * 60 - Inbound MMS segment\n * 66 - WhatsApp message"
Invoice:
title: Invoice
required:
- id
- amount
- from_date
- to_date
type: object
additionalProperties: false
properties:
id:
type: integer
description: Unique identifier of the statement
format: int32
example: 43209
amount:
type: string
description: Statement amount
example: '7.72'
from_date:
type: string
description: Start of the billing period
format: date
example: '2023-07-01'
to_date:
type: string
description: End of the billing period
format: date
example: '2023-07-31'
description: An account financial statement
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
Pagination:
title: Pagination
required:
- current_page
- per_page
- total
- total_pages
type: object
additionalProperties: false
properties:
current_page:
type: integer
description: Current page number.
format: int32
example: 2
per_page:
type: integer
description: Number of records per page.
format: int32
example: 25
total:
type: integer
description: Total number of records.
format: int32
example: 101
total_pages:
type: integer
description: Total number of pages.
format: int32
example: 5
BillingTransactionListResponse:
title: BillingTransactionListResponse
required:
- is_empty
- transactions
- pagination
type: object
additionalProperties: false
properties:
is_empty:
type: boolean
description: Indicates whether there are no transactions.
example: false
transactions:
type: array
items:
$ref: '#/components/schemas/FinancialTransaction'
description: List of transactions.
example:
- id: 24789389
amount: -0.99
balance_after: 309.0601
date: '2023-08-29T14:48:38.000Z'
details: Monthly fee for 16419252149
status: Committed
type: 3
show_invoice: false
pagination:
$ref: '#/components/schemas/Pagination'
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.
InvoiceListResponse:
title: InvoiceListResponse
required:
- is_empty
- invoices
- pagination
type: object
additionalProperties: false
properties:
is_empty:
type: boolean
description: Indicates whether the statement list is empty.
example: false
invoices:
type: array
description: Auto-generated statements for the account.
items:
$ref: '#/components/schemas/Invoice'
pagination:
$ref: '#/components/schemas/Pagination'
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
FinancialTransaction:
title: FinancialTransaction
required:
- id
- date
- amount
- balance_after
- details
- status
- type
- show_invoice
type: object
additionalProperties: false
properties:
id:
type: integer
description: Transaction ID.
format: int64
example: 24789389
date:
type: string
description: Creation date and time in ISO 8601 format.
format: date-time
example: '2023-08-29T14:48:38.000Z'
amount:
type: number
format: float
description: Transaction amount. Negative values decrease balance.
example: -0.99
balance_after:
type: number
format: float
description: Account balance after the transaction.
example: 309.0601
details:
type: string
description: Transaction details.
example: Monthly fee for 16419252149
status:
$ref: '#/components/schemas/TransactionStatus'
type:
$ref: '#/components/schemas/TransactionType'
show_invoice:
type: boolean
description: "Indicates whether a transaction receipt is available. Receipts\n are available only for transaction types 0, 8, 9, 19, 23, and 25."
example: false
description: Financial transaction.
example:
id: 24789389
date: '2023-08-29T14:48:38.000Z'
amount: -0.99
balance_after: 309.0601
details: Monthly fee for 16419252149
status: Committed
type: 3
show_invoice: false
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).
'