Invoices
The Invoice Object
A Rutter Invoice represents an invoice issued by the business entity that a customer must pay. Every invoice is linked to an accounts receivable Account, a Customer, Invoice Payments, and Invoice Credit Memos.
The invoice line item contains information regarding the items sold and accounts affected in the invoice. Every invoice line item is linked to a credit Account, Tax Rate, or Item.
Files can be attached to Rutter Invoices in the form of Rutter Attachments.
Properties
id
stringThe Rutter generated unique ID of the invoice.
platform_id
stringThe platform specific ID of the invoice.
account_id
stringThe Rutter ID of the Account linked to the invoice. Represents the account being debited.
customer_id
stringnullableThe Rutter ID of the Customers linked to the invoice.
subsidiary_id
stringnullableThe Rutter ID of the Subsidiary linked to the invoice. Supported for NetSuite.
due_date
stringnullableThe ISO 8601 timestamp for when the invoice is/was due.
issue_date
stringThe ISO 8601 timestamp for when the invoice was issued.
status
enumThe status of the invoice.
currency_code
stringnullableThe ISO 4217 currency code of the invoice.
document_number
stringnullableThe seller facing document number of the invoice.
memo
stringnullableOptionalThe memo of the invoice.
amount_due
stringnullableThe current amount due on the invoice. Represents the remainder after invoice payments or invoice credit memos are applied against the total amount.
sub_total
stringnullableThe subtotal of the invoice, without the tax amount.
tax_amount
stringnullableThe total tax amount applied to the invoice.
total_amount
stringnullableThe total amount due on the invoice.
total_discount
stringnullableThe total amount of discounts applied to the invoice.
linked_payments
arrayAn array of Rutter IDs of Invoice Payments and Invoice Credit Memos applied against the invoice.
linked_payments
attributesline_items
arrayAn array of line items associated with the invoice.
line_items
attributescreated_at
stringnullableThe ISO 8601 timestamp that the invoice was created.
updated_at
stringnullableThe ISO 8601 timestamp that the invoice was last updated.
last_synced_at
stringThe ISO 8601 timestamp when the invoice was last synced by Rutter.
platform_data
objectOptionalThe raw platform data corresponding to the Rutter object.
List Invoices
Request Parameters
access_token
stringqueryThe access token of the connection.
cursor
stringqueryOptionalThe cursor to use for pagination. Use the value of next_cursor
provided in a previous response.
document_number
stringqueryOptionalThe exact document number to filter on. Not supported on Sage Intacct, or Dynamics 365.
expand
enumqueryOptionalUsed to request inclusion of optional objects.
force_fetch
enumqueryOptionalForce a response even if the underlying connection hasn't finished the initial sync.
last_synced_at_min
integerqueryOptionalUnix Timestamp in milliseconds representing the minimum last_synced_at datetime to fetch entities from.
limit
integerqueryOptionalThe number of entities to return. Defaults to 50. Maximum is 500.
sort
stringqueryOptionalThe field and direction to sort by (ASC
or DESC
), e.g. last_synced_at ASC
. Currently supports the fields: updated_at
, last_synced_at
. If a field is provided but ASC
or DESC
is not, defaults to ASC
. If this field is omitted, defaults, to updated_at DESC
.
updated_at_max
integerqueryOptionalUnix Timestamp in milliseconds representing the maximum updated_at datetime to fetch entities from.
updated_at_min
integerqueryOptionalUnix Timestamp in milliseconds representing the minimum updated_at datetime to fetch entities from.
Response Body
connection
objectconnection
attributesinvoices
arrayinvoices
attributesnext_cursor
stringnullableOptional- QuickBooks
- Netsuite
- Xero
- QuickBooks Desktop
1{
2 "connection": {
3 "id": "00000000-0000-0000-0000-000000000000",
4 "orgId": "00000000-0000-0000-0000-000000000000",
5 "platform": "NETSUITE"
6 },
7 "invoices": [
8 {
9 "id": "00000000-0000-0000-0000-000000000000",
10 "platform_id": "12345678",
11 "account_id": "00000000-0000-0000-0000-000000000000",
12 "customer_id": "00000000-0000-0000-0000-000000000000",
13 "subsidiary_id": "00000000-0000-0000-0000-000000000000",
14 "due_date": "2023-01-02T02:34:56.000Z",
15 "issue_date": "2023-01-02T02:34:56.000Z",
16 "status": "partially_paid",
17 "currency_code": "USD",
18 "document_number": "CUSTINVC-1",
19 "memo": "For a Rutter shirt.",
20 "amount_due": "9.34",
21 "sub_total": "12.34",
22 "tax_amount": "2",
23 "total_amount": "14.34",
24 "total_discount": "0",
25 "linked_payments": [
26 {
27 "id": "00000000-0000-0000-0000-000000000000",
28 "date": "2023-01-02T02:34:56.000Z",
29 "type": "INVOICE_PAYMENT",
30 "amount": "3"
31 },
32 {
33 "id": "00000000-0000-0000-0000-000000000000",
34 "date": "2023-01-02T02:34:56.000Z",
35 "type": "INVOICE_CREDIT_MEMO",
36 "amount": "2"
37 }
38 ],
39 "line_items": [
40 {
41 "id": "00000000-0000-0000-0000-000000000000",
42 "platform_id": "12345678",
43 "account_id": "00000000-0000-0000-0000-000000000000",
44 "class_id": "00000000-0000-0000-0000-000000000000",
45 "item_id": "00000000-0000-0000-0000-000000000000",
46 "tax_rate_id": "00000000-0000-0000-0000-000000000000",
47 "description": "A Rutter shirt.",
48 "quantity": 1,
49 "amount": "14.34",
50 "discount_amount": "0",
51 "discount_percentage": "0",
52 "sub_total": "12.34",
53 "tax_amount": "2",
54 "unit_amount": "12.34"
55 }
56 ],
57 "created_at": "2023-01-02T02:34:56.000Z",
58 "updated_at": "2023-01-02T02:34:56.000Z",
59 "last_synced_at": "2023-01-02T02:34:56.000Z",
60 "platform_data": {
61 "id": 123,
62 "data": "Varies by platform"
63 }
64 }
65 ],
66 "next_cursor": "MTY3NDgzMTk0Ml82MDY4ZDI0ZC02NGRmLTRmN2EtYTM0Ny0zN2ZmNjY5MGVmMjU="
67}
Fetch an Invoice
Request Parameters
id
stringpathThe unique ID of the object.
access_token
stringqueryThe access token of the connection.
force_fetch
enumqueryOptionalForce a response even if the underlying connection hasn't finished the initial sync.
id_type
enumqueryOptionalOptionally, search for a connection by Rutter ID or platform ID. Defaults to rutter
. Not supported on QuickBooks Desktop, Sage Intacct, or Dynamics 365.
Response Body
connection
objectconnection
attributesinvoice
objectinvoice
attributes- QuickBooks
- Netsuite
- Xero
- QuickBooks Desktop
1{
2 "connection": {
3 "id": "00000000-0000-0000-0000-000000000000",
4 "orgId": "00000000-0000-0000-0000-000000000000",
5 "platform": "NETSUITE"
6 },
7 "invoice": {
8 "id": "00000000-0000-0000-0000-000000000000",
9 "platform_id": "12345678",
10 "account_id": "00000000-0000-0000-0000-000000000000",
11 "customer_id": "00000000-0000-0000-0000-000000000000",
12 "subsidiary_id": "00000000-0000-0000-0000-000000000000",
13 "due_date": "2023-01-02T02:34:56.000Z",
14 "issue_date": "2023-01-02T02:34:56.000Z",
15 "status": "partially_paid",
16 "currency_code": "USD",
17 "document_number": "CUSTINVC-1",
18 "memo": "For a Rutter shirt.",
19 "amount_due": "9.34",
20 "sub_total": "12.34",
21 "tax_amount": "2",
22 "total_amount": "14.34",
23 "total_discount": "0",
24 "linked_payments": [
25 {
26 "id": "00000000-0000-0000-0000-000000000000",
27 "date": "2023-01-02T02:34:56.000Z",
28 "type": "INVOICE_PAYMENT",
29 "amount": "3"
30 },
31 {
32 "id": "00000000-0000-0000-0000-000000000000",
33 "date": "2023-01-02T02:34:56.000Z",
34 "type": "INVOICE_CREDIT_MEMO",
35 "amount": "2"
36 }
37 ],
38 "line_items": [
39 {
40 "id": "00000000-0000-0000-0000-000000000000",
41 "platform_id": "12345678",
42 "account_id": "00000000-0000-0000-0000-000000000000",
43 "class_id": "00000000-0000-0000-0000-000000000000",
44 "item_id": "00000000-0000-0000-0000-000000000000",
45 "tax_rate_id": "00000000-0000-0000-0000-000000000000",
46 "description": "A Rutter shirt.",
47 "quantity": 1,
48 "amount": "14.34",
49 "discount_amount": "0",
50 "discount_percentage": "0",
51 "sub_total": "12.34",
52 "tax_amount": "2",
53 "unit_amount": "12.34"
54 }
55 ],
56 "created_at": "2023-01-02T02:34:56.000Z",
57 "updated_at": "2023-01-02T02:34:56.000Z",
58 "last_synced_at": "2023-01-02T02:34:56.000Z",
59 "platform_data": {
60 "id": 123,
61 "data": "Varies by platform"
62 }
63 }
64}
Create an Invoice
Request Parameters
access_token
stringqueryThe access token of the connection.
Request Body
invoice
objectinvoice
attributesResponse Body
Any of:
invoice
objectinvoice
attributesasync_response
objectOptionalasync_response
attributeserrors
arrayOptionalerrors
attributes- QuickBooks
- Netsuite
- Xero
- QuickBooks Desktop
1{
2 "invoice": {
3 "customer_id": "00000000-0000-0000-0000-000000000000",
4 "due_date": "2023-01-02T02:34:56.000Z",
5 "issue_date": "2023-01-02T02:34:56.000Z",
6 "currency_code": "USD",
7 "document_number": "CUSTINVC-1",
8 "memo": "For a Rutter shirt.",
9 "line_items": [
10 {
11 "total_amount": 12.34,
12 "description": "A Rutter Shirt",
13 "item": {
14 "id": "00000000-0000-0000-0000-000000000000",
15 "quantity": 1,
16 "unit_amount": 12.34
17 }
18 }
19 ]
20 }
21}
1{
2 "invoice": {
3 "id": "00000000-0000-0000-0000-000000000000",
4 "platform_id": "12345678",
5 "account_id": "00000000-0000-0000-0000-000000000000",
6 "customer_id": "00000000-0000-0000-0000-000000000000",
7 "subsidiary_id": "00000000-0000-0000-0000-000000000000",
8 "due_date": "2023-01-02T02:34:56.000Z",
9 "issue_date": "2023-01-02T02:34:56.000Z",
10 "status": "partially_paid",
11 "currency_code": "USD",
12 "document_number": "CUSTINVC-1",
13 "memo": "For a Rutter shirt.",
14 "amount_due": "9.34",
15 "sub_total": "12.34",
16 "tax_amount": "2",
17 "total_amount": "14.34",
18 "total_discount": "0",
19 "linked_payments": [
20 {
21 "id": "00000000-0000-0000-0000-000000000000",
22 "date": "2023-01-02T02:34:56.000Z",
23 "type": "INVOICE_PAYMENT",
24 "amount": "3"
25 },
26 {
27 "id": "00000000-0000-0000-0000-000000000000",
28 "date": "2023-01-02T02:34:56.000Z",
29 "type": "INVOICE_CREDIT_MEMO",
30 "amount": "2"
31 }
32 ],
33 "line_items": [
34 {
35 "id": "00000000-0000-0000-0000-000000000000",
36 "platform_id": "12345678",
37 "account_id": "00000000-0000-0000-0000-000000000000",
38 "class_id": "00000000-0000-0000-0000-000000000000",
39 "item_id": "00000000-0000-0000-0000-000000000000",
40 "tax_rate_id": "00000000-0000-0000-0000-000000000000",
41 "description": "A Rutter shirt.",
42 "quantity": 1,
43 "amount": "14.34",
44 "discount_amount": "0",
45 "discount_percentage": "0",
46 "sub_total": "12.34",
47 "tax_amount": "2",
48 "unit_amount": "12.34"
49 }
50 ],
51 "created_at": "2023-01-02T02:34:56.000Z",
52 "updated_at": "2023-01-02T02:34:56.000Z",
53 "last_synced_at": "2023-01-02T02:34:56.000Z",
54 "platform_data": {
55 "id": 123,
56 "data": "Varies by platform"
57 }
58 }
59}
Update an Invoice
If a field value is provided, that field will take the updated value. If the field is not provided, the existing value will persist.
Request Parameters
id
stringpathThe Rutter generated unique ID of the object.
access_token
stringqueryThe access token of the connection.
Request Body
invoice
objectinvoice
attributesResponse Body
Any of:
invoice
objectinvoice
attributesasync_response
objectOptionalasync_response
attributeserrors
arrayOptionalerrors
attributes- QuickBooks
- Netsuite
- Xero
- QuickBooks Desktop
1{
2 "invoice": {
3 "due_date": "2023-01-02T02:34:56.000Z",
4 "document_number": "CUSTINVC-2",
5 "line_items": [
6 {
7 "total_amount": 12.34,
8 "description": "A Rutter Shirt",
9 "item": {
10 "id": "00000000-0000-0000-0000-000000000000",
11 "quantity": 1,
12 "unit_amount": 12.34
13 }
14 }
15 ]
16 }
17}
1{
2 "invoice": {
3 "id": "00000000-0000-0000-0000-000000000000",
4 "platform_id": "12345678",
5 "account_id": "00000000-0000-0000-0000-000000000000",
6 "customer_id": "00000000-0000-0000-0000-000000000000",
7 "subsidiary_id": "00000000-0000-0000-0000-000000000000",
8 "due_date": "2023-01-02T02:34:56.000Z",
9 "issue_date": "2023-01-02T02:34:56.000Z",
10 "status": "partially_paid",
11 "currency_code": "USD",
12 "document_number": "CUSTINVC-1",
13 "memo": "For a Rutter shirt.",
14 "amount_due": "9.34",
15 "sub_total": "12.34",
16 "tax_amount": "2",
17 "total_amount": "14.34",
18 "total_discount": "0",
19 "linked_payments": [
20 {
21 "id": "00000000-0000-0000-0000-000000000000",
22 "date": "2023-01-02T02:34:56.000Z",
23 "type": "INVOICE_PAYMENT",
24 "amount": "3"
25 },
26 {
27 "id": "00000000-0000-0000-0000-000000000000",
28 "date": "2023-01-02T02:34:56.000Z",
29 "type": "INVOICE_CREDIT_MEMO",
30 "amount": "2"
31 }
32 ],
33 "line_items": [
34 {
35 "id": "00000000-0000-0000-0000-000000000000",
36 "platform_id": "12345678",
37 "account_id": "00000000-0000-0000-0000-000000000000",
38 "class_id": "00000000-0000-0000-0000-000000000000",
39 "item_id": "00000000-0000-0000-0000-000000000000",
40 "tax_rate_id": "00000000-0000-0000-0000-000000000000",
41 "description": "A Rutter shirt.",
42 "quantity": 1,
43 "amount": "14.34",
44 "discount_amount": "0",
45 "discount_percentage": "0",
46 "sub_total": "12.34",
47 "tax_amount": "2",
48 "unit_amount": "12.34"
49 }
50 ],
51 "created_at": "2023-01-02T02:34:56.000Z",
52 "updated_at": "2023-01-02T02:34:56.000Z",
53 "last_synced_at": "2023-01-02T02:34:56.000Z",
54 "platform_data": {
55 "id": 123,
56 "data": "Varies by platform"
57 }
58 }
59}
Delete an Invoice
Request Parameters
id
stringpathThe Rutter generated unique ID of the object.
access_token
stringqueryThe access token of the connection.
Response Body
Any of:
deleted_invoice
objectdeleted_invoice
attributesasync_response
objectOptionalasync_response
attributeserrors
arrayOptionalerrors
attributes- QuickBooks
1{
2 "deleted_invoice": {
3 "code": "deleted",
4 "success": true
5 }
6}
Have questions?
Contact support for personalized guidance.