Hi,
We have created web application where we are using Multiple inventory items which is created in sandbox for making order.
on Final payment we are using https://github.com/clover/remote-pay-cloud-examples/tree/master/remote-pay-cloud-starter Where we are connecting with device and Performs a sale on our Clover device and on success response we are creating order with REST API
Using two below APIs:
1) https://apisandbox.dev.clover.com/v3/merchants/{merchantID}/orders (API to create order)
REQUEST: {"total" : totalAmount, "paymentState":"PAID", "payments":[{"id":paymentId}]};
2)https://apisandbox.dev.clover.com/v3/merchants/{merchantID}/orders/{orderID}/bulk_line_items (API to add items into the order)
REQUEST: {"items" :[{ "item":{"id" : inventoryId}, "name" : name, "price": unitPrice, "unitQty" : quantity})]}
We were successfully able to create order and adding bulk line item to order.
But unable to associate order with clover device payment as we also wanted to those inventory items on print as well.