Trying to create an order with the atomicOrder API and it seems to always create the order with the "owner" rather than the specified employee. There isn't an error or anything, but as you can see below, the order was provided with an `employee.id`, and you can see in the response the employee used to create the order is different:
The full body posted to /atomicOrder was:
{ "orderCart": { "employee":{ "id":"HGBYQ5QESTMBG" }, "lineItems": [ { "quantity": 1, "price": 250, "discountAmount":20, "orderLevelDiscountAmount":30, "item": { "id": "8SFWVR7Z3CNW0", "name": "Avo Go Go2", "price": 250, "taxRates": [], "taxRateValue": 0, "tags": "" }, "modifications":[ { "name":"True Nopal", "amount": 20, "modifier":{ "id":"N1GGT87M65RA8", "modifierGroup":{ "id":"T167H9DA5SM8W" } } }, { "name":"True Nopal 2", "amount": 30, "modifier":{ "id":"N1GGT87M65RA8", "modifierGroup":{ "id":"T167H9DA5SM8W" } } } ], "discounts":[ { "name":"TEST DISCOUNT2", "total": 10, "percentage": 0 } ] }, { "quantity": 1, "price": 250, "discountAmount":20, "orderLevelDiscountAmount":30, "item": { "id": "8SFWVR7Z3CNW0", "name": "Avo Go Go2", "price": 250, "taxRates": [], "taxRateValue": 0, "tags": "" }, "modifications":[ { "name":"True Nopal3", "amount": 20, "modifier":{ "id":"N1GGT87M65RA8", "modifierGroup":{ "id":"T167H9DA5SM8W" } } } ], "discounts":[ { "name":"TEST DISCOUNT2", "total": 20, "percentage": 0 } ] } ], "discounts":[ { "name":"TEST DISCOUNT3", "amount": 0, "percentage": 0 } ], "groupLineItems": true } }
Thanks!
Conor