Hi Milind
The field orderItem.id is not intended to be globally unique (although an implementation might make it so). It is simply an index that distinguishes between multiple order items at the same level (and allowing them to be addressed in future update operations).
So the expectation is that the consumer should supply this index at creation time.
In principle this is needed for any array of sub-resources where there is no "natural" key for addressing the items in the list.
Hope it helps
------------------------------
Jonathan Goldberg
Amdocs Management Limited
------------------------------
Original Message:
Sent: Jun 17, 2019 07:11
From: Milind Pote
Subject: Product Ordering API - What is the reason OrderItem.id is mandatory in New Order
Hello,
In Product Ordering API in Create Product Order, id for new OrderItem is mandatory.
As this is new OrderItem, id will not be available with consumer - please advise what is the reason this id is mandatory and what are the expecation from consumer.
Thanks.
------------------------------
Milind Pote
Amdocs Management Limited
------------------------------