Create sales under the retail capable license_number provided.
OK
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array of objects | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Bad Request
{- "sales": [
- {
- "license": {
- "license_number": "XXXRETAIL01"
}, - "customer_types": {
- "id": "CAKOMCT0001"
}, - "external_id": "0012345",
- "terminal": "23678-AM",
- "created_at": {
- "date": "2022-05-26T15:44:00Z",
- "local_time": "2022-05-26T15:44:00"
}, - "out_of_state_sale": true,
- "identifications": [
- {
- "types": {
- "id": "CAKOMIT0001"
}, - "id": "CADL123565",
- "birthday": "1982-04-26T00:00:01Z"
}, - {
- "types": {
- "id": "CAKOMIT0002"
}, - "id": "PATIENTID001"
}, - {
- "types": {
- "id": "CAKOMIT0003"
}, - "id": "CAREGIVEID12345"
}
], - "employees": {
- "id": "0a50cbaf8c1b471aaa427de20facb641"
}, - "line_items": [
- {
- "lot": {
- "id": "487fa179018e45d08b204ca4de67ca6d"
}, - "discount": "1.00",
- "quantity": "1",
- "unit_price": "10.00",
- "taxes": [
- {
- "type": {
- "id": "KOMTAX0001"
}, - "name": "CA MJ Sales Tax",
- "rate": "10.00",
- "total": "1.00"
}, - {
- "type": {
- "id": "KOMTAX0002"
}, - "name": "Excise Tax",
- "rate": "15.00",
- "total": "1.50"
}
], - "total": "11.50"
}, - {
- "lot": {
- "id": "9890c38942b948b291ff9ead560468b3"
}, - "discount": "1.00",
- "quantity": "1",
- "unit_price": "10.00",
- "taxes": [
- {
- "type": {
- "id": "KOMTAX0001"
}, - "name": "CA MJ Sales Tax",
- "rate": "10.00",
- "total": "1.00"
}, - {
- "type": {
- "id": "KOMTAX0002"
}, - "name": "Excise Tax",
- "rate": "15.00",
- "total": "1.50"
}
], - "total": "11.50"
}
], - "currency": {
- "id": "KOMCURT0001"
}, - "totals": {
- "subtotal": "18.00",
- "quantity": "2",
- "total": "23.00"
}, - "payments": [
- {
- "id": "XXXXXDEB123",
- "amount": "23.00",
- "type": {
- "id": "CAKOMPT0002"
}
}
]
}
]
}{- "results": {
- "type": "object",
- "data": {
- "license": {
- "license_number": "XXXRETAIL01",
- "type": {
- "name": "Type 12"
}
}, - "id": "80d15c7713a74feeb4c1c5f533697644",
- "receipt_number": "60071",
- "customer_types": {
- "id": "CAKOMCT0001",
- "name": "adult"
}, - "external_id": "0012345",
- "terminal": "23678-AM",
- "created_at": {
- "date": "2022-05-26T15:44:00Z",
- "local_time": "2022-05-26T15:44:00Z"
}, - "out_of_state_sale": true,
- "identifications": [
- {
- "types": {
- "id": "CAKOMIT0001",
- "name": "drivers_license"
}
}
], - "employees": {
- "id": "0a50cbaf8c1b471aaa427de20facb641",
- "name": {
- "first_name": "John",
- "last_name": "Smith"
}
}, - "line_items": [
- {
- "lot": {
- "id": "4ec56bd8397149f2a70e803dedd26334"
}, - "name": "Larry OG Special Sauce",
- "discount": "1.00",
- "quantity": "1.0",
- "unit_of_measure": "Each",
- "unit_price": "10.00",
- "taxes": [
- {
- "type": {
- "id": "KOMTAX0001",
- "name": "Sales Tax"
}, - "name": "Sales Tax - 01",
- "rate": "10.00",
- "total": "4.50"
}, - {
- "type": {
- "id": "KOMTAX0001",
- "name": "Sales Tax"
}, - "name": "Sales Tax - 02",
- "rate": "10.00",
- "total": "1.00"
}
], - "total": "14.50"
}, - {
- "lot": {
- "id": "f93fed1f329c46759a8d4a1e46e924f7"
}, - "name": "Skunk OG Pre-Roll",
- "discount": "1.00",
- "quantity": "1.0",
- "unit_of_measure": "Grams",
- "unit_price": "10.00",
- "taxes": [
- {
- "type": {
- "id": "KOMTAX0001",
- "name": "Sales Tax"
}, - "name": "Sales Tax",
- "rate": "10.00",
- "total": "4.50"
}, - {
- "type": {
- "id": "KOMTAX0002",
- "name": "Excise Tax"
}, - "name": "Excise Tax",
- "rate": "1.00",
- "total": "0.10"
}
], - "total": "13.60"
}
], - "currency": {
- "id": "KOMCURT0001",
- "name": "USD"
}, - "totals": {
- "subtotal": "18.00",
- "quantity": "2.0",
- "taxes": [
- {
- "type": {
- "id": "KOMTAX0001",
- "name": "Sales Tax"
}, - "total": "10.00"
}, - {
- "type": {
- "id": "KOMTAX0002",
- "name": "Excise Tax"
}, - "total": "0.10"
}
], - "total": "28.10"
}, - "payments": [
- {
- "id": "XXXXDEB123",
- "amount": "28.10",
- "type": {
- "id": "CAKOMPT0002",
- "name": "cash"
}
}
], - "entity_state": [
- {
- "state": "active",
- "date": "2022-06-17T16:53:40Z",
- "reason": "sale created",
- "actioned_by": "system generated"
}, - {
- "state": "updated",
- "date": "2022-06-17T16:53:40Z",
- "reason": "sale updated",
- "actioned_by": "system generated"
}
]
}
}, - "warnings": [
- {
- "detail": "sales.created_at entered is 529 hours before the current time stamp 2022-06-17T16:53:39Z",
- "type": "created_at"
}, - {
- "detail": "sales.local_time entered is 529 hours before the current time stamp 2022-06-17T16:53:39Z",
- "type": "local_time"
}
]
}Retrieve sales details for all active sales records.
| license_number required | string Reference (entity_ID) for the license. This is the business license number issued by the state. Example: license_number=ABC-1234 |
| limit | number Optional parameter that allows you to specify a number to limit the results in the response. Default limit is 100. Example: limit=100 |
| offset | number Optional parameter that allows you to offset records if the max number for the filter exceeds the limit. Example: offset=0 |
OK
object | |||||||||||||||||
| |||||||||||||||||
Array of objects | |||||||||||||||||
Bad Request
{- "results": {
- "type": "array",
- "records": {
- "count": "0 - 100",
- "total": 437,
- "previous": null,
}, - "data": [
- {
- "license": {
- "license_number": "A12-0000015-LIC",
- "type": {
- "name": "Type 12"
}
}, - "id": "658cf07615194aa4a5267887a74f7b5b",
- "receipt_number": "0000067180",
- "customer_types": {
- "id": "CAKOMCT0001",
- "name": "adult"
}, - "external_id": "ABC1234",
- "terminal": "01122023-BL",
- "created_at": {
- "date": "2023-01-11T12:44:00Z",
- "local_time": "2023-01-11T12:44:00"
}, - "out_of_state_sale": true,
- "identifications": [
- {
- "types": {
- "id": "CAKOMIT0001",
- "name": "drivers_license"
}
}
], - "employees": {
- "id": "0a50cbaf8c1b471aaa427de20facb641",
- "name": {
- "first_name": "Barney",
- "last_name": "Sanf"
}
}, - "line_items": [
- {
- "lot": {
- "id": "4ec56bd8397149f2a70e803dedd26334"
}, - "name": "CA metrc inserted LOT__599402__1672779734612",
- "discount": "1.00",
- "quantity": "1.0",
- "unit_of_measure": "Each",
- "unit_price": "10.00",
- "taxes": [
- {
- "type": {
- "id": "KOMTAX0001",
- "name": "Sales Tax"
}, - "name": "Sales Tax - 01",
- "rate": "10.00",
- "total": "1.00"
}, - {
- "type": {
- "id": "KOMTAX0001",
- "name": "Sales Tax"
}, - "name": "Sales Tax - 02",
- "rate": "5.00",
- "total": ".50"
}
], - "total": "10.50"
}, - {
- "lot": {
- "id": "f93fed1f329c46759a8d4a1e46e924f7"
}, - "name": "CA metrc inserted LOT__107901__1673622697548",
- "discount": "2.00",
- "quantity": "1.0",
- "unit_of_measure": "Grams",
- "unit_price": "20.00",
- "taxes": [
- {
- "type": {
- "id": "KOMTAX0001",
- "name": "Sales Tax"
}, - "name": "Sales Tax",
- "rate": "10.00",
- "total": "2"
}, - {
- "type": {
- "id": "KOMTAX0002",
- "name": "Excise Tax"
}, - "name": "Excise Tax",
- "rate": "1.00",
- "total": ".20"
}
], - "total": "20.20"
}
], - "currency": {
- "id": "KOMCURT0001",
- "name": "USD"
}, - "totals": {
- "subtotal": "27.00",
- "quantity": "2",
- "taxes": [
- {
- "type": {
- "id": "KOMTAX0001",
- "name": "Sales Tax"
}, - "total": "3.50"
}, - {
- "type": {
- "id": "KOMTAX0002",
- "name": "Excise Tax"
}, - "total": "0.20"
}
], - "total": "30.70"
}, - "payments": [
- {
- "id": "XXXXXDEB1234__2023-01-30T19:38:52Z",
- "amount": "30.70",
- "type": {
- "id": "CAKOMPT0002",
- "name": "cash"
}
}
], - "entity_state": [
- {
- "state": "active",
- "date": "2023-01-30T19:38:52Z",
- "reason": "sale created",
- "actioned_by": "system generated"
}, - {
- "state": "updated",
- "date": "2023-01-30T19:38:52Z",
- "reason": "sale updated",
- "actioned_by": "system generated"
}
], - "warnings": [
- {
- "detail": "sales.created_at entered is 462 hours before the current time stamp 2023-01-30T19:38:51Z",
- "type": "created_at"
}, - {
- "detail": "sales.local_time entered is 462 hours before the current time stamp 2023-01-30T19:38:51",
- "type": "local_time"
}
]
}, - {
- "license": {
- "license_number": "A12-0000015-LIC",
- "type": {
- "name": "Type 12"
}
}, - "id": "658cf07615194aa4a5267887a74f7b5b",
- "receipt_number": "0000067180",
- "customer_types": {
- "id": "CAKOMCT0001",
- "name": "adult"
}, - "external_id": "ABC1234",
- "terminal": "01122023-BL",
- "created_at": {
- "date": "2023-01-11T12:44:00Z",
- "local_time": "2023-01-11T12:44:00"
}, - "out_of_state_sale": true,
- "identifications": [
- {
- "types": {
- "id": "CAKOMIT0001",
- "name": "drivers_license"
}
}
], - "employees": {
- "id": "0a50cbaf8c1b471aaa427de20facb641",
- "name": {
- "first_name": "Barney",
- "last_name": "Sanf"
}
}, - "line_items": [
- {
- "lot": {
- "id": "4ec56bd8397149f2a70e803dedd26334"
}, - "name": "CA metrc inserted LOT__599402__1672779734612",
- "discount": "1.00",
- "quantity": "1.0",
- "unit_of_measure": "Each",
- "unit_price": "10.00",
- "taxes": [
- {
- "type": {
- "id": "KOMTAX0001",
- "name": "Sales Tax"
}, - "name": "Sales Tax - 01",
- "rate": "10.00",
- "total": "1.00"
}, - {
- "type": {
- "id": "KOMTAX0001",
- "name": "Sales Tax"
}, - "name": "Sales Tax - 02",
- "rate": "10.00",
- "total": "1.00"
}
], - "total": "11.00"
}, - {
- "lot": {
- "id": "f93fed1f329c46759a8d4a1e46e924f7"
}, - "name": "CA metrc inserted LOT__107901__1673622697548",
- "discount": "1.00",
- "quantity": "1.0",
- "unit_of_measure": "Grams",
- "unit_price": "30.00",
- "taxes": [
- {
- "type": {
- "id": "KOMTAX0001",
- "name": "Sales Tax"
}, - "name": "Sales Tax",
- "rate": "10.00",
- "total": "3.00"
}, - {
- "type": {
- "id": "KOMTAX0002",
- "name": "Excise Tax"
}, - "name": "Excise Tax 101",
- "rate": "1.00",
- "total": "0.30"
}
], - "total": "32.30"
}
], - "currency": {
- "id": "KOMCURT0001",
- "name": "USD"
}, - "totals": {
- "subtotal": "38.00",
- "quantity": "2.0",
- "taxes": [
- {
- "type": {
- "id": "KOMTAX0001",
- "name": "Sales Tax"
}, - "total": "5.00"
}, - {
- "type": {
- "id": "KOMTAX0002",
- "name": "Excise Tax"
}, - "total": "0.30"
}
], - "total": "43.30"
}, - "payments": [
- {
- "id": "XXXXXDEB1234__2023-01-30T19:38:52Z",
- "amount": "43.30",
- "type": {
- "id": "CAKOMPT0002",
- "name": "cash"
}
}
], - "entity_state": [
- {
- "state": "active",
- "date": "2023-01-30T19:38:52Z",
- "reason": "sale created",
- "actioned_by": "system generated"
}, - {
- "state": "updated",
- "date": "2023-01-30T19:38:52Z",
- "reason": "sale updated",
- "actioned_by": "system generated"
}
], - "warnings": [
- {
- "detail": "sales.created_at entered is 462 hours before the current time stamp 2023-01-30T19:38:51Z",
- "type": "created_at"
}, - {
- "detail": "sales.local_time entered is 462 hours before the current time stamp 2023-01-30T19:38:51",
- "type": "local_time"
}
]
}
]
}, - "warnings": [ ]
}Retrieve sales details for one or more sales records.
OK
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array of objects | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Bad Request
{- "results": {
- "type": "object",
- "data": {
- "license": {
- "license_number": "XXXRETAIL01",
- "type": {
- "name": "Type 12"
}
}, - "id": "80d15c7713a74feeb4c1c5f533697644",
- "receipt_number": "60071",
- "customer_types": {
- "id": "CAKOMCT0001",
- "name": "adult"
}, - "external_id": "ABC1234",
- "terminal": "23678-AM",
- "created_at": {
- "date": "2022-05-26T15:44:00Z",
- "local_time": "2022-05-26T15:44:00Z"
}, - "out_of_state_sale": true,
- "identifications": [
- {
- "types": {
- "id": "CAKOMIT0001",
- "name": "drivers_license"
}
}
], - "employees": {
- "id": "0a50cbaf8c1b471aaa427de20facb641",
- "name": {
- "first_name": "John",
- "last_name": "Smith"
}
}, - "line_items": [
- {
- "lot": {
- "id": "4ec56bd8397149f2a70e803dedd26334"
}, - "name": "Larry OG Special Sauce",
- "discount": "1.00",
- "quantity": "1.0",
- "unit_of_measure": "Each",
- "unit_price": "20.00",
- "taxes": [
- {
- "type": {
- "id": "KOMTAX0001",
- "name": "Sales Tax"
}, - "name": "Sales Tax - 01",
- "rate": "10.00",
- "total": "2.00"
}, - {
- "type": {
- "id": "KOMTAX0001",
- "name": "Sales Tax"
}, - "name": "Sales Tax - 02",
- "rate": "10.00",
- "total": "2.00"
}
], - "total": "23"
}, - {
- "lot": {
- "id": "f93fed1f329c46759a8d4a1e46e924f7"
}, - "name": "Skunk OG Pre-Roll",
- "discount": "0.00",
- "quantity": "1.0",
- "unit_of_measure": "Grams",
- "unit_price": "10.00",
- "taxes": [
- {
- "type": {
- "id": "KOMTAX0001",
- "name": "Sales Tax"
}, - "name": "Sales Tax",
- "rate": "10.00",
- "total": "1.00"
}, - {
- "type": {
- "id": "KOMTAX0002",
- "name": "Excise Tax"
}, - "name": "Excise Tax",
- "rate": "1.00",
- "total": "1.00"
}
], - "total": "12.00"
}
], - "currency": {
- "id": "KOMCURT0001",
- "name": "USD"
}, - "totals": {
- "subtotal": "29.00",
- "quantity": "2.0",
- "taxes": [
- {
- "type": {
- "id": "KOMTAX0001",
- "name": "Sales Tax"
}, - "total": "5.00"
}, - {
- "type": {
- "id": "KOMTAX0002",
- "name": "Excise Tax"
}, - "total": "1.00"
}
], - "total": "35.00"
}, - "payments": [
- {
- "id": "XXXXDEB123",
- "amount": "35.00",
- "type": {
- "id": "CAKOMPT0002",
- "name": "cash"
}
}
], - "entity_state": [
- {
- "state": "active",
- "date": "2022-06-17T16:53:40Z",
- "reason": "sale created",
- "actioned_by": "system generated"
}, - {
- "state": "updated",
- "date": "2022-06-17T16:53:40Z",
- "reason": "sale updated",
- "actioned_by": "system generated"
}
]
}
}, - "warnings": [
- {
- "detail": "sales.created_at entered is 529 hours before the current time stamp 2022-06-17T16:53:39Z",
- "type": "created_at"
}, - {
- "detail": "sales.local_time entered is 529 hours before the current time stamp 2022-06-17T16:53:39Z",
- "type": "local_time"
}
]
}Update the product registered under the license_number provided.
| id required | string Reference (entity_ID) for the sale you are updating. Example: 80d15c7713a74feeb4c1c5f533697644 |
| state required | string Lower case ANSI standard 38:2009 USPS codes of the US state where licensee is operating. |
required | object |
| actions required | object Specific action id from sales/actions for the update request. Note: different put requests require different structures. |
| price_change_date required | string time stamp in ISO 8601 UTC format representing the time the price change was made. |
required | object Trace currency id retrieved from sales/currency_types. Must match original sale currency. |
required | Array of objects Array of one or more lots in which you are attempting to update the price on for a particular sale. |
OK
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array of objects | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Bad Request
{- "license": {
- "license_number": "XXXRETAIL01"
}, - "actions": {
- "id": "KMSAN0002"
}, - "price_change_date": "2021-05-21T20:29:19Z",
- "currency": {
- "id": "KOMCURT0001"
}, - "line_items": [
- {
- "lot": {
- "id": "b29cc14d394941d9a2cd48abf64c9d1c"
}, - "amount": "10.00"
}
]
}{- "results": {
- "type": "object",
- "data": {
- "license": {
- "license_number": "XXXRETAIL01",
- "type": {
- "name": "Dispensaries"
}
}, - "id": "532ebe135f7a40db837b4445f55b213c",
- "receipt_number": "0000012345",
- "customer_types": {
- "id": "CAKOMCT0001",
- "name": "adult"
}, - "terminal": "xxxxxxx-1002",
- "created_at": {
- "date": "2021-12-21T01:00:15Z",
- "local_time": "2021-12-21T01:00:15"
}, - "out_of_state_sale": true,
- "identifications": [
- {
- "type": {
- "id": "CAKOMIT0001",
- "name": "drivers_license"
}
}, - {
- "type": {
- "id": "CAKOMIT0002",
- "name": "patient_id"
}
}, - {
- "type": {
- "id": "CAKOMIT0003",
- "name": "caregiver_id"
}
}
], - "employees": {
- "id": "0a50cbaf8c1b471aaa427de20facb641",
- "name": {
- "first_name": "John",
- "last_name": "Smith"
}
}, - "line_items": [
- {
- "lot": {
- "id": "487fa179018e45d08b204ca4de67ca6d"
}, - "name": "lot name",
- "quantity": "1",
- "unit_of_measure": "Grams",
- "unit_price": "10.00",
- "subtotal": "10.00"
}, - {
- "lot": {
- "id": "9890c38942b948b291ff9ead560468b3"
}, - "name": "Lot name",
- "quantity": "3",
- "unit_of_measure": "Grams",
- "unit_price": "10.00",
- "subtotal": "30.00"
}
], - "currency": {
- "id": "KOMCURT0001",
- "name": "USD"
}, - "taxes": [
- {
- "type": "Local Sales Tax",
- "rate": "10.00",
- "subtotal": "4.50"
}, - {
- "type": "City Cannabis Tax",
- "rate": "5.00",
- "subtotal": "2.25"
}, - {
- "type": "State Cannabis Tax",
- "rate": "10.00",
- "subtotal": "4.50"
}
], - "totals": {
- "amount": "51.25",
- "quantity": "4"
}, - "payments": [
- {
- "id": "XXXTERM-0001",
- "amount": "51.25",
- "type": {
- "id": "CAKOMPT0002"
}
}
], - "entity_state": [
- {
- "state": "active",
- "date": "2022-02-10T10:57:03Z",
- "reason": "sale created",
- "actioned_by": "system generated"
}, - {
- "state": "updated",
- "date": "2022-02-10T11:00:04Z",
- "reason": "sale updated",
- "actioned_by": "system generated"
}, - {
- "state": "change_price",
- "date": "2022-02-10T11:00:04Z",
- "reason": "price updated on 33wa9b62fe1c47e4970c55ec6c7ff899 from 8 to 10",
- "actioned_by": "system generated"
}
]
}
}, - "warnings": [ ]
}