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

{"carrier": "DHL"}

String - The carrier for the inbound shipment. Not required. Default: null. Max length: 32.
created

{"created": "2016-03-08 14:00:00"}

String - The date and time the inbound shipment was created. Set by the system.
id

{"id": 10000}

Integer - The unique ID of the inbound shipment. Set by the system.
notes

{"notes": "Manufacturer: XYZ; Delivery: 9/2/17"}

String - User defined notes for reference. Not required. Default: null. Max length: 64.
products

{
    "products": [
        {
            "id": 20111,
            "name": "XL T-Shirt",
            "processed": 300,
            "quantity": 300
        }
    ]
}

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.

id: Integer - The product ID.
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.
received

{"received": "2016-03-15 08:00:00"}

String - The date and time the inbound shipment was received at the warehouse. Set by the system. Default: null.
status

{"status": "Pending"}

String - The status of the inbound shipment. Set by the system.
tracking_number

{"tracking_number": "9260193742120392200942"}

String - The tracking number for the inbound shipment. Not required. Default: null. Max length: 40.
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.
GET
/inbound/{id}
Retrieves an inbound shipment
type The data stream type if you don't want the shipments details but need the product labels. Only PDF is accepted.
request
GET /inbound/100000
response

HTTP/1.1 200 OK

{
    "inbound": {
        "carrier": "DHL",
        "created": "2016-04-20 12:04:20",
        "id": 100000,
        "notes": null,
        "products": [
            {
                "id": 20111,
                "name": "XL T-Shirt",
                "processed": 0,
                "quantity": 300
            },
            {
                "id": 20112,
                "name": "SM T-Shirt",
                "processed": 0,
                "quantity": 200
            }
        ],
        "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"
        }
    }
}
request
GET /inbound/100000
type=pdf
response

HTTP/1.1 200 OK

[blob]
POST
/inbound
Creates an inbound shipment
request

POST /inbound

{
    "inbound": {
        "carrier": null,
        "notes": "Manufacturer: XYZ",
        "products": [
            {
                "id": 20111,
                "quantity": 300
            },
            {
                "id": 20112,
                "quantity": 200
            }
        ],
        "tracking_number": null,
        "warehouse": {
            "id": "WH0SZ001"
        }
    }
}
response

HTTP/1.1 201 Created

{
    "inbound": {
        "carrier": null,
        "created": "2016-04-20 12:04:20",
        "id": 100000,
        "notes": "Manufacturer: XYZ",
        "products": [
            {
                "id": 20111,
                "name": "XL T-Shirt",
                "processed": 0,
                "quantity": 300
            },
            {
                "id": 20112,
                "name": "SM T-Shirt",
                "processed": 0,
                "quantity": 200
            }
        ],
        "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
Updates an inbound shipment
request

PUT /inbound/100000

{
    "inbound": {
        "carrier": "DHL",
        "notes": "Manufacturer: XYZ",
        "tracking_number": "9260193742120392200942",
        "warehouse": {
            "id": "WH0SZ001"
        }
    }
}
response

HTTP/1.1 200 OK

{
    "inbound": {
        "carrier": "DHL",
        "created": "2016-04-20 12:04:20",
        "id": 100000,
        "notes": "Manufacturer: XYZ",
        "products": [
            {
                "id": 20111,
                "name": "XL T-Shirt",
                "processed": 0,
                "quantity": 300
            },
            {
                "id": 20112,
                "name": "SM T-Shirt",
                "processed": 0,
                "quantity": 200
            }
        ],
        "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/{id}
Deletes an inbound shipment
request
DELETE /inbound/100000
response

HTTP/1.1 200 OK