# Order Notification
# Interface Dxplaination
If Weixin Mini Program becomes a cooperative account of Weixin Store, And enter the WeChat small shop through the Mini Program. After the order is successful, the WeChat small shop will notify this part of the order to the corresponding channel Mini Program through this interface. Note that order_id is not the order id on the side of the small shop, and is only used for inquiry by the channel Mini Program.
# Note
- The callback URL settings and message push rules need to refer to the message push document . If the set callback URL is not accessible, the merchant will not receive the notifications sent by Weixin Store.
# Retry Rules
If the recipient fails to respond to the rule or does not respond within a certain amount of time, the push is considered a failure and a strategy is used to retry the push. The retry strategy is 0s / 0s / 10s / 1min / 5min / 30min / 60min / 60min / 60min, with a maximum of 10 push times, totaling about 3.6 hours.
# Dxplaination of request parameters
parameter | type | describe |
---|---|---|
ToUserName | string | Weixin Mini Program username |
FromUserName | string | OpenID of the Order User |
CreateTime | number | The time of the event, the Unix timestamp, that is, the total number of seconds since 00: 00 minutes and 00 seconds on 01 / 01 / 1970 Greenwich Mean Time (08: 00: 00 on 01 / 01 / 1970 Beijing Time) |
MsgType | string | Message type, fixed as event |
Event | string | Event type, the previous cooperation account event is called cooperation_shop_order, for the new associated account, the event is called related_shop_order_submission |
Data | object | The contents of the incident |
Data.order_id | string | Order id, note that order_id is not the order id of the store side, only for channel Weixin Mini Program query |
Data.shop_appid | string | Shop AppID |
# Sample request parameters (decrypted plaintext JSON)
{
"ToUserName": "gh_2defbb026678",
"FromUserName": "OPENID",
"CreateTime": 1706518830,
"MsgType": "event",
"Event": "cooperation_shop_order",
"Data": {
"order_id": "coiqBw3B************************************************************TdtdzIpQ",
"shop_appid":"店铺appid"
}
}
# Return parameter explaination
Just return the character string.
success
# Example of Return Parameters
success