Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

URL

http://<<ip address>>/rest/order/

Method

POST

Description

Create a new order. The Content-Type request header defines the data type that is being sent:

  • application/vnd.openxmlformats-officedocument.spreadsheetml.sheet for Excel files

  • … ?

    Request

    Code Block
    languagejson
    {
       «orderid»: { 
          "orderlines": [
            { "article": «article description», "location": «location», 
                "ordered": «amount ordered»
            },
            ...
          ]
       },
       ...
    }

    Response

    HTTP201 without body if created or updated

    Possible Error

    HTTP400 if request was invalid (e.g. invalid JSON). A human readable error message can be found in the body.

    HTTP503 if order exists, but has picked lines

    Status

    Status
    colourPurple
    titleDesign