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

idstring

The Rutter generated unique ID of the invoice.

platform_idstring

The platform specific ID of the invoice.

account_idstring

The Rutter ID of the Account linked to the invoice. Represents the account being debited.

class_idstringnullableOptional

The Rutter ID of the Class linked to the invoice. Supported for QuickBooks and QuickBooks Desktop.

customer_idstringnullable

The Rutter ID of the Customers linked to the invoice.

payment_terms_idstringnullableOptional

The Rutter ID of the Payment Terms linked to the invoice. Supported for QuickBooks.

subsidiary_idstringnullable

The Rutter ID of the Subsidiary linked to the invoice. Supported for NetSuite.

due_datestringnullable

The ISO 8601 timestamp for when the invoice is/was due.

issue_datestring

The ISO 8601 timestamp for when the invoice was issued.

statusenum

The status of the invoice.

One ofopenpartially_paidpaidvoiddraftunknown, or submitted.
amount_duestringnullable

The current amount due on the invoice. Represents the remainder after invoice payments or invoice credit memos are applied against the total amount.

currency_codestringnullable

The ISO 4217 currency code of the invoice.

document_numberstringfilterablenullable

The seller facing document number of the invoice.

sub_totalstringnullable

The subtotal of the invoice, without the tax amount.

tax_amountstringnullable

The total tax amount applied to the invoice.

total_amountstringnullable

The total amount due on the invoice.

total_discountstringnullable

The total amount of discounts applied to the invoice.

memostringnullableOptional

The memo of the invoice.

linked_paymentsarray

An array of Rutter IDs of Invoice Payments and Invoice Credit Memos applied against the invoice.

Show linked_payments attributes
line_itemsarray

An array of line items associated with the invoice.

Show line_items attributes
additional_fieldsobjectOptional

Additional fields required only for a narrow set of use cases.

Show additional_fields attributes
created_atstringfilterablenullable

The ISO 8601 timestamp that the invoice was created.

updated_atstringfilterablenullable

The ISO 8601 timestamp that the invoice was last updated.

last_synced_atstringfilterable

The ISO 8601 timestamp when the invoice was last synced by Rutter.

platform_urlstringnullable

A URL pointing to the object in the underlying platform. When no URL exists for the specific object, the value may be a larger URL containing the object.

platform_dataobjectOptional

The raw platform data corresponding to the Rutter object.

Endpoints
GET
/accounting/invoices
GET
/accounting/invoices/:id
POST
/accounting/invoices
PATCH
/accounting/invoices/:id
DELETE
/accounting/invoices/:id

List Invoices

GEThttps://production.rutterapi.com/versioned/accounting/invoices

Request Parameters

    access_tokenstringqueryRequired

    The access token of the connection.

    cursorstringqueryOptional

    Used to paginate to the next batch of objects. Should be a copy of the next_cursor value from the previous response.

    limitintegerqueryOptional

    Used to limit the number of returned objects. Defaults to 50.

    filterstringqueryOptional

    Not yet supported on Sage Intacct or Dynamics 365 Business Central yet. Used to specify a filtering criteria for response objects. Refer to Filtering Objects to understand the syntax for the filtering criteria. The filtering syntax only supports fields decorated with a filterable tag in the response object.

    sortstringqueryOptional

    Used to sort the response objects, e.g. last_synced_at ASC. If a value is provided but ASC or DESC is not, defaults to ASC. If omitted, defaults to updated_at DESC. Supports only fields decorated with a filterable tag in the response object except on Sage Intacct and Dynamics 365 Business Central. For those platforms, only updated_at and last_synced_at fields are supported.

    expandenumqueryOptional

    Include platform specific data (includes additional fields not provided by the Rutter object).

    Must beplatform_data.
    document_numberstringqueryOptional

    Deprecated - use filter instead. The exact document number to filter on. Not yet supported on Sage Intacct or Dynamics 365 Business Central yet.

    last_synced_at_minintegerqueryOptional

    Deprecated - use filter instead. Used to filter objects with a last_synced_at value greater than or equal to the supplied value. Should be a Unix time in milliseconds.

    updated_at_maxintegerqueryOptional

    Deprecated - use filter instead. Used to filter objects with a updated_at value less than or equal to the supplied value. Should be a Unix time in milliseconds.

    updated_at_minintegerqueryOptional

    Deprecated - use filter instead. Used to filter objects with a updated_at value greater than or equal to the supplied value. Should be a Unix time in milliseconds.

    force_fetchenumqueryOptional

    Used to force a response even if the underlying connection has not finished its initial sync.

    One oftrue or false.

