curl --request POST \
--url https://api-stage.orchestro.ai/e1/shipment-orders \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: <content-type>' \
--data @- <<EOF
{
"callerType": "SHIPPER",
"accounts": [
{
"accountNumber": "TEST_ACCOUNT_1",
"accountType": "SHIPPER"
}
],
"parcels": [
{
"serviceType": "GRD",
"shipFrom": {
"name": "The City Secretary's Office",
"address1": "1500 Marilla Street",
"city": "Dallas",
"state": "TX",
"zip": "75201",
"country": "US",
"company": "Dallas City Hall",
"address2": "",
"phone": "",
"email": "",
"addressType": "B"
},
"shipTo": {
"name": "The City Secretary's Office",
"address1": "1500 Marilla Street",
"city": "Dallas",
"state": "TX",
"zip": "75201",
"country": "US",
"company": "Dallas City Hall",
"address2": "",
"phone": "",
"email": "",
"addressType": "B"
},
"weight": {
"value": 6,
"unit": "lb"
},
"rates": [
{
"zone": 7,
"serviceType": "GRD",
"tnt": 7,
"baseRate": 3.92,
"totalRate": 24.47
}
],
"shipmentDate": "2023-12-22T06:34:00",
"parcelType": "P",
"serviceAttributes": [
{
"code": "AD_SIGN",
"description": "Adult Signature Required",
"rate": 3.98
}
],
"surcharges": [
{
"code": "FUEL",
"description": "Fuel Surcharge",
"rate": 5.98
}
],
"dimensions": {
"unit": "inch",
"length": 12,
"width": 12,
"height": 4
}
}
]
}
EOF{
"message": "SUCCESS"
}This endpoint allows users to create a new shipment order with parcel and account details.
curl --request POST \
--url https://api-stage.orchestro.ai/e1/shipment-orders \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: <content-type>' \
--data @- <<EOF
{
"callerType": "SHIPPER",
"accounts": [
{
"accountNumber": "TEST_ACCOUNT_1",
"accountType": "SHIPPER"
}
],
"parcels": [
{
"serviceType": "GRD",
"shipFrom": {
"name": "The City Secretary's Office",
"address1": "1500 Marilla Street",
"city": "Dallas",
"state": "TX",
"zip": "75201",
"country": "US",
"company": "Dallas City Hall",
"address2": "",
"phone": "",
"email": "",
"addressType": "B"
},
"shipTo": {
"name": "The City Secretary's Office",
"address1": "1500 Marilla Street",
"city": "Dallas",
"state": "TX",
"zip": "75201",
"country": "US",
"company": "Dallas City Hall",
"address2": "",
"phone": "",
"email": "",
"addressType": "B"
},
"weight": {
"value": 6,
"unit": "lb"
},
"rates": [
{
"zone": 7,
"serviceType": "GRD",
"tnt": 7,
"baseRate": 3.92,
"totalRate": 24.47
}
],
"shipmentDate": "2023-12-22T06:34:00",
"parcelType": "P",
"serviceAttributes": [
{
"code": "AD_SIGN",
"description": "Adult Signature Required",
"rate": 3.98
}
],
"surcharges": [
{
"code": "FUEL",
"description": "Fuel Surcharge",
"rate": 5.98
}
],
"dimensions": {
"unit": "inch",
"length": 12,
"width": 12,
"height": 4
}
}
]
}
EOF{
"message": "SUCCESS"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
"application/json"
"Bearer token"
Type of caller initiating the shipment
SHIPPER, CARRIER, RSE "SHIPPER"
List of account details. A minimum of 1 and a maximum of 3 accounts can be provided.
1 - 3 elementsArray containing details for each parcel in the shipment. Maximum of 10 parcels allowed.
1 - 10 elementsShow child attributes
Type of service used for the shipment, e.g., ground or express.
"GRD"
Address details for either the shipper or recipient.
Show child attributes
Name of the person or department receiving the parcel.
"The City Secretary's Office"
Primary address line.
"1500 Marilla Street"
City name.
"Dallas"
Two-letter state code.
"TX"
Postal or ZIP code.
"75201"
Country code, following the ISO 3166-1 alpha-2 standard.
"US"
Company name associated with the shipment address.
"Dallas City Hall"
Secondary address line, if applicable.
""
Contact phone number.
""
Email address for notifications.
""
Address type, either Business (B) or Residential (R).
"B"
Address details for either the shipper or recipient.
Show child attributes
Name of the person or department receiving the parcel.
"The City Secretary's Office"
Primary address line.
"1500 Marilla Street"
City name.
"Dallas"
Two-letter state code.
"TX"
Postal or ZIP code.
"75201"
Country code, following the ISO 3166-1 alpha-2 standard.
"US"
Company name associated with the shipment address.
"Dallas City Hall"
Secondary address line, if applicable.
""
Contact phone number.
""
Email address for notifications.
""
Address type, either Business (B) or Residential (R).
"B"
Array of rate information, including base rate and total rate for the parcel.
Show child attributes
Shipping zone.
7
Service type, such as ground shipping.
"GRD"
Time to transit.
7
Base rate for the service.
3.92
Total rate including all charges.
24.47
Date and time of the shipment.
"2023-12-22T06:34:00"
Parcel type, reserved for future use.
"P"
List of additional service attributes for the parcel, such as delivery instructions.
Show child attributes
Service attribute code indicating special delivery options.
"AD_SIGN"
Description of the service attribute.
"Adult Signature Required"
Charge applied for the service attribute.
3.98
List of surcharges applied to the parcel, such as fuel charges.
Show child attributes
Shipment order created successfully.
"SUCCESS"