Returns a collection with a key, ID, and link for each invoice. This operation is mostly for use in testing; use query to find objects that meet certain criteria and to specify properties that are returned.
Subscription | Accounts Receivable |
---|---|
User type | Business, Employee, Approver |
Permissions | List, View Invoices |
OK
Bad Request
{- "ia::result": [
- {
- "key": "498",
- "id": "498",
- "href": "/objects/accounts-receivable/invoice/498"
}, - {
- "key": "501",
- "id": "501",
- "href": "/objects/accounts-receivable/invoice/501"
}, - {
- "key": "978",
- "id": "978",
- "href": "/objects/accounts-receivable/invoice/978"
}
], - "ia::meta": {
- "totalCount": 3,
- "start": 1,
- "pageSize": 100
}
}
Creates a new invoice. For the invoice to be posted, you must specify at least the account and an amount for each line item.
Subscription | Accounts Receivable |
---|---|
User type | Business, Employee, Approver |
Permissions | Add Invoices |
invoiceDate required | string <date> Date the invoice was created. Example: "2022-12-06" | ||||||||||||||||||
dueDate required | string <date> Date the invoice is due. Example: "2022-12-31" | ||||||||||||||||||
action | string Default: "submit" Action to take on the invoice. Example: "submit" | ||||||||||||||||||
invoiceNumber | string Specify a unique invoice number while creating an invoice unless document sequencing is configured, in which case the number is auto-generated. Example: "INV-001" | ||||||||||||||||||
referenceNumber | string Customer purchase order number or another reference number. Example: "PO6917" | ||||||||||||||||||
description | string Description of the invoice, which prints on the Customer Ledger report. Example: "Regular invoice" | ||||||||||||||||||
documentId | string ID of the associated document. Example: "Sales Invoice-SI-00188" | ||||||||||||||||||
object Currency details for this invoice. | |||||||||||||||||||
| |||||||||||||||||||
object Message to include on the customer's invoice. | |||||||||||||||||||
| |||||||||||||||||||
object Associated contacts | |||||||||||||||||||
| |||||||||||||||||||
object If AR is configured for inter-entity bill back, the template to use to create a matching bill. | |||||||||||||||||||
| |||||||||||||||||||
object Supporting document attached to the invoice. | |||||||||||||||||||
| |||||||||||||||||||
object Customer to receive the invoice. Example: "1" | |||||||||||||||||||
| |||||||||||||||||||
object Term details for the invoice. | |||||||||||||||||||
| |||||||||||||||||||
object Tax solution details for this invoice. | |||||||||||||||||||
| |||||||||||||||||||
object Summary details for this invoice. Summaries are collections of the same types of transactions grouped together for processing. | |||||||||||||||||||
| |||||||||||||||||||
Array of objects Line items of the invoice. Example: [{"txnAmount":"100.00","glAccount":{"id":"4010"},"dimensions":{"location":{"id":"1"}}}] | |||||||||||||||||||
Array
|
Created
Bad Request
{- "invoiceNumber": "SI-0034",
- "customer": {
- "id": "C-00019"
}, - "customerMessage": {
- "id": "welcome message"
}, - "referenceNumber": "B9R456",
- "description": "Regular invoice",
- "term": {
- "id": "N15"
}, - "invoiceDate": "2022-12-06",
- "dueDate": "2022-12-31",
- "currency": {
- "txnCurrency": "USD",
- "exchangeRate": {
- "date": "2022-12-06",
- "typeId": "Intacct Daily Rate",
- "rate": 0.05112
}
}, - "contacts": {
- "payTo": {
- "id": "Power Aerospace Materials(C1)"
}, - "returnTo": {
- "id": "Power Aerospace Materials(C1)"
}
}, - "lines": [
- {
- "txnAmount": "100.40",
- "glAccount": {
- "id": "5004"
}, - "accountLabel": {
- "id": "SWL001"
}, - "dimensions": {
- "department": {
- "id": "SA"
}, - "location": {
- "id": "CA"
}, - "customer": {
- "id": "1652"
}
}
}, - {
- "txnAmount": "-10",
- "glAccount": {
- "id": "5004"
}, - "accountLabel": {
- "id": "SWL001"
}, - "dimensions": {
- "department": {
- "id": "SA"
}, - "location": {
- "id": "CA"
}, - "customer": {
- "id": "1652"
}
}
}
]
}
{- "ia::result": {
- "id": "2091",
- "key": "2091",
- "href": "/objects/accounts-receivable/invoice/2091"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Returns detailed information for a specified invoice.
Subscription | Accounts Receivable |
---|---|
User type | Business, Employee, Approver |
Permissions | List, View Invoices |
key required | string System-assigned key for the invoice. |
OK
Bad Request
{- "ia::result": {
- "id": "292",
- "key": "292",
- "recordType": "ri",
- "invoiceNumber": "ADJDEC0002",
- "state": "posted",
- "customer": {
- "id": "1",
- "key": "1",
- "name": "Power Aerospace Materials",
- "emailOption": false,
- "customerDue": "-17909.55",
- "deliveryOptions": "print",
- "href": "/objects/accounts-receivable/customer/1"
}, - "customerMessage": {
- "key": null,
- "id": null,
- "message": null
}, - "referenceNumber": null,
- "description": "nextGen Recurr",
- "documentId": null,
- "term": {
- "id": "Due upon pay",
- "key": "15",
- "href": "/objects/accounts-receivable/term/15"
}, - "invoiceDate": "2024-09-24",
- "invoiceSummary": {
- "glPostingDate": "2024-09-24",
- "id": "Invoices: 2024/09/24 Batch",
- "key": "199",
- "isSummaryOpen": "open",
- "isSummaryPosted": "false",
- "href": "/objects/accounts-receivable/summary/199"
}, - "discountCutOffDate": "2024-09-24",
- "dueDate": "2024-09-24",
- "paymentInformation": {
- "fullyPaidDate": null,
- "totalBaseAmountSelectedForPayment": "0.00",
- "totalBaseAmountPaid": "0.00",
- "totalTxnAmountSelectedForPayment": "0.00",
- "totalTxnAmountPaid": "0.00"
}, - "currency": {
- "baseCurrency": "AUD",
- "txnCurrency": "AUD",
- "exchangeRate": {
- "date": null,
- "typeId": null,
- "rate": null
}
}, - "totalBaseAmount": "440.00",
- "totalBaseAmountDue": "440.00",
- "totalTxnAmount": "440.00",
- "totalTxnAmountDue": "440.00",
- "contacts": {
- "payTo": {
- "id": "Power Aerospace Materials(C1)",
- "key": "152"
}, - "returnTo": {
- "id": "Power Aerospace Materials(C1)",
- "key": "152",
- "tax": {
- "group": {
- "id": null,
- "key": null
}, - "taxId": null
}
}
}, - "moduleKey": "accountsReceivable",
- "recurringSchedule": {
- "key": "24"
}, - "isSystemGeneratedDocument": false,
- "billbackTemplate": {
- "id": null,
- "key": null
}, - "audit": {
- "createdDateTime": "2024-09-24T14:18:20Z",
- "modifiedDateTime": "2024-09-24T14:18:20Z",
- "createdBy": "1",
- "modifiedBy": "1"
}, - "dueInDays": 3,
- "taxSolution": {
- "key": "1",
- "id": "Australia - GST",
- "href": "/objects/tax/tax-solution/1"
}, - "attachment": {
- "id": "atch1",
- "key": "6",
- "href": "/objects/company-config/attachment/6"
}, - "dunningCount": 0,
- "entity": {
- "key": null,
- "id": null,
- "name": null
}, - "lines": [
- {
- "id": "2702",
- "key": "2702",
- "invoice": {
- "id": "292",
- "key": "292",
- "href": "/objects/accounts-receivable/invoice/292"
}, - "glAccount": {
- "key": "254",
- "id": "6103",
- "name": "Bonuses",
- "href": "/objects/general-ledger/account/254"
}, - "overrideOffsetGLAccount": {
- "key": "36",
- "id": "1200",
- "name": "Accounts Receivable",
- "href": "/objects/general-ledger/account/36"
}, - "accountLabel": {
- "name": "Bonuses",
- "key": "35",
- "id": "Bonuses",
- "href": "/objects/accounts-receivable/account-label/35"
}, - "createdDate": "2024-09-24",
- "baseAmount": "400.00",
- "txnAmount": "400.00",
- "dimensions": {
- "department": {
- "key": null,
- "id": null,
- "name": null
}, - "location": {
- "key": "4",
- "id": "4",
- "name": "Australia",
- "href": "/objects/company-config/location/4"
}, - "project": {
- "key": null,
- "id": null,
- "name": null
}, - "customer": {
- "key": null,
- "id": null,
- "name": null
}, - "vendor": {
- "key": null,
- "id": null,
- "name": null
}, - "employee": {
- "key": null,
- "id": null,
- "name": null
}, - "item": {
- "key": null,
- "id": null,
- "name": null
}, - "class": {
- "key": null,
- "id": null,
- "name": null
}, - "warehouse": {
- "key": null,
- "id": null,
- "name": null
}
}, - "baseLocation": {
- "name": "Australia",
- "key": "4",
- "href": "/objects/company-config/location/4"
}, - "memo": "line 1",
- "currency": {
- "exchangeRate": {
- "date": null,
- "typeId": null,
- "rate": 1
}, - "txnCurrency": "AUD",
- "baseCurrency": "AUD"
}, - "allocation": {
- "key": null,
- "id": null
}, - "lineNumber": 1,
- "paymentInformation": {
- "totalBaseAmountPaid": "0.00",
- "totalTxnAmountPaid": "0.00",
- "totalBaseAmountSelectedForPayment": "0.00",
- "totalTxnAmountSelectedForPayment": "0.00"
}, - "isSubtotal": null,
- "audit": {
- "createdDateTime": "2024-09-24T14:18:20Z",
- "modifiedDateTime": "2024-09-24T14:18:20Z",
- "createdBy": "1",
- "modifiedBy": "1"
}, - "taxEntries": [
- {
- "txnTaxAmount": "40.00",
- "baseTaxAmount": "40.00",
- "orderEntryTaxDetail": {
- "id": "G1 Goods and Services Tax",
- "key": "20",
- "href": "/objects/tax/order-entry-tax-detail/20"
}, - "id": "2704",
- "key": "2704",
- "taxRate": 10,
- "invoiceLine": {
- "id": "2702",
- "key": "2702",
- "href": "/objects/accounts-receivable/invoice-line/2702"
}, - "href": "/objects/accounts-receivable/invoice-tax-entry/2704"
}
], - "href": "/objects/accounts-receivable/invoice-line/2702"
}
], - "href": "/objects/accounts-receivable/invoice/292"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Updates an existing invoice by setting field values. Any fields not provided remain unchanged. Allowed edits depend on the state an invoice is in. For more information, see About editing invoices.
Subscription | Accounts Receivable |
---|---|
User type | Business, Employee, Approver |
Permissions | Edit Invoices |
key required | string System-assigned key for the invoice. |
action | string Default: "submit" Action to take on the invoice. Example: "submit" | ||||||||||||||||||
invoiceNumber | string Specify a unique invoice number while creating an invoice unless document sequencing is configured, in which case the number is auto-generated. Example: "INV-001" | ||||||||||||||||||
referenceNumber | string Customer purchase order number or another reference number. Example: "PO6917" | ||||||||||||||||||
description | string Description of the invoice, which prints on the Customer Ledger report. Example: "Regular invoice" | ||||||||||||||||||
documentId | string ID of the associated document. Example: "Sales Invoice-SI-00188" | ||||||||||||||||||
invoiceDate | string <date> Date the invoice was created. Example: "2022-12-06" | ||||||||||||||||||
dueDate | string <date> Date the invoice is due. Example: "2022-12-31" | ||||||||||||||||||
object Currency details for this invoice. | |||||||||||||||||||
| |||||||||||||||||||
object Message to include on the customer's invoice. | |||||||||||||||||||
| |||||||||||||||||||
object Associated contacts | |||||||||||||||||||
| |||||||||||||||||||
object If AR is configured for inter-entity bill back, the template to use to create a matching bill. | |||||||||||||||||||
| |||||||||||||||||||
object Supporting document attached to the invoice. | |||||||||||||||||||
| |||||||||||||||||||
object Customer to receive the invoice. | |||||||||||||||||||
| |||||||||||||||||||
object Term details for the invoice. | |||||||||||||||||||
| |||||||||||||||||||
object Tax solution details for this invoice. | |||||||||||||||||||
| |||||||||||||||||||
object Summary details for this invoice. Summaries are collections of the same types of transactions grouped together for processing. | |||||||||||||||||||
| |||||||||||||||||||
Array of objects Line items of the invoice. | |||||||||||||||||||
Array
|
OK
Bad Request
{- "description": "Special off-cycle order"
}
{- "ia::result": {
- "id": "2091",
- "key": "2091",
- "href": "/objects/accounts-receivable/invoice/2091"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Deletes an invoice. Only invoices with a draft
or posted
state can be deleted.
Subscription | Accounts Receivable |
---|---|
User type | Business, Employee, Approver |
Permissions | Delete Invoices |
key required | string System-assigned key for the invoice. |
No Content
Bad Request
{- "ia::result": {
- "ia::error": {
- "code": "invalidRequest",
- "message": "A POST request requires a payload",
- "errorId": "REST-1028",
- "additionalInfo": {
- "messageId": "IA.REQUEST_REQUIRES_A_PAYLOAD",
- "placeholders": {
- "OPERATION": "POST"
}, - "propertySet": { }
}, - "supportId": "Kxi78%7EZuyXBDEGVHD2UmO1phYXDQAAAAo"
}
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 0,
- "totalError": 1
}
}
Queries an object for filtered data.
object | string Object type to query, in the form Example: "accounts-receivable/invoice" | ||||||||
fields | Array of strings List of fields to include in the response. Can be any combination of these:
Example: ["key","id","max:vendor.creditLimit"] | ||||||||
Array of equal (object) or not equal (object) or less than (object) or (less than or equal (object)) or greater than (object) or (greater than or equal (object)) or in (object) or not in (object) or between (object) or not between (object) or contains (object) or does not contain (object) or starts with (object) or does not start with (object) or ends with (object) or does not end with (object) Filter conditions to select the objects to return based on their field values. You use operators and conditions to build your filter, such as Example: [{"$eq":{"status":"active"}},{"$gt":{"totalDue":"1000"}},{"$contains":{"name":"Acme"}}] | |||||||||
Array Any of: Field value must be equal to this specified value. For date fields, you can use these macro values that are relative to the current date or the
These are most useful for queries that you want to save and use repeatedly, such as for views or reports. Just change the For example,
| |||||||||
filterExpression | string Default: "and" Logical operators to apply when there are multiple filter conditions. The conditions in the Shortcuts:
Example: "(1 and 2) or 3" | ||||||||
| |||||||||
Array of objects Set the order of the results by specifying field names to sort by and whether they should be in ascending or descending order. Example: [{"totalDue":"asc"},{"lastPaymentMadeDate":"desc"}] | |||||||||
Array
| |||||||||
start | integer First record of the result set to include in the response. Example: 1 | ||||||||
size | integer Number of records to include in the response. Example: 100 |
OK
Bad Request
{- "object": "accounts-receivable/invoice",
- "filters": [
- {
- "$eq": {
- "state": "posted"
}
}
], - "fields": [
- "key",
- "id",
- "documentId",
- "customer.name",
- "customer.customerDue"
], - "orderBy": [
- {
- "id": "asc"
}
]
}
{- "ia::result": [
- {
- "key": "294",
- "id": "294",
- "documentId": "Sales Invoice-SI-00331",
- "customer.name": "Burns Textiles Corp of America",
- "customer.customerDue": "14152925.84"
}, - {
- "key": "312",
- "id": "312",
- "documentId": "Sales Invoice-SI-00751",
- "customer.name": "Pinto Construction Inc.",
- "customer.customerDue": "18000.00"
}, - {
- "key": "316",
- "id": "316",
- "document.Id": "Sales Invoice-SI-00747",
- "customer.name": "Dickens Doers",
- "customer.customerDue": "873.00"
}, - {
- "key": "325",
- "id": "325",
- "document.Id": "Sales Invoice-SI-00743",
- "customer.name": "Grand Isle Hotels & Resorts Ltd",
- "customer.customerDue": "5462.50"
}, - {
- "key": "313",
- "id": "313",
- "document.Id": "Sales Invoice-SI-00746",
- "customer.name": "University of Midland",
- "customer.customerDue": "4330.00"
}
], - "ia::meta": {
- "totalCount": 5,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}