curl --location 'https://headless.treez.io/v2.0/dispensary/partnersandbox2/ecommerce/customer/orders/f8e38a71-0859-4c55-825d-3776f7a04873' \
--header 'client_id: 1234EXAMPLECLIENTID567890' \
--header 'client_secret: 1234EXAMPLECLIENTSECRET567890' \
--header 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJzY290dC50aGFjaGVyK2Vjb21tMTVAdHJlZXouaW8iLCJjcmVhdGVkIjoxNjkwNDg5NTIyNjQ0LCJrdXAiOjMzNzY0LCJleHAiOjE2OTA0OTAxMjIsInN1cCI6MTEwMH0.my-vL8fHQ3Z1bA_1V4Aw2PlhtyBoBJ48Q4IdY2zUuB8zzDhm5GhW4PhBSxXZq1a-13NE6h3-HnVvOGN471B1PA'
{
"resultCode": "SUCCESS",
"resultReason": null,
"ticket": {
"resultCode": null,
"resultReason": null,
"orderId": "f8e38a71-0859-4c55-825d-3776f7a04873",
"type": "PICKUP",
"status": "COMPLETED",
"orderNumber": "KUCVVY",
"customerId": 33764,
"customerType": "MEDICAL-REGULAR",
"ticketDeliveryInfo": {
"deliveryPresent": false,
"retryAvailable": false,
"deliveryProviderType": null,
"status": null,
"shipmentUrl": null,
"providerShipmentId": null,
"shipmentErrorDescription": null,
"recipientName": null,
"recipientPhone": null
},
"address": {
"id": 7225,
"street": "1611 Telegraph Ave",
"city": "Oakland",
"state": "CA",
"county": null,
"country": null,
"type": null,
"zip": "94612",
"comment": "EioxNjExIFRlbGVncmFwaCBBdmUsIE9ha2xhbmQsIENBIDk0NjEyLCBVU0EiMRIvChQKEglPr9kvsoCPgBF3GEaMx_u4WRDLDCoUChIJ266QOuB9hYARJ5_YXxqZ430",
"longitude": null,
"latitude": null,
"apt": "",
"primary": false
},
"dateCreated": "2023-07-27T14:56:07.000Z",
"dateClosed": 1690469821000,
"lastUpdateAt": "2023-07-27T14:57:01.000Z",
"items": [
{
"id": "4b1f6ed5-371b-4d22-b727-38be82253d12",
"productId": "3d993325-1f9d-4098-b5a5-128d9222fc03",
"type": "FLOWER",
"subtype": "PRE-PACK",
"brand": "MIRAYO",
"name": "DOC OG",
"quantity": 1.0,
"originalQuantity": 0.0,
"weight": 3.5,
"size": "1.0",
"unitType": "GRAMS",
"barcodes": "",
"priceSell": "100",
"tax": 0.1075,
"lineIndex": 1,
"discountDescription": "",
"originalPrice": 100.0,
"unitId": "592509f3-8abc-4345-b025-ea0f4f115de4",
"packageId": "95951a9d-3ad5-4ef1-a6e1-1dd2121c628c",
"packageLabel": "1070",
"refundedQuantity": 0.0,
"locationId": "dee1e014-6ff7-11e9-b685-0280fd4571a6",
"deli": false
}
],
"totalItems": 1,
"unavailableItems": null,
"subTotal": "85",
"adjustedSubTotal": "85",
"tax": "23.26",
"total": "108.26",
"deliveryCost": "0",
"discount": "-15",
"tierDiscount": "0",
"payByPoints": "-0",
"historyResults": [
{
"status": "AWAITING_PROCESSING",
"description": "",
"date": "2023-07-27T14:56:07.000Z",
"user": "Customer",
"userId": "Ecommerce"
},
{
"status": "IN_PROCESS",
"description": "",
"date": "2023-07-27T14:56:31.000Z",
"user": "Curtis Budtender",
"userId": null
},
{
"status": "PACKED_READY",
"description": "",
"date": "2023-07-27T14:56:37.000Z",
"user": "Curtis Budtender",
"userId": null
},
{
"status": "COMPLETED",
"description": "Ticket Paid",
"date": "2023-07-27T14:57:03.000Z",
"user": "Curtis Budtender",
"userId": null
}
],
"customer": {
"id": 33764,
"firstName": "LEEROY",
"lastName": "JENKINS",
"nickName": "",
"middleName": null,
"phone": "5107418315",
"email": "[email protected]",
"status": "ACTIVE",
"driverLicenseId": "CA4567891321",
"age": 70,
"source": "WEB",
"firstSale": false,
"warning1": false,
"warning2": false,
"banned": false,
"licenseExpired": false,
"medicalRecordExpired": false
},
"pushedBack": false,
"message": [],
"taxTotals": {
"533242b9-1999-462c-b3f0-41658a408de3": {
"visibleName": "Sales Tax",
"name": "Sales Tax w/ MMID Cannabis Exemption",
"id": "533242b9-1999-462c-b3f0-41658a408de3",
"rate": 0.1075,
"area": null,
"startDate": null,
"endDate": null,
"taxType": "SALES",
"layerId": null,
"displayOrder": null,
"areaTaxLayer": null,
"customerType": "MEDICAL",
"productType": "EVERYTHING",
"productCategories": null,
"currentFlag": true,
"total": 10.508125,
"taxableAmount": 97.75,
"taxOrderNumber": null
},
"172ee5c5-5f69-4957-85b6-d0fe982a1b17": {
"visibleName": "Custom Tax",
"name": "Service Fee",
"id": "172ee5c5-5f69-4957-85b6-d0fe982a1b17",
"rate": 0.15,
"area": null,
"startDate": null,
"endDate": null,
"taxType": "CUSTOM",
"layerId": null,
"displayOrder": null,
"areaTaxLayer": null,
"customerType": "MEDICAL",
"productType": "CANNABIS",
"productCategories": null,
"currentFlag": true,
"total": 12.75,
"taxableAmount": 85.0,
"taxOrderNumber": null
}
},
"creator": "Onlinemenu User",
"source": "ECOMMERCE",
"paymentStatus": "PAID",
"paymentMethods": [
"CASH"
],
"revenueSource": "Treez eCommerce",
"isDeliveryRoute": false,
"kioskNoCustomer": false
},
"history": [
{
"status": "AWAITING_PROCESSING",
"description": "",
"date": "2023-07-27T14:56:07.000Z",
"user": "Customer",
"userId": "Ecommerce"
},
{
"status": "IN_PROCESS",
"description": "",
"date": "2023-07-27T14:56:31.000Z",
"user": "Curtis Budtender",
"userId": null
},
{
"status": "PACKED_READY",
"description": "",
"date": "2023-07-27T14:56:37.000Z",
"user": "Scott Thacher",
"userId": null
},
{
"status": "COMPLETED",
"description": "Ticket Paid",
"date": "2023-07-27T14:57:03.000Z",
"user": "Curtis Budtender",
"userId": null
}
],
"ticketTotals": {
"subTotal": 100.0,
"total": 108.26,
"discountTotal": -15.0,
"unroundedTotal": 0.0,
"rewardDiscountTotal": 0.0,
"taxTotal": 23.258125,
"tierDiscountTotal": 0.0,
"adjustedSubtotal": 85.0,
"deliveryFee": 0.0,
"paymentFee": 0.0,
"payByPoints": 0.0,
"feeTotals": {
"fees": [],
"totalAmount": 0,
"unroundedTotalAmount": 0
},
"taxTotals": {
"533242b9-1999-462c-b3f0-41658a408de3": {
"visibleName": "Sales Tax",
"name": "Sales Tax w/ MMID Cannabis Exemption",
"id": "533242b9-1999-462c-b3f0-41658a408de3",
"rate": 0.1075,
"area": null,
"startDate": null,
"endDate": null,
"taxType": "SALES",
"layerId": null,
"displayOrder": null,
"areaTaxLayer": null,
"customerType": "MEDICAL",
"productType": "EVERYTHING",
"productCategories": null,
"currentFlag": true,
"total": 10.508125,
"taxableAmount": 97.75,
"taxOrderNumber": null
},
"172ee5c5-5f69-4957-85b6-d0fe982a1b17": {
"visibleName": "Custom Tax",
"name": "Service Fee",
"id": "172ee5c5-5f69-4957-85b6-d0fe982a1b17",
"rate": 0.15,
"area": null,
"startDate": null,
"endDate": null,
"taxType": "CUSTOM",
"layerId": null,
"displayOrder": null,
"areaTaxLayer": null,
"customerType": "MEDICAL",
"productType": "CANNABIS",
"productCategories": null,
"currentFlag": true,
"total": 12.75,
"taxableAmount": 85.0,
"taxOrderNumber": null
}
}
}
}