Delivery

Create Delivery

Create a delivery under the delivery capable license_number provided.

SecurityApiKeyAuth and CustomAuth
Request
path Parameters
state
required
string

Lower case ANSI standard 38:2009 USPS codes of the US state where licensee is operating.

Enum: "ca" "or" "nv" "mt" "co" "mi" "il" "ma" "ri" "nj" "md" "de" "va" "oh" "ky" "al" "ms" "mn" "la" "ok" "sd" "me"
header Parameters
x-api-key
required
string

Trace API key header

Example: b123x21wbHlkYXBpa2V5
Authorization
required
string

Company and user credentials authentication

Example: KMP-JSON token=dmVuZG9yLWFwaS1rZXk6dX12312sdfs2V5
Request Body schema: application/json
required
object
license_number
required
string

Reference (entity_ID) for the license. This is the business license number issued by the state.

estimated_departure
required
string <date-time>

The estimated departure date and time of the delivery.

required
object

The type of delivery.

id
required
string

The ID of the delivery type.

required
object

The transporter details for the delivery.

required
object
license_number
required
string

Reference (entity_ID) for the license. This is the business license number issued by the state.

required
object

The vehicle details of the transporter.

make
required
string

The make of the vehicle.

model
required
string

The model of the vehicle.

plate_number
required
string

The license plate number of the vehicle.

required
Array of objects

The personnel involved in the transportation.

Array
first_name
required
string

The first name of the personnel.

last_name
required
string

The last name of the personnel.

phone_number
required
string

The phone number of the personnel.

driver_license_number
required
string

The driver's license number of the personnel.

employee_license_number
required
string

The state/metrc issued license number of the employee.

required
Array of objects

The orders included in the delivery.

Array
required
object

The type of order.

id
required
string

The ID of the order type.

stop_number
required
integer

The stop number of the order in the delivery sequence.

required
object

The delivery information for the order.

consumer_id
required
string

The unique identifier for the customer that can be used to identify them.

customer_name
required
string

The name of the customer receiving the delivery.

customer_address_1
required
string

The primary address line for the customer's delivery location.

customer_address_2
string

The secondary address line for the customer's delivery location (if applicable).

customer_city
required
string

The city of the customer's delivery location.

customer_state
required
string

The state of the customer's delivery location.

customer_zip
required
string

The ZIP code of the customer's delivery location.

customer_county
string

The county of the customer's delivery location.

estimated_departure_time
required
string <date-time>

The estimated departure time for the order to the customer.

estimated_arrival_time
required
string <date-time>

The estimated arrival time for the order to the customer.

route_info
required
string

Directions to the customer's delivery location.

required
object

The type of customer receiving the delivery.

id
required
string

The ID of the customer type.

terminal
string

The terminal used for the order.

external_id
required
string

Idempotency key for the order, unique to the system creating the order.

required
object

The creation timestamp of the order.

date
required
string <date-time>

The date and time when the order was created.

local_time
required
string

The local date and time when the order was created without timezone.

required
Array of objects

Identifications associated with the order.

Array
required
object

The type of identification.

id
required
string

The identification value.

required
object

Employee associated with registering order.

id
required
string

The Trace ID of the employee."

required
Array of objects

The line items included in the order.

Array
required
object

The lot identifier for the line item.

discount
string

The discount applied to the line item.

quantity
required
string

The quantity of the item in the line item.

unit_price
required
string

The unit price of the item in the line item.

Array of objects

The taxes applied to the line item.

total
required
string

The total amount for the line item; calculated as unit_price * quantity - discount + sum(taxes).

required
object

The currency used for the order.

id
required
string

The ID of the sales/currency_types.

required
object

The totals for the order.

quantity
required
string

The total quantity of items in the order.

subtotal
required
string

The subtotal amount for the order before taxes and discounts.

total
required
string

The total amount for the order after taxes and discounts.

Responses
200

OK

Response Schema: application/json
object
type
string
Value: "object"
object
object
license_number
required
string

Reference (entity_ID) for the license. This is the business license number issued by the state.

estimated_departure
string <date-time>

The estimated departure date and time of the delivery.

object

The type of delivery.

id
string

The ID of the delivery type.

object

The transporter details for the delivery.

object
license_number
required
string

Reference (entity_ID) for the license. This is the business license number issued by the state.

object

The vehicle details of the transporter.

make
string

