Create

POST {{url}}/api/external/pickupdeliveries/create/:sentFromMachine

Preface

Use this endpoint to create a click & collect order on the machine

URL Parameters

ParamaterExplanation
sentFromMachineThis parameter indicates whether the order was created from within the machine itself or not. When set to false (so created externally) the API will send the new data to the machine immediately.

Set to true when testing with a machine that is not online to prevent waiting for the result.

Request Body

{"MachineId"=>0, "MotorNr"=>0, "MotorNrList"=>[0], "Description"=>"string", "FirstName"=>"string", "LastName"=>"string", "Email"=>"string", "DoSendEmail"=>true, "IsStartStatusFilled"=>true, "IsStartStatusDelivered"=>true, "IsStartStatusReturned"=>true, "Returnable"=>true, "OrderNr"=>"string", "BadgeCode"=>"string", "DeliveryDate"=>"string", "DeliveryTime"=>"string", "UnlockCode"=>"string", "PrescriptionCode"=>"string", "Price"=>0, "PriceExclVat"=>0, "PriceVatPercentage"=>0, "ReturnUrl"=>"string", "DoSendEmailAfterCreate"=>true, "DoSendEmailAfterFill"=>true, "IsPaid"=>true}