Hi,
In our company we need to provide API users with a response that shows how many instances of each product that a customer (party) has. The
listProduct
operation in TMF637 does not quite fit our needs, because the response as specified only contains an array of fully-specified product objects; there is no property in which to supply aggregate counts.
Current plans involve extending our implementation of the TMF637 Product Inventory Management API with a non-standard endpoint that provides a map of
productOfferingRef
s together with integer counts. The response would be structured something like this:
[
{
"productOffering": {
"id": "MOBILE_10",
"name": "Mobile 10 GB",
"href": "https://example.com/api/products/MOBILE_10"
},
"count": 62
},
{
"productOffering": {
"id": "MOBILE_50",
"name": "Mobile 50 GB",
"href": "https://example.com/api/products/MOBILE_50"
},
"count": 3
}
]
We would of course prefer using standard TMForum operations and response schemas wherever possible. Are there ways to express this kind of information using only the published TMForum specifications?
------------------------------
Arnt Richard Johansen
Telia Company
------------------------------