The make of the vehicle.

model
string

The model of the vehicle.

plate_number
string

The license plate number of the vehicle.

Array of objects

The personnel involved in the transportation.

Array
first_name
string

The first name of the personnel.

last_name
string

The last name of the personnel.

phone_number
string

The phone number of the personnel.

driver_license_number
string

The driver's license number of the personnel.

Array of objects

The orders included in the delivery.

Array
object

The type of order.

stop_number
integer

The stop number of the order in the delivery sequence.

object

The delivery information for the order.

object

The type of customer receiving the delivery.

terminal
string

The terminal used for the order.

external_id
string

Idempotency key for the order, unique to the system creating the order.

object

The creation timestamp of the order.

Array of objects

Identifications associated with the order.

object

Employee associated with registering order.

Array of objects

The line items included in the order.

object

The currency used for the order.

object

The totals for the order.

Array of objects
Array
type
string
detail
string
400

Bad Request

post/{state}/v1/deliveries
Request samples
application/json
[
  • {
    },
  • {
    }
]
Response samples
application/json
{
  • "results": {
    },
  • "warnings": [ ]
}

Get Deliveries

Retrieve deliveries details for all active delivery records.

SecurityApiKeyAuth and CustomAuth
Request
path Parameters
state
required
string

Lower case ANSI standard 38:2009 USPS codes of the US state where licensee is operating.

Enum: "ca" "or" "nv" "mt" "co" "mi" "il" "ma" "ri" "nj" "md" "de" "va" "oh" "ky" "al" "ms" "mn" "la" "ok" "sd" "me"
query Parameters
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
header Parameters
x-api-key
required
string

Trace API key header

Example: b123x21wbHlkYXBpa2V5
Authorization
required
string

Company and user credentials authentication

Example: KMP-JSON token=dmVuZG9yLWFwaS1rZXk6dX12312sdfs2V5
Responses
200

OK

Response Schema: application/json
object
type
string
Value: "array"
object
count
string

A string representing what records you are receiving out of the total for the filter criteria.

total
number

The total number of records returned based upon filter criteria.

previous
string or null

URL that when executed will return you to the last page set.

next
string or null

URL that when executed will take you to the next set of paginated records.

object
type
string
Value: "array"
Array of objects
Array
type
string
Value: "object"
object
Array of objects
Array
type
string
detail
string
400

Bad Request

get/{state}/v1/deliveries
Response samples
application/json
{
  • "results": {
    },
  • "warnings": [ ]
}

Get Delivery by ID

Get delivery details by delivery ID.

SecurityApiKeyAuth and CustomAuth
Request
path Parameters
state
required
string

Lower case ANSI standard 38:2009 USPS codes of the US state where licensee is operating.

Enum: "ca" "or" "nv" "mt" "co" "mi" "il" "ma" "ri" "nj" "md" "de" "va" "oh" "ky" "al" "ms" "mn" "la" "ok" "sd" "me"
id
required
string

Trace delivery id.

Example: 11il9b62fe1c47e4970c55ec6c7ff8jj
query Parameters
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
header Parameters
x-api-key
required
string

Trace API key header

Example: b123x21wbHlkYXBpa2V5
Authorization
required
string

Company and user credentials authentication

Example: KMP-JSON token=dmVuZG9yLWFwaS1rZXk6dX12312sdfs2V5
Responses
200

OK

Response Schema: application/json
object
type
string
Value: "object"
object
type
string
Value: "object"
object
object
license_number
required
string

Reference (entity_ID) for the license. This is the business license number issued by the state.

id
string

The unique identifier for the delivery.

estimated_departure
string <date-time>

The estimated departure date and time of the delivery.

actual_departure
string <date-time>

The actual departure date and time of the delivery.

total_orders
integer

The total number of orders in the delivery.

orders_completed
integer

The number of orders that have been completed in the delivery.

object

The type of delivery.

id
string

The ID of the delivery type.

name
string

The name of the delivery type.

object

The transporter details for the delivery.

object
object

The vehicle details of the transporter.

Array of objects

The personnel involved in the transportation.

Array of objects

The orders included in the delivery.

Array
id
string

The unique identifier for the order.

order_number
string

The order number mapped to Metrc delivery license_number.

object
object

The type of order.

stop_number
integer

The stop number of the order in the delivery sequence.

object

The delivery information for the order.

object

Additional order information.

Array of objects

