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
id
stringThe Rutter generated unique ID of the bill.
platform_id
stringThe platform specific ID of the bill.
account_id
stringnullableThe 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_id
stringnullableAn array of Rutter IDs of Payment Terms linked to the bill.
subsidiary_id
stringnullableThe Rutter ID of the Subsidiary linked to the bill. Supported for NetSuite.
vendor_id
stringfilterablenullableThe Rutter ID of the Vendor linked to the bill.
due_date
stringnullableThe ISO 8601 timestamp for the due date of the bill.
issue_date
stringThe ISO 8601 timestamp for the issue date of the bill.
amount_due
numberThe current amount due on the bill. Represents the remainder after bill payments or bill credit memos are applied against the total amount.
currency_code
enumThe ISO 4217 currency code of the bill.
status
enumThe status of the bill.
total_amount
numberThe total amount of the bill.
document_number
stringfilterablenullableThe buyer facing document number of the bill.
memo
stringnullableThe memo of the bill.
sub_total
numbernullableThe subtotal of the bill, without the tax amount.
tax_amount
numbernullableThe tax amount applied to the bill.
total_discount
numbernullableThe discount amount applied to the bill.
currency_rate
stringnullableOptionalThe exchange rate between the currency of the bill and the business default currency. Supported for NetSuite, QuickBooks, and Xero.
linked_purchase_orders
arrayAn array of Rutter IDs of Purchase Orders linked to the bill.
linked_purchase_orders
attributeslinked_credit_memos
arrayAn array of Rutter IDs of Bill Credit Memos applied against the bill.
linked_credit_memos
attributeslinked_payments
arrayAn array of Rutter IDs of Bill Payments applied against the bill.
linked_payments
attributesline_items
arrayAn array of line items associated with the bill.
line_items
attributesadditional_fields
objectOptionalAdditional fields required only for a narrow set of use cases.
additional_fields
attributescreated_at
stringfilterablenullableThe ISO 8601 timestamp that the bill was created.
updated_at
stringfilterablenullableThe ISO 8601 timestamp that the bill was last updated.
last_synced_at
stringfilterableThe ISO 8601 timestamp when the bill was last synced by Rutter.
platform_url
stringnullableA 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_data
objectOptionalThe raw platform data corresponding to the Rutter object.
List Bills
Request Parameters
access_token
stringqueryRequiredThe access token of the connection.
cursor
stringqueryOptionalUsed to paginate to the next batch of objects. Should be a copy of the next_cursor
value from the previous response.
limit
integerqueryOptionalUsed to limit the number of returned objects. Defaults to 50.
filter
stringqueryOptionalNot 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
.
sort
stringqueryOptionalUsed 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
.
expand
enumqueryOptionalInclude platform specific data (includes additional fields not provided by the Rutter object).
document_number
stringfilterablequeryOptionalDeprecated - use filter
instead. The exact document number to filter on. Not currently supported on Sage Intacct or Sage Business Cloud.
last_synced_at_min
integerqueryOptionalDeprecated - 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_max
integerqueryOptionalDeprecated - 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_min
integerqueryOptionalDeprecated - 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_fetch
enumqueryOptionalUsed to force a response even if the underlying connection has not finished its initial sync.
Response Body
- QuickBooks
- Xero
- QuickBooks Desktop
- NetSuite
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
Request Parameters
id
stringpathRequiredThe unique ID of the object.
access_token
stringqueryRequiredThe access token of the connection.
id_type
enumqueryOptionalUsed to indicate the type of id
that is supplied. Defaults to rutter
. Not currently supported on Sage Intacct or Sage Business Cloud.
force_fetch
enumqueryOptionalUsed to force a response even if the underlying connection has not finished its initial sync.
Response Body
- QuickBooks
- Xero
- QuickBooks Desktop
- NetSuite
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
Request Parameters
access_token
stringqueryRequiredThe access token of the connection.
Request Body
response_mode
enumOptionalThe 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.
bill
objectbill
attributesResponse Body
- QuickBooks
- Xero
- QuickBooks Desktop
- NetSuite
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}
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
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
stringpathRequiredThe Rutter generated unique ID of the object.
access_token
stringqueryRequiredThe access token of the connection.
Request Body
response_mode
enumOptionalThe 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.
bill
objectbill
attributesResponse Body
- QuickBooks
- Xero
- QuickBooks Desktop
- NetSuite
1{
2 "bill": {
3 "memo": "Example Memo"
4 }
5}
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
Request Parameters
id
stringpathRequiredThe Rutter generated unique ID of the object.
access_token
stringqueryRequiredThe access token of the connection.
Request Body
response_mode
enumOptionalThe 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.
Response Body
- QuickBooks
- Xero
- NetSuite
1{
2 "code": "deleted",
3 "success": true
4}
Have questions?
Contact support for personalized guidance.