Returns a collection with a key, ID, and link for each invoice. This operation is mostly for use in testing; use the query service to find objects that meet certain criteria and to specify properties that are returned.
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.
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 Deprecated Default: "submit" This field has been deprecated. Use the | ||||||||||||||||||
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" | ||||||||||||||||||
state | string Default: "posted" An invoice's state shows the current status of the invoice within the workflow. The state can be modified through workflow operations like Submit and Reverse, but cannot be changed using the PATCH operation. Example: "posted" | ||||||||||||||||||
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 Deprecated This field is deprecated, please use | ||||||||||||||||||
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.
key required | string System-assigned key for the invoice. Example: 99 |
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,
- "salesDocument": {
- "key": null,
- "id": 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.
key required | string System-assigned key for the invoice. Example: 99 |
action | string Deprecated Default: "submit" This field has been deprecated. Use the | ||||||||||||||||||
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" | ||||||||||||||||||
state | string Default: "posted" An invoice's state shows the current status of the invoice within the workflow. The state can be modified through workflow operations like Submit and Reverse, but cannot be changed using the PATCH operation. Example: "posted" | ||||||||||||||||||
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 Deprecated This field is deprecated, please use | ||||||||||||||||||
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.
key required | string System-assigned key for the invoice. Example: 99 |
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
}
}