Skip to main content
POST
/
shipments
/
new
Create shipment with tracking
curl --request POST \
  --url https://api.zochil.io/v3/monitoring/shipments/new \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "product_id": 1,
  "order_id": 123,
  "merchant_id": 456,
  "package_weight": 1.5
}
'
{
  "data": {
    "shipment_id": 123,
    "tracking_number": "<string>",
    "barcode": "<string>",
    "order_code": "<string>"
  }
}

Authorizations

access-token
string
header
required

Body

application/json
product_id
integer
required

The product ID from the order

order_id
integer
required

The order ID to create shipment for

merchant_id
integer
required

The merchant ID

package_weight
number
required

Package weight in kg

Required range: x >= 0

Response

Shipment created successfully

data
object