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:
with the parameters:
|page||No||Fetch the specified results page. The default is 1.|
|limit||No||The 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:
|page||The current fetched page.|
|limit||The number of results per page.|
|pageCount||The total number of pages.|
|resources||Array of invoice objects||See session below for details.|
Invoice resource format
|id||The invoice ID.|
|bundle||Top up amount.|
|currency||Top up currency.|
VAT charged (if any).
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.