Update a discount item
Updates a discount item, including its linked account or discount rate. When changing the account, use updateExistingTransactionsAccount to control whether existing transactions that reference the item should also be updated.
post/quickbooks-desktop/discount-items/{id}
Path parameters
idstring required
The QuickBooks-assigned unique identifier of the discount item to update.
Example:80000001-1234567890
The QuickBooks-assigned unique identifier of the discount item to update.
Headers
Conductor-End-User-Idstring required
The ID of the End-User to receive this request.
Example:end_usr_1234567abcdefg
The ID of the End-User to receive this request.
Request body
Example request
{
"revisionNumber": "1721172183",
"name": "10% labor discount",
"barcode": {
"value": "012345678905"
},
"isActive": true,
"classId": "80000001-1234567890",
"parentId": "80000001-1234567890",
"description": "10% discount for early payment on labor charges",
"salesTaxCodeId": "80000001-1234567890",
"discountRate": "25.00",
"discountRatePercent": "10.5",
"accountId": "80000001-1234567890"
}Response
Returns the updated 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"
}
]
}