V2 checks an app permission on every call — V1 checked none — and a call whose permission is missing answers 400 with errorCode 15, the same status as an invalid payload (see 4.4). Grant these to the API user before porting the command; the names are the ones of the permission tree in flowww.
All or nothing: if one order could not be accepted, none was (108010).
Each call stands alone.
Preconditions
Only orders already sent by the clinic and not yet shipped could be accepted.
Not checked.accept sets the order to accepted whatever its state — even one already shipped. Read it first (GET /order/{orderGID}/num/{orderGPartNum}) and only accept orders that are sent (OrderGReady: true) and PENDING.
All parts
Omitting the part number accepted every part of the order.
One call per part: list the parts with GET /order.
POST …/halt withdraws an order sent by the clinic: it returns to the clinic as not sent, but it does not undo a command 102 acceptance or a shipment, and it does not move stock. For orders, GET …/send sends to the purchasing centre and POST …/send ships from it (commands 39 and 103).