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_idstringOptional

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_idstringnullable

The Rutter ID of the Vendor linked to the bill.

due_datestring

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

issue_datestring

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

currencyenum

The ISO 4217 currency code of the bill.

One ofAEDAFNALLAMDANGAOAARSAUDAWGAZNBAMBBDBDTBGNBHDBIFBMDBNDBOBBOVBRLBSDBTNBWPBYRBZDCADCDFCHECHFCHWCLFCLPCNYCOPCOUCRCCUCCUPCVECZKDJFDKKDOPDZDEGPERNETBEURFJDFKPGBPGELGHSGIPGMDGNFGTQGYDHKDHNLHRKHTGHUFIDRILSINRIQDIRRISKJMDJODJPYKESKGSKHRKMFKPWKRWKWDKYDKZTLAKLBPLKRLRDLSLLTLLVLLYDMADMDLMGAMKDMMKMNTMOPMROMURMVRMWKMXNMXVMYRMZNNADNGNNIONOKNPRNZDOMRPABPENPGKPHPPKRPLNPYGQARRONRSDRUBRWFSARSBDSCRSDGSEKSGDSHPSLLSOSSRDSSPSTDSVCSYPSZLTHBTJSTMTTNDTOPTRYTTDTWDTZSUAHUGXUSDUSNUSSUYIUYUUYWUZSVEFVNDVUVWSTXAFXAGXAUXBAXBBXBCXBDXCDXDRXFUXOFXPDXPFXPTXTSXXXYERZAR, or ZMW.
statusenum

The status of the bill.

One ofopenpartially_paidpaidvoiddraftunknown, or submitted.
document_numberstringfilterablenullable

The buyer facing document number of the bill.

memostringnullable

The memo of the bill.

amount_duestring

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

purchase_ordersarray

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

Show purchase_orders attributes
total_amountstring

The total amount of the bill.

sub_totalstringnullable

The subtotal of the bill, without the tax amount.

tax_amountstringnullable

The total tax amount applied to the bill.

total_discountstringnullable

The total amount of discounts 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.

paymentsarray

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

Show payments attributes
line_itemsarray

An array of line items associated with the bill.

Show line_items 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

    Used to specify criteria to filter out the objects returned. Supports all filterable fields. Check Filtering Objects for more information. Not supported on QuickBooks Desktop, Sage Intacct, or Dynamics 365.

    sortstringqueryOptional

    Used to sort the returned objects, e.g. last_synced_at ASC. Supports all filterable fields except on QuickBooks Desktop, Sage Intacct, and Dynamics 365. For those platforms only updated_at and last_synced_at fields are supported. If a value is provided but ASC or DESC is not, defaults to ASC. If omitted, defaults to updated_at DESC.

    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 supported on Sage Intacct, or Dynamics 365.

    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

    billsarray
    Show bills attributes
    next_cursorstringnullableOptional
    connectionobject
    Show connection attributes
Support by integration
  • QuickBooks
    QuickBooks
  • NetSuite
    NetSuite
  • Xero
    Xero
  • QuickBooks Desktop
    QuickBooks Desktop
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
"currency": "USD",
13
"status": "partially_paid",
14
"document_number": "VENDBILL-1",
15
"memo": "Bill description",
16
"amount_due": "9.34",
17
"purchase_orders": [
18
{
19
"id": "00000000-0000-0000-0000-000000000000"
20
}
21
],
22
"total_amount": "14.34",
23
"sub_total": "12.34",
24
"tax_amount": "2",
25
"total_discount": "0",
26
"currency_rate": "3.5",
27
"payments": [
28
{
29
"id": "00000000-0000-0000-0000-000000000000",
30
"date": "2023-01-02T02:34:56.000Z",
31
"type": "BILL_PAYMENT",
32
"amount": "3"
33
},
34
{
35
"id": "00000000-0000-0000-0000-000000000000",
36
"date": "2023-01-02T02:34:56.000Z",
37
"type": "BILL_CREDIT_MEMO",
38
"amount": "2"
39
}
40
],
41
"line_items": [
42
{
43
"id": "00000000-0000-0000-0000-000000000000",
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
"item_id": "00000000-0000-0000-0000-000000000000",
49
"location_id": "00000000-0000-0000-0000-000000000000",
50
"tax_rate_id": "00000000-0000-0000-0000-000000000000",
51
"description": "A Rutter shirt.",
52
"amount": "14.34",
53
"discount_amount": "0",
54
"discount_percentage": "0",
55
"quantity": "1",
56
"sub_total": "12.34",
57
"tax_amount": "2",
58
"unit_amount": "12.34",
59
"item": {
60
"id": "00000000-0000-0000-0000-000000000000",
61
"quantity": 1,
62
"unit_amount": 12.34
63
}
64
}
65
],
66
"created_at": "2023-01-02T02:34:56.000Z",
67
"updated_at": "2023-01-02T02:34:56.000Z",
68
"last_synced_at": "2023-01-02T02:34:56.000Z",
69
"platform_url": "https://platform.com/resource?id=123",
70
"platform_data": {
71
"id": 123,
72
"data": "Varies by platform"
73
}
74
}
75
],
76
"next_cursor": "MTY3NDgzMTk0Ml82MDY4ZDI0ZC02NGRmLTRmN2EtYTM0Ny0zN2ZmNjY5MGVmMjU=",
77
"connection": {
78
"id": "00000000-0000-0000-0000-000000000000",
79
"orgId": "00000000-0000-0000-0000-000000000000",
80
"platform": "NETSUITE"
81
}
82
}

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 supported on QuickBooks Desktop, Sage Intacct, or Dynamics 365.

    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

    billobject
    Show bill attributes
    connectionobject
    Show connection attributes
