The Inbounds API allows you to create, track, and update inbound shipments.
You can also request and purchase rate quotes for those shipments.
Inbounds created using the API can either be sent to our LAX forwarding facility, a select reserve-storage facility, or direct to your assigned one-node facility (applies only to select Merchants).
Unless you have an assigned one-node facility, you cannot use the API to create an inbound that is sent directly to a specific Fulfillment-Network warehouse.
Get storage-warehouses that can store products.
Ok
Unauthorized
Forbidden
[- {
- "address1": "string",
- "address2": "string",
- "city": "string",
- "company": "string",
- "countryCode": "AF",
- "name": "string",
- "firstName": "string",
- "lastName": "string",
- "phone": "string",
- "provinceCode": "string",
- "zip": "string",
- "storageWarehouseId": "string"
}
]Create an inbounding shipment.
| palletCount | number <double> only used by STORAGE shipments; required when cargoType is PALLETIZED |
object (PrepRequestData) only used by NETWORK shipments & required for NETWORK shipments | |
| shippingPlanExternalId | string Unique identifier for the shipment. Recommended: Use an internal shipment ID or a UUID/GUID
e.g., On duplicates: Returns
|
| shippingPlanName | string |
| shipmentDestination | string (LogisticsInboundShipmentDestination) defaults to NETWORK; Classify the destination of the shipment. |
| bookingId | string^[Ff][Ll][Ee][Xx]- Booking ID is the ID of a Flexport shipment in Core. |
| storageWarehouseId | string Mandatory for STORAGE shipments (shipmentDestination: "STORAGE"). Not applicable for NETWORK shipments. The unique identifier of the storage-warehouse facility where the shipment will be stored. Valid storageWarehouseIds can be retrieved using the GetStorageWarehouses operation. |
| cargoType | string (LogisticsInboundCargoType) required for STORAGE shipments & optional for NETWORK shipments but if NULL defaulted to PALLETIZED |
object (ContainerInput) required when cargoType is FLOOR_LOADED_CONTAINER | |
required | object (InboundAddressV2) |
| destinationWarehouseId | string Required only for NETWORK shipments (shipmentDestination: "NETWORK"), and only when creating an inbound directly to a DTC fulfillment facility instead of using cross-docking for distribution. This field is available only for merchants on Multi-Node Zone-Based Pricing. Valid destinationWarehouseId values can be retrieved using the GetInboundsWarehouses operation. |
Array of objects (ItemDataV4) required for STORAGE shipments & optional for NETWORK shipments if packages are provided; The items on the shipment. Specify items if creating a blind inbound. | |
Array | |
Array of objects (PackageInputV3) only used by NETWORK shipments & optional if items are provided; The packages on the shipment. Packages do not need to be specified if creating an blind inbound where items are provided instead. | |
Array | |
Inbound Shipment created.
Bad Request
Unauthorized
Forbidden
{- "shipmentDestination": "NETWORK",
- "from": {
- "name": "John Smith",
- "address1": "123 Main St",
- "city": "New York",
- "provinceCode": "NY",
- "countryCode": "US",
- "zip": "10001"
}, - "shippingPlanExternalId": "plan-123",
- "shippingPlanName": "My Shipping Plan",
- "prep": {
- "boxContentLabels": true
}, - "items": [
- {
- "logisticsSku": "D1234567890",
- "quantity": 1,
- "lineItemId": "10"
}
]
}{- "id": "string",
- "receivingId": "string",
- "status": "PENDING",
- "items": [
- {
- "logisticsSku": "string",
- "shipmentItemId": "string",
- "counts": {
- "sellable": 0,
- "damaged": 0,
- "expected": 0
}, - "lineItemId": "string",
- "merchantSku": "string"
}
], - "packages": [
- {
- "length": 12,
- "width": 3,
- "height": 5,
- "weight": 3,
- "dimensionUnit": "in",
- "weightUnit": "oz",
- "id": "string",
- "identicalPackageConfigIdentifer": "string",
- "items": [
- {
- "logisticsSku": "string",
- "quantity": 0,
- "lotNumber": "string",
- "expirationDate": "2019-08-24",
- "lineItemId": "string"
}
], - "sellerLPN": "string"
}
], - "arrivedAt": "2019-08-24T14:15:22Z",
- "completedAt": "2019-08-24T14:15:22Z",
- "shippingPlanId": "string",
- "shippingPlanExternalId": "string",
- "shippingPlanName": "string",
- "bookingId": "string",
- "addresses": {
- "to": {
- "address1": "string",
- "address2": "string",
- "city": "string",
- "company": "string",
- "countryCode": "AF",
- "name": "string",
- "firstName": "string",
- "lastName": "string",
- "phone": "string",
- "provinceCode": "string",
- "zip": "string"
}, - "from": {
- "address1": "string",
- "address2": "string",
- "city": "string",
- "company": "string",
- "countryCode": "AF",
- "name": "string",
- "firstName": "string",
- "lastName": "string",
- "phone": "string",
- "provinceCode": "string",
- "zip": "string"
}
}, - "freight": {
- "pickup": {
- "id": 0,
- "contactName": "string",
- "contactPhone": "string",
- "contactEmail": "string",
- "liftGate": true,
- "pickupDate": "2019-08-24T14:15:22Z",
- "customerReferenceNumber": "string",
- "facilityOperatingHours": {
- "startTime": "string",
- "endTime": "string"
}
}, - "pallets": [
- {
- "id": 0,
- "palletConfigId": "string",
- "length": 0,
- "width": 0,
- "height": 0,
- "dimensionUnit": "string",
- "weight": 0,
- "weightUnit": "string"
}
], - "bolId": "string",
- "shippingProvider": "string",
- "proId": "string",
- "estimatedShipDate": "2019-08-24T14:15:22Z",
- "carrierEmailAddress": "string"
}, - "prep": {
- "boxContentLabels": true
}, - "shipmentDestination": "NETWORK",
- "cargoType": "PALLETIZED",
- "container": {
- "size": "GENERAL_20FT",
- "id": "string"
}
}Get inbounding shipments based on the provided shipmentIds.
Ok
Bad Request
Unauthorized
Forbidden
Shipment not found
[- {
- "status": "PENDING",
- "packages": [
- {
- "length": 12,
- "width": 3,
- "height": 5,
- "weight": 3,
- "dimensionUnit": "in",
- "weightUnit": "oz",
- "id": "string",
- "identicalPackageConfigIdentifer": "string",
- "items": [
- {
- "logisticsSku": "string",
- "quantity": 0,
- "lotNumber": "string",
- "expirationDate": "2019-08-24",
- "lineItemId": "string"
}
], - "sellerLPN": "string"
}
], - "id": "string",
- "prep": {
- "boxContentLabels": true
}, - "shippingPlanExternalId": "string",
- "shippingPlanName": "string",
- "shippingPlanId": "string",
- "freight": {
- "pickup": {
- "id": 0,
- "contactName": "string",
- "contactPhone": "string",
- "contactEmail": "string",
- "liftGate": true,
- "pickupDate": "2019-08-24T14:15:22Z",
- "customerReferenceNumber": "string",
- "facilityOperatingHours": {
- "startTime": "string",
- "endTime": "string"
}
}, - "pallets": [
- {
- "id": 0,
- "palletConfigId": "string",
- "length": 0,
- "width": 0,
- "height": 0,
- "dimensionUnit": "string",
- "weight": 0,
- "weightUnit": "string"
}
], - "bolId": "string",
- "shippingProvider": "string",
- "proId": "string",
- "estimatedShipDate": "2019-08-24T14:15:22Z",
- "carrierEmailAddress": "string"
}, - "arrivedAt": "2019-08-24T14:15:22Z",
- "completedAt": "2019-08-24T14:15:22Z",
- "shipmentDestination": "NETWORK",
- "bookingId": "string",
- "cargoType": "PALLETIZED",
- "container": {
- "size": "GENERAL_20FT",
- "id": "string"
}, - "receivingId": "string",
- "addresses": {
- "to": {
- "address1": "string",
- "address2": "string",
- "city": "string",
- "company": "string",
- "countryCode": "AF",
- "name": "string",
- "firstName": "string",
- "lastName": "string",
- "phone": "string",
- "provinceCode": "string",
- "zip": "string"
}, - "from": {
- "address1": "string",
- "address2": "string",
- "city": "string",
- "company": "string",
- "countryCode": "AF",
- "name": "string",
- "firstName": "string",
- "lastName": "string",
- "phone": "string",
- "provinceCode": "string",
- "zip": "string"
}
}, - "items": [
- {
- "logisticsSku": "string",
- "shipmentItemId": "string",
- "counts": {
- "sellable": 0,
- "damaged": 0,
- "expected": 0
}, - "lineItemId": "string",
- "merchantSku": "string",
- "packOfDsku": "string",
- "caseQty": 0
}
]
}
]Get an inbounding shipment.
Ok
Unauthorized
Forbidden
Shipment not found
{- "status": "PENDING",
- "packages": [
- {
- "length": 12,
- "width": 3,
- "height": 5,
- "weight": 3,
- "dimensionUnit": "in",
- "weightUnit": "oz",
- "id": "string",
- "identicalPackageConfigIdentifer": "string",
- "items": [
- {
- "logisticsSku": "string",
- "quantity": 0,
- "lotNumber": "string",
- "expirationDate": "2019-08-24",
- "lineItemId": "string"
}
], - "sellerLPN": "string"
}
], - "id": "string",
- "prep": {
- "boxContentLabels": true
}, - "shippingPlanExternalId": "string",
- "shippingPlanName": "string",
- "shippingPlanId": "string",
- "freight": {
- "pickup": {
- "id": 0,
- "contactName": "string",
- "contactPhone": "string",
- "contactEmail": "string",
- "liftGate": true,
- "pickupDate": "2019-08-24T14:15:22Z",
- "customerReferenceNumber": "string",
- "facilityOperatingHours": {
- "startTime": "string",
- "endTime": "string"
}
}, - "pallets": [
- {
- "id": 0,
- "palletConfigId": "string",
- "length": 0,
- "width": 0,
- "height": 0,
- "dimensionUnit": "string",
- "weight": 0,
- "weightUnit": "string"
}
], - "bolId": "string",
- "shippingProvider": "string",
- "proId": "string",
- "estimatedShipDate": "2019-08-24T14:15:22Z",
- "carrierEmailAddress": "string"
}, - "arrivedAt": "2019-08-24T14:15:22Z",
- "completedAt": "2019-08-24T14:15:22Z",
- "shipmentDestination": "NETWORK",
- "bookingId": "string",
- "cargoType": "PALLETIZED",
- "container": {
- "size": "GENERAL_20FT",
- "id": "string"
}, - "receivingId": "string",
- "addresses": {
- "to": {
- "address1": "string",
- "address2": "string",
- "city": "string",
- "company": "string",
- "countryCode": "AF",
- "name": "string",
- "firstName": "string",
- "lastName": "string",
- "phone": "string",
- "provinceCode": "string",
- "zip": "string"
}, - "from": {
- "address1": "string",
- "address2": "string",
- "city": "string",
- "company": "string",
- "countryCode": "AF",
- "name": "string",
- "firstName": "string",
- "lastName": "string",
- "phone": "string",
- "provinceCode": "string",
- "zip": "string"
}
}, - "items": [
- {
- "logisticsSku": "string",
- "shipmentItemId": "string",
- "counts": {
- "sellable": 0,
- "damaged": 0,
- "expected": 0
}, - "lineItemId": "string",
- "merchantSku": "string",
- "packOfDsku": "string",
- "caseQty": 0
}
]
}Update an inbounding shipment.
object (InboundAddress) | |||||||||||||||||||||||
| |||||||||||||||||||||||
| shippingOption | string (InboundShippingOption) Enum: "SPD_EXTERNAL" "FREIGHT_EXTERNAL" "LTL_EXTERNAL" "LTL_INTERNAL" "FTL_INTERNAL" "SPD_INTERNAL" | ||||||||||||||||||||||
Array of objects (UpdatePackageInputV2) | |||||||||||||||||||||||
Array
| |||||||||||||||||||||||
object (UpdateFreightInputV3) | |||||||||||||||||||||||
| packageTrackingNumber | string | ||||||||||||||||||||||
object (PrepRequestData) | |||||||||||||||||||||||
Array of objects (PackageInputV1) | |||||||||||||||||||||||
Array
| |||||||||||||||||||||||
Ok
| id required | string | ||||||||||||||||||||
| receivingId required | string | ||||||||||||||||||||
| status required | string (LogisticsInboundShipmentStatus) Enum: "PENDING" "READY_TO_SHIP" "IN_TRANSIT" "ARRIVED" "PREPARING_FOR_DISTRIBUTION" "IN_PREP" "FORWARDING" "RECEIVING" "COMPLETED" | ||||||||||||||||||||
required | object (AddressesOutput) | ||||||||||||||||||||
| |||||||||||||||||||||
Array of objects (ItemOutputUnstable) | |||||||||||||||||||||
Array of objects (PackageOutputUnstable) | |||||||||||||||||||||
Array
| |||||||||||||||||||||
| arrivedAt | string <date-time> | ||||||||||||||||||||
| completedAt | string <date-time> | ||||||||||||||||||||
object (ShopifyFreightResponse) | |||||||||||||||||||||
| |||||||||||||||||||||
required | object (PrepRequestData) | ||||||||||||||||||||
| shippingPlanId required | string | ||||||||||||||||||||
Unauthorized
Forbidden
Shipment not found
{- "from": {
- "address1": "string",
- "address2": "string",
- "city": "string",
- "company": "string",
- "countryCode": "AF",
- "name": "string",
- "firstName": "string",
- "lastName": "string",
- "phone": "string",
- "provinceCode": "string",
- "zip": "string"
}, - "shippingOption": "SPD_EXTERNAL",
- "packages": [
- {
- "weight": 3,
- "length": 12,
- "width": 3,
- "height": 5,
- "ids": [
- "string"
], - "shippingProvider": "string",
- "trackingNumber": "string",
- "weightUnit": "lb",
- "dimensionUnit": "in"
}
], - "freightDetails": {
- "pallets": [
- {
- "length": 0,
- "width": 0,
- "height": 0,
- "dimensionUnit": "string",
- "weight": 0,
- "weightUnit": "string",
- "numberOfIdenticalPallets": 0
}
], - "pickup": {
- "readyDate": "2019-08-24T14:15:22Z",
- "facilityHoursStart": "string",
- "facilityHoursEnd": "string",
- "contactName": "string",
- "contactPhone": "string",
- "contactEmail": "string",
- "liftGate": true,
- "customerReferenceNumber": "string"
}, - "bolId": "string",
- "shippingProvider": "string",
- "proId": "string",
- "estimatedShipDate": "2019-08-24T14:15:22Z"
}, - "packageTrackingNumber": "string",
- "prep": {
- "boxContentLabels": true
}, - "createPackages": [
- {
- "length": 12,
- "width": 3,
- "height": 5,
- "weight": 3,
- "dimensionUnit": "in",
- "weightUnit": "oz",
- "items": [
- {
- "logisticsSku": "string",
- "quantity": 0,
- "lotNumber": "string",
- "expirationDate": "2019-08-24",
- "lineItemId": "string"
}
], - "numberOfIdenticalPkgs": 0,
- "sellerLPNs": [
- "string"
]
}
]
}{- "id": "string",
- "receivingId": "string",
- "status": "PENDING",
- "addresses": {
- "to": {
- "address1": "string",
- "address2": "string",
- "city": "string",
- "company": "string",
- "countryCode": "AF",
- "name": "string",
- "firstName": "string",
- "lastName": "string",
- "phone": "string",
- "provinceCode": "string",
- "zip": "string"
}, - "from": {
- "address1": "string",
- "address2": "string",
- "city": "string",
- "company": "string",
- "countryCode": "AF",
- "name": "string",
- "firstName": "string",
- "lastName": "string",
- "phone": "string",
- "provinceCode": "string",
- "zip": "string"
}
}, - "items": [
- {
- "logisticsSku": "string",
- "shipmentItemId": "string",
- "counts": {
- "sellable": 0,
- "damaged": 0,
- "expected": 0
}, - "lineItemId": "string",
- "merchantSku": "string"
}
], - "packages": [
- {
- "length": 12,
- "width": 3,
- "height": 5,
- "weight": 3,
- "dimensionUnit": "in",
- "weightUnit": "oz",
- "id": "string",
- "identicalPackageConfigIdentifer": "string",
- "items": [
- {
- "logisticsSku": "string",
- "quantity": 0,
- "lotNumber": "string",
- "expirationDate": "2019-08-24",
- "lineItemId": "string"
}
], - "sellerLPN": "string"
}
], - "arrivedAt": "2019-08-24T14:15:22Z",
- "completedAt": "2019-08-24T14:15:22Z",
- "freight": {
- "pickup": {
- "id": 0,
- "contactName": "string",
- "contactPhone": "string",
- "contactEmail": "string",
- "liftGate": true,
- "pickupDate": "2019-08-24T14:15:22Z",
- "customerReferenceNumber": "string",
- "facilityOperatingHours": {
- "startTime": "string",
- "endTime": "string"
}
}, - "pallets": [
- {
- "id": 0,
- "palletConfigId": "string",
- "length": 0,
- "width": 0,
- "height": 0,
- "dimensionUnit": "string",
- "weight": 0,
- "weightUnit": "string"
}
]
}, - "prep": {
- "boxContentLabels": true
}, - "shippingPlanId": "string"
}Get result of asynchronous request for quotes. Returns quotes once asynchronous request is complete.
Ok
object (InboundExternalRateError) | |||||||||||||||||||||
required | Array of objects (RateQuoteWithPurchased) | ||||||||||||||||||||
Array
| |||||||||||||||||||||
Unauthorized
Forbidden
Shipment not found
{- "error": {
- "code": "string",
- "subcode": "string"
}, - "quotes": [
- {
- "id": 0,
- "shippingProvider": "string",
- "rateShoppingMethod": "CHEAPEST",
- "amount": 0,
- "fullAmount": 0,
- "currency": "string",
- "providerMethod": "string",
- "purchased": true,
- "estimatedTimeOfArrival": "2019-08-24T14:15:22Z",
- "shippingOption": "SPD_EXTERNAL"
}
]
}Asynchronous endpoint for starting a request for quotes on an inbounding shipment. Returns success if request was accepted.
Accepted
Unauthorized
Forbidden
Shipment not found
{- "quotes": [
- {
- "shippingOption": "SPD",
- "rateShoppingMethod": "CHEAPEST",
- "amount": 0,
- "fullAmount": 0,
- "currency": "string",
- "shippingProvider": "string",
- "providerMethod": "string",
- "externalEstimateDays": 0,
- "externalEta": "2019-08-24T14:15:22Z",
- "id": 0
}
], - "error": {
- "code": "string",
- "subcode": "string"
}
}Asynchronous endpoint for starting a request to buy quotes on an inbounding shipment. Returns success if request was accepted.
Accepted
Unauthorized
Forbidden
Shipment not found
{- "quoteIds": [
- 0
]
}{- "transactions": [
- {
- "quoteId": 0,
- "shippingOption": "SPD",
- "rateShoppingMethod": "CHEAPEST",
- "amount": 0,
- "currency": "string",
- "shippingProvider": "string",
- "providerMethod": "string",
- "externalEstimateDays": 0,
- "externalEta": "2019-08-24T14:15:22Z"
}
], - "error": {
- "code": "string",
- "subcode": "string"
}
}Get result of asynchronous request to buy quotes. Returns quotes once asynchronous request is complete.
Ok
object (InboundExternalRateError) | |||||||||||||||||||||
required | Array of objects (RateQuoteWithPurchased) | ||||||||||||||||||||
Array
| |||||||||||||||||||||
Unauthorized
Forbidden
Shipment not found
{- "error": {
- "code": "string",
- "subcode": "string"
}, - "quotes": [
- {
- "id": 0,
- "shippingProvider": "string",
- "rateShoppingMethod": "CHEAPEST",
- "amount": 0,
- "fullAmount": 0,
- "currency": "string",
- "providerMethod": "string",
- "purchased": true,
- "estimatedTimeOfArrival": "2019-08-24T14:15:22Z",
- "shippingOption": "SPD_EXTERNAL"
}
]
}Get inbounds-warehouses that can store products.
Ok
Array of objects (InboundWarehouseDetailsLogisticsApi) | |||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||
Array of objects (InboundWarehouseDetailsLogisticsApi) | |||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||
Unauthorized
Forbidden
{- "fulfillmentCentres": [
- {
- "address1": "string",
- "address2": "string",
- "city": "string",
- "company": "string",
- "countryCode": "AF",
- "name": "string",
- "firstName": "string",
- "lastName": "string",
- "phone": "string",
- "provinceCode": "string",
- "zip": "string",
- "warehouseId": "string",
- "warehouseName": "string",
- "isPrep": true
}
], - "storageWarehouses": [
- {
- "address1": "string",
- "address2": "string",
- "city": "string",
- "company": "string",
- "countryCode": "AF",
- "name": "string",
- "firstName": "string",
- "lastName": "string",
- "phone": "string",
- "provinceCode": "string",
- "zip": "string",
- "warehouseId": "string",
- "warehouseName": "string",
- "isPrep": true
}
]
}