From 505bf42ad6723227c5cfa0dc5a06677faac3c45d Mon Sep 17 00:00:00 2001 From: goncy Date: Fri, 27 Aug 2021 14:24:15 -0300 Subject: [PATCH] Fix add item --- framework/ordercloud/api/endpoints/cart/add-item.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/ordercloud/api/endpoints/cart/add-item.ts b/framework/ordercloud/api/endpoints/cart/add-item.ts index d292a3157..197f58a0e 100644 --- a/framework/ordercloud/api/endpoints/cart/add-item.ts +++ b/framework/ordercloud/api/endpoints/cart/add-item.ts @@ -24,7 +24,7 @@ const addItem: CartEndpoint['handlers']['addItem'] = async ({ // Create an order if it doesn't exist if (!cartId) { - cartId = await restFetch('POST', `/orders/Outgoing`).then( + cartId = await restFetch('POST', `/orders/Outgoing`, {}).then( (response: { ID: string }) => response.ID ) }