import Conductor from 'conductor-node';
const conductor = new Conductor({
apiKey: 'My API Key',
});
const salesTaxItem = await conductor.qbd.salesTaxItems.create({
name: 'Standard Tax',
conductorEndUserId: 'end_usr_1234567abcdefg',
});
console.log(salesTaxItem.id);
{
"id": "80000001-1234567890",
"objectType": "qbd_sales_tax_item",
"createdAt": "2021-10-01T12:34:56-05:00",
"updatedAt": "2021-10-01T15:45:30-05:00",
"revisionNumber": "1721172183",
"name": "Standard Tax",
"barcode": "012345678905",
"isActive": true,
"class": {
"id": "80000001-1234567890",
"fullName": "State-Sales-Tax"
},
"description": "Standard rate sales tax for California",
"taxRate": "7.5",
"taxVendor": {
"id": "80000001-1234567890",
"fullName": "State Tax Agency"
},
"salesTaxReturnLine": {
"id": "80000001-1234567890",
"fullName": "Line 1: State Sales Tax"
},
"externalId": "12345678-abcd-1234-abcd-1234567890ab",
"customFields": [
{
"ownerId": "0",
"name": "Customer Rating",
"type": "string_1024_type",
"value": "Premium"
}
]
}
Creates a new sales-tax item.
import Conductor from 'conductor-node';
const conductor = new Conductor({
apiKey: 'My API Key',
});
const salesTaxItem = await conductor.qbd.salesTaxItems.create({
name: 'Standard Tax',
conductorEndUserId: 'end_usr_1234567abcdefg',
});
console.log(salesTaxItem.id);
{
"id": "80000001-1234567890",
"objectType": "qbd_sales_tax_item",
"createdAt": "2021-10-01T12:34:56-05:00",
"updatedAt": "2021-10-01T15:45:30-05:00",
"revisionNumber": "1721172183",
"name": "Standard Tax",
"barcode": "012345678905",
"isActive": true,
"class": {
"id": "80000001-1234567890",
"fullName": "State-Sales-Tax"
},
"description": "Standard rate sales tax for California",
"taxRate": "7.5",
"taxVendor": {
"id": "80000001-1234567890",
"fullName": "State Tax Agency"
},
"salesTaxReturnLine": {
"id": "80000001-1234567890",
"fullName": "Line 1: State Sales Tax"
},
"externalId": "12345678-abcd-1234-abcd-1234567890ab",
"customFields": [
{
"ownerId": "0",
"name": "Customer Rating",
"type": "string_1024_type",
"value": "Premium"
}
]
}
Your Conductor secret key using Bearer auth (e.g., "Authorization: Bearer {{YOUR_SECRET_KEY}}"
).
The ID of the EndUser to receive this request (e.g., "Conductor-End-User-Id: {{END_USER_ID}}"
).
"end_usr_1234567abcdefg"
Returns the newly created sales-tax item.
The response is of type object
.