FaxStore
The Invoices API for FaxStore manages invoice creation, updates, deletion, and retrieval. It streamlines the invoicing process for efficient billing and record-keeping.
GET /api/invoices
Returns all invoices created in an array with an optional filter
authorization | [Header] A valid API token |
filter | [Query] Optional, a filter to define the userId or invoice status. Reference below for these. |
GET /api/invoices/:id
Returns all invoices created in an array with an optional filter
authorization | [Header] A valid API token |
id | [URL] the ID of the invoice |
POST Creates an invoice. If due is not present the due date gets set as the current time.
authorization | [Header] A valid API token |
userId | [Body] The userId to assign the invoice to |
username | [Body] The display name of the invoiced customer |
items | [Body] The formatted JSON string of the items and pricing for the invoice. Example below |
due | [Body] Optional, Unix timestamp in ms for the due date. Defaults to current time |
status | [Body] Optional, must be one of the above defined statuses for invoices. Defaults to Due |
tos | [Body] Optional, the Terms of Service footer to apply to the invoice |
memo | [Body] Optional, the memo to suffix the invoice |
DELETE Deletes the invoice completely. This is not a recommended action. consider cancelling it.
authorization | [Header] A valid API token |
id | [URL] the ID of the invoice |