list of state changes made to the entity. Entity states for sales [active,inactive,voided,refunded].

Array of objects
Array
type
string
detail
string
400

Bad Request

get/{state}/v1/deliveries/{id}
Response samples
application/json
{
  • "results": {
    },
  • "warnings": [ ]
}

Update Delivery

Update the delivery registered under the license_number provided.

SecurityApiKeyAuth and CustomAuth
Request
path Parameters
id
required
string

Reference (entity_ID) for the delivery you are updating.

Example: 80d15c7713a74feeb4c1c5f533697644
state
required
string

Lower case ANSI standard 38:2009 USPS codes of the US state where licensee is operating.

Enum: "ca" "or" "nv" "mt" "co" "mi" "il" "ma" "ri" "nj" "md" "de" "va" "oh" "ky" "al" "ms" "mn" "la" "ok" "sd" "me"
header Parameters
x-api-key
required
string

Trace API key header

Example: b123x21wbHlkYXBpa2V5
Authorization
required
string

Company and user credentials authentication

Example: KMP-JSON token=dmVuZG9yLWFwaS1rZXk6dX12312sdfs2V5
Request Body schema: application/json
required
object
license_number
required
string

Reference (entity_ID) for the license. This is the business license number issued by the state.

required
object

The action to be performed on the delivery.

id
string

The ID of the delivery action. (e.g., start, complete, cancel)

order_id
string

The order ID associated with the action, required for certain actions like voiding an order.

payment_method
string

The payment method used for the delivery, required for completing a delivery.

accepted_packages
Array of strings

List of accepted Lot IDs for the delivery, required for completing a delivery.

update_date
required
string <date-time>

The date and time when the action is performed in ISO 8601 format.

Responses
200

OK

Response Schema: application/json
object
type
string
Value: "object"
object
type
string
Value: "object"
object
object
license_number
required
string

Reference (entity_ID) for the license. This is the business license number issued by the state.

id
string

The unique identifier for the delivery.

estimated_departure
string <date-time>

The estimated departure date and time of the delivery.

actual_departure
string <date-time>

The actual departure date and time of the delivery.

total_orders
integer

The total number of orders in the delivery.

orders_completed
integer

The number of orders that have been completed in the delivery.

object

The type of delivery.

id
string

The ID of the delivery type.

name
string

The name of the delivery type.

object

The transporter details for the delivery.

object
object

The vehicle details of the transporter.

Array of objects

The personnel involved in the transportation.

Array of objects

The orders included in the delivery.

Array
id
string

The unique identifier for the order.

order_number
string

The order number mapped to Metrc delivery license_number.

object
object

The type of order.

stop_number
integer

The stop number of the order in the delivery sequence.

object

The delivery information for the order.

object

Additional order information.

Array of objects

list of state changes made to the entity. Entity states for sales [active,inactive,voided,refunded].

Array of objects
Array
type
string
detail
string
400

Bad Request

put/{state}/v1/deliveries/{id}
Request samples
application/json
{
  • "license": {
    },
  • "actions": {
    },
  • "update_date": "2025-09-12T09:09:50Z"
}
Response samples
application/json
{
  • "results": {
    },
  • "warnings": [ ]
}

Retrieve delivery actions

Retrieve a list of sales actions for updating a sale

SecurityApiKeyAuth and CustomAuth
Request
path Parameters
state
required
string

Lower case ANSI standard 38:2009 USPS codes of the US state where licensee is operating.

Enum: "ca" "or" "nv" "mt" "co" "mi" "il" "ma" "ri" "nj" "md" "de" "va" "oh" "ky" "al" "ms" "mn" "la" "ok" "sd" "me"
header Parameters
x-api-key
required
string

Trace API key header

Example: b123x21wbHlkYXBpa2V5
Authorization
required
string

Company and user credentials authentication

Example: KMP-JSON token=dmVuZG9yLWFwaS1rZXk6dX12312sdfs2V5
Responses
200

OK

Response Schema: application/json
object
type
string
Value: "array"
Array of objects
Array
id
string

The ID of the delivery action. (e.g., start, complete, void)

name
string

The name of the delivery action.

description
string

A brief description of the delivery action.

Array of objects
Array
type
string
detail
string
400

Bad Request

get/{state}/v1/deliveries/actions
Response samples
application/json
{
  • "results": {
    },
  • "warnings": [ ]
}