question

dpacheco17 avatar image
dpacheco17 asked David Marginian Deactivated edited

Can I add multiple line_items through the REST API using their item id's

Hi, can I use the bulk line items to add multiple line items at the same time using their UUID's?

OrdersREST APILineItems
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

·
David Marginian avatar image
David Marginian Deactivated answered David Marginian Deactivated edited

So, the answer is yes, but it is a bit complicated. To reference an inventory item you can add the "id" property to the item where the id property is the uuid of an existing Clover inventory item.

{
    "items": [
        {      
            "item": {
                "id": "1WVWNQ58ERXXW"
            }
        },
        {        
            "item": {
                "id": "P50VCQZW8SNVP"
            }
        }
    ]
}

However, you must fill in the rest of the properties (taxRates, prices, etc.). This appears to be an issue in our API and I have created a ticket to have it fixed.

10 |2000

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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