Bills

The Bill Object

A Rutter Bill represents a bill issued by a vendor that the business entity must pay. Every bill is linked to an accounts payable Account, a Vendor, Purchase Orders, Bill Payments, and Bill Credit Memos.

The bill line item contains information regarding the items purchased and accounts affected in the bill. Every bill line item is linked to a debit Account, Tax Rate, and Item.

Files can be attached to Rutter Bills in the form of Rutter Attachments.

Properties

idstring

The Rutter generated unique ID of the bill.

platform_idstring

The platform specific ID of the bill.

account_idstringnullable

The Rutter ID of the Account linked to the bill. Represents the AP account being credited and typically the account type is accounts_payable.

payment_terms_idstringnullable

An array of Rutter IDs of Payment Terms linked to the bill.

subsidiary_idstringnullable

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

vendor_idstringfilterablenullable

The Rutter ID of the Vendor linked to the bill.

due_datestringnullable

The ISO 8601 timestamp for the due date of the bill.

issue_datestring

The ISO 8601 timestamp for the issue date of the bill.

amount_duenumber

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

currency_codeenum

The ISO 4217 currency code of the bill.

One ofAEDAFNALLAMDANGAOAARSAUDAWGAZNBAMBBDBDTBGNBHDBIFBMDBNDBOBBOVBRLBSDBTNBWPBYRBZDCADCDFCHECHFCHWCLFCLPCNYCOPCOUCRCCUCCUPCVECZKDJFDKKDOPDZDEGPERNETBEURFJDFKPGBPGELGHSGIPGMDGNFGTQGYDHKDHNLHRKHTGHUFIDRILSINRIQDIRRISKJMDJODJPYKESKGSKHRKMFKPWKRWKWDKYDKZTLAKLBPLKRLRDLSLLTLLVLLYDMADMDLMGAMKDMMKMNTMOPMROMURMVRMWKMXNMXVMYRMZNNADNGNNIONOKNPRNZDOMRPABPENPGKPHPPKRPLNPYGQARRONRSDRUBRWFSARSBDSCRSDGSEKSGDSHPSLLSOSSRDSSPSTDSVCSYPSZLTHBTJSTMTTNDTOPTRYTTDTWDTZSUAHUGXUSDUSNUSSUYIUYUUYWUZSVEFVNDVUVWSTXAFXAGXAUXBAXBBXBCXBDXCDXDRXFUXOFXPDXPFXPTXTSXXXYERZAR, or ZMW.
statusenum

The status of the bill.

One ofopenpartially_paidpaidvoiddraftunknown, or submitted.
total_amountnumber

The total amount of the bill.

document_numberstringfilterablenullable

The buyer facing document number of the bill.

memostringnullable

The memo of the bill.

sub_totalnumbernullable

The subtotal of the bill, without the tax amount.

tax_amountnumbernullable

The tax amount applied to the bill.

total_discountnumbernullable

The discount amount applied to the bill.

currency_ratestringnullableOptional

The exchange rate between the currency of the bill and the business default currency. Supported for NetSuite, QuickBooks, and Xero.

linked_purchase_ordersarray

An array of Rutter IDs of Purchase Orders linked to the bill.

Show linked_purchase_orders attributes
linked_credit_memosarray

An array of Rutter IDs of Bill Credit Memos applied against the bill.

Show linked_credit_memos attributes
linked_paymentsarray

An array of Rutter IDs of Bill Payments applied against the bill.

Show linked_payments attributes
line_itemsarray

An array of line items associated with the bill.

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 bill was created.

updated_atstringfilterablenullable

The ISO 8601 timestamp that the bill was last updated.

last_synced_atstringfilterable

The ISO 8601 timestamp when the bill 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/bills
GET
/accounting/bills/:id
POST
/accounting/bills
PATCH
/accounting/bills/:id
DELETE
/accounting/bills/:id

List Bills

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

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 currently supported on Sage Intacct or Sage Business Cloud. 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.

    Filterable fields: document_number, vendor_id, created_at, updated_at, last_synced_at.

    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_min, updated_at_max and last_synced_at_min fields are supported and not deprecated.

    Sortable fields: document_number, vendor_id, created_at, updated_at, last_synced_at.

    expandenumqueryOptional

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

    Must beplatform_data.
    document_numberstringfilterablequeryOptional

    Deprecated - use filter instead. The exact document number to filter on. Not currently supported on Sage Intacct or Sage Business Cloud.

    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

Support by integration
  • QuickBooks
    QuickBooks
  • Xero
    Xero
  • QuickBooks Desktop
    QuickBooks Desktop
  • NetSuite
    NetSuite
