Get bundle information for a bundle.
OK
Unauthorized
Forbidden
No bundle found with the bundleId provided
curl --request GET \ --url 'https://logistics-api.flexport.com/logistics/api/2023-10/bundles/{bundleId}' \ --header 'Authorization: Bearer <token>'
{- "externalBundleId": "string",
- "title": "string",
- "sku": "string",
- "bundleContents": [
- {
- "productId": "stringstrin",
- "quantity": 0
}
], - "bundleId": "stringstrin",
- "createdAt": "2019-08-24T14:15:22Z"
}Get available inventory information for the bundle. Standard bundles are limited by the scarcest required component. Mystery boxes use the sum of available candidate units. Both calculations use only component inventory in the requested country.
| countryCode | string (InventoryCountryCode) ISO 3166-1 alpha-2 country code to scope inventory, such as US or CA. Defaults to US. |
OK
| bundleId required | string (BundleIdType) = 11 characters ^B[0-9a-zA-Z]+$ The globally unique bundle identifier created by Flexport and assigned on bundle creation. May be referred to in other documentation as the Flexport SKU or BSKU. |
| availableUnits required | number <double> The number of bundles available for sale in the requested country (US by default), based on component ATP after inventory-state, warehouse-availability, and reservation filtering. Standard bundles require every component; mystery boxes can use any candidate, so their availability is the sum of candidate units. Availability does not guarantee immediate shipment. |
Unauthorized
Forbidden
No bundle found with the bundleId provided
curl --request GET \ --url 'https://logistics-api.flexport.com/logistics/api/2023-10/bundles/{bundleId}/inventory' \ --header 'Authorization: Bearer <token>'
{- "bundleId": "stringstrin",
- "availableUnits": 0
}Creates a new bundle.
| externalBundleId required | string (products_ExternalBundleIdType) [ 1 .. 255 ] characters A permanent unique reference for this bundle generated by and meaningful to the API user. This value will be used when sending orders to identify the bundle to ship. This value must be unique among all bundles created via API. | ||||
| title required | string [ 3 .. 255 ] characters The bundle title or short description. Should represent a single line of text suitable to identify the bundle or for search purposes. | ||||
| sku required | string (products_SkuType) [ 1 .. 255 ] characters The human-readable Stock Keeping Unit (SKU) for reporting. This value may change over time. | ||||
required | Array of objects (products_BundleContent202310) [ 1 .. 250 ] items | ||||
Array ([ 1 .. 250 ] items)
| |||||
Bundle has been created
Unauthorized
Forbidden
No bundle found with the bundleId provided
Unprocessable Entity
{- "externalBundleId": "string",
- "title": "string",
- "sku": "string",
- "bundleContents": [
- {
- "productId": "stringstrin",
- "quantity": 0
}
]
}{- "externalBundleId": "string",
- "title": "string",
- "sku": "string",
- "bundleContents": [
- {
- "productId": "stringstrin",
- "quantity": 0
}
], - "bundleId": "stringstrin",
- "createdAt": "2019-08-24T14:15:22Z"
}