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 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?
$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 ]);