Skip to main content
POST
/
v1
/
equipment
/
carts
/
assign
Assign cart to order
curl --request POST \
  --url http://localhost:3000/v1/equipment/carts/assign \
  --header 'Content-Type: application/json' \
  --data '
{
  "cart_id": "011000001000020053",
  "order_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'
{
  "success": true,
  "cart": {
    "id": "011000001000020053",
    "display_id": "<string>",
    "label": "<string>",
    "type": "order",
    "color": "<string>",
    "animal": "<string>",
    "location": "<string>",
    "order_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  },
  "order": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "display_id": 123
  }
}

Body

application/json
cart_id
string
required

Cart taxonomy ID

Example:

"011000001000020053"

order_id
string<uuid>
required

Order UUID to assign

Response

Cart assigned to order

success
boolean
required
cart
object
required
order
object
required