POST
/
quickbooks-desktop
/
subtotal-items
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 subtotalItem = await client.qbd.subtotalItems.create({
    name: 'Labor subtotal',
    conductorEndUserId: 'end_usr_1234567abcdefg',
  });

  console.log(subtotalItem.id);
}

main();
{
  "id": "80000001-1234567890",
  "objectType": "qbd_subtotal_item",
  "createdAt": "2021-10-01T17:34:56.000Z",
  "updatedAt": "2021-10-01T20:45:30.000Z",
  "revisionNumber": "1721172183",
  "name": "Labor subtotal",
  "barcode": "012345678905",
  "isActive": true,
  "description": "Subtotal for all labor costs on this project",
  "specialItemType": "finance_charge",
  "externalId": "12345678-abcd-1234-abcd-1234567890ab",
  "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"

Body

application/json

Response

200 - application/json
Returns the newly created subtotal item.

The response is of type object.