Files
baseapi/platformapi/jdshopapi/order.go
2020-05-26 14:08:18 +08:00

18 lines
494 B
Go

package jdshopapi
import "encoding/json"
//查询单个订单
//https://open.jd.com/home/home#/doc/api?apiCateId=55&apiId=2389&apiName=jingdong.pop.order.enGet
func (a *API) EnGet(orderID int64) (err error) {
dataMap := map[string]interface{}{
"order_id": orderID,
"optional_fields": "orderType,payType",
}
data, _ := json.Marshal(dataMap)
_, err = a.AccessAPI("jingdong.pop.order.enGet", prodURL, map[string]interface{}{
"360buy_param_json": string(data),
})
return err
}