Once you've created the tags you wish to use, you can add those tags to shipments so you can more easily query those shipments later.
- You'll need the
shipment_idof the shipment you wish to tag. - You'll need the tag value of the tag you are adding to the shipment.
TIP:
If the tag doesn't exist, we will create it for you. You can also create tags in advance manually.
POST /v1/shipments/:shipment_id/tags/:tag_name
POST /v1/shipments/se-2102034/tags/east_warehouse HTTP/1.1
Host: api.shipengine.com
API-Key: __YOUR_API_KEY_HERE__Response
{
"shipment_id": "se-2102034",
"tag": {
"name": "east_warehouse"
}
}