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.

Request

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

Response

HTTP201 without body if created or updated

Status
colourBlue
titleimplemented

Possible Error

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

Status
colourBlue
titleimplemented

HTTP503 if order exists, but has picked lines

Status
colourYellow
titlepending

Status

Status
colourYellow
titledevelop