An adjustment is a transaction that applies a credit or debit in order to modify the amount owed by a customer.
Returns a collection with a key, ID, and link for each adjustment. 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, Project Manager, and Warehouse users |
Permissions | List, View Adjustments |
OK
Bad Request
{- "ia::result": [
- {
- "key": "259",
- "id": "259",
- "href": "/objects/accounts-receivable/adjustment/259"
}, - {
- "key": "295",
- "id": "295",
- "href": "/objects/accounts-receivable/adjustment/295"
}, - {
- "key": "296",
- "id": "296",
- "href": "/objects/accounts-receivable/adjustment/296"
}
], - "ia::meta": {
- "totalCount": 3,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}
Creates a new adjustment.
Subscription | Accounts Receivable |
---|---|
User type | Business |
Permissions | List, View, and Add Adjustments |
createdDate required | string <date> Date the adjustment was created. Example: "2021-01-23" | ||||||||||||||||||
adjustmentNumber | string or null Number that can be used to track the AR adjustment. Example: "ADJ001" | ||||||||||||||||||
object Associated contacts for the AR adjustment. | |||||||||||||||||||
| |||||||||||||||||||
description | string or null Description of the AR adjustment. Example: "Computer Hardware & Software Expenses 03/01/20 - 08/31/21 Subscription charges." | ||||||||||||||||||
documentNumber | string Invoice number selected as a reference for the adjustment. Example: "INV-1602" | ||||||||||||||||||
object For multi-currency companies, the base currency for the adjustment. | |||||||||||||||||||
| |||||||||||||||||||
object For multi-currency companies, the transaction currency for the adjustment. Example: "USD" | |||||||||||||||||||
| |||||||||||||||||||
object Exchange rate details used to calculate the base amount. | |||||||||||||||||||
| |||||||||||||||||||
object The customer who is the target of the AR adjustment. Example: "1" | |||||||||||||||||||
| |||||||||||||||||||
glPostingDate | string <date> GL posting date. Example: "2023-03-24" | ||||||||||||||||||
object Tax solution details for this adjustment. | |||||||||||||||||||
| |||||||||||||||||||
object Supporting document for the adjustment. | |||||||||||||||||||
| |||||||||||||||||||
object The payment summary details for this adjustment. Summaries are collections of the same types of transactions grouped together for processing. Example: "AR Summary: 2022/01/01 Batch" | |||||||||||||||||||
| |||||||||||||||||||
Array of objects Line items of the AR adjustment. | |||||||||||||||||||
Array
|
Created
Bad Request
{- "customer": {
- "id": "C-00005"
}, - "createdDate": "2023-06-28",
- "description": "Lyon USD Adj",
- "adjustmentSummary": {
- "id": "AR Summary: 2022/01/01 Batch"
}, - "baseCurrency": {
- "paidDate": "2022-11-15",
- "currency": "USD"
}, - "txnCurrency": {
- "currency": "USD"
}, - "lines": [
- {
- "txnCurrency": {
- "amount": "120.03",
- "currency": "USD"
}, - "glAccount": {
- "id": "2990"
}, - "dimensions": {
- "location": {
- "id": "CA"
}
}
}
]
}
{- "ia::result": {
- "id": "270",
- "key": "270",
- "href": "/objects/accounts-receivable/adjustment/270"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Returns detailed information for a specified adjustment.
Subscription | Accounts Receivable |
---|---|
User type | Business, Employee, Project Manager, and Warehouse users |
Permissions | List, View Adjustments |
key required | string System-assigned unique key for the adjustment. |
OK
Bad Request
{- "ia::result": {
- "id": "288",
- "key": "288",
- "txnType": "ra",
- "adjustmentNumber": "adj-1",
- "state": "posted",
- "customer": {
- "id": "1",
- "key": "1",
- "name": "Power Aerospace Materials",
- "totalDue": "-17909.55",
- "href": "/objects/accounts-receivable/customer/1"
}, - "documentNumber": "ADJ008567",
- "description": "Adjustment 3",
- "createdDate": "2024-09-24",
- "entity": {
- "key": "1",
- "id": "1",
- "name": "United States of America",
- "href": "/objects/company-config/entity/1"
}, - "glPostingDate": "2024-09-24",
- "adjustmentSummary": {
- "id": "AR Summary: 2022/01/01 Batch",
- "key": 280,
- "href": "/objects/accounts-receivable/summary/280"
}, - "baseCurrency": {
- "paidDate": "2024-07-19",
- "currency": "AUD",
- "totalAmountEntered": "-150.00",
- "totalSelected": "0.00",
- "totalPaid": "0.00",
- "totalDue": "-150.00"
}, - "txnCurrency": {
- "currency": "AUD",
- "totalEntered": "-150.00",
- "totalSelected": "0.00",
- "totalPaid": "0.00",
- "totalDue": "-150.00"
}, - "exchangeRate": {
- "date": "2024-07-17",
- "typeId": "Intacct Daily Rate",
- "rate": "1"
}, - "contacts": {
- "billTo": {
- "id": "Power Aerospace Materials(C1)",
- "key": "152",
- "href": "/objects/company-config/contact/152"
}, - "shipTo": {
- "id": "Power Aerospace Materials(C1)",
- "key": "152",
- "tax": {
- "group": {
- "id": null,
- "key": null
}, - "taxId": null
}, - "href": "/objects/company-config/contact/152"
}
}, - "moduleKey": "4.AR",
- "audit": {
- "createdDateTime": "2024-09-24T13:19:27Z",
- "modifiedDateTime": "2024-09-24T14:01:12Z",
- "createdBy": "1",
- "modifiedBy": "1"
}, - "taxSolution": {
- "key": "1",
- "id": "Australia - GST",
- "href": "/objects/tax/tax-solution/1"
}, - "attachment": {
- "id": null,
- "key": null
}, - "lines": [
- {
- "id": "2686",
- "key": "2686",
- "arAdjustment": {
- "id": "288",
- "key": "288",
- "href": "/objects/accounts-receivable/adjustment/288"
}, - "glAccount": {
- "key": "254",
- "id": "6103",
- "name": "Bonuses",
- "href": "/objects/general-ledger/account/254"
}, - "accountLabel": {
- "key": "35",
- "id": "Bonuses",
- "href": "/objects/accounts-receivable/account-label/35"
}, - "baseCurrency": {
- "amount": "-125",
- "currency": "AUD"
}, - "txnCurrency": {
- "amount": "-125",
- "currency": "AUD"
}, - "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": "1",
- "id": "1",
- "name": "Power Aerospace Materials",
- "href": "/objects/accounts-receivable/customer/1"
}, - "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
}
}, - "memo": null,
- "exchangeRate": {
- "date": null,
- "typeId": null,
- "rate": "1"
}, - "lineNumber": "1",
- "adjustmentType": "ra",
- "isTax": false,
- "audit": {
- "createdDateTime": "2024-09-24T13:19:27Z",
- "modifiedDateTime": "2024-09-24T14:01:12Z",
- "createdBy": "1",
- "modifiedBy": "1"
}, - "taxEntries": [
- {
- "txnTaxAmount": "-25.00",
- "baseTaxAmount": "-25.00",
- "orderEntryTaxDetail": {
- "id": "AUS Standard1",
- "key": "89",
- "href": "/objects/tax/order-entry-tax-detail/89"
}, - "id": "2688",
- "key": "2688",
- "taxRate": 20,
- "adjustmentLine": {
- "id": "2686",
- "key": "2686",
- "href": "/objects/accounts-receivable/adjustment-line/2686"
}, - "href": "/objects/accounts-receivable/adjustment-tax-entry/2688"
}
], - "href": "/objects/accounts-receivable/adjustment-line/2686"
}
], - "href": "/objects/accounts-receivable/adjustment/288"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Updates an existing adjustment by setting field values. Any fields not provided remain unchanged.
Subscription | Accounts Receivable |
---|---|
User type | Business |
Permissions | List, View, Edit Adjustments |
key required | string System-assigned unique key for the adjustment. |
adjustmentNumber | string or null Number that can be used to track the AR adjustment. Example: "ADJ001" | ||||||||||||||||||
object Associated contacts for the AR adjustment. | |||||||||||||||||||
| |||||||||||||||||||
description | string or null Description of the AR adjustment. Example: "Computer Hardware & Software Expenses 03/01/20 - 08/31/21 Subscription charges." | ||||||||||||||||||
documentNumber | string Invoice number selected as a reference for the adjustment. Example: "INV-1602" | ||||||||||||||||||
object For multi-currency companies, the base currency for the adjustment. | |||||||||||||||||||
| |||||||||||||||||||
object For multi-currency companies, the transaction currency for the adjustment. | |||||||||||||||||||
| |||||||||||||||||||
object Exchange rate details used to calculate the base amount. | |||||||||||||||||||
| |||||||||||||||||||
object The customer who is the target of the AR adjustment. | |||||||||||||||||||
| |||||||||||||||||||
createdDate | string <date> Date the adjustment was created. Example: "2021-01-23" | ||||||||||||||||||
glPostingDate | string <date> GL posting date. Example: "2023-03-24" | ||||||||||||||||||
object Tax solution details for this adjustment. | |||||||||||||||||||
| |||||||||||||||||||
object Supporting document for the adjustment. | |||||||||||||||||||
| |||||||||||||||||||
object The payment summary details for this adjustment. Summaries are collections of the same types of transactions grouped together for processing. | |||||||||||||||||||
| |||||||||||||||||||
Array of objects Line items of the AR adjustment. | |||||||||||||||||||
Array
|
OK
Bad Request
{- "description": "May 2023 Refund"
}
{- "ia::result": {
- "id": "16855",
- "key": "16855",
- "href": "/objects/accounts-receivable/adjustment/16855"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Deletes an adjustment. An adjustment can be deleted if it has not yet been applied to an invoice.
Subscription | Accounts Receivable |
---|---|
User type | Business, Employee, Project Manager, and Warehouse users |
Permissions | List, View, Delete Adjustments |
key required | string System-assigned unique key for the adjustment. |
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/adjustment" | ||||||||
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/adjustment",
- "filters": [
- {
- "$eq": {
- "state": "posted"
}
}
], - "fields": [
- "key",
- "id",
- "customer.id",
- "baseCurrency.currency",
- "baseCurrency.totalDue",
- "createdDate",
- "href"
], - "orderBy": [
- {
- "id": "asc"
}
]
}
{- "ia::result": [
- {
- "key": "2",
- "id": "2",
- "customer.id": "C-00003",
- "baseCurrency.currency": "USD",
- "baseCurrency.totalDue": "-31433.92",
- "createdDate": "2022-12-18",
- "href": "/objects/accounts-receivable/adjustment/2"
}, - {
- "key": "7",
- "id": "7",
- "customer.id": "C-00003",
- "baseCurrency.currency": "USD",
- "baseCurrency.totalDue": "-6810.68",
- "createdDate": "2022-1-28",
- "href": "/objects/accounts-receivable/adjustment/7"
}, - {
- "key": "61",
- "id": "61",
- "customer.id": "C-00022",
- "baseCurrency.currency": "USD",
- "baseCurrency.totalDue": "-16000",
- "createdDate": "2023-06-11",
- "href": "/objects/accounts-receivable/adjustment/61"
}, - {
- "key": "63",
- "id": "63",
- "customer.id": "C-00023",
- "baseCurrency.currency": "USD",
- "baseCurrency.totalDue": "-79233",
- "createdDate": "2023-06-14",
- "href": "/objects/accounts-receivable/adjustment/63"
}, - {
- "key": "90",
- "id": "90",
- "customer.id": "C-00013",
- "baseCurrency.currency": "USD",
- "baseCurrency.totalDue": "-1666.68",
- "createdDate": "2023-09-08",
- "href": "/objects/accounts-receivable/adjustment/90"
}, - {
- "key": "91",
- "id": "91",
- "customer.id": "C-00023",
- "baseCurrency.currency": "USD",
- "baseCurrency.totalDue": "-52822",
- "createdDate": "2023-11-08",
- "href": "/objects/accounts-receivable/adjustment/91"
}, - {
- "key": "92",
- "id": "92",
- "customer.id": "C-00003",
- "baseCurrency.currency": "USD",
- "baseCurrency.totalDue": "-32307.7",
- "createdDate": "2010-09-08",
- "href": "/objects/accounts-receivable/adjustment/92"
}
], - "ia::meta": {
- "totalCount": 7,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}