curl --location 'https://headless.treez.io/v2.0/dispensary/partnersandbox2/ecommerce/tickettotals/DELIVERY' \
--header 'client_id: 1234EXAMPLECLIENTID567890' \
--header 'client_secret: 1234EXAMPLECLIENTSECRET567890' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJzY290dC50aGFjaGVyK2Vjb21tMkB0cmVlei5pbyIsImNyZWF0ZWQiOjE2OTA1NTYxODY0NzcsImt1cCI6MzM3NjQsImV4cCI6MTY5MDU1Njc4Niwic3VwIjoxMTAwfQ.RgAVPQrDAoKu2CRknQgFOY2qFn2bTZEwNxhbfYOl50mS55WcNs5S2DGb6Vr6b6uAFwCQRX9HqilQhN6IievhGQ' \
--data '{
"ticketItems": [
{
"runningPrice": 40,
"price": 40,
"originalPrice": 40,
"discountPrice": 40,
"productId": "9577a74e-f92a-4ac7-8887-31e2a4595681",
"unit": 1,
"tax": 0.095,
"weight": 0.5,
"discount": 0,
"taxOther": 0,
"discountDescription": "",
"customerType": "ADULT"
},
{
"runningPrice": 10,
"price": 10,
"originalPrice": 10,
"discountPrice": 10,
"productId": "7b9406c0-0621-11e8-b4e9-02429027d658",
"unit": 1,
"tax": 0.095,
"weight": 0.5,
"discount": 0,
"taxOther": 0,
"discountDescription": "",
"customerType": "ADULT"
}
],
"delivery": true,
"ticketDiscounts": [
{
"discountNumericType": 2,
"title": "Rewards Redemption",
"method": "DOLLAR",
"stackable": true,
"rewardable": true,
"restaurantId": 1,
"currentFlag": true,
"amount": 0,
"adjustment": false,
"isPos": true,
"isCart": true,
"discountRules": [
{
"ruleCategory": "POS",
"ruleName": "IS_CART",
"ruleValue": "true"
}
]
}
],
"deliveryAddress": {
"street1": "5249 W Century Blvd",
"city": "Los Angeles",
"county": "Los Angeles",
"zipcode": "90045",
"stateAbbr": "CA",
"state": "California",
"country": "USA"
}
}'
{
"resultCode": "SUCCESS",
"resultReason": null,
"resultDetail": null,
"data": {
"ticketId": "8b4ba365-7bbc-4213-834b-7e6755db2406",
"originalTicketId": null,
"customerId": 33764,
"ticketItems": [
{
"id": "df648a41-1a53-477d-998e-dbb8badf6481",
"originalTicketlineId": null,
"productId": "9577a74e-f92a-4ac7-8887-31e2a4595681",
"pretaxPrice": 36.0,
"price": 45.8505,
"productPrice": 40.0,
"discountPrice": 40.0,
"postTierPrice": 40.0,
"runningPrice": 45.8505,
"originalPrice": 40.0,
"unit": 1.0,
"weight": 3.5,
"tax": 0.095,
"taxOther": 0.0,
"discount": 0.0,
"discountDescription": "",
"categoryId": "9577a74e-f92a-4ac7-8887-31e2a4595681",
"inventoryTypeId": "7e2b2130-da84-11e5-bc38-5c514f48b06a",
"inventoryType": "FLOWER",
"tier": null,
"label": null,
"imStrainDetailId": null,
"unitId": "83f1a604-c851-42dc-9557-8d8fab500490",
"stateTrackingId": null,
"invoiceNumber": null,
"dispensaryLicense": null,
"unitOfMeasure": "GRAMS",
"createdAt": null,
"salesTaxId": null,
"salesTaxCalculated": null,
"applyAutomaticDiscount": true,
"ticketItemDiscounts": [
{
"id": "353730d8-c775-4558-8ed9-576368c1fe64",
"applicationId": null,
"originalDiscountDollarAmount": 4.0,
"discountDollarAmount": 4.0,
"multiplier": 1.0,
"discountDescription": null,
"discountType": "PERCENT",
"stackable": true,
"rewardable": false,
"discountTitle": "POS DISCOUNT - KS 01",
"adjustment": false,
"note": null,
"amount": 10.0,
"cart": false,
"displaySettings": null,
"discountNumericType": "AUTOMATIC_DISCOUNT"
},
{
"id": null,
"applicationId": null,
"originalDiscountDollarAmount": 0.0,
"discountDollarAmount": 0.0,
"multiplier": 1.0,
"discountDescription": null,
"discountType": "DOLLAR",
"stackable": true,
"rewardable": true,
"discountTitle": "Rewards Redemption",
"adjustment": false,
"note": null,
"amount": 0.0,
"cart": true,
"displaySettings": null,
"discountNumericType": "REWARD_DOLLARS"
}
],
"ticketItemAreaTaxes": [
{
"visibleName": "Custom Tax",
"name": "Service Fee",
"id": "86640f62-3b1b-4969-8ff8-afb578029d54",
"rate": 0.15,
"area": null,
"startDate": 1687967191000,
"endDate": null,
"taxType": "CUSTOM",
"layerId": "a0c4bf34-6e9c-42b4-b0e5-c9bfe7f74572",
"displayOrder": 7,
"areaTaxLayer": {
"id": "3b96e11f-ad50-4350-94ac-5523664a7532",
"visibleName": "Virtual Combined Layer",
"layerOrder": 0,
"type": "ALL",
"locked": true,
"dateCreated": 1518455994000,
"dateUpdated": 1687967243000,
"dateDestroyed": 1518455994000,
"currentFlag": true
},
"customerType": "ADULT",
"productType": "EVERYTHING",
"productCategories": null,
"currentFlag": true,
"total": 5.3999999999999995,
"taxableAmount": 36.0,
"taxOrderNumber": null
},
{
"visibleName": "Sales Tax",
"name": "Sales Tax",
"id": "1d5f46b5-150b-4003-b534-bc74d17e5efc",
"rate": 0.1075,
"area": null,
"startDate": 1621453712000,
"endDate": null,
"taxType": "SALES",
"layerId": "a2193203-2432-49f3-b0ec-49fbf2fdc20f",
"displayOrder": 1,
"areaTaxLayer": {
"id": "1f714f95-ee88-47e4-8736-81326766f72f",
"visibleName": "Virtual Combined Layer",
"layerOrder": 1,
"type": "ALL",
"locked": false,
"dateCreated": 1621453712000,
"dateUpdated": 1687967243000,
"dateDestroyed": null,
"currentFlag": true
},
"customerType": "ADULT",
"productType": "EVERYTHING",
"productCategories": null,
"currentFlag": true,
"total": 4.4505,
"taxableAmount": 41.4,
"taxOrderNumber": null
}
],
"postTaxApplied": false,
"originalCategory": null,
"originalQuantity": null,
"originalProductWeight": null,
"originalProductWeightUom": null,
"originalProductVolume": null,
"originalProductVolumeUom": null,
"originalProductUom": null,
"originalProductQuantityType": null,
"originalUnitThcContent": null,
"originalUnitThcContentUom": null,
"customerType": "ADULT",
"lineIndex": null,
"originalLineIndex": null
},
{
"id": "e8901620-b653-47c4-80f6-3d35760a24e0",
"originalTicketlineId": null,
"productId": "7b9406c0-0621-11e8-b4e9-02429027d658",
"pretaxPrice": 8.5,
"price": 10.8258125,
"productPrice": 10.0,
"discountPrice": 10.0,
"postTierPrice": 10.0,
"runningPrice": 10.8258125,
"originalPrice": 10.0,
"unit": 1.0,
"weight": 600.0,
"tax": 0.095,
"taxOther": 0.0,
"discount": 0.0,
"discountDescription": "",
"categoryId": "7b9406c0-0621-11e8-b4e9-02429027d658",
"inventoryTypeId": "7e2b2130-da84-11e5-bc38-5c514f48b06a",
"inventoryType": "FLOWER",
"tier": null,
"label": null,
"imStrainDetailId": null,
"unitId": "1b6f24d4-e0dd-4ad2-b1a8-6f8647ba7a08",
"stateTrackingId": null,
"invoiceNumber": null,
"dispensaryLicense": null,
"unitOfMeasure": "MILLIGRAMS",
"createdAt": null,
"salesTaxId": null,
"salesTaxCalculated": null,
"applyAutomaticDiscount": true,
"ticketItemDiscounts": [
{
"id": "353730d8-c775-4558-8ed9-576368c1fe64",
"applicationId": null,
"originalDiscountDollarAmount": 1.0,
"discountDollarAmount": 1.0,
"multiplier": 1.0,
"discountDescription": null,
"discountType": "PERCENT",
"stackable": true,
"rewardable": false,
"discountTitle": "POS DISCOUNT - KS 01",
"adjustment": false,
"note": null,
"amount": 10.0,
"cart": false,
"displaySettings": null,
"discountNumericType": "AUTOMATIC_DISCOUNT"
},
{
"id": "7cb3d2b8-9e01-43d7-b157-f8fa08d388ae",
"applicationId": null,
"originalDiscountDollarAmount": 0.5,
"discountDollarAmount": 0.5,
"multiplier": 1.0,
"discountDescription": null,
"discountType": "PERCENT",
"stackable": true,
"rewardable": false,
"discountTitle": "TEST UT",
"adjustment": false,
"note": null,
"amount": 5.0,
"cart": false,
"displaySettings": null,
"discountNumericType": "AUTOMATIC_DISCOUNT"
},
{
"id": null,
"applicationId": null,
"originalDiscountDollarAmount": 0.0,
"discountDollarAmount": 0.0,
"multiplier": 1.0,
"discountDescription": null,
"discountType": "DOLLAR",
"stackable": true,
"rewardable": true,
"discountTitle": "Rewards Redemption",
"adjustment": false,
"note": null,
"amount": 0.0,
"cart": true,
"displaySettings": null,
"discountNumericType": "REWARD_DOLLARS"
}
],
"ticketItemAreaTaxes": [
{
"visibleName": "Custom Tax",
"name": "Service Fee",
"id": "86640f62-3b1b-4969-8ff8-afb578029d54",
"rate": 0.15,
"area": null,
"startDate": 1687967191000,
"endDate": null,
"taxType": "CUSTOM",
"layerId": "a0c4bf34-6e9c-42b4-b0e5-c9bfe7f74572",
"displayOrder": 7,
"areaTaxLayer": {
"id": "3b96e11f-ad50-4350-94ac-5523664a7532",
"visibleName": "Virtual Combined Layer",
"layerOrder": 0,
"type": "ALL",
"locked": true,
"dateCreated": 1518455994000,
"dateUpdated": 1687967243000,
"dateDestroyed": 1518455994000,
"currentFlag": true
},
"customerType": "ADULT",
"productType": "EVERYTHING",
"productCategories": null,
"currentFlag": true,
"total": 1.275,
"taxableAmount": 8.5,
"taxOrderNumber": null
},
{
"visibleName": "Sales Tax",
"name": "Sales Tax",
"id": "1d5f46b5-150b-4003-b534-bc74d17e5efc",
"rate": 0.1075,
"area": null,
"startDate": 1621453712000,
"endDate": null,
"taxType": "SALES",
"layerId": "a2193203-2432-49f3-b0ec-49fbf2fdc20f",
"displayOrder": 1,
"areaTaxLayer": {
"id": "1f714f95-ee88-47e4-8736-81326766f72f",
"visibleName": "Virtual Combined Layer",
"layerOrder": 1,
"type": "ALL",
"locked": false,
"dateCreated": 1621453712000,
"dateUpdated": 1687967243000,
"dateDestroyed": null,
"currentFlag": true
},
"customerType": "ADULT",
"productType": "EVERYTHING",
"productCategories": null,
"currentFlag": true,
"total": 1.0508125,
"taxableAmount": 9.775,
"taxOrderNumber": null
}
],
"postTaxApplied": false,
"originalCategory": null,
"originalQuantity": null,
"originalProductWeight": null,
"originalProductWeightUom": null,
"originalProductVolume": null,
"originalProductVolumeUom": null,
"originalProductUom": null,
"originalProductQuantityType": null,
"originalUnitThcContent": null,
"originalUnitThcContentUom": null,
"customerType": "ADULT",
"lineIndex": null,
"originalLineIndex": null
}
],
"payByPoints": 0.0,
"usageLimitInfo": {
"Plants": {
"name": "Plants",
"used": 0.0,
"total": 0.0,
"limit": 6.0,
"limitAmountUnit": "QUANTITY",
"letPay": true,
"behavior": "STRICT",
"limitExceeded": false
},
"Non-concentrated": {
"name": "Non-concentrated",
"used": 4.1,
"total": 4.1,
"limit": 28.5,
"limitAmountUnit": "GRAMS",
"letPay": true,
"behavior": "STRICT",
"limitExceeded": false
},
"Concentrated": {
"name": "Concentrated",
"used": 0.0,
"total": 0.0,
"limit": 8.0,
"limitAmountUnit": "GRAMS",
"letPay": true,
"behavior": "STRICT",
"limitExceeded": false
}
},
"areaTaxes": [],
"masterAreaTaxes": [],
"ticketTotals": {
"subTotal": 50.0,
"total": 69.41,
"discountTotal": -5.5,
"unroundedTotal": 69.4125625,
"rewardDiscountTotal": 0.0,
"taxTotal": 14.9125625,
"tierDiscountTotal": 0.0,
"adjustedSubtotal": 44.5,
"deliveryFee": 10.0,
"paymentFee": 0.0,
"payByPoints": 0.0,
"feeTotals": {
"fees": [],
"totalAmount": 0,
"unroundedTotalAmount": 0
},
"taxTotals": {
"86640f62-3b1b-4969-8ff8-afb578029d54": {
"visibleName": "Custom Tax",
"name": "Service Fee",
"id": "86640f62-3b1b-4969-8ff8-afb578029d54",
"rate": 0.15,
"area": null,
"startDate": 1687967191000,
"endDate": null,
"taxType": "CUSTOM",
"layerId": "a0c4bf34-6e9c-42b4-b0e5-c9bfe7f74572",
"displayOrder": 7,
"areaTaxLayer": {
"id": "3b96e11f-ad50-4350-94ac-5523664a7532",
"visibleName": "Virtual Combined Layer",
"layerOrder": 0,
"type": "ALL",
"locked": true,
"dateCreated": 1518455994000,
"dateUpdated": 1687967243000,
"dateDestroyed": 1518455994000,
"currentFlag": true
},
"customerType": "ADULT",
"productType": "EVERYTHING",
"productCategories": null,
"currentFlag": true,
"total": 8.174999999999999,
"taxableAmount": 36.0,
"taxOrderNumber": null
},
"1d5f46b5-150b-4003-b534-bc74d17e5efc": {
"visibleName": "Sales Tax",
"name": "Sales Tax",
"id": "1d5f46b5-150b-4003-b534-bc74d17e5efc",
"rate": 0.1075,
"area": null,
"startDate": 1621453712000,
"endDate": null,
"taxType": "SALES",
"layerId": "a2193203-2432-49f3-b0ec-49fbf2fdc20f",
"displayOrder": 1,
"areaTaxLayer": {
"id": "1f714f95-ee88-47e4-8736-81326766f72f",
"visibleName": "Virtual Combined Layer",
"layerOrder": 1,
"type": "ALL",
"locked": false,
"dateCreated": 1621453712000,
"dateUpdated": 1687967243000,
"dateDestroyed": null,
"currentFlag": true
},
"customerType": "ADULT",
"productType": "EVERYTHING",
"productCategories": null,
"currentFlag": true,
"total": 6.7375625,
"taxableAmount": 41.4,
"taxOrderNumber": null
}
}
},
"deliveryAddress": {
"distributionStartDate": null,
"distributionDate": null,
"id": null,
"street1": "5249 W Century Blvd",
"street2": null,
"city": "Los Angeles",
"zipcode": "90045",
"county": "Los Angeles",
"comment": null,
"stateId": null,
"placeId": null,
"state": "California",
"stateAbbr": "CA",
"type": null
},
"ticketDiscounts": [],
"customer": {
"id": 33764,
"firstName": "LEEROY",
"lastName": "JENKINS",
"signupDate": 1682966372000,
"loginTime": null,
"dob": "1979-02-25",
"customerGroups": [],
"visits": null,
"adultUse": false,
"mmid": false
},
"ticketStatus": null,
"dateOpen": null,
"type": "DELIVERY",
"feesRequired": [],
"delivery": false,
"onlineOrder": false
}
}