Order List

6 min read

Basic Information

Debug Tool

  • Service: cps-mesh.open.orders.query.get
  • Request Method: POST

Request Header

Header ParameterRequiredExampleNote
Content-TypeYesapplication/json

Common Parameters

Parameter NameRequiredExampleNote
app_keyYes2312521Media application AppKey How to obtain
timestampYes1596592757Timestamp in seconds
serviceYescps-mesh.open.orders.query.getAPI service name
signYes5D17CCCD5B29F98171D6D0D43136B366Signature Details

Interface Parameters

Parameter NameRequiredExampleNote
site_idNoPromotion ID
ads_idNoPlan ID
euidNoFeedback tag, View explanation
stimeYesStart time, timestamp in seconds, note: time span cannot exceed 1 day
etimeYesEnd time, timestamp in seconds, note: time span cannot exceed 1 day
order_fieldNoTime dimension updatetime: update time chargedatetime: settlement time orderdatetime: creation time Default is updatetime
statusNoQuery orders with settlement status in Duomai Alliance. Options: -1 Invalid 0 Unconfirmed 1 Confirmed 2 Settled View order status explanation
pageNoPage number Default is 1
page_sizeNoPage size Default is 20 Maximum is 200

Request Example

{
    "site_id": "string",
    "ads_id": "string",
    "euid": "string",
    "stime": "string",
    "etime": "string",
    "order_field": "string",
    "status": "string",
    "page": "string",
    "page_size": "string"
}

Response Parameters

NameTypeRequiredDefaultNoteAdditional Info
statusintegerNoStatus code
messagestringNoError message
dataobjectNoOrder return
├─ idstringNoOrder ID
├─ ads_idstringNoPlan ID
├─ ads_namestringNoPlan name
├─ site_idstringNoPromotion ID
├─ link_idstringNoPromotion plan link ID
├─ euidstringNoFeedback tag, View explanation
├─ order_snstringNoOrder number
├─ parentordersnstringNoParent order number for some alliances, e.g., Alibaba Mama, available since 2020-06-16
├─ order_timestringNoOrder time, format: yyyy-MM-dd HH:mm:ss
├─ orders_pricedecimal(10,2)NoEstimated order amount, e.g., 1.00
├─ siter_commissiondecimal(10,2)NoEstimated order commission, e.g., 1.00
├─ currencystringNoEstimated order currency: CNY (RMB), USD (Dollar)
├─ statusstringNoDuomai Alliance settlement status: -1 Invalid, 0 Unconfirmed, 1 Confirmed, 2 Settled, View order status explanation
├─ confirm_pricedecimal(10,2)NoConfirmed order amount, e.g., 1.00
├─ confirmsitercommissiondecimal(10,2)NoConfirmed order commission, e.g., 1.00
├─ charge_currencystringNoConfirmed order currency: CNY (RMB), USD (Dollar)
├─ charge_timestringNoSettlement time, format: yyyy-MM-dd HH:mm:ss
├─ detailsobject []NoOrder detailsItem Type: object
├─ goods_catestringNoProduct category, based on actual merchant platform result
├─ goodscatenamestringNoProduct category name, could be a number identifier or text description, based on actual merchant platform result
├─ goods_idstringNoProduct ID
├─ goods_namestringNoProduct name
├─ goods_pricestringNoProduct unit price, unit: yuan. Currency: fixed CNY (RMB)
├─ goods_tastringNoNumber of products
├─ orders_pricedecimal(10,2)NoEstimated product amount, currency matches the currency field, e.g., 1.00
├─ order_statusstringNoOriginal order status description from the merchant platform, could be English, Chinese, or numeric, based on actual result. No corresponding relationship with Duomai Alliance settlement status
├─ order_commissiondecimal(10,2)NoEstimated product commission, currency matches the currency field, e.g., 1.00
├─ order_snstringNoOrder number
├─ parentordersnstringNoParent order number/child order number
├─ goods_imgstringNoProduct image URL
├─ shop_titlestringYesShop name
├─ dmorderstatusstringNoDuomai translated merchant status: -1 Unknown, 1 Pending payment, 2 Paid, 21 Processing, 3 Shipped, 31 In transit, 32 Rejected, 4 Received, 41 Settling, 5 Settled, 6 Invalid, 7 Completed, 8 In dispute, 81 Dispute successful, 82 Dispute failed, 9 Refunded, 10 Returned, 11 System locked; View merchant status explanation

Response Example

{
  "status": 0,
  "message": "string",
  "data": {
    "id": "string",
    "ads_id": "string",
    "ads_name": "string",
    "site_id": "string",
    "link_id": "string",
    "euid": "string",
    "order_sn": "string",
    "parent_order_sn": "string",
    "order_time": "string",
    "orders_price": null,
    "siter_commission": null,
    "currency": "string",
    "status": "string",
    "confirm_price": null,
    "confirm_siter_commission": null,
    "charge_currency": "string",
    "charge_time": "string",
    "details": [
      {
        "goods_cate": "string",
        "goods_cate_name": "string",
        "goods_id": "string",
        "goods_name": "string",
        "goods_price": "string",
        "goods_ta": "string",
        "orders_price": null,
        "order_status": "string",
        "order_commission": null,
        "order_sn": "string",
        "parent_order_sn": "string",
        "goods_img": "string",
        "shop_title": "string",
        "dm_order_status": "string"
      }
    ]
  }
}