Skip to content

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 ​

POST/channel/api/v1/outbound/submit

Auth: 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 ​

HeaderRequiredDescription
request-tokenyesChannel partner app token
Content-Typeyesapplication/json

Request Body ​

FieldTypeRequiredDescription
warehouse_idintegeryesFulfillment warehouse ID. The warehouse must exist and have an outbound staging area (output_tmp_area) configured
delivery_modestringnoe2c_carrier (e2c label service, default) or self_pickup
carrier_idintegernoCarrier 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_selfstringnoSelf-pickup carrier name, max 128 characters. Stored only for self_pickup; forced to null for e2c_carrier
tracking_numberstringnoSelf-pickup tracking number, max 64 characters. Stored only for self_pickup; forced to null for e2c_carrier
scheduled_atstringnoScheduled 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_draftbooleannotrue creates a draft (status = draft); submit later with /outbound/confirm
remarkstringnoRequest-level remark, max 500 characters; not searched by the partner or ERP keyword search
identification_codestringnoIdentification No. (for example order no. or PO no.), max 64 characters, duplicates allowed; matched by both partner and ERP keyword search
custom_remarkstringnoCustom remark, max 500 characters; shown to warehouse/operations and matched by both partner and ERP keyword search
webhook_urlstringnoRegister a dedicated webhook for this outbound; a webhook_secret is generated and can be read via detail
address_idintegernoAddress book ID, takes precedence over address. The address must be active and under the current member's email
addressobjectnoInline destination; the fields below may also be passed at the top level
address.namestringsee notesRecipient name, max 64 characters
address.phonestringsee notesRecipient phone, 6–32 characters, allows digits, +, -, parentheses, spaces and dots
address.emailstringnoRecipient email, max 128 characters, must be a valid email
address.address1stringsee notesAddress line 1, max 255 characters
address.address2stringnoAddress line 2, max 255 characters
address.citystringsee notesCity, max 64 characters
address.provincestringnoProvince / state, max 64 characters
address.postcodestringsee notesPostcode, 3–16 characters, allows letters, digits, spaces and hyphens
address.country_codestringsee notes2-letter ISO country code
packagesarraynoPackage array, max 50. Valid packages take precedence over top-level items
packages[].container_idintegernoPackage 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_typestringnocarton / pallet only, default carton; overridden by the container type
packages[].package_nostringnoPackage number, max 64 characters; auto-generated as P{requestId}-{seq} when blank
packages[].package_namestringnoPackage name, max 128 characters
packages[].lengthnumbernoLength, 0–300, default 0
packages[].widthnumbernoWidth, 0–300, default 0
packages[].heightnumbernoHeight, 0–300, default 0
packages[].weightnumbernoWeight, 0–5000, default 0; when 0 and a container is matched, the container max_weight is used
packages[].dimension_unitstringnocm / mm / inch / in, default cm; container value wins when matched
packages[].weight_unitstringnokg / g / lb, default kg; container value wins when matched
packages[].remarkstringnoPackage remark, max 200 characters
packages[].itemsarrayyesPackage items, max 200; fields are the same as items[] below
itemsarraynoFlat item list. Without valid packages, all items are wrapped into one carton
items[].sku_idintegernoSKU ID. Provide either sku_id or sku_code; when both are provided they must match
items[].sku_codestringnoYour own SKU code. Exact match against sku; resolved to sku_id server-side
items[].quantityintegeryesQuantity, 1–100000
items[].remarkstringnoItem remark, max 200 characters
items[].declared_pricenumbernoDeclared price, ≥ 0, rounded to 2 decimals
items[].declared_currencystringnoDeclared currency: EUR, USD, GBP, CNY, CHF, SEK, PLN, NOK, DKK, CZK, HUF, RON
items[].hs_codestringnoHS code; non-digit characters are stripped before the 6–12 character length check
items[].origin_country_codestringnoCountry of origin, 2-letter ISO code
items[].declared_weightnumbernoDeclared weight, ≥ 0, rounded to 3 decimals
items[].weight_unitstringnoDeclared weight unit: kg / g

Notes:

  • Declaration fields are flat on the item; there is no declaration sub-object.
  • Packages take precedence: as soon as at least one package has valid items, top-level items is ignored. If every package is invalid, submission falls back to top-level items.
  • Only fully empty rows are ignored; a missing sku_id/sku_code, a missing/non-positive quantity, or a quantity above 100000 returns 400 instead of skipping the row.
  • Stored package weight = requested weight (or the container max_weight when weight is 0 and a container is matched) plus the net weight of the SKU lines multiplied by quantity, converted to the package weight_unit.
  • Each resolved SKU must exist and have available owned stock in the selected warehouse. Unknown or ambiguous SKU codes, a sku_id / sku_code mismatch, or no available stock return 400.
  • delivery_mode = e2c_carrier requires address_id or a complete address (name, phone, address1, city, postcode, country_code); inline destinations are checked for field length and phone/postcode/email format. self_pickup does 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.

FieldMeaningLimitPartner / ERP keyword search
identification_codeYour own reference for this outbound plan (order no., PO no., internal plan no.)64 characters, duplicates allowedmatched
custom_remarkAdditional free-text note for warehouse/operations500 charactersmatched
remarkRequest-level remark500 charactersnot 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 ​

json
{
  "code": 200,
  "msg": "success",
  "data": {
    "id": 1001,
    "status": "outbound_pending"
  }
}
FieldTypeDescription
idintegerOutbound request ID
statusstringdraft / pending_approval (awaiting approval) / outbound_pending (in the warehouse queue)

Error Codes ​

codeMeaning
909Unauthenticated, invalid token, or not a channel partner
606Insufficient capability (outbound_submit required)
400Validation 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
500Internal server error

cURL ​

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"
        }
      ]
    }
  ]
}'