Hi Fadel
In the TM Forum Open APIs, we don't provide in the standard explicit endpoints to allow manipulations of contained entities. So yes, to add a cart item, you need to PATCH the cart itself, updating the array of items accordingly. Bear in mind that you have the choice of:
- PATCH Merge, which is simpler to use, and you can apply schema validation to the payload; but it is not so convenient for arrays of contained elements
- JSON PATCH, which gives you finer control and easier access to array elements; but there is no schema validation for the "value" being applied
Hope it helps
------------------------------
Jonathan Goldberg
Amdocs Management Limited
Any opinions and statements made by me on this forum are purely personal, and do not necessarily reflect the position of the TM Forum or my employer.
------------------------------