Support by integration
  • QuickBooks
    QuickBooks
  • NetSuite
    NetSuite
  • Xero
    Xero
  • QuickBooks Desktop
    QuickBooks Desktop
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
"currency": "USD",
12
"status": "partially_paid",
13
"document_number": "VENDBILL-1",
14
"memo": "Bill description",
15
"amount_due": "9.34",
16
"purchase_orders": [
17
{
18
"id": "00000000-0000-0000-0000-000000000000"
19
}
20
],
21
"total_amount": "14.34",
22
"sub_total": "12.34",
23
"tax_amount": "2",
24
"total_discount": "0",
25
"currency_rate": "3.5",
26
"payments": [
27
{
28
"id": "00000000-0000-0000-0000-000000000000",
29
"date": "2023-01-02T02:34:56.000Z",
30
"type": "BILL_PAYMENT",
31
"amount": "3"
32
},
33
{
34
"id": "00000000-0000-0000-0000-000000000000",
35
"date": "2023-01-02T02:34:56.000Z",
36
"type": "BILL_CREDIT_MEMO",
37
"amount": "2"
38
}
39
],
40
"line_items": [
41
{
42
"id": "00000000-0000-0000-0000-000000000000",
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
"item_id": "00000000-0000-0000-0000-000000000000",
48
"location_id": "00000000-0000-0000-0000-000000000000",
49
"tax_rate_id": "00000000-0000-0000-0000-000000000000",
50
"description": "A Rutter shirt.",
51
"amount": "14.34",
52
"discount_amount": "0",
53
"discount_percentage": "0",
54
"quantity": "1",
55
"sub_total": "12.34",
56
"tax_amount": "2",
57
"unit_amount": "12.34",
58
"item": {
59
"id": "00000000-0000-0000-0000-000000000000",
60
"quantity": 1,
61
"unit_amount": 12.34
62
}
63
}
64
],
65
"created_at": "2023-01-02T02:34:56.000Z",
66
"updated_at": "2023-01-02T02:34:56.000Z",
67
"last_synced_at": "2023-01-02T02:34:56.000Z",
68
"platform_url": "https://platform.com/resource?id=123",
69
"platform_data": {
70
"id": 123,
71
"data": "Varies by platform"
72
}
73
},
74
"connection": {
75
"id": "00000000-0000-0000-0000-000000000000",
76
"orgId": "00000000-0000-0000-0000-000000000000",
77
"platform": "NETSUITE"
78
}
79
}

Create a Bill

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

Request Parameters

    access_tokenstringqueryRequired

    The access token of the connection.

Request Body

    billobject
    Show bill attributes

Response Body

    Any of:

    billobject
    Show bill attributes
    async_responseobjectOptional
    Show async_response attributes
    errorsarrayOptional
    Show errors attributes
