Open-API
  1. Outbound
Open-API
  • eBay fulfillment openAPI
  • OAuth
    • URL(getAuthorizationCode)
      GET
    • AccessToken
      POST
    • Refresh AccessToken
      POST
  • SKU
    • SKUCreation v3
      POST
    • SKUQuery v3
      POST
    • SKU Label
      POST
    • SKUSetupEFService
      POST
    • QuerySKUEFService
      POST
  • Stock
    • GetStockMovement
      POST
    • StockSnapshot v2
      POST
  • Inbound
    • PlaceInboundOrder
      POST
    • Inbound Order List Query
      POST
    • Inbound Order Detail Query
      POST
    • Inbound Label Query
      POST
    • Upload TrackingNo
      POST
    • Upload Clearance Doc
      POST
  • Outbound
    • Place Outbound Order
      POST
    • Outbound Order Query v2
      POST
    • Outbound Order Cancellation
      POST
  • Warehouse
    • GetServiceList
      GET
  • Pricing
    • Cost Estimation Request
      POST
    • Cost Estimation Response
      POST
  1. Outbound

Outbound Order Query v2

Sandbox
Sandbox
POST
/3pp/outbound/v2/query
Outbound
3PP can get order status through this API.
After the seller placed an order on the 3PP site, if they want to monitor or view order fulfillment status, OC support 3PP querying orders information by an "order list" or by order creation time slot.
This interface is for querying order information, providing details such as order status,carrier, tracking number, and the fulfillment fees.
The fulfillment fees are estimated before outbound, and reflect the actual costs after outbound.
Return a maximum of 1000 results. Please narrow the search scope if it exceeds this limit.
此接口为订单信息查询接口,获取订单状态、尾程供应商和尾程单号,以及订单履约费用。
出库前为预估费用,出库后,为真实扣费。
返回结果最多1000条,超出请缩小查询范围。

Request

Header Params
clientKey
string 
required
clientKey
vAuthorization
string 
required
vAuthorization
Access-Token
string 
required
First please get the access_token thru accessToken&refreshToken API and refresh accseeToken.
Then pass the value following the below format to Header.
Bearer+one space+access_token valueExample:
Thru the API get Access_token value, which is 'accesstokenvaluexxxxxxxx'.
Header Value is as below:
Bearer accesstokenvaluexxxxxxxx
Body Params application/json
apiVersion
string 
required
data
object 
required
ebayOrderIdList
array [object {2}] 
required
endTime
string 
required
orderNumberList
array [object {1}] 
required
referenceNumberList
array [object {1}] 
required
startTime
string 
required
messageId
string 
required
timestamp
integer 
required
Example
{
  "apiVersion": "2.0",
  "data": {
    "ebayOrderIdList": [
      {
        "ebayId": "25-11158-23993",
        "ebayOrderId": "25-11158-23993"
      }
    ],
    "endTime": "2023-04-25T20:09:57+0800",
    "orderNumberList": [
      {
        "orderNumber": "OCO2000009385032GB"
      }
    ],
    "referenceNumberList": [
      {
        "referenceNumber": "25daq"
      }
    ],
    "startTime": "2023-04-21T20:09:57+0800"
  },
  "messageId": "20200430040406976",
  "timestamp": 1588233847001
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://openapi-stage-hk.orangeconnex.com/openapi/3pp/outbound/v2/query' \
--header 'clientKey;' \
--header 'vAuthorization;' \
--header 'Access-Token;' \
--header 'Content-Type: application/json' \
--data-raw '{
  "apiVersion": "2.0",
  "data": {
    "ebayOrderIdList": [
      {
        "ebayId": "25-11158-23993",
        "ebayOrderId": "25-11158-23993"
      }
    ],
    "endTime": "2023-04-25T20:09:57+0800",
    "orderNumberList": [
      {
        "orderNumber": "OCO2000009385032GB"
      }
    ],
    "referenceNumberList": [
      {
        "referenceNumber": "25daq"
      }
    ],
    "startTime": "2023-04-21T20:09:57+0800"
  },
  "messageId": "20200430040406976",
  "timestamp": 1588233847001
}'

