Skip to main content
POST
JavaScript

Authorizations

Authorization
string
header
required

Your Conductor secret key using Bearer auth (e.g., "Authorization: Bearer {{YOUR_SECRET_KEY}}").

Headers

Conductor-End-User-Id
string
required

The ID of the End-User to receive this request.

Example:

"end_usr_1234567abcdefg"

Path Parameters

id
string
required

The QuickBooks-assigned unique identifier of the inventory adjustment to set custom fields on.

Maximum string length: 36
Example:

"123ABC-1234567890"

Body

application/json
customFields
object[]
required

The custom field values to set or clear on the inventory adjustment itself, not on its lines. Custom fields you leave out keep their values.

Minimum array length: 1

Response

200 - application/json

Returns the inventory adjustment as it is after the change, with its custom fields.

id
string
required

The unique identifier assigned by QuickBooks to this inventory adjustment. This ID is unique across all transaction types.

Example:

"123ABC-1234567890"

objectType
string
required

The type of object. This value is always "qbd_inventory_adjustment".

Allowed value: "qbd_inventory_adjustment"
Example:

"qbd_inventory_adjustment"

createdAt
string
required

The date and time when this inventory adjustment was created, in ISO 8601 format (YYYY-MM-DDThh:mm:ss±hh:mm), which QuickBooks Desktop interprets in the local timezone of the end-user's computer.

Example:

"2025-01-01T12:34:56.000Z"

updatedAt
string
required

The date and time when this inventory adjustment was last updated, in ISO 8601 format (YYYY-MM-DDThh:mm:ss±hh:mm), which QuickBooks Desktop interprets in the local timezone of the end-user's computer.

Example:

"2025-02-01T12:34:56.000Z"

revisionNumber
string
required

The current QuickBooks-assigned revision number of this inventory adjustment object, which changes each time the object is modified. When updating this object, you must provide the most recent revisionNumber to ensure you're working with the latest data; otherwise, the update will return an error.

Example:

"1721172183"

account
object
required

The account to which this inventory adjustment is posted for tracking inventory value changes.

Example:
inventorySite
object | null
required

The site location where inventory for the item associated with this inventory adjustment is stored.

Example:
transactionDate
string<date>
required

The date of this inventory adjustment, in ISO 8601 format (YYYY-MM-DD).

Example:

"2024-10-01"

refNumber
string | null
required

The case-sensitive user-defined reference number for this inventory adjustment, which can be used to identify the transaction in QuickBooks. This value is not required to be unique and can be arbitrarily changed by the QuickBooks user.

Example:

"INVADJ-1234"

customer
object | null
required

The customer or customer-job associated with this inventory adjustment.

Example:
class
object | null
required

The inventory adjustment's class. Classes can be used to categorize objects into meaningful segments, such as department, location, or type of work. In QuickBooks, class tracking is off by default. A class defined here is automatically used in this inventory adjustment's line items unless overridden at the line item level.

Example:
memo
string | null
required

A memo or note for this inventory adjustment.

Example:

"Adjusted quantity due to physical count discrepancy"

externalId
string | null
required

A globally unique identifier (GUID) you, the developer, can provide for tracking this object in your external system. This field is immutable and can only be set during object creation.

Example:

"12345678-abcd-1234-abcd-1234567890ab"

lines
The Inventory Adjustment Line object · object[]
required

The inventory adjustment's item lines, each representing the adjustment of an inventory item's quantity, value, serial number, or lot number.

customFields
The Custom Field object · object[]
required

The custom fields that have a value on this inventory adjustment, for the owners named in the request's customFieldOwnerIds (by default, the public custom fields).

NOTE: To set or clear custom field values, use the set-custom-fields endpoint. An update cannot change them, and its response returns this as an empty array even when values exist; retrieve the record to see them.