Response Body

    invoicesarray
    Show invoices attributes
    next_cursorstringnullableOptional
    connectionobject
    Show connection attributes
Support by integration
  • QuickBooks
    QuickBooks
  • Xero
    Xero
  • QuickBooks Desktop
    QuickBooks Desktop
  • NetSuite
    NetSuite
Example Response Body
JSON
1
{
2
"invoices": [
3
{
4
"id": "00000000-0000-0000-0000-000000000000",
5
"platform_id": "12345678",
6
"account_id": "00000000-0000-0000-0000-000000000000",
7
"customer_id": "00000000-0000-0000-0000-000000000000",
8
"payment_terms_id": "00000000-0000-0000-0000-000000000000",
9
"subsidiary_id": "00000000-0000-0000-0000-000000000000",
10
"due_date": "2023-01-02T02:34:56.000Z",
11
"issue_date": "2023-01-02T02:34:56.000Z",
12
"status": "partially_paid",
13
"currency_code": "USD",
14
"document_number": "CUSTINVC-1",
15
"memo": "For a Rutter shirt.",
16
"amount_due": "9.34",
17
"sub_total": "12.34",
18
"tax_amount": "2",
19
"total_amount": "14.34",
20
"total_discount": "0",
21
"linked_payments": [
22
{
23
"id": "00000000-0000-0000-0000-000000000000",
24
"date": "2023-01-02T02:34:56.000Z",
25
"type": "INVOICE_PAYMENT",
26
"amount": "3"
27
},
28
{
29
"id": "00000000-0000-0000-0000-000000000000",
30
"date": "2023-01-02T02:34:56.000Z",
31
"type": "INVOICE_CREDIT_MEMO",
32
"amount": "2"
33
}
34
],
35
"line_items": [
36
{
37
"id": "00000000-0000-0000-0000-000000000000",
38
"platform_id": "12345678",
39
"account_id": "00000000-0000-0000-0000-000000000000",
40
"class_id": "00000000-0000-0000-0000-000000000000",
41
"item_id": "00000000-0000-0000-0000-000000000000",
42
"tax_rate_id": "00000000-0000-0000-0000-000000000000",
43
"description": "A Rutter shirt.",
44
"quantity": 1,
45
"amount": "14.34",
46
"discount_amount": "0",
47
"discount_percentage": "0",
48
"sub_total": "12.34",
49
"tax_amount": "2",
50
"unit_amount": "12.34"
51
}
52
],
53
"created_at": "2023-01-02T02:34:56.000Z",
54
"updated_at": "2023-01-02T02:34:56.000Z",
55
"last_synced_at": "2023-01-02T02:34:56.000Z",
56
"platform_url": "https://platform.com/resource?id=123",
57
"platform_data": {
58
"id": 123,
59
"data": "Varies by platform"
60
}
61
}
62
],
63
"next_cursor": "MTY3NDgzMTk0Ml82MDY4ZDI0ZC02NGRmLTRmN2EtYTM0Ny0zN2ZmNjY5MGVmMjU=",
64
"connection": {
65
"id": "00000000-0000-0000-0000-000000000000",
66
"orgId": "00000000-0000-0000-0000-000000000000",
67
"platform": "NETSUITE"
68
}
69
}

Fetch an Invoice

GEThttps://production.rutterapi.com/versioned/accounting/invoices/:id

Request Parameters

    idstringpathRequired

    The unique ID of the object.

    access_tokenstringqueryRequired

    The access token of the connection.

    id_typeenumqueryOptional

    Used to indicate the type of id that is supplied. Defaults to rutter. Not yet supported on Sage Intacct or Dynamics 365 Business Central yet.

    One ofrutter or platform.
    force_fetchenumqueryOptional

    Used to force a response even if the underlying connection has not finished its initial sync.

    One oftrue or false.

Response Body

    invoiceobject
    Show invoice attributes
    connectionobject
    Show connection attributes
Support by integration
  • QuickBooks
    QuickBooks
  • Xero
    Xero
  • QuickBooks Desktop
    QuickBooks Desktop
  • NetSuite
    NetSuite
