View Your Invoices

With the TextMagic API, you can check the invoices and transactions for your account.

Get all invoices

To view all of your invoices, use:

GET /api/v2/invoices

with the parameters:

NameRequired?ExampleDescription
pageNo

3

Fetch the specified results page. The default is 1.
limitNo25The number of results per page. The default is 10.

Only parent users and administrator sub-accounts can view invoices.

You will receive this paginated response:

ParameterExampleDescription
page3The current fetched page.
limit25The number of results per page.
pageCount150The total number of pages.
resourcesArray of invoice objectsSee session below for details.

Invoice resource format

ParameterExampleDescription
id1099The invoice ID.
bundle200Top up amount.
currencyUSDTop up currency.
vat

2.00

VAT charged (if any).

paymentMethod

MasterCard ending in 1234

Payment method description.

The next step

Now that you’ve learned how to view your invoices via the TextMagic API, you can check our Code libraries to view ready-made scripts in different languages which you can use to quickly build powerful SMS based applications.