Question
When listing the productIds for a bundle, should the base productId
be included?
For example, when calling /banking/products/Example123
, omitting the base productId from the bundle might result in a response such as the following:
{ "productId": "Example123", "effectiveFrom": "string", "effectiveTo": "string", "lastUpdated": "string", "productCategory": "BUSINESS_LOANS", "name": "string", "description": "string", "brand": "string", "isTailored": true, "bundles": [ { "name": "string", "description": "string", "additionalInfo": "string", "additionalInfoUri": "string", "productIds": [ "ExampleABC", "ExampleXYZ" ] } ] }
What is the preferred behaviour?
Answer
The Consumer Data Standards (CDS) are silent, so both interpretations are valid. The CDS do not force Data Holders (DHs) to include the current product's productId
in the bundle array, but do not preclude including the current product's productId
in the array.
As the client can infer that the current product is included in the bundle, including the base productId
is redundant. The client can add the current productId
to the bundle if preferred.
If you see this as requiring further standardisation, the DSB would welcome a change request to that effect.
See:
Comments
0 comments
Please sign in to leave a comment.