This method creates an order with the given items and quantities for a user’s customer. The order will be dispatched, after user's payment, to the given recipient (user’s customer).

Use

Method Url
Post /restful/ghost/orders/0/dropshipping

Authentication

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

Request Body

The request body contains the order items informations and the recipient detail.

Example

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<root>
        <order_list>
        <order>
            <key>2345</key>
            <date>2017/01/31 23:59:59 +0000</date>
            <recipient_details>
                <recipient>ACME srl</recipient>
                <careof />
                <cfpiva>12345558</cfpiva>
                <customer_key>7777</customer_key>
                <notes></notes>
                <address>
                    <street_type>Via</street_type>
                    <street_name>Roma</street_name>
                    <address_number>1</address_number>
                    <zip>10100</zip>
                    <city>TORINO</city>
                    <province>TO</province>
                    <countrycode>IT</countrycode>
                </address>
                <phone>
                    <prefix>+39</prefix>
                    <number>0112838474</number>
                </phone>
            </recipient_details>
            <item_list>
                <item>
                    <stock_id>148148</stock_id>
                    <quantity>10</quantity>
                </item>
                <item>
                    <stock_id>148367</stock_id>
                    <quantity>15</quantity>
                </item>
            </item_list>            
        </order>
    </order_list>
</root>

Response Body

The response body contains a list of the models remaining in your reservation. Each model has three attributes:

Example

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<root order_id="1000">
    <model stock_id="148148" locked="10" available="5" />
</root>

Notes