Skip to content

Warehouse API

Warehouse inbound and outbound task management.

Endpoints Overview

EndpointMethodDescription
/api/v1/warehouse/inbound/submitPOSTSubmit inbound task
/api/v1/warehouse/inbound/repushPOSTRe-push inbound task
/api/v1/warehouse/inbound/listPOSTGet inbound task list
/api/v1/warehouse/outbound/submitPOSTSubmit outbound task
/api/v1/warehouse/outbound/repushPOSTRe-push outbound task
/api/v1/warehouse/sorting/listPOSTGet sorting/outbound task list

Submit Inbound Task

Submit a new warehouse inbound (storage) task.

Request

Endpoint: POST /api/v1/warehouse/inbound/submit

Headers:

  • Content-Type: application/json
  • Authorization: appToken {token}

Request Body:

json
{
  "request_id": "inbound_001",
  "warehouse_id": "WH_001",
  "income_type": 1,
  "transit_warehouse_code": "TRANSIT_WH_01",
  "sm_code": "SM_CODE",
  "pickup_address_id": "12345",
  "eta_date": "2025-03-15 10:00:00",
  "reference_no": "REF_12345",
  "verify": true,
  "inbound_task_items": [
    {
      "sku": "SKU001",
      "quantity": 100,
      "batch_number": "BATCH001"
    }
  ],
  "inbound_task_parcels": [
    {
      "parcel_number": 1,
      "weight": 10.5,
      "length": 30,
      "width": 20,
      "height": 15
    }
  ]
}

Field Description

FieldTypeRequiredDescription
request_idstringYesUnique request ID
warehouse_idstringYesWarehouse ID
income_typeintYesIncome type: 1 = Transit
transit_warehouse_codestringConditionalTransit warehouse code
sm_codestringConditionalShipping method code
pickup_address_idstringConditionalPickup address ID
eta_datestringNoEstimated arrival date
reference_nostringYesReference number
verifyboolNoAuto-verify task
inbound_task_itemsobject[]YesItems to inbound
inbound_task_parcelsobject[]YesParcels information

Inbound Task List

Get paginated list of inbound tasks.

Request

Endpoint: POST /api/v1/warehouse/inbound/list

json
{
  "pageNumber": 1,
  "pageSize": 20,
  "progress": "transit"
}

Inbound Task Re-push

Manually re-push inbound task to third-party platform.

Request

Endpoint: POST /api/v1/warehouse/inbound/repush

json
{
  "id": 123
}

Submit Outbound Task

Submit a new warehouse outbound (sorting) task.

Request

Endpoint: POST /api/v1/warehouse/outbound/submit

Request Body:

json
{
  "request_id": "outbound_001",
  "warehouse_id": "WH_001",
  "receipt_address_id": "12345",
  "reference_no": "OUT_REF_001",
  "verify": true,
  "parcels": [
    {
      "tracking_number": "TN123456",
      "weight": 2.5,
      "length": 30,
      "width": 20,
      "height": 10,
      "consignee": {
        "name": "John Doe",
        "phone": "+1234567890",
        "address": "123 Main St"
      }
    }
  ],
  "cod_amount": {
    "amount": 50.00,
    "currency": "USD"
  },
  "insurance_value": {
    "amount": 100.00,
    "currency": "USD"
  },
  "tax": {
    "amount": 5.00,
    "currency": "USD"
  }
}

Field Description

FieldTypeRequiredDescription
request_idstringYesUnique request ID
warehouse_idstringYesWarehouse ID
receipt_address_idstringYesReceipt address ID
reference_nostringYesReference number
verifyboolNoAuto-verify task
parcelsobject[]YesParcel list
cod_amountobjectNoCash on delivery amount
insurance_valueobjectNoInsurance value
taxobjectNoTax amount
other_paymentobjectNoOther payment
pro_amountobjectNoProfessional fee
transport_feeobjectNoTransport fee
valuation_feeobjectNoValuation fee

Outbound Task List

Get paginated list of outbound tasks.

Request

Endpoint: POST /api/v1/warehouse/sorting/list

json
{
  "pageNumber": 1,
  "pageSize": 20,
  "progress": "verified"
}

Outbound Task Re-push

Manually re-push outbound task to third-party platform.

Request

Endpoint: POST /api/v1/warehouse/outbound/repush

json
{
  "id": 123
}

Task Progress Status

StatusDescription
draftDraft status
pendingWaiting for processing
transitIn transit
verifiedVerified/Approved
pushedSuccessfully pushed
errorPush failed

Error Codes

CodeDescription
the income_type is requiredIncome type missing
the request_id is existDuplicate request ID
please do not repeat submit the same task in a short timeDuplicate submission
the item is not existTask not found
the item is not waiting for pushedTask cannot be repushed