POST
/
quickbooks-desktop
/
inventory-adjustments
/
{id}
import Conductor from 'conductor-node';

const client = new Conductor({
  apiKey: process.env['CONDUCTOR_SECRET_KEY'], // This is the default and can be omitted
});

async function main() {
  const inventoryAdjustment = await client.qbd.inventoryAdjustments.update('123ABC-1234567890', {
    revisionNumber: '1721172183',
    conductorEndUserId: 'end_usr_1234567abcdefg',
  });

  console.log(inventoryAdjustment.id);
}

main();
{
  "id": "123ABC-1234567890",
  "objectType": "qbd_inventory_adjustment",
  "createdAt": "2021-10-01T17:34:56.000Z",
  "updatedAt": "2021-10-01T20:45:30.000Z",
  "revisionNumber": "1721172183",
  "account": {
    "id": "80000001-1234567890",
    "fullName": "Inventory Shrinkage"
  },
  "inventorySite": {
    "id": "80000001-1234567890",
    "fullName": "Main Warehouse"
  },
  "transactionDate": "2021-10-01",
  "refNumber": "INVADJ-1234",
  "customer": {
    "id": "80000001-1234567890",
    "fullName": "Acme Corporation"
  },
  "class": {
    "id": "80000001-1234567890",
    "fullName": "Inventory Adjustment"
  },
  "memo": "Adjusted quantity due to physical count discrepancy",
  "externalId": "12345678-abcd-1234-abcd-1234567890ab",
  "lines": [
    {
      "id": "456DEF-1234567890",
      "objectType": "qbd_inventory_adjustment_line",
      "item": {
        "id": "80000001-1234567890",
        "fullName": "Widget A"
      },
      "serialNumber": "SN1234567890",
      "serialNumberAction": "added",
      "lotNumber": "LOT2023-001",
      "expirationDate": "2025-12-31",
      "inventorySiteLocation": {
        "id": "80000001-1234567890",
        "fullName": "Aisle 3, Shelf B"
      },
      "quantityDifference": 5,
      "valueDifference": 7
    }
  ],
  "customFields": [
    {
      "ownerId": "0",
      "name": "Customer Rating",
      "type": "string_1024_type",
      "value": "Premium"
    }
  ]
}

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}}").

Example:

"end_usr_1234567abcdefg"

Path Parameters

id
string
required

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

Example:

"123ABC-1234567890"

Body

application/json

Response

200 - application/json
Returns the updated inventory adjustment.

The response is of type object.