POST
/
quickbooks-desktop
/
inventory-adjustments
/
{id}

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 EndUser to receive this request (e.g., "Conductor-End-User-Id: {{END_USER_ID}}").

Path Parameters

id
string
required

The QuickBooks-assigned unique identifier of the inventory adjustment to update.

Body

application/json
revisionNumber
string
required

The current QuickBooks-assigned revision number of the inventory adjustment object you are updating, which you can get by fetching the object first. Provide the most recent revisionNumber to ensure you're working with the latest data; otherwise, the update will return an error.

accountId
string

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

inventorySiteId
string

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

transactionDate
string

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

refNumber
string

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.

customerId
string

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

classId
string

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.

memo
string

A memo or note for this inventory adjustment.

lines
object[]

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

IMPORTANT:

  1. Including this array in your update request will REPLACE all existing item lines for the inventory adjustment with this array. To keep any existing item lines, you must include them in this array even if they have not changed. Any item lines not included will be removed.

  2. To add a new item line, include it here with the id field set to -1.

  3. If you do not wish to modify any item lines, omit this field entirely to keep them unchanged.

Response

200 - application/json
Returns the updated inventory adjustment.
id
string
required

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

objectType
string
required

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

Allowed value: "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). The time zone is the same as the user's time zone in QuickBooks.

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). The time zone is the same as the user's time zone in QuickBooks.

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.

account
object
required

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

inventorySite
object | null
required

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

transactionDate
string
required

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

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.

customer
object | null
required

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

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.

memo
string | null
required

A memo or note for this inventory adjustment.

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.

lines
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
object[]
required

The custom fields for the inventory adjustment object, added as user-defined data extensions, not included in the standard QuickBooks object.