# Rest API post Order

**URL:** <https://forum.shopware.com/t/rest-api-post-order/44965>\
**Category:** Programmierung\
**Created:** [2. April 2017 um 16:32 UTC](https://forum.shopware.com/t/rest-api-post-order/44965 "2017-04-02T16:32:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Misengo](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/misengo/32/21446_2.png) [@Misengo](https://forum.shopware.com/u/Misengo)\
**Post date:** [2. April 2017 um 16:32 UTC](https://forum.shopware.com/t/rest-api-post-order/44965/1 "2017-04-02T16:32:31Z")

</div>

Just trying to add an order via REST API but getting this Error:

HTTP: 404 No Success Resource not found I used this [REST API - Examples using the order resource](https://developers.shopware.com/developers-guide/rest-api/examples/order/#example-4-creating-an-order) Checked all the user Ids and billing/shipping IDs - seems to be fine. Already checked the api working with other post requests and it works fine (adding customers etc.) Any idea?

&nbsp;

```
 $client-\>post('orders', ["customerId" =\> 1, "paymentId" =\> 4, "dispatchId" =\> 9, "partnerId" =\> "", "shopId" =\> 1, "invoiceAmount" =\> 201.86, "invoiceAmountNet" =\> 169.63, "invoiceShipping" =\> 0, "invoiceShippingNet" =\> 0, "orderTime" =\> "2017-01-31 08:51:46", "net" =\> 0, "taxFree" =\> 0, "languageIso" =\> "1", "currency" =\> "EUR", "currencyFactor" =\> 1, "details" =\> [["articleId" =\> 220, "taxId" =\> 1, "taxRate" =\> 19, "statusId" =\> 0, "articleNumber" =\> "SW10001", "price" =\> 35.99, "quantity" =\> 1, "articleName" =\> "Versandkostenfreier Artikel", "shipped" =\> 0, "shippedGroup" =\> 0, "mode" =\> 0, "esdArticle" =\> 0,], ["articleId" =\> 219, "taxId" =\> 1, "taxRate" =\> 19, "statusId" =\> 0, "articleNumber" =\> "SW10185", "price" =\> 54.9, "quantity" =\> 1, "articleName" =\> "Express Versand", "shipped" =\> 0, "shippedGroup" =\> 0, "mode" =\> 0, "esdArticle" =\> 0,], ["articleId" =\> 197, "taxId" =\> 1, "taxRate" =\> 19, "statusId" =\> 0, "articleNumber" =\> "SW10196", "price" =\> 34.99, "quantity" =\> 2, "articleName" =\> "ESD Download Artikel", "shipped" =\> 0, "shippedGroup" =\> 0, "mode" =\> 0, "esdArticle" =\> 1,]], "documents" =\> [], "billing" =\> ["id" =\> 1, "customerId" =\> 1, "countryId" =\> 2, "stateId" =\> 3, "company" =\> "shopware AG", "salutation" =\> "mr", "firstName" =\> "Max", "lastName" =\> "Mustermann", "street" =\> "Mustermannstraße 92", "zipCode" =\> "48624", "city" =\> "Schöppingen",], "shipping" =\> ["id" =\> 2, "countryId" =\> 2, "stateId" =\> 3, "customerId" =\> 1, "company" =\> "shopware AG", "salutation" =\> "mr", "firstName" =\> "Max", "lastName" =\> "Mustermann", "street" =\> "Mustermannstraße 92", "zipCode" =\> "48624", "city" =\> "Schöppingen"], "paymentStatusId" =\> 17, "orderStatusId" =\> 0 ]);
```

---

<div class="post-metadata">

**Author:** ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)\
**Post date:** [2. April 2017 um 16:46 UTC](https://forum.shopware.com/t/rest-api-post-order/44965/2 "2017-04-02T16:46:19Z")

</div>

This is a new feature of 5.2.21. Do you use this version?

---

<div class="post-metadata">

**Author:** ![Misengo](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/misengo/32/21446_2.png) [@Misengo](https://forum.shopware.com/u/Misengo)\
**Post date:** [2. April 2017 um 19:49 UTC](https://forum.shopware.com/t/rest-api-post-order/44965/3 "2017-04-02T19:49:46Z")

</div>

Yes I am using the newest Version 5.2.21

&nbsp;

![](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/7/7d91914f4e1715ea061324829c7f75b3d503c9ca.png)

---

<div class="post-metadata">

**Author:** ![megloff](https://avatars.discourse-cdn.com/v4/letter/m/e47774/32.png) [@megloff](https://forum.shopware.com/u/megloff)\
**Post date:** [5. April 2017 um 18:43 UTC](https://forum.shopware.com/t/rest-api-post-order/44965/4 "2017-04-05T18:43:51Z")

</div>

Can you please chech your php error log on the server, sometimes you get more details and a stack trace there? Please post the error message from the log.&nbsp; I&nbsp; am experienced a similar issue with 5.2.21 but on my own REST API endpoint which I don’t know if it is an issue of the newest release(s) of Shopware or my own programming mistake of my plugin
