The InvoicePayment object
A Rutter Invoice Payment represents an invoice payment issued by a customer made against an invoice. Every invoice payment is linked to a Customer and one or more Invoices.
Properties
id
stringThe Rutter generated unique ID of the invoice payment.
platform_id
stringThe platform specific ID of the invoice payment.
account_id
stringThe Rutter ID of the Account linked to the invoice payment.
ar_account_id
stringoptionalThe Rutter ID of the AR Account linked to the invoice payment.
customer_id
stringnullableThe Rutter ID of the Customer linked to the invoice payment.
txn_date
stringThe ISO 8601 timestamp for when the transaction was logged.
currency_code
enumnullableThe ISO 4217 currency code of the invoice payment.
deposited
booleannullableIf the invoice payment debits the 'Undeposited Funds' account, this field will show whether the invoice payment has been deposited (usually in another Bank Deposit transaction). Null if the invoice payment doesn't debit the 'Undeposited Funds' account or if the platform does not support this field.
memo
stringnullableThe memo of the invoice payment.
additional_fields
objectoptionalAdditional fields required only for a narrow set of use cases.
additional_fields
attributestotal_amount
stringnullableThe total amount on the invoice payment.
linked_invoices
arrayAn array of Invoices linked to the invoice payment.
linked_invoices
attributesupdated_at
stringnullableThe ISO 8601 timestamp that the invoice payment 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",
"txn_date": "2023-01-02T02:34:56.000Z",
"currency_code": "USD",
"deposited": true,
"memo": "Payment for a shirt.",
"total_amount": "2",
"linked_invoices": [
{
"id": "00000000-0000-0000-0000-000000000000",
"allocated_at": "2023-01-02T02:34:56.000Z",
"amount": "2"
}
],
"updated_at": "2023-01-02T02:34:56.000Z",
"platform_data": {
"id": 123,
"data": "Varies by platform"
}
}
List Invoice Payments
GET /versioned/accounting/invoice_paymentsRequest 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
invoice_payments
arrayinvoice_payments
attributesnext_cursor
stringnullableoptional{
"invoice_payments": [
{
"id": "00000000-0000-0000-0000-000000000000",
"platform_id": "12345678",
"account_id": "00000000-0000-0000-0000-000000000000",
"customer_id": "00000000-0000-0000-0000-000000000000",
"txn_date": "2023-01-02T02:34:56.000Z",
"currency_code": "USD",
"deposited": true,
"memo": "Payment for a shirt.",
"total_amount": "2",
"linked_invoices": [
{
"id": "00000000-0000-0000-0000-000000000000",
"allocated_at": "2023-01-02T02:34:56.000Z",
"amount": "2"
}
],
"updated_at": "2023-01-02T02:34:56.000Z",
"platform_data": {
"id": 123,
"data": "Varies by platform"
}
}
],
"next_cursor": "MTY3NDgzMTk0Ml82MDY4ZDI0ZC02NGRmLTRmN2EtYTM0Ny0zN2ZmNjY5MGVmMjU="
}
Fetch an Invoice Payment
GET /versioned/accounting/invoice_payments/: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
attributesinvoice_payment
objectinvoice_payment
attributes{
"connection": {
"id": "00000000-0000-0000-0000-000000000000",
"orgId": "00000000-0000-0000-0000-000000000000",
"platform": "NETSUITE"
},
"invoice_payment": {
"id": "00000000-0000-0000-0000-000000000000",
"platform_id": "12345678",
"account_id": "00000000-0000-0000-0000-000000000000",
"customer_id": "00000000-0000-0000-0000-000000000000",
"txn_date": "2023-01-02T02:34:56.000Z",
"currency_code": "USD",
"deposited": true,
"memo": "Payment for a shirt.",
"total_amount": "2",
"linked_invoices": [
{
"id": "00000000-0000-0000-0000-000000000000",
"allocated_at": "2023-01-02T02:34:56.000Z",
"amount": "2"
}
],
"updated_at": "2023-01-02T02:34:56.000Z",
"platform_data": {
"id": 123,
"data": "Varies by platform"
}
}
}
Create an Invoice Payment
POST /versioned/accounting/invoice_paymentsRequest Parameters
access_token
stringqueryThe access token of the connection.
Request Body
invoice_payment
objectinvoice_payment
attributesResponse Body
Any of:
invoice_payment
objectinvoice_payment
attributesasync_response
objectoptionalasync_response
attributeserrors
arrayoptionalerrors
attributes{
"invoice_payment": {
"account_id": "00000000-0000-0000-0000-000000000000",
"customer_id": "00000000-0000-0000-0000-000000000000",
"txn_date": "2023-01-02T02:34:56.000Z",
"currency_code": "USD",
"total_amount": 12.34,
"memo": "Payment for a shirt.",
"linked_invoices": [
{
"id": "00000000-0000-0000-0000-000000000000",
"allocated_at": "2023-01-02T02:34:56.000Z",
"amount": 12.34
}
]
}
}
{
"invoice_payment": {
"id": "00000000-0000-0000-0000-000000000000",
"platform_id": "12345678",
"account_id": "00000000-0000-0000-0000-000000000000",
"customer_id": "00000000-0000-0000-0000-000000000000",
"txn_date": "2023-01-02T02:34:56.000Z",
"currency_code": "USD",
"deposited": true,
"memo": "Payment for a shirt.",
"total_amount": "2",
"linked_invoices": [
{
"id": "00000000-0000-0000-0000-000000000000",
"allocated_at": "2023-01-02T02:34:56.000Z",
"amount": "2"
}
],
"updated_at": "2023-01-02T02:34:56.000Z",
"platform_data": {
"id": 123,
"data": "Varies by platform"
}
}
}
Update an InvoicePayment
PATCH /versioned/accounting/invoice_payments/:idIf 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
invoice_payment
objectinvoice_payment
attributesResponse Body
Any of:
invoice_payment
objectinvoice_payment
attributesasync_response
objectoptionalasync_response
attributeserrors
arrayoptionalerrors
attributes{
"invoice_payment": {
"account_id": "00000000-0000-0000-0000-000000000000",
"customer_id": "00000000-0000-0000-0000-000000000000",
"txn_date": "2023-01-02T02:34:56.000Z",
"memo": "Payment for a shirt.",
"total_amount": 12.34,
"linked_invoices": [
{
"id": "00000000-0000-0000-0000-000000000000",
"allocated_at": "2023-01-02T02:34:56.000Z",
"amount": 12.34
}
]
}
}
{
"invoice_payment": {
"id": "00000000-0000-0000-0000-000000000000",
"platform_id": "12345678",
"account_id": "00000000-0000-0000-0000-000000000000",
"customer_id": "00000000-0000-0000-0000-000000000000",
"txn_date": "2023-01-02T02:34:56.000Z",
"currency_code": "USD",
"deposited": true,
"memo": "Payment for a shirt.",
"total_amount": "2",
"linked_invoices": [
{
"id": "00000000-0000-0000-0000-000000000000",
"allocated_at": "2023-01-02T02:34:56.000Z",
"amount": "2"
}
],
"updated_at": "2023-01-02T02:34:56.000Z",
"platform_data": {
"id": 123,
"data": "Varies by platform"
}
}
}