Inbound
The Inbound resource is part of the fulfillment component and allows customers to restock their products at warehouses operated by BoxC. An inbound shipment's products can't be modified after creation, but the warehouse, carrier, tracking number, and notes can be modified.
Inbound Status
The following table lists all possible states of an inbound shipment indicated by its status
property. Only the system or warehouse can modify a shipment's status.
Status | Description |
---|---|
Pending | The inbound shipment was created and may be en route to the warehouse. Default state. |
Received | The inbound shipment arrived at the warehouse. It can no longer be updated or deleted. |
Processed | The inbound shipment was processed and inventoried by the warehouse. |
Actions
GET /inbound |
Retrieves a paginated list of inbound shipments |
GET /inbound/{id} |
Retrieves an inbound shipment |
POST /inbound |
Creates an inbound shipment |
PUT /inbound/{id} |
Updates an inbound shipment |
DELETE /inbound/{id} |
Deletes an inbound shipment |
Properties
carrier |
|
created |
|
id |
|
notes |
|
products |
{ "products": [ { "cost": 2.25, "id": 20111, "is_packaging": false, "name": "XL T-Shirt", "processed": 300, "quantity": 299, "codes": [ { "code": "Insufficient units arrived", "quantity": 1 } ] } ] } Array - An array of product objects that are part of the inbound shipment. Only present when creating or retrieving a shipment. Required. This property is immutable. cost: Decimal - The cost per unit from the manufacturer for this product at the time of inbounding in USD. Optional.id: Integer - The product ID. is_packaging: Boolean - Indicates this product is packaging material. Set by the system. name: String - The product name. Set by the system. processed: Integer - The number of units processed by the warehouse. Set by the system. quantity: Integer - The number of units being sent to the warehouse. codes: Array - A list of codes describing problems with the units after processing. Set by the system. |
received |
|
status |
|
tracking_number |
|
warehouse |
{ "warehouse": { "address": "Unit 5b, 102 Jinfanghua Ecommerce District\nShenzhen\nGD 518000\nChina", "id": "WH0SZ001", "language": "Chinese", "language_code": "zh", "name": "BoxC Shenzhen 1" } } Object - Information about the warehouse the inbound shipment is being sent to. Only the id is required when creating a shipment. View the Warehouses resource for a list. address: String - The warehouse address with newlines (\n). Set by the system.id: String - The unique warehouse ID. Required. language: String - The local language for the warehouse. language_code: String - The local language code for the warehouse in ISO 639-1 format. name: String - The warehouse name. Set by the system. |
limit |
The number of results to return. Max: 100. Default: 50. |
order |
The order of the results. Options are "asc" for ascending, or "desc" (default) for descending. |
page |
The page number of the results. Default is 1. |
page_token |
Used for selecting the page after the initial query. |
GET /inbound
limit=50&order=desc
HTTP/1.1 200 OK
{ "inbound": [ { "carrier": "DHL", "created": "2016-04-20 12:04:20", "id": 100000, "notes": null, "received": null, "status": "Pending", "tracking_number": "9260193742120392200942", "warehouse": { "address": "Unit 5b, 102 Jinfanghua Ecommerce District\nShenzhen\nGD 518000\nChina", "id": "WH0SZ001", "language": "Chinese", "language_code": "zh", "name": "BoxC Shenzhen 1" } }, { "...": "..." } ], "next_page": null }
type |
The data stream type if you don't want the shipments details but need the product labels. Only PDF is accepted. |
GET /inbound/100000
HTTP/1.1 200 OK
{ "inbound": { "carrier": "DHL", "created": "2016-04-20 12:04:20", "id": 100000, "notes": null, "products": [ { "cost": 2.25, "id": 20111, "is_packaging": false, "name": "XL T-Shirt", "processed": 0, "quantity": 300, "codes": null }, { "cost": 2.25, "id": 20112, "is_packaging": false, "name": "SM T-Shirt", "processed": 0, "quantity": 200, "codes": null } ], "received": null, "status": "Pending", "tracking_number": "9260193742120392200942", "warehouse": { "address": "Unit 5b, 102 Jinfanghua Ecommerce District\nShenzhen\nGD 518000\nChina", "id": "WSZCN001", "language": "Chinese", "language_code": "zh", "name": "BoxC Shenzhen 1" } } }
GET /inbound/100000
type=pdf
HTTP/1.1 200 OK
[blob]
POST /inbound
{ "inbound": { "carrier": null, "notes": "Manufacturer: XYZ", "products": [ { "cost": 2.25, "id": 20111, "quantity": 300 }, { "cost": 2.25, "id": 20112, "quantity": 200 } ], "tracking_number": null, "warehouse": { "id": "WH0SZ001" } } }
HTTP/1.1 201 Created
{ "inbound": { "carrier": null, "created": "2016-04-20 12:04:20", "id": 100000, "notes": "Manufacturer: XYZ", "products": [ { "cost": 2.25, "id": 20111, "is_packaging": false, "name": "XL T-Shirt", "processed": 0, "quantity": 300, "codes": null }, { "cost": 2.25, "id": 20112, "is_packaging": false, "name": "SM T-Shirt", "processed": 0, "quantity": 200, "codes": null } ], "received": null, "status": "Pending", "tracking_number": null, "warehouse": { "address": "Unit 5b, 102 Jinfanghua Ecommerce District\nShenzhen\nGD 518000\nChina", "id": "WH0SZ001", "language": "Chinese", "language_code": "zh", "name": "BoxC Shenzhen 1" } } }
PUT /inbound/100000
{ "inbound": { "carrier": "DHL", "notes": "Manufacturer: XYZ", "tracking_number": "9260193742120392200942", "warehouse": { "id": "WH0SZ001" } } }
HTTP/1.1 200 OK
{ "inbound": { "carrier": "DHL", "created": "2016-04-20 12:04:20", "id": 100000, "notes": "Manufacturer: XYZ", "products": [ { "cost": 2.25, "id": 20111, "is_packaging": false, "name": "XL T-Shirt", "processed": 0, "quantity": 300, "codes": null }, { "cost": 2.25, "id": 20112, "is_packaging": false, "name": "SM T-Shirt", "processed": 0, "quantity": 200, "codes": null } ], "received": null, "status": "Pending", "tracking_number": "9260193742120392200942", "warehouse": { "address": "Unit 5b, 102 Jinfanghua Ecommerce District\nShenzhen\nGD 518000\nChina", "id": "WH0SZ001", "language": "Chinese", "language_code": "zh", "name": "BoxC Shenzhen 1" } } }
DELETE /inbound/100000
HTTP/1.1 200 OK