Example Response Body
JSON
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
"payment_terms_id": "00000000-0000-0000-0000-000000000000",
8
"subsidiary_id": "00000000-0000-0000-0000-000000000000",
9
"due_date": "2023-01-02T02:34:56.000Z",
10
"issue_date": "2023-01-02T02:34:56.000Z",
11
"status": "partially_paid",
12
"currency_code": "USD",
13
"document_number": "CUSTINVC-1",
14
"memo": "For a Rutter shirt.",
15
"amount_due": "9.34",
16
"sub_total": "12.34",
17
"tax_amount": "2",
18
"total_amount": "14.34",
19
"total_discount": "0",
20
"linked_payments": [
21
{
22
"id": "00000000-0000-0000-0000-000000000000",
23
"date": "2023-01-02T02:34:56.000Z",
24
"type": "INVOICE_PAYMENT",
25
"amount": "3"
26
},
27
{
28
"id": "00000000-0000-0000-0000-000000000000",
29
"date": "2023-01-02T02:34:56.000Z",
30
"type": "INVOICE_CREDIT_MEMO",
31
"amount": "2"
32
}
33
],
34
"line_items": [
35
{
36
"id": "00000000-0000-0000-0000-000000000000",
37
"platform_id": "12345678",
38
"account_id": "00000000-0000-0000-0000-000000000000",
39
"class_id": "00000000-0000-0000-0000-000000000000",
40
"item_id": "00000000-0000-0000-0000-000000000000",
41
"tax_rate_id": "00000000-0000-0000-0000-000000000000",
42
"description": "A Rutter shirt.",
43
"quantity": 1,
44
"amount": "14.34",
45
"discount_amount": "0",
46
"discount_percentage": "0",
47
"sub_total": "12.34",
48
"tax_amount": "2",
49
"unit_amount": "12.34"
50
}
51
],
52
"created_at": "2023-01-02T02:34:56.000Z",
53
"updated_at": "2023-01-02T02:34:56.000Z",
54
"last_synced_at": "2023-01-02T02:34:56.000Z",
55
"platform_url": "https://platform.com/resource?id=123",
56
"platform_data": {
57
"id": 123,
58
"data": "Varies by platform"
59
}
60
},
61
"connection": {
62
"id": "00000000-0000-0000-0000-000000000000",
63
"orgId": "00000000-0000-0000-0000-000000000000",
64
"platform": "NETSUITE"
65
}
66
}

Create an Invoice

POSThttps://production.rutterapi.com/versioned/accounting/invoices

Request Parameters

    access_tokenstringqueryRequired

    The access token of the connection.

Request Body

    invoiceobject
    Show invoice attributes

Response Body

    Any of:

    invoiceobject
    Show invoice attributes
    async_responseobjectOptional
    Show async_response attributes
Support by integration
  • QuickBooks
    QuickBooks
  • Xero
    Xero
  • QuickBooks Desktop
    QuickBooks Desktop
  • NetSuite
    NetSuite
Example Request Body
JSON
1
{
2
"invoice": {
3
"customer_id": "00000000-0000-0000-0000-000000000000",
4
"payment_terms_id": "00000000-0000-0000-0000-000000000000",
5
"due_date": "2023-01-02T02:34:56.000Z",
6
"issue_date": "2023-01-02T02:34:56.000Z",
7
"currency_code": "USD",
8
"document_number": "CUSTINVC-1",
9
"memo": "For a Rutter shirt.",
10
"line_items": [
11
{
12
"total_amount": 12.34,
13
"description": "A Rutter Shirt",
14
"item": {
15
"id": "00000000-0000-0000-0000-000000000000",
16
"quantity": 1,
17
"unit_amount": 12.34
18
}
19
}
20
]
21
}
22
}
Example Response Body
JSON
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
"payment_terms_id": "00000000-0000-0000-0000-000000000000",
8
"subsidiary_id": "00000000-0000-0000-0000-000000000000",
9
"due_date": "2023-01-02T02:34:56.000Z",
10
"issue_date": "2023-01-02T02:34:56.000Z",
11
"status": "partially_paid",
12
"currency_code": "USD",
13
"document_number": "CUSTINVC-1",
14
"memo": "For a Rutter shirt.",
15
"amount_due": "9.34",
16
"sub_total": "12.34",
17
"tax_amount": "2",
18
"total_amount": "14.34",
19
"total_discount": "0",
20
"linked_payments": [
21
{
22
"id": "00000000-0000-0000-0000-000000000000",
23
"date": "2023-01-02T02:34:56.000Z",
24
"type": "INVOICE_PAYMENT",
25
"amount": "3"
26
},
27
{
28
"id": "00000000-0000-0000-0000-000000000000",
29
"date": "2023-01-02T02:34:56.000Z",
30
"type": "INVOICE_CREDIT_MEMO",
31
"amount": "2"
32
}
33
],
34
"line_items": [
35
{
36
"id": "00000000-0000-0000-0000-000000000000",
37
"platform_id": "12345678",
38
"account_id": "00000000-0000-0000-0000-000000000000",
39
"class_id": "00000000-0000-0000-0000-000000000000",
40
"item_id": "00000000-0000-0000-0000-000000000000",
41
"tax_rate_id": "00000000-0000-0000-0000-000000000000",
42
"description": "A Rutter shirt.",
43
"quantity": 1,
44
"amount": "14.34",
45
"discount_amount": "0",
46
"discount_percentage": "0",
47
"sub_total": "12.34",
48
"tax_amount": "2",
49
"unit_amount": "12.34"
50
}
51
],
52
"created_at": "2023-01-02T02:34:56.000Z",
53
"updated_at": "2023-01-02T02:34:56.000Z",
54
"last_synced_at": "2023-01-02T02:34:56.000Z",
55
"platform_url": "https://platform.com/resource?id=123",
56
"platform_data": {
57
"id": 123,
58
"data": "Varies by platform"
59
}
60
}
61
}

