Accounting API
Invoices
Invoice Object
attributes id string a unique identifier for the invoice object string the value is always invoice currency string appendix docid\ kfbmx4q3dxjtduqf75yx1 the currency of the invoice paid boolean displays whether the invoice is paid type string the possible values are checkout , custom , recurring and payout prefix string the invoice prefix number integer the invoice number total integer the total invoice amount payment string appendix docid\ kfbmx4q3dxjtduqf75yx1 the payment method of the invoice price date timestamp the date the invoice was purchased price due date timestamp the due date of the invoice available for invoices with type custom and recurring status string the invoice status the possible values can be found invoices docid\ tita0vjo2o qrjwzslrsy subscription string the id of the subscription related to the invoice licenses string an array of strings, each representing a license generated for this invoice is instalment boolean displays whether the invoice payment is collected with an instalment plan locale string ( appendix docid\ kfbmx4q3dxjtduqf75yx1 ) the default language of the invoice start date timestamp the start date of the billing period associated with this invoice provided if the invoice is associated with an active subscriptions docid\ mgechlkhdt dwcmnbwzco end date timestamp the end date of the billing period associated with this invoice provided if the invoice is associated with an active subscriptions docid\ mgechlkhdt dwcmnbwzco affiliate program string the id of the affiliate program associated with the invoice affiliate string the id of the affiliate partner associated with the invoice authorization expiry timestamp a timestamp indicating when the invoice payment authorization will expire will be provided if the status of the invoice is authorized and the payment gateway supports it payment charge date timestamp a timestamp indicating when the invoice payment will be processed this information is supplied only if the invoice's status is set to 'authorized' and the utilized payment gateway has this capability payment retried boolean indicating whether a payment has failed and was retried late failure boolean indicating whether a payment has was initially marked as successful but failed later than expected customer information object an object containing the billing and shipping information of the customer associated with this order all the attributes can be view in the example below whether an attribute is provided depends on the invoice and the items being purchased for example shipping information is provided if the order has shipping "customer information" { "billing information" { "address" "awesome street", "city" "frankfurt", "country" "de", "email" "mj\@example com", "id" "32ad6c53 2cfa 4577 947f aaca2a2cefbe", "ip" null, "is company" false, "last name" null, "locale" "en", "name" "michael jackson", "object" "address", "phone" null, "postcode" "abc1234", "representative" null, "shipping address" false, "state" null, "vat" null }, "country" "de", "email" "mj\@example com", "id" "f82d6538 5149 4df5 9086 8d576ed77490", "last name" "jackson", "locale" "en", "name" "michael", "shipping information" { "address" "awesome street", "city" "frankfurt", "country" "de", "email" "mj\@example com", "id" "7d01bff6 1ffc 4252 9891 a56c3f3f3c48", "last name" null, "locale" "en", "name" "michael jackson", "object" "address", "phone" null, "postcode" "abc1234", "representative" null, "shipping address" true, "state" null }, "stripe customer id" "cus pxqwqzldffiuk6" } totals object an object containing the totals of the invoice "totals" { "total" 27477, "discount" 1700, "item count" 1, "subtotal" 17000, // before discounts, before taxes "item total" 15300, // after discounts, before taxes "item total with tax" 15300, // after discounts, after taxes "moss tax total" 0, "moss taxable amount" 0, "shipping subtotal" 12300, // before discounts, before taxes "shipping" 11070, // after discounts, before taxes "shipping total" 12177, // after discounts, after taxes "shipping discount" 1230, "shipping tax" 1107, "tax" 0, "price conversion" true, "exchange rate" 1 23, "trial deductions" 0, "gateway fees" 0, "affiliate revenue" 0, "refunded total" 27477, "amount paid" 27477, "amount cancelled" 0, "amount due" 0 } total integer the total amount of the invoice discount integer the total discount that was applied to all the items in the transaction item count integer the total number of items purchased item total integer the total cost of all the items after discounts and before taxes item total with tax integer the total cost of all the items after discounts and taxes moss tax total integer the total tax that falls under moss vat rules moss taxable amount integer the total taxable amount that falls under moss vat rules price conversion boolean this attribute shows whether prices were converted when calculating this invoice shipping integer the shipping cost after discounts and before taxes shipping discount integer the shipping discount applied to the invoice shipping subtotal integer the shipping cost before discounts and taxes shipping tax integer the shipping tax applied to the invoice shipping total integer the final shipping cost that the customer is charged it includes discounts and taxes subtotal integer the total cost of all the items before discounts and taxes tax integer the total tax applied to the invoice trial deductions integer beta beta the total amount that was deducted from the total due to subscription trials gateway fees integer beta beta the total fees paid to payment processors and tamio affiliate revenue integer the commission paid to affiliates amount due integer the total amount due (not collected) amount cancelled integer the total amount cancelled (will not be collected) interest integer beta beta the total interest charged on the order amount paid integer the total amount that was paid exchange rate decimal the exchange rate used for the conversion (if applicable) merchant object an object containing the merchant's business information at the time the invoice was created "merchant" { "address" "awesome address", "city" "franfurt", "country" "de", "email" "awesome shop\@example com", "name" "jane doe", "postcode" "abc1234", "state" null, "telephone" null, "vat" "de12345678" } shipping object an object containing the shipping configuration of the invoice "shipping" { "method" "worldwide shipping 10% off", "tracking" "abc123packxz1", "has shipping" true, "shipped" true } method string the label of the shipping method such as fedex express tracking string the tracking number of the shipment shipped boolean this attribute shows whether the order has been shipped products array of objects an array of objects containing the products that were purchased "products" \[ { "cancelled" false, "classification" "general", "currency" "eur", "delivered" true, "discount allowed" true, "discounts" \[ { "coupon" null, "discount" 1700, "duration" 2, "id" "2126f3d9 9c2b 4e9e b515 599cf4a86904", "shipping discount" 1230 } ], "ean" null, "has shipping" true, "id" "aaa1c3f5 196a 487f 8834 db7abc5a87e6", "invoice item id" null, "is moss product" false, "is variant" true, "name" "blue silk tuxedox", "pack" null, "quantity" 1, "reservations" \[], "sku" null, "taxes" { "inclusive" false, "shipping tax rates" \[ { "applies to" \[ "aaa1c3f5 196a 487f 8834 db7abc5a87e6" ], "id" "3af0c3e9 f7e2 4469 8ea0 faf1cf6f666a", "inclusive" false, "label" "my tax", "rate amount" false, "rate percent" 10, "tax" 1107, "vat tax" false } ], "tax rates" \[] }, "totals" { "amount cancelled" 0, "amount paid" 27477, "amount refunded" 27477, "discount" 1700, "exchange rate" null, "full price" 0, "item total" 15300, "item total with tax" 15300, "moss tax total" 0, "moss taxable amount" 0, "price conversion" false, "shipping" 11070, "shipping discount" 1230, "shipping subtotal" 12300, "shipping tax" 1107, "shipping total" 12177, "subtotal" 17000, "tax" 0, "total" 27477, "unit price" 17000 }, "license list" null, "pack" null, "type" "physical product", "variation id" "d844e301 f550 498f 813e 9669b8a4f83c", "variation label" "default title" } ] taxes object an object containing the tax configuration of the invoice "taxes" { "has vat" true, "tax rates" \[ { "applies to" \[ "619b5981 c097 4eb8 890b 5166b30880fd" ], "id" null, "inclusive" false, "jurisdiction" "lu", "label" "tva", "moss" true, "rate amount" null, "rate percent" 17, "tax" 1700, "vat tax" true } ], "shipping tax rates" \[ { "applies to" \[ "aaa1c3f5 196a 487f 8834 db7abc5a87e6" ], "id" "3af0c3e9 f7e2 4469 8ea0 faf1cf6f666a", "inclusive" false, "label" "my tax", "rate amount" false, "rate percent" 10, "tax" 1107, "vat tax" false } ] } discounts array of objects an array of objects, each representing a discount that was applied to the invoice "discounts" \[ { "applies to" \[ "aaa1c3f5 196a 487f 8834 db7abc5a87e6" ], "coupon" null, "discount" 1700, "duration" 2, "id" "2126f3d9 9c2b 4e9e b515 599cf4a86904", "shipping discount" 1230 } ] id string the id of the discount (if applicable) duration integer the number of payments cycles that this discount will be active relevant for billing plans discount integer the total discount amount that was applied to all the products in the transaction shipping discount integer the total shipping discount amount that was applied to all the products in the transaction applies to array of strings an array of product ids that this discount applies to coupon string the coupon that was redeemed for this discount (if applicable) bank account object an object contain the bank account details used to complete the payment { "accountnumber" "12345678012312346", "bankaddress" "bank address street 123", "bankname" "big corporate bank", "beneficiary" "awesome gmbh", "currency" "eur", "custom fields" \[], "iban" "de12345678012312346c", "swift" "de2nc" } instalment plan object the instalment plan configuration of the invoice "instalment plan" { "amount left" 9000, "amount paid" 1000, "cycle" "month", "id" "8b793d1b ea49 42dc 9691 07871d6bb305", "instalments" 2, "instalments amount" 4500, "interest" 0, "interval" 1, "invoices paid" \[ { "amount" 1000, "datebought" "2024 02 24t19 26 37+00 00", "id" "in 1onqrdfufeibdglbk0krhwti", "payment count" 1 } ], "stripe price id" "price 1onqrcfufeibdglbhbksp1ou", "total amount" 10000, "upfront" 10, "upfront amount" 1000 } amount paid integer the total amount paid so far cycle string the billing cycle of the instalment plan the possible values are month , day , week and year interval integer the billing interval of the instalment plan amount left integer the total amount left to be paid instalment integer the total number of instalments instalments amount integer the total amount paid by the customer on each instalment interest integer the total interest in percentage charged in addition to the original invoice price total amount integer the total amount to be paid by the customer upfront decimal the percentage of the order to be paid upfront upfront amount integer the total amount to be paid upfront invoices paid array of objects an array of objects, each representing a invoice that was paid { "id" "0bfe8cdd 5453 4965 bc54 418a0964f9d1", "currency" "eur", "paid" true, "object" "invoice", "type" "checkout", "prefix" "ant", "number" 260, "total" 27477, "payment" "giropay", "date" 1707157705, "status" "new", "subscription" null, "is instalment" false, "merchant" { "address" "awesome address", "city" "franfurt", "country" "de", "email" "awesome shop\@example com", "name" "jane doe", "postcode" "abc1234", "state" null, "telephone" null, "vat" "de12345678" }, "locale" "en", "customer information" { "billing information" { "address" "awesome street", "city" "frankfurt", "country" "de", "email" "mj\@example com", "id" "32ad6c53 2cfa 4577 947f aaca2a2cefbe", "ip" null, "is company" false, "last name" null, "locale" "en", "name" "michael jackson", "object" "address", "phone" null, "postcode" "abc1234", "representative" null, "shipping address" false, "state" null }, "country" "de", "email" "mj\@example com", "id" "f82d6538 5149 4df5 9086 8d576ed77490", "last name" "jackson", "locale" "en", "name" "michael", "shipping information" { "address" "awesome street", "city" "frankfurt", "country" "de", "email" "mj\@example com", "id" "7d01bff6 1ffc 4252 9891 a56c3f3f3c48", "last name" null, "locale" "en", "name" "michael jackson", "object" "address", "phone" null, "postcode" "abc1234", "representative" null, "shipping address" true, "state" null }, "stripe customer id" "cus pxqwqzldffiuk6" }, "products" \[ { "cancelled" false, "classification" "general", "currency" "eur", "delivered" false, "discount allowed" true, "discounts" \[ { "coupon" null, "discount" 1700, "duration" 2, "id" "2126f3d9 9c2b 4e9e b515 599cf4a86904", "shipping discount" 1230 } ], "ean" null, "has shipping" true, "id" "aaa1c3f5 196a 487f 8834 db7abc5a87e6", "invoice item id" null, "is moss product" false, "is variant" true, "name" "blue silk tuxedox", "pack" null, "quantity" 1, "reservations" \[ { "negative stock" false, "preorder" false, "quantity" 1, "warehouse" null } ], "sku" null, "taxes" { "inclusive" false, "shipping tax rates" \[ { "applies to" \[ "aaa1c3f5 196a 487f 8834 db7abc5a87e6" ], "id" "3af0c3e9 f7e2 4469 8ea0 faf1cf6f666a", "inclusive" false, "label" "my tax", "rate amount" false, "rate percent" 10, "tax" 1107, "vat tax" false } ], "tax rates" \[] }, "totals" { "amount cancelled" 0, "amount paid" 27477, "amount refunded" 27477, "discount" 1700, "exchange rate" null, "full price" 0, "item total" 15300, "item total with tax" 15300, "moss tax total" 0, "moss taxable amount" 0, "price conversion" false, "shipping" 11070, "shipping discount" 1230, "shipping subtotal" 12300, "shipping tax" 1107, "shipping total" 12177, "subtotal" 17000, "tax" 0, "total" 27477, "unit price" 17000 }, "type" "physical product", "variation id" "d844e301 f550 498f 813e 9669b8a4f83c", "variation label" "default title" } ], "discounts" \[ { "applies to" \[ "aaa1c3f5 196a 487f 8834 db7abc5a87e6" ], "coupon" null, "discount" 1700, "duration" 2, "id" "2126f3d9 9c2b 4e9e b515 599cf4a86904", "shipping discount" 1230 } ], "licenses" \[], "start date" null, "end date" null, "totals" { "discount" 1700, "item count" 1, "item total" 15300, "item total with tax" 15300, "moss tax total" 0, "moss taxable amount" 0, "price conversion" true, "shipping" 11070, "exchange rate" 1 23, "shipping discount" 1230, "shipping subtotal" 12300, "shipping tax" 1107, "shipping total" 12177, "subtotal" 17000, "tax" 0, "total" 27477, "trial deductions" 0, "gateway fees" 0, "affiliate revenue" 0, "refunded total" 27477, "amount paid" 27477, "amount cancelled" 0, "amount due" 0 }, "payment retried" null, "late failure" null, "taxes" { "has vat" false, "shipping tax rates" \[ { "applies to" \[ "aaa1c3f5 196a 487f 8834 db7abc5a87e6" ], "id" "3af0c3e9 f7e2 4469 8ea0 faf1cf6f666a", "inclusive" false, "label" "asdsad", "rate amount" false, "rate percent" 10, "tax" 1107, "vat tax" false } ], "tax rates" \[] }, "payment charge date" null, "authorization expiry" null, "shipping" { "method" "worldwide", "tracking" null, "has shipping" true, "shipped" false }, "affiliate program" null, "affiliate" null, "due date" null, "bank account" null, "reviews" null, "appendix" null, "instalment plan" null, "consents" null }