選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

order_management.rst 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. Order management REST services
  2. ==============================
  3. Supported methods and resources:
  4. **Retrieve list of orders:**::
  5. GET /orders/
  6. Filters:
  7. * ``after=2010-10-01`` - Return all orders placed after 2010-10-01
  8. * ``before=2010-10-31`` - Return all orders placed before 2010-10-31
  9. **Retrieve a summary of an order with number 123 (not id)**::
  10. GET /order/123/
  11. **Retrieve a list of batches**::
  12. GET /order/123/batches/
  13. **Retrieve a summary of batch**::
  14. GET /order/123/batch/34/
  15. **Retrieve a list of lines**::
  16. GET /order/123/batch/34/lines/ [just lines within batch 34, part of order 123]
  17. GET /order/123/lines/ [all lines within order 123]
  18. GET /lines/ [all lines]
  19. Filters:
  20. * ``at_shipping_status`` - Returns lines at the specified shipping status (use the code)
  21. * ``at_payment_status`` - Returns lines at the specified payment status (use the code)
  22. * ``partner`` - Returns lines fulfilled by a particular partner
  23. **Retrieve a summary of a lines with ids 100,101,102**::
  24. GET /order/123/batch/34/line/100;101;102``
  25. GET /order/123/line/100;101;102``
  26. **Update shipping status of an order line**::
  27. POST /order/123/batch/34/line/100/
  28. POST /order/123/lines/
  29. Request:
  30. ``{'shipping_status': 'acknowledged'}`` - Update every item in line
  31. ``{'shipping_status': {'acknowledged': 10, 'cancelled': 1}}`` - Fine-grained control