Open APIs

Expand all | Collapse all

Product Ordering API - What is the reason OrderItem.id is mandatory in New Order

  • 1.  Product Ordering API - What is the reason OrderItem.id is mandatory in New Order

    TM Forum Member
    Posted Jun 17, 2019 07:23
    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
    ------------------------------


  • 2.  RE: Product Ordering API - What is the reason OrderItem.id is mandatory in New Order

    TM Forum Member
    Posted Jun 26, 2019 04:24
    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
    ------------------------------