200
Example Response Body
JSON
1
{
2
"bills": [
3
{
4
"id": "00000000-0000-0000-0000-000000000000",
5
"platform_id": "12345678",
6
"account_id": "00000000-0000-0000-0000-000000000000",
7
"payment_terms_id": "00000000-0000-0000-0000-000000000000",
8
"subsidiary_id": "00000000-0000-0000-0000-000000000000",
9
"vendor_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
"amount_due": 9.34,
13
"currency_code": "USD",
14
"status": "partially_paid",
15
"total_amount": 14.34,
16
"document_number": "VENDBILL-1",
17
"memo": "Bill description",
18
"sub_total": 12.34,
19
"tax_amount": 2,
20
"total_discount": 0,
21
"currency_rate": "3.5",
22
"linked_purchase_orders": [
23
{
24
"id": "00000000-0000-0000-0000-000000000000"
25
}
26
],
27
"linked_credit_memos": [
28
{
29
"id": "00000000-0000-0000-0000-000000000000",
30
"allocated_date": "2023-01-02T02:34:56.000Z",
31
"allocated_amount": 2
32
}
33
],
34
"linked_payments": [
35
{
36
"id": "00000000-0000-0000-0000-000000000000",
37
"allocated_date": "2023-01-02T02:34:56.000Z",
38
"allocated_amount": 3
39
}
40
],
41
"line_items": [
42
{
43
"platform_id": "12345678",
44
"account_id": "00000000-0000-0000-0000-000000000000",
45
"class_id": "00000000-0000-0000-0000-000000000000",
46
"customer_id": "00000000-0000-0000-0000-000000000000",
47
"department_id": "00000000-0000-0000-0000-000000000000",
48
"location_id": "00000000-0000-0000-0000-000000000000",
49
"project_id": "00000000-0000-0000-0000-000000000000",
50
"tax_rate_id": "00000000-0000-0000-0000-000000000000",
51
"description": "A Rutter shirt.",
52
"discount_amount": 0,
53
"discount_percentage": 0,
54
"sub_total": 12.34,
55
"tax_amount": 2,
56
"total_amount": 14.34,
57
"item": {
58
"id": "00000000-0000-0000-0000-000000000000",
59
"quantity": 1,
60
"unit_amount": 12.34
61
}
62
}
63
],
64
"created_at": "2023-01-02T02:34:56.000Z",
65
"updated_at": "2023-01-02T02:34:56.000Z",
66
"last_synced_at": "2023-01-02T02:34:56.000Z",
67
"platform_url": "https://platform.com/resource?id=123",
68
"platform_data": {
69
"id": 123,
70
"data": "Varies by platform"
71
}
72
}
73
],
74
"next_cursor": "MTY3NDgzMTk0Ml82MDY4ZDI0ZC02NGRmLTRmN2EtYTM0Ny0zN2ZmNjY5MGVmMjU=",
75
"connection": {
76
"id": "00000000-0000-0000-0000-000000000000",
77
"orgId": "00000000-0000-0000-0000-000000000000",
78
"platform": "NETSUITE"
79
}
80
}

Fetch a Bill

GEThttps://production.rutterapi.com/versioned/accounting/bills/: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 currently supported on Sage Intacct or Sage Business Cloud.

    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

Support by integration
  • QuickBooks
    QuickBooks
  • Xero
    Xero
  • QuickBooks Desktop
    QuickBooks Desktop
  • NetSuite
    NetSuite
200
Example Response Body
JSON
1
{
2
"bill": {
3
"id": "00000000-0000-0000-0000-000000000000",
4
"platform_id": "12345678",
5
"account_id": "00000000-0000-0000-0000-000000000000",
6
"payment_terms_id": "00000000-0000-0000-0000-000000000000",
7
"subsidiary_id": "00000000-0000-0000-0000-000000000000",
8
"vendor_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
"amount_due": 9.34,
12
"currency_code": "USD",
13
"status": "partially_paid",
14
"total_amount": 14.34,
15
"document_number": "VENDBILL-1",
16
"memo": "Bill description",
17
"sub_total": 12.34,
18
"tax_amount": 2,
19
"total_discount": 0,
20
"currency_rate": "3.5",
21
"linked_purchase_orders": [
22
{
23
"id": "00000000-0000-0000-0000-000000000000"
24
}
25
],
26
"linked_credit_memos": [
27
{
28
"id": "00000000-0000-0000-0000-000000000000",
29
"allocated_date": "2023-01-02T02:34:56.000Z",
30
"allocated_amount": 2
31
}
32
],
33
"linked_payments": [
34
{
35
"id": "00000000-0000-0000-0000-000000000000",
36
"allocated_date": "2023-01-02T02:34:56.000Z",
37
"allocated_amount": 3
38
}
39
],
40
"line_items": [
41
{
42
"platform_id": "12345678",
43
"account_id": "00000000-0000-0000-0000-000000000000",
44
"class_id": "00000000-0000-0000-0000-000000000000",
45
"customer_id": "00000000-0000-0000-0000-000000000000",
46
"department_id": "00000000-0000-0000-0000-000000000000",
47
"location_id": "00000000-0000-0000-0000-000000000000",
48
"project_id": "00000000-0000-0000-0000-000000000000",
49
"tax_rate_id": "00000000-0000-0000-0000-000000000000",
50
"description": "A Rutter shirt.",
51
"discount_amount": 0,
52
"discount_percentage": 0,
53
"sub_total": 12.34,
54
"tax_amount": 2,
55
"total_amount": 14.34,
56
"item": {
57
"id": "00000000-0000-0000-0000-000000000000",
58
"quantity": 1,
59
"unit_amount": 12.34
60
}
61
}
62
],
63
"created_at": "2023-01-02T02:34:56.000Z",
64
"updated_at": "2023-01-02T02:34:56.000Z",
65
"last_synced_at": "2023-01-02T02:34:56.000Z",
66
"platform_url": "https://platform.com/resource?id=123",
67
"platform_data": {
68
"id": 123,
69
"data": "Varies by platform"
70
}
71
},
72
"connection": {
73
"id": "00000000-0000-0000-0000-000000000000",
74
"orgId": "00000000-0000-0000-0000-000000000000",
75
"platform": "NETSUITE"
76
}
77
}

