The InvoiceCreditMemo object
A Rutter Invoice Credit Memo represents an invoice credit memo issued to a customer that can be applied against an invoice. Every invoice credit memo is linked to an Customer and zero or more Invoices.
Properties
id
stringThe Rutter generated unique ID of the invoice credit memo.
platform_id
stringThe platform specific ID of the invoice credit memo.
account_id
stringnullableThe Rutter ID of the Account linked to the invoice. Represents the account being debited.
customer_id
stringnullableThe Rutter ID of the Customer linked to the invoice credit memo.
allocated_at
stringnullableThe ISO 8601 timestamp for when the invoice credit memo was allocated.
issue_date
stringnullableThe ISO 8601 timestamp for when the invoice credit memo was issued.
currency_code
stringnullableThe ISO 4217 currency code of the invoice credit memo.
document_number
stringnullableThe buyer facing document number of the invoice credit memo.
memo
stringnullableThe memo of the invoice credit memo.
status
enumnullableThe status of the invoice credit memo.
remaining_amount
stringnullableThe remaining unapplied amount of the invoice credit memo.
total_amount
stringnullableThe total amount on the invoice credit memo.
linked_invoices
arrayAn array of Rutter IDs of Invoices linked to the invoice credit memo.
linked_invoices
attributesline_items
arrayAn array of line items containing details about the invoice credit memo.
line_items
attributescreated_at
stringnullableThe ISO 8601 timestamp that the invoice credit memo was created.
updated_at
stringnullableThe ISO 8601 timestamp that the invoice credit memo 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",
"customer_id": "00000000-0000-0000-0000-000000000000",
"allocated_at": "2023-01-02T02:34:56.000Z",
"issue_date": "2023-01-02T02:34:56.000Z",
"currency_code": "USD",
"document_number": "CUSTCRED-1",
"memo": "Discount for future Rutter shirts.",
"status": "APPLIED",
"remaining_amount": "0",
"total_amount": "3",
"linked_invoices": [
{
"id": "00000000-0000-0000-0000-000000000000",
"allocated_amount": "3"
}
],
"line_items": [
{
"id": "00000000-0000-0000-0000-000000000000",
"platform_id": "12345678",
"account_id": "00000000-0000-0000-0000-000000000000",
"item_id": "00000000-0000-0000-0000-000000000000",
"tax_rate_id": "00000000-0000-0000-0000-000000000000",
"description": "A Rutter shirt.",
"quantity": 1,
"amount": "14.34",
"discount_amount": "0",
"discount_percentage": "0",
"sub_total": "12.34",
"tax_amount": "2",
"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 Invoice Credit Memos
GET /accounting/invoice_credit_memosRequest 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
integeroptionalqueryThe Unix Timestamp in milliseconds maximum updated_at datetime to fetch entities from.
updated_at_min
integeroptionalqueryThe Unix Timestamp in milliseconds minimum updated_at datetime to fetch entities from.
Response Body
invoice_credit_memos
arrayinvoice_credit_memos
attributesnext_cursor
stringnullableoptional{
"invoice_credit_memos": [
{
"id": "00000000-0000-0000-0000-000000000000",
"platform_id": "12345678",
"account_id": "00000000-0000-0000-0000-000000000000",
"customer_id": "00000000-0000-0000-0000-000000000000",
"allocated_at": "2023-01-02T02:34:56.000Z",
"issue_date": "2023-01-02T02:34:56.000Z",
"currency_code": "USD",
"document_number": "CUSTCRED-1",
"memo": "Discount for future Rutter shirts.",
"status": "APPLIED",
"remaining_amount": "0",
"total_amount": "3",
"linked_invoices": [
{
"id": "00000000-0000-0000-0000-000000000000",
"allocated_amount": "3"
}
],
"line_items": [
{
"id": "00000000-0000-0000-0000-000000000000",
"platform_id": "12345678",
"account_id": "00000000-0000-0000-0000-000000000000",
"item_id": "00000000-0000-0000-0000-000000000000",
"tax_rate_id": "00000000-0000-0000-0000-000000000000",
"description": "A Rutter shirt.",
"quantity": 1,
"amount": "14.34",
"discount_amount": "0",
"discount_percentage": "0",
"sub_total": "12.34",
"tax_amount": "2",
"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 an Invoice Credit Memo
GET /accounting/invoice_credit_memos/: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
invoice_credit_memo
objectinvoice_credit_memo
attributes{
"invoice_credit_memo": {
"id": "00000000-0000-0000-0000-000000000000",
"platform_id": "12345678",
"account_id": "00000000-0000-0000-0000-000000000000",
"customer_id": "00000000-0000-0000-0000-000000000000",
"allocated_at": "2023-01-02T02:34:56.000Z",
"issue_date": "2023-01-02T02:34:56.000Z",
"currency_code": "USD",
"document_number": "CUSTCRED-1",
"memo": "Discount for future Rutter shirts.",
"status": "APPLIED",
"remaining_amount": "0",
"total_amount": "3",
"linked_invoices": [
{
"id": "00000000-0000-0000-0000-000000000000",
"allocated_amount": "3"
}
],
"line_items": [
{
"id": "00000000-0000-0000-0000-000000000000",
"platform_id": "12345678",
"account_id": "00000000-0000-0000-0000-000000000000",
"item_id": "00000000-0000-0000-0000-000000000000",
"tax_rate_id": "00000000-0000-0000-0000-000000000000",
"description": "A Rutter shirt.",
"quantity": 1,
"amount": "14.34",
"discount_amount": "0",
"discount_percentage": "0",
"sub_total": "12.34",
"tax_amount": "2",
"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 an Invoice Credit Memo
POST /accounting/invoice_credit_memosRequest Parameters
access_token
stringqueryThe access token of the connection.
Request Body
invoice_credit_memo
objectinvoice_credit_memo
attributesResponse Body
Any of:
invoice_credit_memo
objectinvoice_credit_memo
attributesasync_response
objectoptionalasync_response
attributeserrors
arrayoptionalerrors
attributes{
"invoice_credit_memo": {
"account_id": "00000000-0000-0000-0000-000000000000",
"customer_id": "00000000-0000-0000-0000-000000000000",
"issue_date": "2023-01-02T02:34:56.000Z",
"currency_code": "USD",
"line_items": [
{
"account_id": "00000000-0000-0000-0000-000000000000",
"description": "Discount for future Rutter shirts.",
"total_amount": "3",
"item": {
"id": "00000000-0000-0000-0000-000000000000",
"quantity": 1,
"unit_amount": "3"
}
}
]
}
}
{
"invoice_credit_memo": {
"id": "00000000-0000-0000-0000-000000000000",
"platform_id": "12345678",
"account_id": "00000000-0000-0000-0000-000000000000",
"customer_id": "00000000-0000-0000-0000-000000000000",
"allocated_at": "2023-01-02T02:34:56.000Z",
"issue_date": "2023-01-02T02:34:56.000Z",
"currency_code": "USD",
"document_number": "CUSTCRED-1",
"memo": "Discount for future Rutter shirts.",
"status": "APPLIED",
"remaining_amount": "0",
"total_amount": "3",
"linked_invoices": [
{
"id": "00000000-0000-0000-0000-000000000000",
"allocated_amount": "3"
}
],
"line_items": [
{
"id": "00000000-0000-0000-0000-000000000000",
"platform_id": "12345678",
"account_id": "00000000-0000-0000-0000-000000000000",
"item_id": "00000000-0000-0000-0000-000000000000",
"tax_rate_id": "00000000-0000-0000-0000-000000000000",
"description": "A Rutter shirt.",
"quantity": 1,
"amount": "14.34",
"discount_amount": "0",
"discount_percentage": "0",
"sub_total": "12.34",
"tax_amount": "2",
"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 an Invoice Credit Memo Application
POST /accounting/invoice_credit_applicationsRequest Parameters
access_token
stringqueryThe access token of the connection.
Request Body
invoice_credit_application
objectinvoice_credit_application
attributesResponse Body
Any of:
invoice_credit_application
objectinvoice_credit_application
attributesasync_response
objectoptionalasync_response
attributeserrors
arrayoptionalerrors
attributes{
"invoice_credit_application": {
"account_id": "00000000-0000-0000-0000-000000000000",
"customer_id": "00000000-0000-0000-0000-000000000000",
"invoice_credit_memo_id": "00000000-0000-0000-0000-000000000000",
"transaction_date": "2023-01-02T02:34:56.000Z",
"currency_code": "USD",
"memo": "Applying vendor credit for the invoice.",
"linked_invoices": [
{
"id": "00000000-0000-0000-0000-000000000000",
"allocated_amount": 12.34
}
]
}
}
{
"invoice_credit_application": {
"success": true
}
}