Sales Receipts
The SalesReceipt Object
A Rutter Sales Receipt represents a document that records the sale of goods or services to a customer where payment is received at the time of sale. Unlike invoices which request payment, sales receipts confirm that payment has already been received and serve as proof of purchase for the customer.
Properties
idstringThe Rutter generated unique ID of the sales receipt.
platform_idstringThe platform specific ID of the sales receipt.
customer_idstringfilterablenullableThe Rutter ID of the Customers linked to the sales receipt.
issue_datestringnullableThe ISO 8601 timestamp for when the sales receipt was issued.
amount_duenumbernullableThe current amount due on the sales receipt.
currency_codeenumnullableThe ISO 4217 currency code of the sales receipt.
discount_amountnumbernullableThe total amount of discounts applied to the sales receipt.
document_numberstringfilterablenullableThe seller facing document number of the sales receipt.
memostringnullableThe customer-facing memo on the sales receipt. Supported for QuickBooks.
referencestringfilterablenullableThe reference identifier of the sales receipt. Supported for QuickBooks.
total_amountnumbernullableThe total amount on the sales receipt.
linked_transactionsarrayAn array of transactions linked to the sales receipt.
linked_transactions attributesline_itemsarrayAn array of line items associated with the sales receipt.
line_items attributesadditional_fieldsobjectOptionalAdditional fields required only for a narrow set of use cases.
additional_fields attributescreated_atstringfilterablenullableThe ISO 8601 timestamp that the sales receipt was created.
updated_atstringfilterablenullableThe ISO 8601 timestamp that the sales receipt was last updated.
last_synced_atstringfilterableThe ISO 8601 timestamp when the sales receipt was last synced by Rutter.
platform_urlstringnullableA 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_dataobjectOptionalThe raw platform data corresponding to the Rutter object.
List Sales Receipts
Request Parameters
access_tokenstringqueryRequiredThe access token of the connection.
cursorstringqueryOptionalUsed to paginate to the next batch of objects. Should be a copy of the next_cursor value from the previous response.
limitintegerqueryOptionalUsed to limit the number of returned objects. Defaults to 50.
filterstringqueryOptionalNot 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, customer_id, reference, created_at, updated_at, last_synced_at.
sortstringqueryOptionalUsed 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 Sage Business Cloud. 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, customer_id, reference, created_at, updated_at, last_synced_at.
expandenumqueryOptionalInclude platform specific data (includes additional fields not provided by the Rutter object).
last_synced_at_minintegerqueryOptionalDeprecated - 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_maxintegerqueryOptionalDeprecated - 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_minintegerqueryOptionalDeprecated - 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_fetchenumqueryOptionalUsed to force a response even if the underlying connection has not finished its initial sync.
Response Body
1{
2 "sales_receipts": [
3 {
4 "id": "00000000-0000-0000-0000-000000000000",
5 "platform_id": "12345678",
6 "customer_id": "00000000-0000-0000-0000-000000000000",
7 "issue_date": "2023-01-02T02:34:56.000Z",
8 "amount_due": 0,
9 "currency_code": "USD",
10 "discount_amount": 0,
11 "document_number": "SR-001",
12 "memo": "Customer-facing memo",
13 "reference": "REF-001",
14 "total_amount": 12.34,
15 "linked_transactions": [],
16 "line_items": [
17 {
18 "class_id": "00000000-0000-0000-0000-000000000000",
19 "description": "Example sales receipt line item",
20 "total_amount": 12.34,
21 "item": {
22 "id": "00000000-0000-0000-0000-000000000000",
23 "quantity": 1,
24 "unit_amount": 12.34
25 }
26 }
27 ],
28 "additional_fields": {
29 "billing_email": "customer@example.com",
30 "internal_memo": "Internal note for sales receipt",
31 "tax_amount": 0,
32 "addresses": []
33 },
34 "created_at": "2023-01-02T02:34:56.000Z",
35 "updated_at": "2023-01-02T02:34:56.000Z",
36 "last_synced_at": "2023-01-02T02:34:56.000Z",
37 "platform_url": "https://platform.com/resource?id=123",
38 "platform_data": {
39 "id": 123,
40 "data": "Varies by platform"
41 }
42 }
43 ],
44 "next_cursor": "MTY3NDgzMTk0Ml82MDY4ZDI0ZC02NGRmLTRmN2EtYTM0Ny0zN2ZmNjY5MGVmMjU=",
45 "connection": {
46 "id": "00000000-0000-0000-0000-000000000000",
47 "orgId": "00000000-0000-0000-0000-000000000000",
48 "platform": "NETSUITE"
49 }
50}
Fetch a Sales Receipt
Request Parameters
idstringpathRequiredThe unique ID of the object.
access_tokenstringqueryRequiredThe access token of the connection.
id_typeenumqueryOptionalUsed to indicate the type of id that is supplied. Defaults to rutter. Not currently supported on Sage Intacct or Sage Business Cloud.
force_fetchenumqueryOptionalUsed to force a response even if the underlying connection has not finished its initial sync.
Response Body
1{
2 "sales_receipt": {
3 "id": "00000000-0000-0000-0000-000000000000",
4 "platform_id": "12345678",
5 "customer_id": "00000000-0000-0000-0000-000000000000",
6 "issue_date": "2023-01-02T02:34:56.000Z",
7 "amount_due": 0,
8 "currency_code": "USD",
9 "discount_amount": 0,
10 "document_number": "SR-001",
11 "memo": "Customer-facing memo",
12 "reference": "REF-001",
13 "total_amount": 12.34,
14 "linked_transactions": [],
15 "line_items": [
16 {
17 "class_id": "00000000-0000-0000-0000-000000000000",
18 "description": "Example sales receipt line item",
19 "total_amount": 12.34,
20 "item": {
21 "id": "00000000-0000-0000-0000-000000000000",
22 "quantity": 1,
23 "unit_amount": 12.34
24 }
25 }
26 ],
27 "additional_fields": {
28 "billing_email": "customer@example.com",
29 "internal_memo": "Internal note for sales receipt",
30 "tax_amount": 0,
31 "addresses": []
32 },
33 "created_at": "2023-01-02T02:34:56.000Z",
34 "updated_at": "2023-01-02T02:34:56.000Z",
35 "last_synced_at": "2023-01-02T02:34:56.000Z",
36 "platform_url": "https://platform.com/resource?id=123",
37 "platform_data": {
38 "id": 123,
39 "data": "Varies by platform"
40 }
41 },
42 "connection": {
43 "id": "00000000-0000-0000-0000-000000000000",
44 "orgId": "00000000-0000-0000-0000-000000000000",
45 "platform": "NETSUITE"
46 }
47}
Create a Sales Receipt
Request Parameters
access_tokenstringqueryRequiredThe access token of the connection.
Request Body
response_modeenumOptionalThe 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.
sales_receiptobjectsales_receipt attributesResponse Body
1{
2 "sales_receipt": {
3 "customer_id": "00000000-0000-0000-0000-000000000000",
4 "issue_date": "2023-01-02T02:34:56.000Z",
5 "currency_code": "USD",
6 "document_number": "SR-001",
7 "reference": "REF-001",
8 "line_items": [
9 {
10 "total_amount": 12.34,
11 "description": "Example sales receipt line item",
12 "item": {
13 "id": "00000000-0000-0000-0000-000000000000",
14 "quantity": 1,
15 "unit_amount": 12.34
16 }
17 }
18 ]
19 }
20}
1{
2 "sales_receipt": {
3 "id": "00000000-0000-0000-0000-000000000000",
4 "platform_id": "12345678",
5 "customer_id": "00000000-0000-0000-0000-000000000000",
6 "issue_date": "2023-01-02T02:34:56.000Z",
7 "amount_due": 0,
8 "currency_code": "USD",
9 "discount_amount": 0,
10 "document_number": "SR-001",
11 "memo": "Customer-facing memo",
12 "reference": "REF-001",
13 "total_amount": 12.34,
14 "linked_transactions": [],
15 "line_items": [
16 {
17 "class_id": "00000000-0000-0000-0000-000000000000",
18 "description": "Example sales receipt line item",
19 "total_amount": 12.34,
20 "item": {
21 "id": "00000000-0000-0000-0000-000000000000",
22 "quantity": 1,
23 "unit_amount": 12.34
24 }
25 }
26 ],
27 "additional_fields": {
28 "billing_email": "customer@example.com",
29 "internal_memo": "Internal note for sales receipt",
30 "tax_amount": 0,
31 "addresses": []
32 },
33 "created_at": "2023-01-02T02:34:56.000Z",
34 "updated_at": "2023-01-02T02:34:56.000Z",
35 "last_synced_at": "2023-01-02T02:34:56.000Z",
36 "platform_url": "https://platform.com/resource?id=123",
37 "platform_data": {
38 "id": 123,
39 "data": "Varies by platform"
40 }
41 }
42}
Have questions?
Contact support for personalized guidance.