Create a Bill

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

Request Parameters

    access_tokenstringqueryRequired

    The access token of the connection.

Request Body

    response_modeenumOptional

    The response mode for our async endpoints. prefer_sync allows calling the API in a best-effort, synchronous fashion and wait for the response. If this takes too long we will instead return the asynchronous response. This is the default behavior. async makes the API respond with the asynchronous response. See Asynchronous Operations.

    One ofasync or prefer_sync.
    billobject
    Show bill attributes

Response Body

Support by integration
  • QuickBooks
    QuickBooks
  • Xero
    Xero
  • QuickBooks Desktop
    QuickBooks Desktop
  • NetSuite
    NetSuite
Example Request Body
JSON
1
{
2
"bill": {
3
"subsidiary_id": "00000000-0000-0000-0000-000000000000",
4
"vendor_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
"currency_rate": "3.5",
9
"line_items": [
10
{
11
"account_id": "00000000-0000-0000-0000-000000000000",
12
"tax_rate_id": "00000000-0000-0000-0000-000000000000",
13
"total_amount": 12.34,
14
"description": "A Rutter shirt.",
15
"item": {
16
"id": "00000000-0000-0000-0000-000000000000",
17
"quantity": 1,
18
"unit_amount": 12.34
19
}
20
}
21
]
22
}
23
}
200
Example Response Body
JSON
1
{
2
"bill": {
3
"id": "00000000-0000-0000-0000-000000000000",
4
"platform_id": "12345678",
5
"account_id": "00000000-0000-0000-0000-000000000000",
6
"payment_terms_id": "00000000-0000-0000-0000-000000000000",
7
"subsidiary_id": "00000000-0000-0000-0000-000000000000",
8
"vendor_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
"amount_due": 9.34,
12
"currency_code": "USD",
13
"status": "partially_paid",
14
"total_amount": 14.34,
15
"document_number": "VENDBILL-1",
16
"memo": "Bill description",
17
"sub_total": 12.34,
18
"tax_amount": 2,
19
"total_discount": 0,
20
"currency_rate": "3.5",
21
"linked_purchase_orders": [
22
{
23
"id": "00000000-0000-0000-0000-000000000000"
24
}
25
],
26
"linked_credit_memos": [
27
{
28
"id": "00000000-0000-0000-0000-000000000000",
29
"allocated_date": "2023-01-02T02:34:56.000Z",
30
"allocated_amount": 2
31
}
32
],
33
"linked_payments": [
34
{
35
"id": "00000000-0000-0000-0000-000000000000",
36
"allocated_date": "2023-01-02T02:34:56.000Z",
37
"allocated_amount": 3
38
}
39
],
40
"line_items": [
41
{
42
"platform_id": "12345678",
43
"account_id": "00000000-0000-0000-0000-000000000000",
44
"class_id": "00000000-0000-0000-0000-000000000000",
45
"customer_id": "00000000-0000-0000-0000-000000000000",
46
"department_id": "00000000-0000-0000-0000-000000000000",
47
"location_id": "00000000-0000-0000-0000-000000000000",
48
"project_id": "00000000-0000-0000-0000-000000000000",
49
"tax_rate_id": "00000000-0000-0000-0000-000000000000",
50
"description": "A Rutter shirt.",
51
"discount_amount": 0,
52
"discount_percentage": 0,
53
"sub_total": 12.34,
54
"tax_amount": 2,
55
"total_amount": 14.34,
56
"item": {
57
"id": "00000000-0000-0000-0000-000000000000",
58
"quantity": 1,
59
"unit_amount": 12.34
60
}
61
}
62
],
63
"created_at": "2023-01-02T02:34:56.000Z",
64
"updated_at": "2023-01-02T02:34:56.000Z",
65
"last_synced_at": "2023-01-02T02:34:56.000Z",
66
"platform_url": "https://platform.com/resource?id=123",
67
"platform_data": {
68
"id": 123,
69
"data": "Varies by platform"
70
}
71
}
72
}

