Retrieve a discount item
Changed onRetrieves a discount item by ID.
IMPORTANT: If you need to fetch multiple specific discount items by ID, use the list endpoint instead with the ids parameter. It accepts an array of IDs so you can batch the request into a single call, which is significantly faster.
Request
- Base URLhttps://api.conductor.is/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
The QuickBooks-assigned unique identifier of the discount item to retrieve.
Headers
The ID of the End-User to receive this request.
Response
Returns the specified discount item.
Example response
{
"id": "80000001-1234567890",
"objectType": "qbd_discount_item",
"createdAt": "2025-01-01T12:34:56+00:00",
"updatedAt": "2025-02-01T12:34:56+00:00",
"revisionNumber": "1721172183",
"name": "10% labor discount",
"fullName": "Discounts:10% labor discount",
"barcode": "012345678905",
"isActive": true,
"class": {
"id": "80000001-1234567890",
"fullName": "Discounts"
},
"parent": {
"id": "80000001-1234567890",
"fullName": "Discounts"
},
"sublevel": 1,
"description": "10% discount for early payment on labor charges",
"salesTaxCode": {
"id": "80000001-1234567890",
"fullName": "Non"
},
"discountRate": "25.00",
"discountRatePercent": "10.5",
"account": {
"id": "80000001-1234567890",
"fullName": "Discounts"
},
"externalId": "12345678-abcd-1234-abcd-1234567890ab",
"customFields": [
{
"ownerId": "0",
"name": "Customer Rating",
"type": "string_1024_type",
"value": "Premium"
}
]
}Changes
- warning
for the
pathrequest parameterid, the maxLength was set to36
- warning
- breaking
response property
account/fullNamelist-of-types was widened by adding typesnullto media typeapplication/jsonof response200 - breaking
response property
account/idlist-of-types was widened by adding typesnullto media typeapplication/jsonof response200 - breaking
response property
barcodelist-of-types was widened by adding typesnullto media typeapplication/jsonof response200 - breaking
response property
descriptionlist-of-types was widened by adding typesnullto media typeapplication/jsonof response200 - breaking
response property
discountRatelist-of-types was widened by adding typesnullto media typeapplication/jsonof response200 - breaking
response property
discountRatePercentlist-of-types was widened by adding typesnullto media typeapplication/jsonof response200 - breaking
response property
externalIdlist-of-types was widened by adding typesnullto media typeapplication/jsonof response200 - breaking
the
response's property type changed fromobjectnullto no type for status - breaking
the
response's property type changed fromobjectnullto no type for status - breaking
the
response's property type changed fromobjectnullto no type for status - breaking
removed the required property
/from the response with the status - breaking
removed the required property
/from the response with the status - breaking
removed the required property
/from the response with the status - breaking
removed the required property
/from the response with the status - breaking
removed the required property
/from the response with the status - breaking
removed the required property
/from the response with the status - info
added
subschema #1subschema #2to theresponse propertyanyOflist for the response status - info
added
subschema #1subschema #2to theresponse propertyanyOflist for the response status - info
added
subschema #1subschema #2to theresponse propertyanyOflist for the response status
- breaking