Responses

🟢200OK
application/json
Body
code
integer <int32>
optional
data
array[object (ExternalOrderResponseDTO) {13}] 
optional
autoFulfillmentEF
boolean 
required
Whether the order is EF auto-fulfillment order
Example:
false
ebayOrderId
string 
optional
OrderArray.Order.OrderID field value of ebay GetOrders API.
>= 0 characters<= 100 characters
extendedOrderId
string 
optional
OrderArray.Order.ExtendedOrderID field value of ebay GetOrders API.
>= 0 characters<= 100 characters
ocid
string 
optional
orderCreationTime
string 
optional
Format: date + time zone, UTC ISO8601,ex:2018-11-28T20:09:57+0800
>= 0 characters<= 24 characters
orderNumber
string 
required
Unique order number generated by OCH
>= 0 characters<= 50 characters
orderStatus
string 
required
Value is limited to the codes predefined on the left side of the equal sign: Draft/Submitted/Failed/Exception/Cancelled/Create picking task/Picked/Packed/Outbound/In-delivery/Delivered/Undeliverable Return/Buyer Return. It might be updated based on operation requirement.
>= 0 characters<= 50 characters
referenceNumber
string 
optional
3pp outbound order number
>= 0 characters<= 100 characters
remark
string 
optional
Remark of this order or order status, e.g.: "ebayItemID&eBayTransactionID is duplicated"
serviceRegion
string 
required
From which MF regional warehouse this order be fulfilled. OCH defines these warehouse list, 3PP could get this foundational data from "getServiceList" API.
>= 0 characters<= 50 characters
shippingServiceCode
string 
required
By which shipping option this order is fulfilled. OCH defines these shipping option list, 3PP could get this foundational data from "getServiceList" API.
>= 0 characters<= 100 characters
orderOutboundTime
string 
optional

orderOutboundTime String optional Format: date + time zone, UTC ISO8601,ex:2018-11-28T20:09:57+0800 >= 0 characters <= 24 characters

trackingNumberList
array [object {10}] 
required
If one order need to be shippied by multiple separate packages, there should be one tracking number for each package.
errors
array[object (CommonVendorResponseErrorMsgDto) {3}] 
optional
code
string 
optional
id
string 
optional
message
string 
optional
message
string 
optional
messageId
string 
optional
success
boolean 
optional
Example
{
  "code": 0,
  "data": [
    {
      "orderNumber": "OCO0000011225074GB",
      "autoFulfillmentEF": false,
      "orderCreationTime": "2022-05-17T16:00:16+0800",
      "referenceNumber": "",
      "serviceRegion": "UK",
      "trackingNumberList": [
        {
          "feeAmount": 19,
          "orderNumber": "OCO0000011225074GB",
          "LMCarrierCode": "XDP",
          "chargeableWeight": "11000.0000",
          "feeAmountCurrency": "GBP",
          "LMCarrierName": "XDP",
          "chargeableWeightUnit": "g",
          "SKUList": [
            {
              "MFSKUID": "OC0000000675549",
              "SKUQuantity": 2,
              "SN": "A01,A02"
            }
          ],
          "trackingNumber": "ZDBBXK035781"
        }
      ],
      "orderStatus": "Outbound",
      "OCID": "10908711",
      "extendedOrderId": "25-11158-23993",
      "shippingServiceCode": "GBDomesticFreight",
      "orderOutboundTime": "2022-05-18T18:04:38+0800",
      "eBayOrderId": "25-11158-23993"
    }
  ],
  "errors": [],
  "messageId": "20200430040406976",
  "success": true
}
🟢201Created
🟠401Unauthorized
🟠403Forbidden
🟠404Not Found
Modified at 2025-03-11 03:21:54
Previous
Place Outbound Order
Next
Outbound Order Cancellation
Built with