POST
/
quickbooks-desktop
/
unit-of-measure-sets
JavaScript
import Conductor from 'conductor-node';

const conductor = new Conductor({
  apiKey: 'sk_conductor_...',
});

const unitOfMeasureSet = await conductor.qbd.unitOfMeasureSets.create({
  baseUnit: { abbreviation: 'ea', name: 'Each' },
  name: 'Weight Units',
  unitOfMeasureType: 'count',
  conductorEndUserId: 'end_usr_1234567abcdefg',
});

console.log(unitOfMeasureSet.id);
{
  "id": "80000001-1234567890",
  "objectType": "qbd_unit_of_measure_set",
  "createdAt": "2021-10-01T12:34:56-05:00",
  "updatedAt": "2021-10-01T15:45:30-05:00",
  "revisionNumber": "1721172183",
  "name": "Weight Units",
  "isActive": true,
  "unitOfMeasureType": "count",
  "baseUnit": {
    "name": "Each",
    "abbreviation": "ea"
  },
  "relatedUnits": [
    {
      "name": "Case",
      "abbreviation": "ea",
      "conversionRatio": "10"
    }
  ],
  "defaultUnits": [
    {
      "unitUsedFor": "purchase",
      "unit": "Each"
    }
  ]
}

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"

Body

application/json

Response

200 - application/json

Returns the newly created unit-of-measure set.

The response is of type object.