[关闭]
@fuyb1986 2017-01-18T07:11:07.000000Z 字数 2434 阅读 562

商铺的订单

金色童年


商铺订单列表

Method and URL Structure

Method Resource URL
GET /market/shop/orders/

cURL Example

  1. curl http://localhost/market/shop/orders/

Response

  1. {
  2. "count":1,
  3. "next":null,
  4. "previous":null,
  5. "results":[{
  6. "pk":4,
  7. "order":{
  8. "amount":"499.50",
  9. "channel":"alipay",
  10. "order_number":"14925746808730462516430013",
  11. "shipping_address":"山东青岛四方四方火车站",
  12. "telephone":"12345678910",
  13. "linkman":"张三",
  14. "channel_display":"支付宝",
  15. "status":1,
  16. "use_point":true,
  17. "consume_point":6,
  18. "status_display":"已付款",
  19. "is_done":false,
  20. "tracking_number": "1234567890",
  21. "shipper_name": "顺丰快递",
  22. "shipper_code" "SF",
  23. "bought_product_set":[{
  24. "product":{
  25. "pk":16,
  26. "category":13,
  27. "category_name":"商品分类第二",
  28. "name":"商品第五",
  29. "price":"99.90",
  30. "desc":"",
  31. "evaluation_data":{
  32. "bad_count":0,
  33. "count":0,
  34. "middle_count":0,
  35. "good_count":0
  36. },
  37. "cover":"",
  38. "desc_files":"",
  39. "file_list":[""],
  40. "shop":null,
  41. "use_point":true,
  42. "only_point":false,
  43. "point":0
  44. },
  45. "quantity":5,
  46. "amount":"499.50",
  47. "created":"2017-01-10T18:48:17.122868"
  48. }..]
  49. }..]
  50. }

商铺订单

Method and URL Structure

Method Resource URL
GET /market/shop/order/${pk}

cURL Example

  1. curl http://localhost/market/shop/order/4/

Response

  1. {
  2. "pk":4,
  3. "order":{
  4. "amount":"499.50",
  5. "channel":"alipay",
  6. "order_number":"14925746808730462516430013",
  7. "shipping_address":"山东青岛四方四方火车站",
  8. "telephone":"12345678910",
  9. "linkman":"张三",
  10. "channel_display":"支付宝",
  11. "status":1,
  12. "use_point":true,
  13. "consume_point":6,
  14. "status_display":"已付款",
  15. "is_done":false,
  16. "tracking_number": "1234567890",
  17. "shipper_name": "顺丰快递",
  18. "shipper_code" "SF",
  19. "bought_product_set":[{
  20. "product":{
  21. "pk":16,
  22. "category":13,
  23. "category_name":"商品分类第二",
  24. "name":"商品第五",
  25. "price":"99.90",
  26. "desc":"",
  27. "evaluation_data":{
  28. "bad_count":0,
  29. "count":0,
  30. "middle_count":0,
  31. "good_count":0
  32. },
  33. "cover":"",
  34. "desc_files":"",
  35. "file_list":[""],
  36. "shop":null,
  37. "use_point":true,
  38. "only_point":false,
  39. "point":0
  40. },
  41. "quantity":5,
  42. "amount":"499.50",
  43. "created":"2017-01-10T18:48:17.122868"
  44. }..]
  45. }
  46. }

商铺给订单发货

Method and URL Structure

Method Resource URL
PUT /market/shop/order/deliver/${pk}

Request Data

  1. {
  2. "tracking_number": "1234567890"
  3. "shipper_name": "顺丰快递",
  4. "shipper_code" "SF",
  5. }

cURL Example

  1. curl --X POST --data {} http://localhost/market/shop/order/deliver/4/

订单物流跟踪

Method and URL Structure

Method Resource URL
GET /market/shop/order/tracking/${pk}

cURL Example

  1. curl --X GET http://localhost/market/shop/order/tracking/4/

Response Data

  1. {
  2. "Success":true,
  3. "ShipperCode":"YD",
  4. "LogisticCode":"3917551653360",
  5. "State":"3",
  6. "Traces":[{
  7. "AcceptTime":"2017-01-07 23:26:52",
  8. "AcceptStation":"到达: xxx中心分拨分部 发往:xxx分拨中心"
  9. },
  10. .....
  11. {
  12. "AcceptTime":"2017-01-09 13:52:00",
  13. "AcceptStation":"到达:xxxx 由 已签收 签收"
  14. }],
  15. "EBusinessID":"1270798"
  16. }
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注