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.
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. This feature is currently only supported on NetSuite.
vendor_id
stringnullableThe 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 due on the bill.
document_number
stringnullableThe buyer facing document number of the bill.
memo
stringnullableMemo or description 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.
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
attributescreated_at
stringnullableThe ISO 8601 timestamp that the bill was created.
updated_at
stringnullableThe ISO 8601 timestamp that the bill was last updated.
platform_data
objectoptionalThe raw platform data corresponding to the Rutter object.
platform_data
attributes{
"id": "00000000-0000-0000-0000-000000000000",
"platform_id": "12345678",
"account_id": "00000000-0000-0000-0000-000000000000",
"payment_terms_id": "00000000-0000-0000-0000-000000000000",
"subsidiary_id": "00000000-0000-0000-0000-000000000000",
"vendor_id": "00000000-0000-0000-0000-000000000000",
"due_date": "2023-01-02T02:34:56.000Z",
"issue_date": "2023-01-02T02:34:56.000Z",
"amount_due": 9.34,
"currency_code": "USD",
"status": "partially_paid",
"total_amount": 14.34,
"document_number": "VENDBILL-1",
"memo": "Bill description",
"sub_total": 12.34,
"tax_amount": 2,
"total_discount": 0,
"linked_purchase_orders": [
{
"id": "00000000-0000-0000-0000-000000000000"
}
],
"linked_credit_memos": [
{
"id": "00000000-0000-0000-0000-000000000000",
"allocated_date": "2023-01-02T02:34:56.000Z",
"allocated_amount": 2
}
],
"linked_payments": [
{
"id": "00000000-0000-0000-0000-000000000000",
"allocated_date": "2023-01-02T02:34:56.000Z",
"allocated_amount": 3
}
],
"line_items": [
{
"account_id": "00000000-0000-0000-0000-000000000000",
"class_id": "00000000-0000-0000-0000-000000000000",
"customer_id": "00000000-0000-0000-0000-000000000000",
"department_id": "00000000-0000-0000-0000-000000000000",
"location_id": "00000000-0000-0000-0000-000000000000",
"tax_rate_id": "00000000-0000-0000-0000-000000000000",
"description": "A Rutter shirt.",
"discount_amount": 0,
"discount_percentage": 0,
"sub_total": 12.34,
"tax_amount": 2,
"total_amount": 14.34,
"item": {
"id": "00000000-0000-0000-0000-000000000000",
"quantity": 1,
"unit_amount": 12.34
}
}
],
"created_at": "2023-01-02T02:34:56.000Z",
"updated_at": "2023-01-02T02:34:56.000Z",
"platform_data": {
"id": 123,
"data": "Varies by platform"
}
}
List Bills
GET /accounting/billsRequest Parameters
access_token
stringqueryThe access token of the connection.
cursor
stringoptionalqueryThe cursor to use for pagination. This value is passed in from next_cursor
field in a previous request.
expand
enumoptionalqueryUsed to request inclusion of optional objects.
force_fetch
enumoptionalqueryForce a response even if the underlying connection hasn't finished the initial sync.
limit
integeroptionalqueryThe limit on the number of entities returned.
updated_at_max
integeroptionalqueryUnix Timestamp in milliseconds representing the maximum updated_at datetime to fetch entities from.
updated_at_min
integeroptionalqueryUnix Timestamp in milliseconds representing the minimum updated_at datetime to fetch entities from.
Response Body
connection
objectconnection
attributesbills
arraybills
attributesnext_cursor
stringnullableoptional{
"connection": {
"id": "00000000-0000-0000-0000-000000000000",
"orgId": "00000000-0000-0000-0000-000000000000",
"platform": "NETSUITE"
},
"bills": [
{
"id": "00000000-0000-0000-0000-000000000000",
"platform_id": "12345678",
"account_id": "00000000-0000-0000-0000-000000000000",
"payment_terms_id": "00000000-0000-0000-0000-000000000000",
"subsidiary_id": "00000000-0000-0000-0000-000000000000",
"vendor_id": "00000000-0000-0000-0000-000000000000",
"due_date": "2023-01-02T02:34:56.000Z",
"issue_date": "2023-01-02T02:34:56.000Z",
"amount_due": 9.34,
"currency_code": "USD",
"status": "partially_paid",
"total_amount": 14.34,
"document_number": "VENDBILL-1",
"memo": "Bill description",
"sub_total": 12.34,
"tax_amount": 2,
"total_discount": 0,
"linked_purchase_orders": [
{
"id": "00000000-0000-0000-0000-000000000000"
}
],
"linked_credit_memos": [
{
"id": "00000000-0000-0000-0000-000000000000",
"allocated_date": "2023-01-02T02:34:56.000Z",
"allocated_amount": 2
}
],
"linked_payments": [
{
"id": "00000000-0000-0000-0000-000000000000",
"allocated_date": "2023-01-02T02:34:56.000Z",
"allocated_amount": 3
}
],
"line_items": [
{
"account_id": "00000000-0000-0000-0000-000000000000",
"class_id": "00000000-0000-0000-0000-000000000000",
"customer_id": "00000000-0000-0000-0000-000000000000",
"department_id": "00000000-0000-0000-0000-000000000000",
"location_id": "00000000-0000-0000-0000-000000000000",
"tax_rate_id": "00000000-0000-0000-0000-000000000000",
"description": "A Rutter shirt.",
"discount_amount": 0,
"discount_percentage": 0,
"sub_total": 12.34,
"tax_amount": 2,
"total_amount": 14.34,
"item": {
"id": "00000000-0000-0000-0000-000000000000",
"quantity": 1,
"unit_amount": 12.34
}
}
],
"created_at": "2023-01-02T02:34:56.000Z",
"updated_at": "2023-01-02T02:34:56.000Z",
"platform_data": {
"id": 123,
"data": "Varies by platform"
}
}
],
"next_cursor": "MTY3NDgzMTk0Ml82MDY4ZDI0ZC02NGRmLTRmN2EtYTM0Ny0zN2ZmNjY5MGVmMjU="
}
Fetch a Bill
GET /accounting/bills/:idRequest Parameters
id
stringpathThe Rutter generated unique ID of the object.
access_token
stringqueryThe access token of the connection.
force_fetch
enumoptionalqueryForce a response even if the underlying connection hasn't finished the initial sync.
Response Body
connection
objectconnection
attributesbill
objectbill
attributes{
"connection": {
"id": "00000000-0000-0000-0000-000000000000",
"orgId": "00000000-0000-0000-0000-000000000000",
"platform": "NETSUITE"
},
"bill": {
"id": "00000000-0000-0000-0000-000000000000",
"platform_id": "12345678",
"account_id": "00000000-0000-0000-0000-000000000000",
"payment_terms_id": "00000000-0000-0000-0000-000000000000",
"subsidiary_id": "00000000-0000-0000-0000-000000000000",
"vendor_id": "00000000-0000-0000-0000-000000000000",
"due_date": "2023-01-02T02:34:56.000Z",
"issue_date": "2023-01-02T02:34:56.000Z",
"amount_due": 9.34,
"currency_code": "USD",
"status": "partially_paid",
"total_amount": 14.34,
"document_number": "VENDBILL-1",
"memo": "Bill description",
"sub_total": 12.34,
"tax_amount": 2,
"total_discount": 0,
"linked_purchase_orders": [
{
"id": "00000000-0000-0000-0000-000000000000"
}
],
"linked_credit_memos": [
{
"id": "00000000-0000-0000-0000-000000000000",
"allocated_date": "2023-01-02T02:34:56.000Z",
"allocated_amount": 2
}
],
"linked_payments": [
{
"id": "00000000-0000-0000-0000-000000000000",
"allocated_date": "2023-01-02T02:34:56.000Z",
"allocated_amount": 3
}
],
"line_items": [
{
"account_id": "00000000-0000-0000-0000-000000000000",
"class_id": "00000000-0000-0000-0000-000000000000",
"customer_id": "00000000-0000-0000-0000-000000000000",
"department_id": "00000000-0000-0000-0000-000000000000",
"location_id": "00000000-0000-0000-0000-000000000000",
"tax_rate_id": "00000000-0000-0000-0000-000000000000",
"description": "A Rutter shirt.",
"discount_amount": 0,
"discount_percentage": 0,
"sub_total": 12.34,
"tax_amount": 2,
"total_amount": 14.34,
"item": {
"id": "00000000-0000-0000-0000-000000000000",
"quantity": 1,
"unit_amount": 12.34
}
}
],
"created_at": "2023-01-02T02:34:56.000Z",
"updated_at": "2023-01-02T02:34:56.000Z",
"platform_data": {
"id": 123,
"data": "Varies by platform"
}
}
}
Create a Bill
POST /accounting/billsRequest Parameters
access_token
stringqueryThe access token of the connection.
Request Body
bill
objectbill
attributesResponse Body
Any of:
bill
objectbill
attributesasync_response
objectoptionalasync_response
attributeserrors
arrayoptionalerrors
attributes{
"bill": {
"subsidiary_id": "00000000-0000-0000-0000-000000000000",
"vendor_id": "00000000-0000-0000-0000-000000000000",
"due_date": "2023-01-02T02:34:56.000Z",
"issue_date": "2023-01-02T02:34:56.000Z",
"currency_code": "USD",
"line_items": [
{
"account_id": "00000000-0000-0000-0000-000000000000",
"tax_rate_id": "00000000-0000-0000-0000-000000000000",
"total_amount": 12.34,
"description": "A Rutter shirt.",
"item": {
"id": "00000000-0000-0000-0000-000000000000",
"quantity": 1,
"unit_amount": 12.34
}
}
]
}
}
{
"bill": {
"id": "00000000-0000-0000-0000-000000000000",
"platform_id": "12345678",
"account_id": "00000000-0000-0000-0000-000000000000",
"payment_terms_id": "00000000-0000-0000-0000-000000000000",
"subsidiary_id": "00000000-0000-0000-0000-000000000000",
"vendor_id": "00000000-0000-0000-0000-000000000000",
"due_date": "2023-01-02T02:34:56.000Z",
"issue_date": "2023-01-02T02:34:56.000Z",
"amount_due": 9.34,
"currency_code": "USD",
"status": "partially_paid",
"total_amount": 14.34,
"document_number": "VENDBILL-1",
"memo": "Bill description",
"sub_total": 12.34,
"tax_amount": 2,
"total_discount": 0,
"linked_purchase_orders": [
{
"id": "00000000-0000-0000-0000-000000000000"
}
],
"linked_credit_memos": [
{
"id": "00000000-0000-0000-0000-000000000000",
"allocated_date": "2023-01-02T02:34:56.000Z",
"allocated_amount": 2
}
],
"linked_payments": [
{
"id": "00000000-0000-0000-0000-000000000000",
"allocated_date": "2023-01-02T02:34:56.000Z",
"allocated_amount": 3
}
],
"line_items": [
{
"account_id": "00000000-0000-0000-0000-000000000000",
"class_id": "00000000-0000-0000-0000-000000000000",
"customer_id": "00000000-0000-0000-0000-000000000000",
"department_id": "00000000-0000-0000-0000-000000000000",
"location_id": "00000000-0000-0000-0000-000000000000",
"tax_rate_id": "00000000-0000-0000-0000-000000000000",
"description": "A Rutter shirt.",
"discount_amount": 0,
"discount_percentage": 0,
"sub_total": 12.34,
"tax_amount": 2,
"total_amount": 14.34,
"item": {
"id": "00000000-0000-0000-0000-000000000000",
"quantity": 1,
"unit_amount": 12.34
}
}
],
"created_at": "2023-01-02T02:34:56.000Z",
"updated_at": "2023-01-02T02:34:56.000Z",
"platform_data": {
"id": 123,
"data": "Varies by platform"
}
}
}
Update a Bill
PATCH /accounting/bills/:idAll fields are conditionally required. This means that 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
bill
objectbill
attributesResponse Body
Any of:
bill
objectbill
attributesasync_response
objectoptionalasync_response
attributeserrors
arrayoptionalerrors
attributes{
"bill": {
"memo": "Example Memo"
}
}
{
"bill": {
"id": "00000000-0000-0000-0000-000000000000",
"platform_id": "12345678",
"account_id": "00000000-0000-0000-0000-000000000000",
"payment_terms_id": "00000000-0000-0000-0000-000000000000",
"subsidiary_id": "00000000-0000-0000-0000-000000000000",
"vendor_id": "00000000-0000-0000-0000-000000000000",
"due_date": "2023-01-02T02:34:56.000Z",
"issue_date": "2023-01-02T02:34:56.000Z",
"amount_due": 9.34,
"currency_code": "USD",
"status": "partially_paid",
"total_amount": 14.34,
"document_number": "VENDBILL-1",
"memo": "Bill description",
"sub_total": 12.34,
"tax_amount": 2,
"total_discount": 0,
"linked_purchase_orders": [
{
"id": "00000000-0000-0000-0000-000000000000"
}
],
"linked_credit_memos": [
{
"id": "00000000-0000-0000-0000-000000000000",
"allocated_date": "2023-01-02T02:34:56.000Z",
"allocated_amount": 2
}
],
"linked_payments": [
{
"id": "00000000-0000-0000-0000-000000000000",
"allocated_date": "2023-01-02T02:34:56.000Z",
"allocated_amount": 3
}
],
"line_items": [
{
"account_id": "00000000-0000-0000-0000-000000000000",
"class_id": "00000000-0000-0000-0000-000000000000",
"customer_id": "00000000-0000-0000-0000-000000000000",
"department_id": "00000000-0000-0000-0000-000000000000",
"location_id": "00000000-0000-0000-0000-000000000000",
"tax_rate_id": "00000000-0000-0000-0000-000000000000",
"description": "A Rutter shirt.",
"discount_amount": 0,
"discount_percentage": 0,
"sub_total": 12.34,
"tax_amount": 2,
"total_amount": 14.34,
"item": {
"id": "00000000-0000-0000-0000-000000000000",
"quantity": 1,
"unit_amount": 12.34
}
}
],
"created_at": "2023-01-02T02:34:56.000Z",
"updated_at": "2023-01-02T02:34:56.000Z",
"platform_data": {
"id": 123,
"data": "Varies by platform"
}
}
}