Accounting API
Invoices
List All Invoices
query parameters page fetch the results from a specific page it defaults to 1 per page the number of results to fetch per page the maximum is 50 and if it defaults to 10 sort by an optional identifier used for sorting results available options are price , payment , datebought and invoice id filter optional text used for filtering results by label order determines in which order the results are returned the available options are asc (ascending) and desc (descending) the default value is desc warehouse id the id of a warehouse to use for filtering if provided, it will return the invoices that are associated with this warehouse affiliate program id the id of an affiliate program to use for filtering if provided, it will return the invoices that are associated with this affiliate program discount id the id of a discount to use for filtering if provided, it will return the invoices that are associated with this discount customer id the id of a customer to use for filtering if provided, it will return the invoices that are associated with this customer client id the id of a warehouse to use for filtering if provided, it will return the invoices that are associated with this client subscription id the id of a subscription to use for filtering if provided, it will return the invoices that are associated with this subscription affiliate partner id the id of an affiliate to use for filtering if provided, it will return the invoices that are associated with this affiliate asset id the id of an asset to use for filtering if provided, it will return the invoices that are associated with this asset minimum price it will filter invoices whose total price is at least the provided value maximum price it will filter invoices whose total price does not exceed the provided value currency appendix docid\ kfbmx4q3dxjtduqf75yx1 filters invoices by currency gateway strings appendix docid\ kfbmx4q3dxjtduqf75yx1 filter invoices by payment method shipping used to filter invoices by whether they have shipping enabled the available options are enabled and disabled status used to filter invoices by their paid status the available options are paid and unpaid require "uri" require "net/http" url = uri("https //api tamio com/v2/invoices/list?page=1\&per page=10") https = net http new(url host, url port) https use ssl = true request = net http get new(url) request\["accept"] = "application/json" request\["authorization"] = "bearer your token here" response = https request(request) puts response read body var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("authorization", "bearer your token here"); var requestoptions = { method 'get', headers myheaders, redirect 'follow' }; fetch("https //api tamio com/v2/invoices/list?page=1\&per page=10", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));curl location request get 'https //api tamio com/v2/invoices/list?page=1\&per page=10' \\ \ header 'accept application/json' \\ \ header 'authorization bearer your token here'{ "status" 200, "invoices" \[ { "version" 2, "id" "c834d061 2bdc 47c0 abc0 1b5dfbd33ef1", "currency" "eur", "paid" false, "type" "custom", "object" "invoice", "prefix" "invpr", "number" 576, "total" 10, "payment" "cash", "date" 1670112000, "status" "new", "subscription" null, "is instalment" false, "merchant" { "name" "awesome ltd", "email" "awesomeltd\@example com", "address" "awesome street", "telephone" "+12345678", "city" "frankfurt", "postcode" "ab102354", "state" null, "country" "de", "vat" null }, "locale" "en", "customer information" { "name" "john", "email" "john\@example com", "country" "au", "locale" "en", "id" "a38f68fb 23f8 409d 93d4 86386a0e6441", "stripe customer id" "cus mtqtejhzzql9in", "billing information" { "id" "83ce060b 80e3 41d2 87a9 d723e9657a00", "phone" null, "object" "address", "name" "john doe", "representative" null, "email" "john\@example com", "address" "magnificent street", "city" "sydney", "postcode" null, "state" null, "country" "au", "locale" "en", "shipping address" false, "ip" null, "is company" false } }, "products" \[ { "name" "invoice item", "quantity" 1, "type" "invoice item", "classification" "invoice item", "discount allowed" false, "is moss product" null, "currency" "eur", "id" null, "taxes" { "inclusive" true, "tax rates" \[], "shipping tax rates" \[] }, "totals" { "unit price" 1, "item total" 10, "total" 10, "discount" 0, "shipping subtotal" 0, "shipping discount" 0, "shipping tax" 0, "shipping" 0, "shipping total" 0, "tax" 0, "subtotal" 10, "exchange rate" null, "price conversion" false, "moss taxable amount" 0, "moss tax total" 0, "item total with tax" 10 }, "reservations" \[], "discounts" \[], "has shipping" false, "variation id" null, "is variant" false, "pack" null } ], "discounts" \[], "licenses" \[], "start date" null, "end date" null, "totals" { "tax" 0, "shipping" 0, "shipping tax" 0, "subtotal" 10, "total" 10, "discount" 0, "item count" 1, "shipping discount" 0, "item total with tax" 10, "shipping subtotal" 0, "price conversion" true, "item total" 10, "moss tax total" 0, "moss taxable amount" 0, "trial deductions" 0, "shipping total" 0, "gateway fees" 0, "affiliate revenue" 0, "amount due" 10, "refunded total" 0 }, "taxes" { "tax rates" \[], "shipping tax rates" \[], "has vat" false }, "shipping" null, "affiliate program" null, "affiliate partner" null, "due date" null, "refunds" null, "consents" null, "appendix" null, "transaction" "e964ac68 6ed3 42f2 a172 7db0987a0dd2" } ], "total results" 1, "page" 1, "per page" 10, "sort by" null, "filter" null }