Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

This API allows the sender of an order to update the amount of each row on an existing order. Only reduction of numbers are allowed and you cannot add new products to an existing order (if this is required send a new order). 

 

URLhttps://api.order.boknett.no/orders/{ID}/update/{lineId}
MethodPOST
Request
headers

Authorization

Required

The token acquired from the Authentication Service.

Formated "Boknett TGT-...."

DateRequiredThe timestamp the request was made. Must comply with RFC 1123 date formats. Example: Tue, 10 Jun 2014 16:23:42 GMT
Content-typeRequiredapplication/json
Request body

 

{"ISBN": "ISBN of product", "number": negative number}

 

Response
body
empty on success
Returns200Ok
40xOn error

 

Validations

The system checks status on the rows that is requested to change and if the total number does not go below 0. If the request row has been set to FULFILLED_BLOCKED by the seller, then the change will be rejected. If the change is accepted (API returns 200) then the change will appear as a new row in the order and have the initial status REQUESTED.

  • No labels