Endpoint 01
create-shipping-order
TMF700 v4 createShippingOrder. Acknowledges the delivery request and returns a schema-valid, tracking-ready shipping order.
- Status
- 201
- Priority
- 0
- Paths
- 3
Bound paths
-
POST
shipping.tmfmock.com/shippingOrder -
POST
shipping.tmfmock.com/tmf700/createShippingOrder -
POST
shipping.tmfmock.com/tmf-api/shippingOrder/v4/shippingOrder
Request conditions
DefaultEvery request matching a bound method and path uses this rule.
Bound response rule
JSON formula{
"body": {
"id": {
"$var": "shippingOrderId"
},
"href": {
"$concat": [
{
"$request": "origin"
},
"/shippingOrder/",
{
"$var": "shippingOrderId"
}
]
},
"@type": "ShippingOrder",
"state": "acknowledged",
"orderDate": "2026-08-30T00:00:00Z",
"trackingCode": {
"$var": "trackingCode"
},
"shippingOrderItem": [
{
"id": "1",
"@type": "ShippingOrderItem",
"state": "acknowledged",
"action": "add",
"product": {
"id": {
"$request": {
"path": "body.shippingOrderItem.0.product.id",
"default": "MOCK-SKU"
}
},
"@type": "ProductRefOrValue"
},
"quantity": "1"
},
{
"id": "2",
"@type": "ShippingOrderItem",
"state": "acknowledged",
"action": "add",
"product": {
"id": "MOCK-SIM",
"@type": "ProductRefOrValue"
},
"quantity": "1"
}
],
"shippingInstructions": {
"$request": {
"path": "body.shippingInstructions",
"default": "Mock delivery"
}
}
},
"status": 201,
"headers": {
"Location": {
"$concat": [
{
"$request": "origin"
},
"/shippingOrder/",
{
"$var": "shippingOrderId"
}
]
},
"Content-Type": "application/json; charset=utf-8"
},
"variables": {
"trackingCode": {
"$random": "uuid"
},
"shippingOrderId": {
"$request": {
"path": "headers.idempotency-key",
"default": {
"$random": "uuid"
}
}
}
}
}