Update an Invoice

PATCHhttps://production.rutterapi.com/versioned/accounting/invoices/:id

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

    idstringpathRequired

    The Rutter generated unique ID of the object.

    access_tokenstringqueryRequired

    The access token of the connection.

Request Body

    invoiceobject
    Show invoice attributes

Response Body

    Any of:

    invoiceobject
    Show invoice attributes
    async_responseobjectOptional
    Show async_response attributes
Support by integration
  • QuickBooks
    QuickBooks
  • Xero
    Xero
  • QuickBooks Desktop
    QuickBooks Desktop
  • NetSuite
    NetSuite
Example Request Body
JSON
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
}
Example Response Body
JSON
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
"payment_terms_id": "00000000-0000-0000-0000-000000000000",
8
"subsidiary_id": "00000000-0000-0000-0000-000000000000",
9
"due_date": "2023-01-02T02:34:56.000Z",
10
"issue_date": "2023-01-02T02:34:56.000Z",
11
"status": "partially_paid",
12
"currency_code": "USD",
13
"document_number": "CUSTINVC-1",
14
"memo": "For a Rutter shirt.",
15
"amount_due": "9.34",
16
"sub_total": "12.34",
17
"tax_amount": "2",
18
"total_amount": "14.34",
19
"total_discount": "0",
20
"linked_payments": [
21
{
22
"id": "00000000-0000-0000-0000-000000000000",
23
"date": "2023-01-02T02:34:56.000Z",
24
"type": "INVOICE_PAYMENT",
25
"amount": "3"
26
},
27
{
28
"id": "00000000-0000-0000-0000-000000000000",
29
"date": "2023-01-02T02:34:56.000Z",
30
"type": "INVOICE_CREDIT_MEMO",
31
"amount": "2"
32
}
33
],
34
"line_items": [
35
{
36
"id": "00000000-0000-0000-0000-000000000000",
37
"platform_id": "12345678",
38
"account_id": "00000000-0000-0000-0000-000000000000",
39
"class_id": "00000000-0000-0000-0000-000000000000",
40
"item_id": "00000000-0000-0000-0000-000000000000",
41
"tax_rate_id": "00000000-0000-0000-0000-000000000000",
42
"description": "A Rutter shirt.",
43
"quantity": 1,
44
"amount": "14.34",
45
"discount_amount": "0",
46
"discount_percentage": "0",
47
"sub_total": "12.34",
48
"tax_amount": "2",
49
"unit_amount": "12.34"
50
}
51
],
52
"created_at": "2023-01-02T02:34:56.000Z",
53
"updated_at": "2023-01-02T02:34:56.000Z",
54
"last_synced_at": "2023-01-02T02:34:56.000Z",
55
"platform_url": "https://platform.com/resource?id=123",
56
"platform_data": {
57
"id": 123,
58
"data": "Varies by platform"
59
}
60
}
61
}

Delete an Invoice

DELETEhttps://production.rutterapi.com/versioned/accounting/invoices/:id

Request Parameters

    idstringpathRequired

    The Rutter generated unique ID of the object.

    access_tokenstringqueryRequired

    The access token of the connection.

Response Body

    Any of:

    codeenum

    Returns the status of the requested object: deleted indicates object was deleted by this operation, whereas not_found indicates object was not found (allowing us to make DELETE operations idempotent).

    One ofdeleted or not_found.
    successboolean

    Indicates whether deletion was successful

    async_responseobjectOptional
    Show async_response attributes
Support by integration
  • QuickBooks
    QuickBooks
Example Response Body
JSON
1
{
2
"code": "deleted",
3
"success": true
4
}

Have questions?

Contact support for personalized guidance.

Contact support