Support by integration
  • QuickBooks
    QuickBooks
  • NetSuite
    NetSuite
  • Xero
    Xero
  • QuickBooks Desktop
    QuickBooks Desktop
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": "USD",
8
"currency_rate": "3.5",
9
"line_items": [
10
{
11
"account_id": "00000000-0000-0000-0000-000000000000",
12
"amount": 12.34,
13
"description": "A Rutter shirt."
14
}
15
]
16
}
17
}
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
"currency": "USD",
12
"status": "partially_paid",
13
"document_number": "VENDBILL-1",
14
"memo": "Bill description",
15
"amount_due": "9.34",
16
"purchase_orders": [
17
{
18
"id": "00000000-0000-0000-0000-000000000000"
19
}
20
],
21
"total_amount": "14.34",
22
"sub_total": "12.34",
23
"tax_amount": "2",
24
"total_discount": "0",
25
"currency_rate": "3.5",
26
"payments": [
27
{
28
"id": "00000000-0000-0000-0000-000000000000",
29
"date": "2023-01-02T02:34:56.000Z",
30
"type": "BILL_PAYMENT",
31
"amount": "3"
32
},
33
{
34
"id": "00000000-0000-0000-0000-000000000000",
35
"date": "2023-01-02T02:34:56.000Z",
36
"type": "BILL_CREDIT_MEMO",
37
"amount": "2"
38
}
39
],
40
"line_items": [
41
{
42
"id": "00000000-0000-0000-0000-000000000000",
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
"item_id": "00000000-0000-0000-0000-000000000000",
48
"location_id": "00000000-0000-0000-0000-000000000000",
49
"tax_rate_id": "00000000-0000-0000-0000-000000000000",
50
"description": "A Rutter shirt.",
51
"amount": "14.34",
52
"discount_amount": "0",
53
"discount_percentage": "0",
54
"quantity": "1",
55
"sub_total": "12.34",
56
"tax_amount": "2",
57
"unit_amount": "12.34",
58
"item": {
59
"id": "00000000-0000-0000-0000-000000000000",
60
"quantity": 1,
61
"unit_amount": 12.34
62
}
63
}
64
],
65
"created_at": "2023-01-02T02:34:56.000Z",
66
"updated_at": "2023-01-02T02:34:56.000Z",
67
"last_synced_at": "2023-01-02T02:34:56.000Z",
68
"platform_url": "https://platform.com/resource?id=123",
69
"platform_data": {
70
"id": 123,
71
"data": "Varies by platform"
72
}
73
}
74
}

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

    billobject
    Show bill attributes

Response Body

    Any of:

    billobject
    Show bill attributes
    async_responseobjectOptional
    Show async_response attributes
    errorsarrayOptional
    Show errors attributes
Support by integration
  • QuickBooks
    QuickBooks
  • NetSuite
    NetSuite
  • Xero
    Xero
  • QuickBooks Desktop
    QuickBooks Desktop
Example Request Body
JSON
1
{
2
"bill": {
3
"memo": "Example Memo"
4
}
5
}
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
"currency": "USD",
12
"status": "partially_paid",
13
"document_number": "VENDBILL-1",
14
"memo": "Bill description",
15
"amount_due": "9.34",
16
"purchase_orders": [
17
{
18
"id": "00000000-0000-0000-0000-000000000000"
19
}
20
],
21
"total_amount": "14.34",
22
"sub_total": "12.34",
23
"tax_amount": "2",
24
"total_discount": "0",
25
"currency_rate": "3.5",
26
"payments": [
27
{
28
"id": "00000000-0000-0000-0000-000000000000",
29
"date": "2023-01-02T02:34:56.000Z",
30
"type": "BILL_PAYMENT",
31
"amount": "3"
32
},
33
{
34
"id": "00000000-0000-0000-0000-000000000000",
35
"date": "2023-01-02T02:34:56.000Z",
36
"type": "BILL_CREDIT_MEMO",
37
"amount": "2"
38
}
39
],
40
"line_items": [
41
{
42
"id": "00000000-0000-0000-0000-000000000000",
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
"item_id": "00000000-0000-0000-0000-000000000000",
48
"location_id": "00000000-0000-0000-0000-000000000000",
49
"tax_rate_id": "00000000-0000-0000-0000-000000000000",
50
"description": "A Rutter shirt.",
51
"amount": "14.34",
52
"discount_amount": "0",
53
"discount_percentage": "0",
54
"quantity": "1",
55
"sub_total": "12.34",
56
"tax_amount": "2",
57
"unit_amount": "12.34",
58
"item": {
59
"id": "00000000-0000-0000-0000-000000000000",
60
"quantity": 1,
61
"unit_amount": 12.34
62
}
63
}
64
],
65
"created_at": "2023-01-02T02:34:56.000Z",
66
"updated_at": "2023-01-02T02:34:56.000Z",
67
"last_synced_at": "2023-01-02T02:34:56.000Z",
68
"platform_url": "https://platform.com/resource?id=123",
69
"platform_data": {
70
"id": 123,
71
"data": "Varies by platform"
72
}
73
}
74
}

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.

Response Body

    Any of:

    deleted_billobject
    Show deleted_bill attributes
    async_responseobjectOptional
    Show async_response attributes
    errorsarrayOptional
    Show errors attributes
Support by integration
  • QuickBooks
    QuickBooks
  • NetSuite
    NetSuite
  • Xero
    Xero
Example Response Body
JSON
1
{
2
"deleted_bill": {
3
"code": "deleted",
4
"success": true
5
}
6
}

Have questions?

Contact support for personalized guidance.

Contact support