Update a Bill

PATCHhttps://production.rutterapi.com/versioned/accounting/bills/: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

    response_modeenumOptional

    The response mode for our async endpoints. prefer_sync allows calling the API in a best-effort, synchronous fashion and wait for the response. If this takes too long we will instead return the asynchronous response. This is the default behavior. async makes the API respond with the asynchronous response. See Asynchronous Operations.

    One ofasync or prefer_sync.
    billobject
    Show bill attributes

Response Body

Support by integration
  • QuickBooks
    QuickBooks
  • Xero
    Xero
  • QuickBooks Desktop
    QuickBooks Desktop
  • NetSuite
    NetSuite
Example Request Body
JSON
1
{
2
"bill": {
3
"memo": "Example Memo"
4
}
5
}
200
Example Response Body
JSON
1
{
2
"bill": {
3
"id": "00000000-0000-0000-0000-000000000000",
4
"platform_id": "12345678",
5
"account_id": "00000000-0000-0000-0000-000000000000",
6
"payment_terms_id": "00000000-0000-0000-0000-000000000000",
7
"subsidiary_id": "00000000-0000-0000-0000-000000000000",
8
"vendor_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
"amount_due": 9.34,
12
"currency_code": "USD",
13
"status": "partially_paid",
14
"total_amount": 14.34,
15
"document_number": "VENDBILL-1",
16
"memo": "Bill description",
17
"sub_total": 12.34,
18
"tax_amount": 2,
19
"total_discount": 0,
20
"currency_rate": "3.5",
21
"linked_purchase_orders": [
22
{
23
"id": "00000000-0000-0000-0000-000000000000"
24
}
25
],
26
"linked_credit_memos": [
27
{
28
"id": "00000000-0000-0000-0000-000000000000",
29
"allocated_date": "2023-01-02T02:34:56.000Z",
30
"allocated_amount": 2
31
}
32
],
33
"linked_payments": [
34
{
35
"id": "00000000-0000-0000-0000-000000000000",
36
"allocated_date": "2023-01-02T02:34:56.000Z",
37
"allocated_amount": 3
38
}
39
],
40
"line_items": [
41
{
42
"platform_id": "12345678",
43
"account_id": "00000000-0000-0000-0000-000000000000",
44
"class_id": "00000000-0000-0000-0000-000000000000",
45
"customer_id": "00000000-0000-0000-0000-000000000000",
46
"department_id": "00000000-0000-0000-0000-000000000000",
47
"location_id": "00000000-0000-0000-0000-000000000000",
48
"project_id": "00000000-0000-0000-0000-000000000000",
49
"tax_rate_id": "00000000-0000-0000-0000-000000000000",
50
"description": "A Rutter shirt.",
51
"discount_amount": 0,
52
"discount_percentage": 0,
53
"sub_total": 12.34,
54
"tax_amount": 2,
55
"total_amount": 14.34,
56
"item": {
57
"id": "00000000-0000-0000-0000-000000000000",
58
"quantity": 1,
59
"unit_amount": 12.34
60
}
61
}
62
],
63
"created_at": "2023-01-02T02:34:56.000Z",
64
"updated_at": "2023-01-02T02:34:56.000Z",
65
"last_synced_at": "2023-01-02T02:34:56.000Z",
66
"platform_url": "https://platform.com/resource?id=123",
67
"platform_data": {
68
"id": 123,
69
"data": "Varies by platform"
70
}
71
}
72
}

Delete a Bill

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

Request Parameters

    idstringpathRequired

    The Rutter generated unique ID of the object.

    access_tokenstringqueryRequired

    The access token of the connection.

Request Body

    response_modeenumOptional

    The response mode for our async endpoints. prefer_sync allows calling the API in a best-effort, synchronous fashion and wait for the response. If this takes too long we will instead return the asynchronous response. This is the default behavior. async makes the API respond with the asynchronous response. See Asynchronous Operations.

    One ofasync or prefer_sync.

Response Body

Support by integration
  • QuickBooks
    QuickBooks
  • Xero
    Xero
  • NetSuite
    NetSuite
200
Example Response Body
JSON
1
{
2
"code": "deleted",
3
"success": true
4
}

Have questions?

Contact support for personalized guidance.

Contact support