plans
Endpoint to take in order and item information from a partner, and generated the best shipment plan based on their configured fulfillment network.
Changed onpost/api/v1/fe/plans
Request
- Base URLhttps://api.shipium.com
- AuthOAuth 2PasswordToken URLhttps://auth.shipium.com/oauth/tokenScopesdelivery-experience-service
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"orders": [
{
"partnerOrderId": "myCustomPartnerOrderId123",
"orderedDateTime": "2019-10-28T14:34:55.123456Z",
"currencyCode": "usd",
"desiredDeliveryDate": "2019-10-31T20:00:00Z",
"businessDaysOfTransit": 3,
"shipOption": "Standard",
"shippedDateTime": "2019-10-29T09:12:33.123456Z",
"destinationAddress": {
"name": "Wile E. Coyote",
"company": "ACME",
"street1": "123 Main St.",
"street2": "Suite 42",
"city": "Albuquerque",
"region": "NM",
"countryCode": "US",
"postalCode": "\"87121\"",
"addressType": "commercial"
},
"orderItemQuantities": [
{
"productId": "RN03947--Z43121"
}
],
"packagingType": {
"linearDimensions": {
"linearUnit": "in",
"length": 13,
"width": 12,
"height": 10
},
"weight": {
"weightUnit": "lb",
"weight": 50
},
"maxContentWeight": {
"weightUnit": "lb",
"weight": 50
}
}
}
],
"productDetails": [
{
"linearDimensions": {
"linearUnit": "in",
"length": 13,
"width": 12,
"height": 10
},
"weight": {
"weightUnit": "lb",
"weight": 50
},
"hazmatInfo": {
"category": "defined",
"quantity": 2.1,
"quantityType": "gross",
"quantityUnits": "l",
"containerType": "aluminum_jerrican",
"hazmatId": "UN1755",
"properShippingName": "Chromic Acid Solution",
"packingGroup": "II",
"transportMode": "passenger_and_cargo_aircraft",
"packingInstructionCode": "967",
"hazardClass": "class_8_corrosive_material",
"subsidiaryClasses": [
"8.1"
],
"numberOfInnerPackagings": 2,
"innerPackagingType": "glass bottle",
"outerPackagingType": "fiberboard box",
"shipperDeclarationStatement": "LQ_air",
"wattHours": 100,
"lithiumContent": 1.5,
"numberOfCells": 4,
"numberOfBatteries": 2,
"batteryConfiguration": "packed_with_equipment"
}
}
],
"packagingTypes": [
{
"linearDimensions": {
"linearUnit": "in",
"length": 13,
"width": 12,
"height": 10
},
"weight": {
"weightUnit": "lb",
"weight": 50
},
"maxContentWeight": {
"weightUnit": "lb",
"weight": 50
}
}
],
"fulfillmentCenters": [
{
"packagingTypes": [
{
"linearDimensions": {
"linearUnit": "in",
"length": 13,
"width": 12,
"height": 10
},
"weight": {
"weightUnit": "lb",
"weight": 50
},
"maxContentWeight": {
"weightUnit": "lb",
"weight": 50
}
}
]
}
]
}Response
Details on plan, shipment candidates calculated.
Example response
{
"urn": "urn:fe:global-config:FE91F3A8-6838-469A-B9F8-2D82127573DC:1",
"auditInfo": {
"version": 1
},
"proposedShipments": [
{
"cost": {
"performance": {
"estimatedDeliveryDateLocal": "2007-12-03T10:15:30"
}
},
"destinationAddress": {
"name": "Wile E. Coyote",
"company": "ACME",
"street1": "123 Main St.",
"street2": "Suite 42",
"city": "Albuquerque",
"region": "NM",
"countryCode": "US",
"postalCode": "\"87121\"",
"addressType": "commercial"
},
"packagingType": {
"linearDimensions": {
"linearUnit": "in",
"length": 13,
"width": 12,
"height": 10
},
"weight": {
"weightUnit": "lb",
"weight": 50
},
"maxContentWeight": {
"weightUnit": "lb",
"weight": 50
}
},
"shipmentItems": [
{
"productId": "RN03947--Z43121",
"linearDimensions": {
"linearUnit": "in",
"length": 13,
"width": 12,
"height": 10
},
"weight": {
"weightUnit": "lb",
"weight": 50
}
}
],
"totalWeight": {
"weightUnit": "lb",
"weight": 50
}
}
],
"unfulfillableItems": [
{
"orderItem": {
"productId": "RN03947--Z43121"
}
}
]
}Changes
- info
endpoint added
- info