This method allows to book and close an order with the desired products.

It creates a new order in Booked status, acking you the numerical id of the order created. The products, if previously added to the reservation, will be automatically removed from reservation (created with Reserve) and added to this one.

Use

Method Url
POST /restful/ghost/supplierorder/acquire/

Authentication

Remember to authenticate properly, using HTTP Basic Authentication with your API-Key as username and your password.

Request Body

The request body contains a list of desired products that will join the created order. Each product has two attributes:

The quantity can be less, equal or greater than the quantities in the reservation:

Example

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<supplierorder>
    <products>
        <product stock_id="59" quantity="10"/>
        <product stock_id="10" quantity="7"/>
        <product stock_id="29" quantity="13"/>
    </products>
</supplierorder>

Response Body

The response body contains a number which represents the order_id of the created order.

Notes