Create Outbound
Create a new outbound request to ship owned inventory from an e2c warehouse. Submit by package (packages[]) or flat items (items[]), with support for drafts, scheduled time, destination address and a dedicated webhook.
Submit Outbound Request
/channel/api/v1/outbound/submitAuth: request-token (channel_partner)
Create an outbound request. A saved draft returns draft; with no approval flow (or member auto-approval enabled) the request enters the warehouse queue immediately and returns outbound_pending; with an approval flow it returns pending_approval.
Required capability: outbound_submit
Request Headers
| Header | Required | Description |
|---|---|---|
request-token | yes | Channel partner app token |
Content-Type | yes | application/json |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
warehouse_id | integer | yes | Fulfillment warehouse ID. The warehouse must exist and have an outbound staging area (output_tmp_area) configured |
delivery_mode | string | no | e2c_carrier (e2c label service, default) or self_pickup |
carrier_id | integer | no | Carrier authorize ID. Stored only for e2c_carrier; not mandatory at creation, but when provided it must be an active logistics authorization; may be supplied at warehouse confirmation / dispatch |
carrier_name_self | string | no | Self-pickup carrier name, max 128 characters. Stored only for self_pickup; forced to null for e2c_carrier |
tracking_number | string | no | Self-pickup tracking number, max 64 characters. Stored only for self_pickup; forced to null for e2c_carrier |
scheduled_at | string | no | Scheduled outbound time; must not be earlier than 5 minutes ago. Accepts Y-m-d H:i:s or ISO8601 and is stored as Y-m-d H:i:s |
save_as_draft | boolean | no | true creates a draft (status = draft); submit later with /outbound/confirm |
remark | string | no | Request-level remark, max 500 characters; not searched by the partner or ERP keyword search |
identification_code | string | no | Identification No. (for example order no. or PO no.), max 64 characters, duplicates allowed; matched by both partner and ERP keyword search |
custom_remark | string | no | Custom remark, max 500 characters; shown to warehouse/operations and matched by both partner and ERP keyword search |
webhook_url | string | no | Register a dedicated webhook for this outbound; a webhook_secret is generated and can be read via detail |
address_id | integer | no | Address book ID, takes precedence over address. The address must be active and under the current member's email |
address | object | no | Inline destination; the fields below may also be passed at the top level |
address.name | string | see notes | Recipient name, max 64 characters |
address.phone | string | see notes | Recipient phone, 6–32 characters, allows digits, +, -, parentheses, spaces and dots |
address.email | string | no | Recipient email, max 128 characters, must be a valid email |
address.address1 | string | see notes | Address line 1, max 255 characters |
address.address2 | string | no | Address line 2, max 255 characters |
address.city | string | see notes | City, max 64 characters |
address.province | string | no | Province / state, max 64 characters |
address.postcode | string | see notes | Postcode, 3–16 characters, allows letters, digits, spaces and hyphens |
address.country_code | string | see notes | 2-letter ISO country code |
packages | array | no | Package array, max 50. Valid packages take precedence over top-level items |
packages[].container_id | integer | no | Package container ID (system preset or partner-defined). The container must be active and belong to the system or the current partner; when matched, type, dimensions and units come from the container |
packages[].package_type | string | no | carton / pallet only, default carton; overridden by the container type |
packages[].package_no | string | no | Package number, max 64 characters; auto-generated as P{requestId}-{seq} when blank |
packages[].package_name | string | no | Package name, max 128 characters |
packages[].length | number | no | Length, 0–300, default 0 |
packages[].width | number | no | Width, 0–300, default 0 |
packages[].height | number | no | Height, 0–300, default 0 |
packages[].weight | number | no | Weight, 0–5000, default 0; when 0 and a container is matched, the container max_weight is used |
packages[].dimension_unit | string | no | cm / mm / inch / in, default cm; container value wins when matched |
packages[].weight_unit | string | no | kg / g / lb, default kg; container value wins when matched |
packages[].remark | string | no | Package remark, max 200 characters |
packages[].items | array | yes | Package items, max 200; fields are the same as items[] below |
items | array | no | Flat item list. Without valid packages, all items are wrapped into one carton |
items[].sku_id | integer | no | SKU ID. Provide either sku_id or sku_code; when both are provided they must match |
items[].sku_code | string | no | Your own SKU code. Exact match against sku; resolved to sku_id server-side |
items[].quantity | integer | yes | Quantity, 1–100000 |
items[].remark | string | no | Item remark, max 200 characters |
items[].declared_price | number | no | Declared price, ≥ 0, rounded to 2 decimals |
items[].declared_currency | string | no | Declared currency: EUR, USD, GBP, CNY, CHF, SEK, PLN, NOK, DKK, CZK, HUF, RON |
items[].hs_code | string | no | HS code; non-digit characters are stripped before the 6–12 character length check |
items[].origin_country_code | string | no | Country of origin, 2-letter ISO code |
items[].declared_weight | number | no | Declared weight, ≥ 0, rounded to 3 decimals |
items[].weight_unit | string | no | Declared weight unit: kg / g |
Notes:
- Declaration fields are flat on the item; there is no
declarationsub-object. - Packages take precedence: as soon as at least one package has valid items, top-level
itemsis ignored. If every package is invalid, submission falls back to top-levelitems. - Only fully empty rows are ignored; a missing
sku_id/sku_code, a missing/non-positivequantity, or aquantityabove 100000 returns 400 instead of skipping the row. - Stored package weight = requested
weight(or the containermax_weightwhenweightis0and a container is matched) plus the net weight of the SKU lines multiplied by quantity, converted to the packageweight_unit. - Each resolved SKU must exist and have available owned stock in the selected warehouse. Unknown or ambiguous SKU codes, a
sku_id/sku_codemismatch, or no available stock return 400. delivery_mode = e2c_carrierrequiresaddress_idor a completeaddress(name,phone,address1,city,postcode,country_code); inline destinations are checked for field length and phone/postcode/email format.self_pickupdoes not require a destination.- Inventory availability is validated at submit (owned stock in the selected warehouse), but stock is not locked until the warehouse confirms; it is deducted on shipment.
Outbound Plan Identification and Remark Fields
identification_code, custom_remark and remark are all stored on both the partner outbound request and the unified ERP outbound order, but they differ in purpose and search behavior.
| Field | Meaning | Limit | Partner / ERP keyword search |
|---|---|---|---|
identification_code | Your own reference for this outbound plan (order no., PO no., internal plan no.) | 64 characters, duplicates allowed | matched |
custom_remark | Additional free-text note for warehouse/operations | 500 characters | matched |
remark | Request-level remark | 500 characters | not matched |
All three fields are returned by POST /channel/api/v1/outbound/list and POST /channel/api/v1/outbound/detail.
keyword on POST /channel/api/v1/outbound/list performs a partial match on identification_code and custom_remark, so you can search by order/PO number or by a phrase in the custom remark; remark is not searched. The ERP shipment list and outbound detail display all three fields, and the ERP keyword search also matches identification_code and custom_remark.
Response
{
"code": 200,
"msg": "success",
"data": {
"id": 1001,
"status": "outbound_pending"
}
}| Field | Type | Description |
|---|---|---|
id | integer | Outbound request ID |
status | string | draft / pending_approval (awaiting approval) / outbound_pending (in the warehouse queue) |
Error Codes
| code | Meaning |
|---|---|
| 909 | Unauthenticated, invalid token, or not a channel partner |
| 606 | Insufficient capability (outbound_submit required) |
| 400 | Validation or business error: missing warehouse_id, warehouse not found, staging area not configured, invalid delivery_mode, container not found or unavailable, more than 50 packages, invalid package type or unit, dimension/weight limit exceeded, field too long, quantity non-positive or above 100000, carrier not found, incomplete destination, address not owned by this member, invalid phone/postcode/email, scheduled_at in an invalid format or earlier than 5 minutes ago, invalid declaration format, no valid items, unknown or ambiguous SKU code, sku_id / sku_code mismatch, or no owned stock in the selected warehouse |
| 500 | Internal server error |
cURL
curl -X POST 'https://apigate.e2c-energy.com/channel/api/v1/outbound/submit' \
-H 'request-token: YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"warehouse_id": 1,
"delivery_mode": "e2c_carrier",
"scheduled_at": "2026-11-12 09:00:00",
"identification_code": "PO-2026-001",
"custom_remark": "Please call before delivery",
"address": {
"name": "Anna Schmidt",
"phone": "+49 40 1234567",
"address1": "Hafenstrasse 1",
"city": "Hamburg",
"postcode": "20457",
"country_code": "DE"
},
"packages": [
{
"package_type": "carton",
"length": 40,
"width": 30,
"height": 20,
"weight": 2.5,
"dimension_unit": "cm",
"weight_unit": "kg",
"items": [
{
"sku_code": "YOUR-SKU-CODE",
"quantity": 10,
"declared_price": 12.9,
"declared_currency": "EUR",
"hs_code": "850760",
"origin_country_code": "CN",
"declared_weight": 2.5,
"weight_unit": "kg"
}
]
}
]
}'