Customer Refunds
The AccountingCustomerRefund Object
A Rutter Customer Refund represents a transfer of money issued by the business entity to its customer. A Customer Refund transfers money back to the customer reversing previous paid invoices unlike a Credit Memo, which is a discount held by the business entity against future customer Invoices. Every customer refund is linked to a bank Account and a Customer.
The customer refund line item contains information regarding the items that were refunded. In most cases, customer refund line items are linked to an Item.
Properties
idstringThe Rutter generated unique ID of the customer refund.
platform_idstringThe platform specific ID of the customer refund.
account_idstringThe Rutter ID of the Account linked to the customer refund.
class_idstringnullableThe Rutter ID of the Class linked to the customer refund.
customer_idstringnullableThe Rutter ID of the Customer linked to the customer refund.
department_idstringnullableThe Rutter ID of the Class linked to the customer refund.
tax_rate_idstringnullableThe Rutter ID of the Tax Rate linked to the customer refund. Supported for Xero.
transaction_datestringnullableThe ISO 8601 timestamp for when the transaction was logged.
total_amountnumberThe total amount of the customer refund.
currency_codeenumnullableThe ISO 4217 currency code of the customer refunds. Defaults to the business default currency. Supported for NetSuite, QuickBooks, and Xero.
currency_ratenumbernullableThe exchange rate between the currency of the refund and the business default currency. Supported for NetSuite and Xero.
discount_amountnumbernullableThe discount amount that was applied on the invoice to be reversed. This amount decreases from the customer refund total. Supported for QuickBooks.
document_numberstringnullableThe document number of the customer refund. Supported for Xero.
tax_amountnumbernullableThe total tax amount on the customer refund. This amount increases the customer refund total. Supported for QuickBooks.
line_itemsarrayAn array of line items associated with the customer refund.
line_items attributesadditional_fieldsobjectadditional_fields attributescreated_atstringfilterablenullableThe ISO 8601 timestamp that the customer refund was created.
updated_atstringfilterablenullableThe ISO 8601 timestamp that the customer refund was last updated.
last_synced_atstringfilterableThe ISO 8601 timestamp when the customer refund 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 Customer Refunds
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: 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: 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 "customer_refunds": [
3 {
4 "id": "00000000-0000-0000-0000-000000000000",
5 "platform_id": "12345678",
6 "account_id": "00000000-0000-0000-0000-000000000000",
7 "class_id": "00000000-0000-0000-0000-000000000000",
8 "customer_id": "00000000-0000-0000-0000-000000000000",
9 "department_id": "00000000-0000-0000-0000-000000000000",
10 "tax_rate_id": "00000000-0000-0000-0000-000000000000",
11 "transaction_date": "2023-01-02",
12 "total_amount": 123.45,
13 "currency_code": "USD",
14 "currency_rate": 5.72,
15 "discount_amount": 20,
16 "document_number": "CUSTRFD-1",
17 "tax_amount": 23.45,
18 "line_items": [
19 {
20 "account_id": "00000000-0000-0000-0000-000000000000",
21 "class_id": "00000000-0000-0000-0000-000000000000",
22 "tax_rate_id": "00000000-0000-0000-0000-000000000000",
23 "total_amount": 123.45,
24 "description": "This is a description.",
25 "type": "shipping",
26 "item": {
27 "id": "00000000-0000-0000-0000-000000000000",
28 "quantity": 1,
29 "unit_amount": 123.45
30 }
31 }
32 ],
33 "additional_fields": {
34 "shipping_amount": 10
35 },
36 "created_at": "2023-01-02T02:34:56.000Z",
37 "updated_at": "2023-01-02T02:34:56.000Z",
38 "last_synced_at": "2023-01-02T02:34:56.000Z",
39 "platform_url": "https://platform.com/resource?id=123",
40 "platform_data": {
41 "id": 123,
42 "data": "Varies by platform"
43 }
44 }
45 ],
46 "next_cursor": "MTY3NDgzMTk0Ml82MDY4ZDI0ZC02NGRmLTRmN2EtYTM0Ny0zN2ZmNjY5MGVmMjU=",
47 "connection": {
48 "id": "00000000-0000-0000-0000-000000000000",
49 "orgId": "00000000-0000-0000-0000-000000000000",
50 "platform": "NETSUITE"
51 }
52}
Fetch a Customer Refund
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 "customer_refund": {
3 "id": "00000000-0000-0000-0000-000000000000",
4 "platform_id": "12345678",
5 "account_id": "00000000-0000-0000-0000-000000000000",
6 "class_id": "00000000-0000-0000-0000-000000000000",
7 "customer_id": "00000000-0000-0000-0000-000000000000",
8 "department_id": "00000000-0000-0000-0000-000000000000",
9 "tax_rate_id": "00000000-0000-0000-0000-000000000000",
10 "transaction_date": "2023-01-02",
11 "total_amount": 123.45,
12 "currency_code": "USD",
13 "currency_rate": 5.72,
14 "discount_amount": 20,
15 "document_number": "CUSTRFD-1",
16 "tax_amount": 23.45,
17 "line_items": [
18 {
19 "account_id": "00000000-0000-0000-0000-000000000000",
20 "class_id": "00000000-0000-0000-0000-000000000000",
21 "tax_rate_id": "00000000-0000-0000-0000-000000000000",
22 "total_amount": 123.45,
23 "description": "This is a description.",
24 "type": "shipping",
25 "item": {
26 "id": "00000000-0000-0000-0000-000000000000",
27 "quantity": 1,
28 "unit_amount": 123.45
29 }
30 }
31 ],
32 "additional_fields": {
33 "shipping_amount": 10
34 },
35 "created_at": "2023-01-02T02:34:56.000Z",
36 "updated_at": "2023-01-02T02:34:56.000Z",
37 "last_synced_at": "2023-01-02T02:34:56.000Z",
38 "platform_url": "https://platform.com/resource?id=123",
39 "platform_data": {
40 "id": 123,
41 "data": "Varies by platform"
42 }
43 },
44 "connection": {
45 "id": "00000000-0000-0000-0000-000000000000",
46 "orgId": "00000000-0000-0000-0000-000000000000",
47 "platform": "NETSUITE"
48 }
49}
Create a Customer Refund
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.
customer_refundobjectcustomer_refund attributesResponse Body
1{
2 "customer_refund": {
3 "account_id": "00000000-0000-0000-0000-000000000000",
4 "class_id": "00000000-0000-0000-0000-000000000000",
5 "customer_id": "00000000-0000-0000-0000-000000000000",
6 "department_id": "00000000-0000-0000-0000-000000000000",
7 "tax_rate_id": "00000000-0000-0000-0000-000000000000",
8 "transaction_date": "2023-01-02",
9 "currency_code": "USD",
10 "document_number": "CUSTRFD-1",
11 "line_items": [
12 {
13 "tax_rate_id": "00000000-0000-0000-0000-000000000000",
14 "description": "This is a description.",
15 "total_amount": 123.45,
16 "item": {
17 "id": "00000000-0000-0000-0000-000000000000",
18 "quantity": 1,
19 "unit_amount": 123.45
20 }
21 }
22 ]
23 }
24}
1{
2 "customer_refund": {
3 "id": "00000000-0000-0000-0000-000000000000",
4 "platform_id": "12345678",
5 "account_id": "00000000-0000-0000-0000-000000000000",
6 "class_id": "00000000-0000-0000-0000-000000000000",
7 "customer_id": "00000000-0000-0000-0000-000000000000",
8 "department_id": "00000000-0000-0000-0000-000000000000",
9 "tax_rate_id": "00000000-0000-0000-0000-000000000000",
10 "transaction_date": "2023-01-02",
11 "total_amount": 123.45,
12 "currency_code": "USD",
13 "currency_rate": 5.72,
14 "discount_amount": 20,
15 "document_number": "CUSTRFD-1",
16 "tax_amount": 23.45,
17 "line_items": [
18 {
19 "account_id": "00000000-0000-0000-0000-000000000000",
20 "class_id": "00000000-0000-0000-0000-000000000000",
21 "tax_rate_id": "00000000-0000-0000-0000-000000000000",
22 "total_amount": 123.45,
23 "description": "This is a description.",
24 "type": "shipping",
25 "item": {
26 "id": "00000000-0000-0000-0000-000000000000",
27 "quantity": 1,
28 "unit_amount": 123.45
29 }
30 }
31 ],
32 "additional_fields": {
33 "shipping_amount": 10
34 },
35 "created_at": "2023-01-02T02:34:56.000Z",
36 "updated_at": "2023-01-02T02:34:56.000Z",
37 "last_synced_at": "2023-01-02T02:34:56.000Z",
38 "platform_url": "https://platform.com/resource?id=123",
39 "platform_data": {
40 "id": 123,
41 "data": "Varies by platform"
42 }
43 }
44}
Delete a Customer Refund
Request Parameters
idstringpathRequiredThe Rutter generated unique ID of the object.
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.
Response Body
1{
2 "code": "deleted",
3 "success": true
4}
Have questions?
Contact support for personalized guidance.