question

adil avatar image
adil asked David Marginian Deactivated edited

Cant set unitQty to a fixed type item via atomic order API.

{
    "orderCart": {
        "lineItems": [
            {
                "item": {
                    "id": "5WCN4R86GG81G"
                },
                "unitQty": 5000
            }
        ]
    }
}

When I set the unitQty of the line item it works if it is of a Per unit type. When i try to set it to a Fixed type inventory item then its not working. Can somebody explain why its not working?

REST API
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

Per the documentation:

IntegerlineItems[].unitQty
Unit quantity if this line item is priced by quantity, or null if the item is not priced by quantity.

unitQty only applies to items that are priced by quantity. For fixed price items you will need to add multiple 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.

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