Order push

5 min read

Actively pushing channel orders will allow promotion traffic owners to perceive the return of order data faster and increase promotion enthusiasm. In ROI cooperation, data feedback can also be efficiently obtained, and delivery strategies can be updated in a timely manner.

push request

  • Advertisers who only provide order push and do not provide order inquiry need to ensure that the push is successful after receiving an ack response.
  • Multiple repeated pushes are kept only once

push address

Please contact the corresponding marketing consultant for code and hash.

For the custom format order push address, please contact the technical staff of Domai, or provide the push address to modify and save the entry.

https://platform.duomai.com/apis/cps.service.order/ads/push/{code}

push format

If there is a custom format, the corresponding document must be provided

Please note that the interface push request is in POST (x-www-form-urlencoded) format.

MeaningCorresponding parameter (case-sensitive)RequiredDetailed description
Authentication, e-commerce identityhashRequiredPush the hash value of the order
The main website identifier passed by the alliance to the e-commerce companyeuidRequiredThe parameter value of the euid passed in by the access interface. The maximum length of this value is about 200 characters. We hope that you will reserve a field of sufficient length to store this value.
Order numberorder_snrequired
Sub order numbersuborder_snoptional
Order timeorder_timerequiredThe time when the user places an order. If it is not passed, the current time is used. The time format is 2012-04-04 03:23:09
Click timeclick_timeoptionalThe time when the user clicks to enter the cps access interface, the time format is 2012-04-04 02:09:09
Order amountorders_pricerequiredThe actual cash amount paid by the user, that is, the total order price minus the part that does not calculate the commission for the use of coupons/cash coupons/express fees, etc.
Whether it is a new customeris_new_customoptional1 is a new customer, 0 is an old customer, regardless of new and old customers pass 0
Order statusorder_statusrequiredDescription of the order status existing in the merchant system
Currency codecurrencyoptionalThe default is RMB (CNY), please pass in the standard currency code for other currencies,http://zh.wikipedia.org/zh/ISO_4217
Time zone codetimezoneoptionalThe default is Beijing time (UTC+8), please pass in the standard time zone code for other time zones, http://zh.wikipedia.org/zh/%E6%97%B6%E5%8C%BA%E5%88%97%E8%A1%A8
Product Numbergoods_idrequiredIf multiple product information in the same order is pushed at the same time, the attributes of each product are spliced with vertical lines, and the last vertical line of the parameter value is removed.
Product Namegoods_namerequiredIf multiple product information in the same order is pushed at the same time, the attributes of each product are spliced with vertical lines, and the last vertical line of the parameter value is removed.
Product Unit Pricegoods_pricerequiredIf multiple product information in the same order is pushed at the same time, the attributes of each product are spliced with vertical lines, and the last vertical line of the parameter value is removed.
Product quantitygoods_tarequiredDefault is 1,If multiple product information in the same order is pushed at the same time, the attributes of each product are spliced with vertical lines, and the last vertical line of the parameter value is removed.
Product classification numbergoods_caterequiredIf multiple product information in the same order is pushed at the same time, the attributes of each product are spliced with vertical lines, and the last vertical line of the parameter value is removed.
Product classification namegoods_cate_namerequiredIf multiple product information in the same order is pushed at the same time, the attributes of each product are spliced with vertical lines, and the last vertical line of the parameter value is removed.
Product Total price (net amount)total_pricerequiredThe total price of the actual product is paid, and coupons, shipping fees and other amounts need to be removed,If multiple product information in the same order is pushed at the same time, the attributes of each product are spliced with vertical lines, and the last vertical line of the parameter value is removed.
Product commission ratioraterequiredIf multiple product information in the same order is pushed at the same time, the attributes of each product are spliced with vertical lines, and the last vertical line of the parameter value is removed.
Product commission amountcommissionrequiredIf multiple product information in the same order is pushed at the same time, the attributes of each product are spliced with vertical lines, and the last vertical line of the parameter value is removed.
Product commission categorycommission_typeoptionalIf multiple product information in the same order is pushed at the same time, the attributes of each product are spliced with vertical lines, and the last vertical line of the parameter value is removed.
Character EncodingencodingoptionalIf the data pushed this time contains Chinese and is not encoded in UTF8, please set the corresponding encoding value. For example: the push is gbk data encoding=gbk; if the data defaults to UTF8 encoding, there is no need to set this value

Push returns ack

return successfully

{
  status:"OK"
}

error return

{
    "error": {
        "code": 401,
        "message": "no permission"
    }
}

View push results

GET requests the push address, followed by hash to view the latest 50 push data

Example:https://platform.duomai.com/apis/cps.service.order/ads/push/{code}?hash=DASDWFSAX