question

jose avatar image
jose asked Dan answered

how can I create order by using existing items in a single API call or by emulator?

We trying to create order in Clover by using already existed items but in API doc there is two type of endpoints available 1) Create an order with custom items and 2) Create an empty order first and then add the line item. I am looking for the API which can help me create an order by using existed line item in one call. Would it be possible? I have tried to use "emulator" also by referring to this doc https://sandbox.dev.clover.com/developers/dev-apks ( https://sandbox.dev.clover.com/developers/dev-apks) and I have successful install it, connected with my sandbox and production both the account and able to create an order by using existed items but that created order is not visible in the dashboard (Clover's developer order section). Could you help me with the issue that how can I create order by using existing items in a single call?
OrdersEmulator
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Dan avatar image
Dan answered
Sorry, but it is not possible to create an order with existing items in a single call. Separate calls must be made to create the order and add each line item (as well as adding any discounts to the order or line item, and modifications to line items).
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community