List or Find Products
/product
Request
-
billingAccount.id: string
The ID of the associated billing account.
-
description: string
The description of the resource.
-
fields: string
The comma-separated properties to be provided in response.
-
filter: string
The advanced filter expression for querying nested fields (for example, JSONPath).Examples
-
isBundle: boolean
Wether the resource is a bundle.
-
limit: integer
The requested number of resources to be provided in response.
-
name: string
The name of the resource.
-
offset: integer
The requested index for start of resources to be provided in response.
-
productCharacteristic.id: string
The ID of the associated product characteristic.
-
productOffering.id: string
The identifier of the associated product offering.
-
productOffering.name: string
The name of the associated product offering.
-
quantity: integer
The service quantity when creating a purchase product.
-
realizingService.id: string
The ID of the associated realizing service.
-
startDate: string(date-time)
The resource start date. The expected ISO-8601 format: 2025-01-02T01:30:00Z.Example:
2018-01-02T01:30:00Z -
status: string
The resource's status.
-
terminationDate: string(date-time)
The resource termination date. The expected ISO-8601 format: 2025-01-02T01:30:00Z.Example:
2025-01-02T01:30:00Z
There's no request body for this operation.
Back to TopResponse
200 Response
-
X-Result-Count:
The actual number of items returned in the response body.
-
X-Total-Count:
The total number of items matching criteria.
-
object
Product
A product offering procured by a customer or other interested party playing a party role. A product is realized as one or more service(s) and / or resource(s).
-
ProductOracle
object-
@type: string
This defines the sub-class entity name when sub-classing.
-
id(required): string
Unique identifier of the product.
-
ownerAccount: object
OwnerAccount
Provides unique identifier of the owner account.
-
productCharacteristic: array
productCharacteristic
-
productTerm: array
productTerm
-
serviceAccount: object
ServiceAccount
Provides unique identifier of the service account.
-
object
Product
A product offering procured by a customer or other interested party playing a party role. A product is realized as one or more service(s) and / or resource(s).
-
object
ProductOracle-allOf[1]
A product offering procured by a customer or other interested party playing a party role. A product is realized as one or more service and/or resources.
object-
@baseType: string
Title:
Base TypeThe superclass of the object. -
@referredType: string
Title:
Referred TypeThe type of the object, in the target system, if baseType and type need further disambiguation. -
@schemaLocation: string
(uri)
Title:
Schema LocationA URI to a JSON schema file that defines additional attributes and relationships. -
@type: string
Title:
TypeThe subclass of the object. -
href: string
Title:
Owner Account HrefThe href of the owner account reference. -
id: string
Title:
Owner Account IDUnique identifier of the owner. -
name: string
Title:
Owner Account NameThe name of the owner account reference.
array-
Array of:
object ProductTerm
Description of a product term linked to this product. This represents a commitment with a duration.
object-
@baseType: string
Title:
Base TypeThe superclass of the object. -
@referredType: string
Title:
Referred TypeThe type of the object in the target system, if baseType and type need further disambiguation. -
@schemaLocation: string
(uri)
Title:
Schema LocationA URI to a JSON schema file that defines additional attributes and relationships. -
@type: string
Title:
TypeThe subclass of the object. -
href: string
Title:
Service Account HrefThe href of the service account reference. -
id: string
Title:
Service Account IDUnique identifier of the service. -
name: string
Title:
Service Account NameThe name of the service account reference.
-
object
Extensible
The Base Extensible schema for use in TMForum Open-APIs - When used for in a schema it means that the Entity described by the schema MUST be extended with the @type
-
object
Characteristic-allOf[1]
The given characteristic of an object or entity through a name/value pair.
object-
@baseType: string
The defines the super-class when sub-classing.
-
@schemaLocation: string
The URI to a JSON-Schema file that defines additional attributes and relationships
-
@type(required): string
The definition of the sub-class extensible name, when sub-classing.
object-
characteristicRelationship: array
characteristicRelationship
-
id: string
The unique identifier of the characteristic.
-
name: string
The name of the characteristic.
-
valueType: string
The data type of the value of the characteristic.
-
object
Extensible
The Base Extensible schema for use in TMForum Open-APIs - When used for in a schema it means that the Entity described by the schema MUST be extended with the @type
-
object
CharacteristicRelationship-allOf[1]
The characteristic that is related to the current Characteristic.
object-
id: string
The unique identifier of the characteristic.
-
relationshipType: string
The type of relationship.
object-
@baseType: string
This defines the super-class when sub-classing.
-
@schemaLocation: string
(uri)
A URI to a JSON-Schema file that defines additional attributes and relationships.
-
@type: string
This defines the sub-class entity name when sub-classing.
-
commitmentType: string
Commitment type of the product term.
-
description: string
Description of the product term.
-
duration: object
Quantity
The amount in a given unit.
-
name: string
Name of the product term.
object-
amount: number
(float)
Default Value:
1The numeric value in a given unit. -
units: string
The unit.
object-
cycleEnd:
CycleEndRef
-
cycleStart:
CycleStartRef
-
gracePeriod:
GracePeriodRef
-
productPrice: array
productPrice
-
productRelationship: array
productRelationship
-
purchaseEnd:
PurchaseEndRef
-
purchaseStart:
PurchaseStartRef
-
quantity: integer
Is the quantity of service while creation of a purchase product.
-
usageEnd:
UsageEndRef
-
usageStart:
UsageStartRef
-
object
CPUDatesExtension_FVO
Contains the CPU extension dates' common properties.
-
object
CycleEndRef-allOf[1]
CycleEnd reference. A CycleEnd contains details regarding cycle end date for purchased product.
-
object
CPUDatesExtension_FVO
Contains the CPU extension dates' common properties.
-
object
CycleStartRef-allOf[1]
CycleStart reference. A CycleStart contains details regarding cycle start date for purchased product.
-
object
CPUDatesExtension_FVO
Contains the CPU extension dates' common properties.
-
object
GracePeriodRef-allOf[1]
GracePeriod reference. A GracePeriod contains details regarding grace period date for purchased product.
array-
Array of:
object Discriminator: @type
Discriminator:
{ "propertyName":"@type", "mapping":{ "ProductPrice":"#/components/schemas/ProductPriceOracle" } }
array-
Array of:
object Discriminator: @type
Discriminator:
{ "propertyName":"@type", "mapping":{ "ProductRelationship":"#/components/schemas/ProductRelationshipOracle" } }
-
object
CPUDatesExtension_FVO
Contains the CPU extension dates' common properties.
-
object
PurchaseEndRef-allOf[1]
PurchaseEnd reference. A PurchaseEnd contains details regarding purchase end date for purchased product.
-
object
CPUDatesExtension_FVO
Contains the CPU extension dates' common properties.
-
object
PurchaseStartRef-allOf[1]
PurchaseStart reference. A PurchaseStart contains details regarding purchase start date for purchased product.
-
object
CPUDatesExtension_FVO
Contains the CPU extension dates' common properties.
-
object
UsageEndRef-allOf[1]
UsageEnd reference. A UsageEnd contains details regarding usage end date for purchased product.
-
object
CPUDatesExtension_FVO
Contains the CPU extension dates' common properties.
-
object
UsageStartRef-allOf[1]
UsageStart reference. A UsageStart contains details regarding usage start date for purchased product.
object-
amount(required): integer
Indicates the amount of time of a given unit.
-
unit(required): string
Allowed Values:
[ "seconds", "minutes", "hours", "days", "months", "acct_cycles", "first_usage", "absolute" ]Indicates the unit of time for the CPU extension date. Can be "seconds", "minutes", "hours", "days", "months", "acct_cycles", "first_usage" and "absolute".
objectobjectobjectobjectDiscriminator Values
-
object
allOf
Discriminator: @type
Discriminator:
{ "propertyName":"@type", "mapping":{ "ProductPrice":"#/components/schemas/ProductPrice" } } -
object
Discriminator: @type-allOf[1]
A description of the price and discount awarded.
objectDiscriminator Values
-
object
Extensible
The Base Extensible schema for use in TMForum Open-APIs - When used for in a schema it means that the Entity described by the schema MUST be extended with the @type
-
object
Discriminator: @type-allOf[1]
Describes the price and any discount awarded.
object-
description: string
A description of the product price.
-
name: string
The name of the product price.
-
price: object
Price
Provides all amounts (tax included, duty free, tax rate), used currency and percentage to apply for Price Alteration.
-
priceAlteration: array
priceAlteration
-
priceType: string
Indicates whether the price is for a recurring or a non-recurring charge.
-
productOfferingPrice:
Discriminator: @type
Discriminator:
{ "propertyName":"@type", "mapping":{ "ProductOfferingPriceRef":"#/components/schemas/ProductOfferingPriceRef" } } -
recurringChargePeriod: string
Indicates the period for a recurring charge (for example: month or week).
-
unitOfMeasure: string
Unit of measure if the price depends on it (for example: GB or SMS volume).
object-
priceAlteration(required): array
priceAlteration
-
priceType(required): string
Allowed Values:
[ "oneTime", "recurring" ]The price type: one-time or recurring.
object-
@type: string
This defines the sub-class entity name when sub-classing.
-
dutyFreeAmount: object
Money
The base / value business entity used to represent money.
-
percentage: number
(float)
-
taxAmount: object
Money
The base / value business entity used to represent money.
-
taxIncludedAmount: object
Money
The base / value business entity used to represent money.
array-
Array of:
object PriceAlteration
The object is an amount, usually of money, that modifies the price charged for an order item.
objectDiscriminator Values
-
allOf
EntityRef
-
object
Discriminator: @type-allOf[1]
An amount, usually monetary, that is asked for or allowed when a ProductOffering is bought, rented, or leased.
object-
unit: string
The currency (ISO4217 norm uses 3 letters to define the currency).
-
value: number
(float)
The signed floating point number, the meaning of the sign is according to the context of the API that uses this Data type
object-
@baseType: string
This defines the super-class when sub-classing.
-
@schemaLocation: string
(uri)
A URI to a JSON-Schema file that defines additional attributes and relationships.
-
@type: string
This defines the sub-class entity name when sub-classing.
-
description: string
A narrative that explains in detail the semantics of this order item price alteration.
-
name: string
Name of the order item price alteration.
-
price(required): object
Price
Provides all amounts (tax included, duty free, tax rate), used currency and percentage to apply for Price Alteration.
-
priceType(required): string
A category that describes the price such as recurring, one time and usage.
-
priority: integer
It is a priority level for applying this alteration among all the defined alterations on the order item price.
-
recurringChargePeriod: string
Refers to a timeline, like month, week, etc.
-
unitOfMeasure: string
Refers to a unit of measurement like minutes, GB, etc.
-
object
Extensible
The Base Extensible schema for use in TMForum Open-APIs - When used for in a schema it means that the Entity described by the schema MUST be extended with the @type
-
object
Addressable
The base schema for adressable entities.
-
object
EntityRef-allOf[2]
The entity reference schema to be use for all entityRef class.
object-
href: string
The hyperlink reference.
-
id: string
The unique identifier.
object-
@referredType: string
The actual type of the target instance when needed for disambiguation.
-
href: string
The URI of the referred entity.
-
id(required): string
The identifier of the referred entity.
-
name: string
The name of the referred entity.
object-
version: string
The product offering price version.
array-
Array of:
object Discriminator: @type
Discriminator:
{ "propertyName":"@type", "mapping":{ "PriceAlteration":"#/components/schemas/PriceAlterationOracle" } }
objectDiscriminator Values
-
object
PriceAlteration
The object is an amount, usually of money, that modifies the price charged for an order item.
-
object
Discriminator: @type-allOf[1]
Is an amount, usually of money, that modifies the price charged for an order item.
object-
priceType: string
Allowed Values:
[ "AmountOverride", "DiscountPercentageOverride", "DiscountAmountOverride" ]A category that describes the price, such as AmountOverride, DiscountPercentageOverride, or DiscountAmountOverride.
objectDiscriminator Values
-
object
allOf
Discriminator: @type
Discriminator:
{ "propertyName":"@type", "mapping":{ "ProductRelationship":"#/components/schemas/ProductRelationship" } } -
object
Discriminator: @type-allOf[1]
Used to describe the relationship between products.
objectDiscriminator Values
-
object
Extensible
The Base Extensible schema for use in TMForum Open-APIs - When used for in a schema it means that the Entity described by the schema MUST be extended with the @type
-
allOf
EntityRef
-
object
Discriminator: @type-allOf[2]
Describes the relationship between products.
object-
id: string
The related product's ID.
-
relationshipType: string
Specifies the relationship type (for example: bundledBy, bundles, tiedDiscount, or tiedProduct).
object-
relationshipType(required): string
Allowed Values:
[ "bundles", "bundledBy", "tiedDiscount", "tiedProduct" ]The relationship type: bundles, bundledBy, tiedDiscount, tiedProduct.
objectobjectobjectobject400 Response
-
object
Extensible
The Base Extensible schema for use in TMForum Open-APIs - When used for in a schema it means that the Entity described by the schema MUST be extended with the @type
-
object
Error-allOf[1]
object-
@baseType: string
The defines the super-class when sub-classing.
-
@schemaLocation: string
The URI to a JSON-Schema file that defines additional attributes and relationships
-
@type(required): string
The definition of the sub-class extensible name, when sub-classing.
object-
code(required): string
The application relevant detail, defined in the API or a common list.
-
message: string
The details and corrective actions related to the error which can be shown to a client user.
-
reason(required): string
The explanation of the reason for the error which can be shown to a client user.
-
referenceError: string
The URI of documentation describing the error.
-
status: string
The HTTP Error code extension
401 Response
-
object
Extensible
The Base Extensible schema for use in TMForum Open-APIs - When used for in a schema it means that the Entity described by the schema MUST be extended with the @type
-
object
Error-allOf[1]
object-
@baseType: string
The defines the super-class when sub-classing.
-
@schemaLocation: string
The URI to a JSON-Schema file that defines additional attributes and relationships
-
@type(required): string
The definition of the sub-class extensible name, when sub-classing.
object-
code(required): string
The application relevant detail, defined in the API or a common list.
-
message: string
The details and corrective actions related to the error which can be shown to a client user.
-
reason(required): string
The explanation of the reason for the error which can be shown to a client user.
-
referenceError: string
The URI of documentation describing the error.
-
status: string
The HTTP Error code extension
403 Response
-
object
Extensible
The Base Extensible schema for use in TMForum Open-APIs - When used for in a schema it means that the Entity described by the schema MUST be extended with the @type
-
object
Error-allOf[1]
object-
@baseType: string
The defines the super-class when sub-classing.
-
@schemaLocation: string
The URI to a JSON-Schema file that defines additional attributes and relationships
-
@type(required): string
The definition of the sub-class extensible name, when sub-classing.
object-
code(required): string
The application relevant detail, defined in the API or a common list.
-
message: string
The details and corrective actions related to the error which can be shown to a client user.
-
reason(required): string
The explanation of the reason for the error which can be shown to a client user.
-
referenceError: string
The URI of documentation describing the error.
-
status: string
The HTTP Error code extension
404 Response
-
object
Extensible
The Base Extensible schema for use in TMForum Open-APIs - When used for in a schema it means that the Entity described by the schema MUST be extended with the @type
-
object
Error-allOf[1]
object-
@baseType: string
The defines the super-class when sub-classing.
-
@schemaLocation: string
The URI to a JSON-Schema file that defines additional attributes and relationships
-
@type(required): string
The definition of the sub-class extensible name, when sub-classing.
object-
code(required): string
The application relevant detail, defined in the API or a common list.
-
message: string
The details and corrective actions related to the error which can be shown to a client user.
-
reason(required): string
The explanation of the reason for the error which can be shown to a client user.
-
referenceError: string
The URI of documentation describing the error.
-
status: string
The HTTP Error code extension
405 Response
-
object
Extensible
The Base Extensible schema for use in TMForum Open-APIs - When used for in a schema it means that the Entity described by the schema MUST be extended with the @type
-
object
Error-allOf[1]
object-
@baseType: string
The defines the super-class when sub-classing.
-
@schemaLocation: string
The URI to a JSON-Schema file that defines additional attributes and relationships
-
@type(required): string
The definition of the sub-class extensible name, when sub-classing.
object-
code(required): string
The application relevant detail, defined in the API or a common list.
-
message: string
The details and corrective actions related to the error which can be shown to a client user.
-
reason(required): string
The explanation of the reason for the error which can be shown to a client user.
-
referenceError: string
The URI of documentation describing the error.
-
status: string
The HTTP Error code extension
500 Response
-
object
Extensible
The Base Extensible schema for use in TMForum Open-APIs - When used for in a schema it means that the Entity described by the schema MUST be extended with the @type
-
object
Error-allOf[1]
object-
@baseType: string
The defines the super-class when sub-classing.
-
@schemaLocation: string
The URI to a JSON-Schema file that defines additional attributes and relationships
-
@type(required): string
The definition of the sub-class extensible name, when sub-classing.
object-
code(required): string
The application relevant detail, defined in the API or a common list.
-
message: string
The details and corrective actions related to the error which can be shown to a client user.
-
reason(required): string
The explanation of the reason for the error which can be shown to a client user.
-
referenceError: string
The URI of documentation describing the error.
-
status: string
The HTTP Error code extension
501 Response
-
object
Extensible
The Base Extensible schema for use in TMForum Open-APIs - When used for in a schema it means that the Entity described by the schema MUST be extended with the @type
-
object
Error-allOf[1]
object-
@baseType: string
The defines the super-class when sub-classing.
-
@schemaLocation: string
The URI to a JSON-Schema file that defines additional attributes and relationships
-
@type(required): string
The definition of the sub-class extensible name, when sub-classing.
object-
code(required): string
The application relevant detail, defined in the API or a common list.
-
message: string
The details and corrective actions related to the error which can be shown to a client user.
-
reason(required): string
The explanation of the reason for the error which can be shown to a client user.
-
referenceError: string
The URI of documentation describing the error.
-
status: string
The HTTP Error code extension
503 Response
-
object
Extensible
The Base Extensible schema for use in TMForum Open-APIs - When used for in a schema it means that the Entity described by the schema MUST be extended with the @type
-
object
Error-allOf[1]
object-
@baseType: string
The defines the super-class when sub-classing.
-
@schemaLocation: string
The URI to a JSON-Schema file that defines additional attributes and relationships
-
@type(required): string
The definition of the sub-class extensible name, when sub-classing.
object-
code(required): string
The application relevant detail, defined in the API or a common list.
-
message: string
The details and corrective actions related to the error which can be shown to a client user.
-
reason(required): string
The explanation of the reason for the error which can be shown to a client user.
-
referenceError: string
The URI of documentation describing the error.
-
status: string
The HTTP Error code extension
Examples
Example 1: Get Product by isBundle
The following example shows how to get product by its isBundle by submitting a GET request on the REST resource using cURL. For more information about cURL, see Use cURL.
curl -X GET 'http://host:port/brm/productInventory/version/product?isBundle=true'
Example of the Response Body
The following example shows the contents of the response body in JSON format.
[
{
"isBundle": true,
"name": "Voice Over IP ",
"@type": "Product",
"cycleStart": {
"unit": "absolute",
"amount": 0
},
"product": [
{
"isBundle": false,
"name": "Voice Over IP ",
"@type": "Product",
"cycleStart": {
"unit": "absolute",
"amount": 0
},
"purchaseStart": {
"unit": "absolute",
"amount": 0
},
"description": "Test description",
"terminationDate": "2020-01-04T08:00:00.00Z",
"productOffering": {
"id": "0.0.0.1+-product+174600",
"name": "Teen Telephony C4B0",
"@type": "ProductOffering"
},
"usageStart": {
"unit": "absolute",
"amount": 0
},
"gracePeriod": {
"unit": "absolute",
"amount": 0
},
"purchaseEnd": {
"unit": "absolute",
"amount": 0
},
"cycleEnd": {
"unit": "absolute",
"amount": 0
},
"id": "0.0.0.1+-purchased_product+174363",
"href": "https://localhost:9998/brm/productInventory/v5/product/0.0.0.1+-purchased_product+174363",
"status": "active",
"quantity": 1,
"billingAccount": {
"id": "0.0.0.1+-account+172465",
"name": "Junior Walter",
"@type": "BillingAccount"
},
"realizingService": [
{
"id": "0.0.0.1+-service-telco-gsm-telephony+173083",
"@type": "RealizingService"
}
],
"startDate": "2020-01-03T08:00:00.00Z",
"usageEnd": {
"unit": "absolute",
"amount": 0
}
}
],
"purchaseStart": {
"unit": "absolute",
"amount": 0
},
"description": "Test description",
"terminationDate": "2020-01-04T08:00:00.00Z",
"productOffering": {
"id": "0.0.0.1+-product+174600",
"name": "Teen Telephony C4B0",
"@type": "ProductOffering"
},
"productCharacteristic": [
{
"id": "",
"name": "IMEI",
"valueType": "string",
"value": "IMEI_FlatTelco",
"@type": "StringCharacteristic"
},
{
"id": "",
"name": "MSISDN",
"valueType": "string",
"value": "90121391291",
"@type": "StringCharacteristic"
},
{
"id": "",
"name": "ServiceType",
"valueType": "string",
"value": "/service/telco/gsm/telephony",
"@type": "StringCharacteristic"
}
],
"usageStart": {
"unit": "absolute",
"amount": 0
},
"gracePeriod": {
"unit": "absolute",
"amount": 0
},
"purchaseEnd": {
"unit": "absolute",
"amount": 0
},
"cycleEnd": {
"unit": "absolute",
"amount": 0
},
"id": "0.0.0.1+-purchased_product+173595",
"href": "https://localhost:9998/brm/productInventory/v5/product/0.0.0.1+-purchased_product+173595",
"status": "active",
"quantity": 1,
"billingAccount": {
"id": "0.0.0.1+-account+172465",
"name": "Junior Walter",
"@type": "BillingAccount"
},
"realizingService": [
{
"id": "0.0.0.1+-service-telco-gsm-telephony+173083",
"@type": "RealizingService"
}
],
"startDate": "2020-01-03T08:00:00.00Z",
"usageEnd": {
"unit": "absolute",
"amount": 0
}
},
{
"isBundle": true,
"name": "Voice Over IP ",
"@type": "Product",
"cycleStart": {
"unit": "absolute",
"amount": 0
},
"product": [
{
"isBundle": false,
"name": "Voice Over IP ",
"@type": "Product",
"cycleStart": {
"unit": "absolute",
"amount": 0
},
"purchaseStart": {
"unit": "absolute",
"amount": 0
},
"description": "Test description",
"terminationDate": "2020-01-04T08:00:00.00Z",
"productOffering": {
"id": "0.0.0.1+-product+174600",
"name": "Teen Telephony C4B0",
"@type": "ProductOffering"
},
"usageStart": {
"unit": "absolute",
"amount": 0
},
"gracePeriod": {
"unit": "absolute",
"amount": 0
},
"purchaseEnd": {
"unit": "absolute",
"amount": 0
},
"cycleEnd": {
"unit": "absolute",
"amount": 0
},
"id": "0.0.0.1+-purchased_product+175914",
"href": "https://localhost:9998/brm/productInventory/v5/product/0.0.0.1+-purchased_product+175914",
"status": "active",
"quantity": 1,
"billingAccount": {
"id": "0.0.0.1+-account+169803",
"name": "Junior Walter",
"@type": "BillingAccount"
},
"realizingService": [
{
"id": "0.0.0.1+-service-telco-gsm-telephony+174634",
"@type": "RealizingService"
}
],
"startDate": "2020-01-03T08:00:00.00Z",
"usageEnd": {
"unit": "absolute",
"amount": 0
}
}
],
"purchaseStart": {
"unit": "absolute",
"amount": 0
},
"description": "Test description",
"terminationDate": "2020-01-04T08:00:00.00Z",
"productOffering": {
"id": "0.0.0.1+-product+174600",
"name": "Teen Telephony C4B0",
"@type": "ProductOffering"
},
"productCharacteristic": [
{
"id": "",
"name": "IMEI",
"valueType": "string",
"value": "IMEI_FlatTelco",
"@type": "StringCharacteristic"
},
{
"id": "",
"name": "MSISDN",
"valueType": "string",
"value": "90121391291",
"@type": "StringCharacteristic"
},
{
"id": "",
"name": "ServiceType",
"valueType": "string",
"value": "/service/telco/gsm/telephony",
"@type": "StringCharacteristic"
}
],
"usageStart": {
"unit": "absolute",
"amount": 0
},
"gracePeriod": {
"unit": "absolute",
"amount": 0
},
"purchaseEnd": {
"unit": "absolute",
"amount": 0
},
"cycleEnd": {
"unit": "absolute",
"amount": 0
},
"id": "0.0.0.1+-purchased_product+174378",
"href": "https://localhost:9998/brm/productInventory/v5/product/0.0.0.1+-purchased_product+174378",
"status": "active",
"quantity": 1,
"billingAccount": {
"id": "0.0.0.1+-account+169803",
"name": "Junior Walter",
"@type": "BillingAccount"
},
"realizingService": [
{
"id": "0.0.0.1+-service-telco-gsm-telephony+174634",
"@type": "RealizingService"
}
],
"startDate": "2020-01-03T08:00:00.00Z",
"usageEnd": {
"unit": "absolute",
"amount": 0
}
}
]
Example 2: Get Product by Description
The following example shows how to get a purchased product by its description by submitting a GET request on the REST resource using cURL. For more information about cURL, see Use cURL.
curl -X GET 'http://host:port/brm/productInventory/version/product?description=DBE_Product_DESCRIPTION'
Example of the Response Body
The following example shows the contents of the response body in JSON format.
[
{
"isBundle": false,
"name": "Voice Over IP ",
"@type": "Product",
"cycleStart": {
"unit": "absolute",
"amount": 0
},
"purchaseStart": {
"unit": "absolute",
"amount": 0
},
"description": "DBE_Product_DESCRIPTION",
"terminationDate": "2018-01-01T08:00:00.00Z",
"productOffering": {
"id": "0.0.0.1+-product+168011",
"name": "Teen Telephony C4B",
"@type": "ProductOffering"
},
"productCharacteristic": [
{
"id": "",
"name": "IMEI",
"valueType": "string",
"value": "IMEI_FlatTelco",
"@type": "StringCharacteristic"
},
{
"id": "",
"name": "MSISDN",
"valueType": "string",
"value": "90121391291",
"@type": "StringCharacteristic"
},
{
"id": "",
"name": "ServiceType",
"valueType": "string",
"value": "/service/telco/gsm/telephony",
"@type": "StringCharacteristic"
}
],
"usageStart": {
"unit": "absolute",
"amount": 0
},
"gracePeriod": {
"unit": "absolute",
"amount": 0
},
"purchaseEnd": {
"unit": "absolute",
"amount": 0
},
"cycleEnd": {
"unit": "absolute",
"amount": 0
},
"id": "0.0.0.1+-purchased_product+884459",
"href": "https://localhost:9998/brm/productInventory/v5/product/0.0.0.1+-purchased_product+884459",
"status": "cancelled",
"quantity": 1,
"billingAccount": {
"id": "0.0.0.1+-account+169803",
"name": "Junior Walter",
"@type": "BillingAccount"
},
"realizingService": [
{
"id": "0.0.0.1+-service-telco-gsm-telephony+168683",
"@type": "RealizingService"
}
],
"startDate": "2018-01-01T08:00:00.00Z",
"usageEnd": {
"unit": "absolute",
"amount": 0
}
}
]
Example 3: Get Product By Start Date
The following example shows how to get a purchased product by its start date by submitting a GET request on the REST resource using cURL. For more information about cURL, see Use cURL.
curl -X GET 'http://host:port/brm/productInventory/version/product?startDate=2018-01-01T08:00:00.00Z'
Example of the Response Body
The following example shows the contents of the response body in JSON format.
[
{
"isBundle": false,
"name": "Voice Over IP ",
"@type": "Product",
"cycleStart": {
"unit": "absolute",
"amount": 0
},
"purchaseStart": {
"unit": "absolute",
"amount": 0
},
"description": "Test description",
"terminationDate": "2018-01-01T08:00:00.00Z",
"productOffering": {
"id": "0.0.0.1+-product+168011",
"name": "Teen Telephony C4B",
"@type": "ProductOffering"
},
"productCharacteristic": [
{
"id": "",
"name": "IMEI",
"valueType": "string",
"value": "IMEI_FlatTelco",
"@type": "StringCharacteristic"
},
{
"id": "",
"name": "MSISDN",
"valueType": "string",
"value": "90121391291",
"@type": "StringCharacteristic"
},
{
"id": "",
"name": "ServiceType",
"valueType": "string",
"value": "/service/telco/gsm/telephony",
"@type": "StringCharacteristic"
}
],
"usageStart": {
"unit": "absolute",
"amount": 0
},
"gracePeriod": {
"unit": "absolute",
"amount": 0
},
"purchaseEnd": {
"unit": "absolute",
"amount": 0
},
"cycleEnd": {
"unit": "absolute",
"amount": 0
},
"id": "0.0.0.1+-purchased_product+168427",
"href": "https://localhost:9998/brm/productInventory/v5/product/0.0.0.1+-purchased_product+168427",
"status": "cancelled",
"quantity": 1,
"billingAccount": {
"id": "0.0.0.1+-account+169803",
"name": "Junior Walter",
"@type": "BillingAccount"
},
"realizingService": [
{
"id": "0.0.0.1+-service-telco-gsm-telephony+168683",
"@type": "RealizingService"
}
],
"startDate": "2018-01-01T08:00:00.00Z",
"usageEnd": {
"unit": "absolute",
"amount": 0
}
}
]
Example 4: Get A Product by its productOffering
The following example shows how to get a purchased product by its productOffering by submitting a GET request on the REST resource using cURL. For more information about cURL, see Use cURL.
curl -X GET 'http://host:port/brm/productInventory/version/product?productOffering.name=Teen%20Telephony%20C4B'
Example of the Response Body
The following example shows the contents of the response body in JSON format.
[
{
"isBundle": false,
"name": "Voice Over IP ",
"@type": "Product",
"cycleStart": {
"unit": "absolute",
"amount": 0
},
"purchaseStart": {
"unit": "absolute",
"amount": 0
},
"description": "Test description",
"terminationDate": "2018-01-01T08:00:00.00Z",
"productOffering": {
"id": "0.0.0.1+-product+168011",
"name": "Teen Telephony C4B",
"@type": "ProductOffering"
},
"productCharacteristic": [
{
"id": "",
"name": "IMEI",
"valueType": "string",
"value": "IMEI_FlatTelco",
"@type": "StringCharacteristic"
},
{
"id": "",
"name": "MSISDN",
"valueType": "string",
"value": "90121391291",
"@type": "StringCharacteristic"
},
{
"id": "",
"name": "ServiceType",
"valueType": "string",
"value": "/service/telco/gsm/telephony",
"@type": "StringCharacteristic"
}
],
"usageStart": {
"unit": "absolute",
"amount": 0
},
"gracePeriod": {
"unit": "absolute",
"amount": 0
},
"purchaseEnd": {
"unit": "absolute",
"amount": 0
},
"cycleEnd": {
"unit": "absolute",
"amount": 0
},
"id": "0.0.0.1+-purchased_product+168427",
"href": "https://localhost:9998/brm/productInventory/v5/product/0.0.0.1+-purchased_product+168427",
"status": "cancelled",
"quantity": 1,
"billingAccount": {
"id": "0.0.0.1+-account+169803",
"name": "Junior Walter",
"@type": "BillingAccount"
},
"realizingService": [
{
"id": "0.0.0.1+-service-telco-gsm-telephony+168683",
"@type": "RealizingService"
}
],
"startDate": "2018-01-01T08:00:00.00Z",
"usageEnd": {
"unit": "absolute",
"amount": 0
}
},
{
"isBundle": false,
"name": "Voice Over IP ",
"@type": "Product",
"cycleStart": {
"unit": "absolute",
"amount": 0
},
"purchaseStart": {
"unit": "absolute",
"amount": 0
},
"description": "Test description",
"terminationDate": "2020-01-04T08:00:00.00Z",
"productOffering": {
"id": "0.0.0.1+-product+168011",
"name": "Teen Telephony C4B",
"@type": "ProductOffering"
},
"productCharacteristic": [
{
"id": "",
"name": "IMEI",
"valueType": "string",
"value": "IMEI_FlatTelco",
"@type": "StringCharacteristic"
},
{
"id": "",
"name": "MSISDN",
"valueType": "string",
"value": "90121391291",
"@type": "StringCharacteristic"
},
{
"id": "",
"name": "ServiceType",
"valueType": "string",
"value": "/service/telco/gsm/telephony",
"@type": "StringCharacteristic"
}
],
"usageStart": {
"unit": "absolute",
"amount": 0
},
"gracePeriod": {
"unit": "absolute",
"amount": 0
},
"purchaseEnd": {
"unit": "absolute",
"amount": 0
},
"cycleEnd": {
"unit": "absolute",
"amount": 0
},
"id": "0.0.0.1+-purchased_product+170347",
"href": "https://localhost:9998/brm/productInventory/v5/product/0.0.0.1+-purchased_product+170347",
"status": "active",
"quantity": 1,
"billingAccount": {
"id": "0.0.0.1+-account+169803",
"name": "Junior Walter",
"@type": "BillingAccount"
},
"realizingService": [
{
"id": "0.0.0.1+-service-telco-gsm-telephony+170603",
"@type": "RealizingService"
}
],
"startDate": "2020-01-03T08:00:00.00Z",
"usageEnd": {
"unit": "absolute",
"amount": 0
}
},
{
"isBundle": false,
"name": "Voice Over IP ",
"@type": "Product",
"cycleStart": {
"unit": "absolute",
"amount": 0
},
"purchaseStart": {
"unit": "absolute",
"amount": 0
},
"description": "Test description",
"terminationDate": "2020-01-04T08:00:00.00Z",
"productOffering": {
"id": "0.0.0.1+-product+168011",
"name": "Teen Telephony C4B",
"@type": "ProductOffering"
},
"productCharacteristic": [
{
"id": "",
"name": "IMEI",
"valueType": "string",
"value": "IMEI_FlatTelco",
"@type": "StringCharacteristic"
},
{
"id": "",
"name": "MSISDN",
"valueType": "string",
"value": "90121391291",
"@type": "StringCharacteristic"
},
{
"id": "",
"name": "ServiceType",
"valueType": "string",
"value": "/service/telco/gsm/telephony",
"@type": "StringCharacteristic"
}
],
"usageStart": {
"unit": "absolute",
"amount": 0
},
"gracePeriod": {
"unit": "absolute",
"amount": 0
},
"purchaseEnd": {
"unit": "absolute",
"amount": 0
},
"cycleEnd": {
"unit": "absolute",
"amount": 0
},
"id": "0.0.0.1+-purchased_product+175689",
"href": "https://localhost:9998/brm/productInventory/v5/product/0.0.0.1+-purchased_product+175689",
"status": "active",
"quantity": 1,
"billingAccount": {
"id": "0.0.0.1+-account+172465",
"name": "Junior Walter",
"@type": "BillingAccount"
},
"realizingService": [
{
"id": "0.0.0.1+-service-telco-gsm-telephony+175177",
"@type": "RealizingService"
}
],
"startDate": "2020-01-03T08:00:00.00Z",
"usageEnd": {
"unit": "absolute",
"amount": 0
}
}
]
Example 5: Get A Product by its ProductCharacteristic
The following example shows how to get a purchased product by its ProductCharacteristic by submitting a GET request on the REST resource using cURL. For more information about cURL, see Use cURL.
curl -X GET 'http://host:port/brm/productInventory/version/product?filter=$[?@.productCharacteristic[?@.name==MSISDN]]
Example of the Response Body
The following example shows the contents of the response body in JSON format.
[
{
"isBundle": false,
"name": "Voice Over IP ",
"@type": "Product",
"cycleStart": {
"unit": "absolute",
"amount": 0
},
"purchaseStart": {
"unit": "absolute",
"amount": 0
},
"description": "Test description",
"terminationDate": "2018-01-01T08:00:00.00Z",
"productOffering": {
"id": "0.0.0.1+-product+168011",
"name": "Teen Telephony C4B",
"@type": "ProductOffering"
},
"productCharacteristic": [
{
"id": "",
"name": "IMEI",
"valueType": "string",
"value": "IMEI_FlatTelco",
"@type": "StringCharacteristic"
},
{
"id": "",
"name": "MSISDN",
"valueType": "string",
"value": "90121391291",
"@type": "StringCharacteristic"
},
{
"id": "",
"name": "ServiceType",
"valueType": "string",
"value": "/service/telco/gsm/telephony",
"@type": "StringCharacteristic"
}
],
"usageStart": {
"unit": "absolute",
"amount": 0
},
"gracePeriod": {
"unit": "absolute",
"amount": 0
},
"purchaseEnd": {
"unit": "absolute",
"amount": 0
},
"cycleEnd": {
"unit": "absolute",
"amount": 0
},
"id": "0.0.0.1+-purchased_product+168427",
"href": "https://localhost:9998/brm/productInventory/v5/product/0.0.0.1+-purchased_product+168427",
"status": "cancelled",
"quantity": 1,
"billingAccount": {
"id": "0.0.0.1+-account+169803",
"name": "Junior Walter",
"@type": "BillingAccount"
},
"realizingService": [
{
"id": "0.0.0.1+-service-telco-gsm-telephony+168683",
"@type": "RealizingService"
}
],
"startDate": "2018-01-01T08:00:00.00Z",
"usageEnd": {
"unit": "absolute",
"amount": 0
}
},
{
"isBundle": false,
"name": "Voice Over IP ",
"@type": "Product",
"cycleStart": {
"unit": "absolute",
"amount": 0
},
"purchaseStart": {
"unit": "absolute",
"amount": 0
},
"description": "Test description",
"terminationDate": "2020-01-04T08:00:00.00Z",
"productOffering": {
"id": "0.0.0.1+-product+174600",
"name": "Teen Telephony C4B0",
"@type": "ProductOffering"
},
"productCharacteristic": [
{
"id": "",
"name": "IMEI",
"valueType": "string",
"value": "IMEI_FlatTelco",
"@type": "StringCharacteristic"
},
{
"id": "",
"name": "MSISDN",
"valueType": "string",
"value": "90121391291",
"@type": "StringCharacteristic"
},
{
"id": "",
"name": "ServiceType",
"valueType": "string",
"value": "/service/telco/gsm/telephony",
"@type": "StringCharacteristic"
}
],
"usageStart": {
"unit": "absolute",
"amount": 0
},
"gracePeriod": {
"unit": "absolute",
"amount": 0
},
"purchaseEnd": {
"unit": "absolute",
"amount": 0
},
"cycleEnd": {
"unit": "absolute",
"amount": 0
},
"id": "0.0.0.1+-purchased_product+170345",
"href": "https://localhost:9998/brm/productInventory/v5/product/0.0.0.1+-purchased_product+170345",
"status": "active",
"quantity": 1,
"billingAccount": {
"id": "0.0.0.1+-account+172465",
"name": "Junior Walter",
"@type": "BillingAccount"
},
"realizingService": [
{
"id": "0.0.0.1+-service-telco-gsm-telephony+170601",
"@type": "RealizingService"
}
],
"startDate": "2020-01-03T08:00:00.00Z",
"usageEnd": {
"unit": "absolute",
"amount": 0
}
}
]
Example 6: Get A Product by its productCharacteristic valueType
The following example shows how to get a purchased product by its productCharacteristic valueType by submitting a GET request on the REST resource using cURL. For more information about cURL, see Use cURL.
curl -X GET 'http://host:port/brm/productInventory/version/product?filter=$[?@.productCharacteristic[?@.valueType==string]'
Example of the Response Body
The following example shows the contents of the response body in JSON format.
[
{
"isBundle": true,
"name": "Voice Over IP ",
"@type": "Product",
"cycleStart": {
"unit": "absolute",
"amount": 0
},
"purchaseStart": {
"unit": "absolute",
"amount": 0
},
"description": "Test description",
"terminationDate": "2020-01-04T08:00:00.00Z",
"productOffering": {
"id": "0.0.0.1+-product+174600",
"name": "Teen Telephony C4B0",
"@type": "ProductOffering"
},
"productCharacteristic": [
{
"id": "IMEI-006",
"name": "IMEI",
"valueType": "string",
"value": "IMEI_FlatTelco",
"@type": "StringCharacteristic"
},
{
"id": "",
"name": "MSISDN",
"valueType": "string",
"value": "90121391291",
"@type": "StringCharacteristic"
},
{
"id": "",
"name": "ServiceType",
"valueType": "string",
"value": "/service/telco/gsm/telephony",
"@type": "StringCharacteristic"
}
],
"usageStart": {
"unit": "absolute",
"amount": 0
},
"gracePeriod": {
"unit": "absolute",
"amount": 0
},
"purchaseEnd": {
"unit": "absolute",
"amount": 0
},
"cycleEnd": {
"unit": "absolute",
"amount": 0
},
"id": "0.0.0.1+-purchased_product+167961",
"href": "https://localhost:9998/brm/productInventory/v5/product/0.0.0.1+-purchased_product+167961",
"status": "active",
"quantity": 1,
"billingAccount": {
"id": "0.0.0.1+-account+169803",
"name": "Junior Walter",
"@type": "BillingAccount"
},
"realizingService": [
{
"id": "0.0.0.1+-service-telco-gsm-telephony+168937",
"@type": "RealizingService"
}
],
"startDate": "2020-01-03T08:00:00.00Z",
"usageEnd": {
"unit": "absolute",
"amount": 0
}
},
{
"isBundle": true,
"name": "Voice Over IP ",
"@type": "Product",
"cycleStart": {
"unit": "absolute",
"amount": 0
},
"purchaseStart": {
"unit": "absolute",
"amount": 0
},
"description": "Test description",
"terminationDate": "2020-01-04T08:00:00.00Z",
"productOffering": {
"id": "0.0.0.1+-product+174600",
"name": "Teen Telephony C4B0",
"@type": "ProductOffering"
},
"productCharacteristic": [
{
"id": "IMEI-006",
"name": "IMEI",
"valueType": "string",
"value": "IMEI_FlatTelco",
"@type": "StringCharacteristic"
},
{
"id": "",
"name": "MSISDN",
"valueType": "string",
"value": "90121391291",
"@type": "StringCharacteristic"
},
{
"id": "",
"name": "ServiceType",
"valueType": "string",
"value": "/service/telco/gsm/telephony",
"@type": "StringCharacteristic"
}
],
"usageStart": {
"unit": "absolute",
"amount": 0
},
"gracePeriod": {
"unit": "absolute",
"amount": 0
},
"purchaseEnd": {
"unit": "absolute",
"amount": 0
},
"cycleEnd": {
"unit": "absolute",
"amount": 0
},
"id": "0.0.0.1+-purchased_product+167961",
"href": "https://localhost:9998/brm/productInventory/v5/product/0.0.0.1+-purchased_product+167961",
"status": "active",
"quantity": 1,
"billingAccount": {
"id": "0.0.0.1+-account+169803",
"name": "Junior Walter",
"@type": "BillingAccount"
},
"realizingService": [
{
"id": "0.0.0.1+-service-telco-gsm-telephony+168937",
"@type": "RealizingService"
}
],
"startDate": "2020-01-03T08:00:00.00Z",
"usageEnd": {
"unit": "absolute",
"amount": 0
}
}
]
Example 7: Get A Product List That Skips the First Two Results
The following example shows how to get a get a product list that skips the first two results by submitting a GET request on the REST resource using cURL. For more information about cURL, see Use cURL.
curl -X GET 'http://host:port/brm/productInventory/version/product?offset=2'
Example of the Response Body
The following example shows the contents of the response body in JSON format.
[
{
"isBundle": false,
"name": "Voice Over IP ",
"@type": "Product",
"cycleStart": {
"unit": "absolute",
"amount": 0
},
"purchaseStart": {
"unit": "absolute",
"amount": 0
},
"description": "Test description",
"terminationDate": "2018-01-01T08:00:00.00Z",
"productOffering": {
"id": "0.0.0.1+-product+168011",
"name": "Teen Telephony C4B",
"@type": "ProductOffering"
},
"productCharacteristic": [
{
"id": "",
"name": "IMEI",
"valueType": "string",
"value": "IMEI_FlatTelco",
"@type": "StringCharacteristic"
},
{
"id": "",
"name": "MSISDN",
"valueType": "string",
"value": "90121391291",
"@type": "StringCharacteristic"
},
{
"id": "",
"name": "ServiceType",
"valueType": "string",
"value": "/service/telco/gsm/telephony",
"@type": "StringCharacteristic"
}
],
"usageStart": {
"unit": "absolute",
"amount": 0
},
"gracePeriod": {
"unit": "absolute",
"amount": 0
},
"purchaseEnd": {
"unit": "absolute",
"amount": 0
},
"cycleEnd": {
"unit": "absolute",
"amount": 0
},
"id": "0.0.0.1+-purchased_product+168427",
"href": "https://localhost:9998/brm/productInventory/v5/product/0.0.0.1+-purchased_product+168427",
"status": "cancelled",
"quantity": 1,
"billingAccount": {
"id": "0.0.0.1+-account+169803",
"name": "Junior Walter",
"@type": "BillingAccount"
},
"realizingService": [
{
"id": "0.0.0.1+-service-telco-gsm-telephony+168683",
"@type": "RealizingService"
}
],
"startDate": "2018-01-01T08:00:00.00Z",
"usageEnd": {
"unit": "absolute",
"amount": 0
}
},
{
"isBundle": false,
"name": "Voice Over IP ",
"@type": "Product",
"cycleStart": {
"unit": "absolute",
"amount": 0
},
"purchaseStart": {
"unit": "absolute",
"amount": 0
},
"description": "Test description",
"terminationDate": "2020-01-04T08:00:00.00Z",
"productOffering": {
"id": "0.0.0.1+-product+174600",
"name": "Teen Telephony C4B0",
"@type": "ProductOffering"
},
"productCharacteristic": [
{
"id": "",
"name": "IMEI",
"valueType": "string",
"value": "IMEI_FlatTelco",
"@type": "StringCharacteristic"
},
{
"id": "",
"name": "MSISDN",
"valueType": "string",
"value": "90121391291",
"@type": "StringCharacteristic"
},
{
"id": "",
"name": "ServiceType",
"valueType": "string",
"value": "/service/telco/gsm/telephony",
"@type": "StringCharacteristic"
}
],
"usageStart": {
"unit": "absolute",
"amount": 0
},
"gracePeriod": {
"unit": "absolute",
"amount": 0
},
"purchaseEnd": {
"unit": "absolute",
"amount": 0
},
"cycleEnd": {
"unit": "absolute",
"amount": 0
},
"id": "0.0.0.1+-purchased_product+170345",
"href": "https://localhost:9998/brm/productInventory/v5/product/0.0.0.1+-purchased_product+170345",
"status": "active",
"quantity": 1,
"billingAccount": {
"id": "0.0.0.1+-account+172465",
"name": "Junior Walter",
"@type": "BillingAccount"
},
"realizingService": [
{
"id": "0.0.0.1+-service-telco-gsm-telephony+170601",
"@type": "RealizingService"
}
],
"startDate": "2020-01-03T08:00:00.00Z",
"usageEnd": {
"unit": "absolute",
"amount": 0
}
},
{
"isBundle": false,
"name": "Voice Over IP ",
"@type": "Product",
"cycleStart": {
"unit": "absolute",
"amount": 0
},
"purchaseStart": {
"unit": "absolute",
"amount": 0
},
"description": "Test description",
"terminationDate": "2020-01-04T08:00:00.00Z",
"productOffering": {
"id": "0.0.0.1+-product+168011",
"name": "Teen Telephony C4B",
"@type": "ProductOffering"
},
"productCharacteristic": [
{
"id": "",
"name": "IMEI",
"valueType": "string",
"value": "IMEI_FlatTelco",
"@type": "StringCharacteristic"
},
{
"id": "",
"name": "MSISDN",
"valueType": "string",
"value": "90121391291",
"@type": "StringCharacteristic"
},
{
"id": "",
"name": "ServiceType",
"valueType": "string",
"value": "/service/telco/gsm/telephony",
"@type": "StringCharacteristic"
}
],
"usageStart": {
"unit": "absolute",
"amount": 0
},
"gracePeriod": {
"unit": "absolute",
"amount": 0
},
"purchaseEnd": {
"unit": "absolute",
"amount": 0
},
"cycleEnd": {
"unit": "absolute",
"amount": 0
},
"id": "0.0.0.1+-purchased_product+170347",
"href": "https://localhost:9998/brm/productInventory/v5/product/0.0.0.1+-purchased_product+170347",
"status": "active",
"quantity": 1,
"billingAccount": {
"id": "0.0.0.1+-account+169803",
"name": "Junior Walter",
"@type": "BillingAccount"
},
"realizingService": [
{
"id": "0.0.0.1+-service-telco-gsm-telephony+170603",
"@type": "RealizingService"
}
],
"startDate": "2020-01-03T08:00:00.00Z",
"usageEnd": {
"unit": "absolute",
"amount": 0
}
}
]
Example 8: Get A Product by its productCharacteristic value
The following example shows how to get a purchased product by its productCharacteristic value by submitting a GET request on the REST resource using cURL. For more information about cURL, see Use cURL.
curl -X GET 'http://host:port/brm/productInventory/version/product?filter=$[?@.productCharacteristic[?@.value==flattened_characteristic_007]]'
Example of the Response Body
The following example shows the contents of the response body in JSON format.
[
{
"isBundle": true,
"name": "Voice Over IP ",
"@type": "Product",
"cycleStart": {
"unit": "absolute",
"amount": 0
},
"purchaseStart": {
"unit": "absolute",
"amount": 0
},
"description": "Test description",
"terminationDate": "2020-01-04T08:00:00.00Z",
"productOffering": {
"id": "0.0.0.1+-product+174600",
"name": "Teen Telephony C4B0",
"@type": "ProductOffering"
},
"productCharacteristic": [
{
"id": "IMEI-006",
"name": "IMEI",
"valueType": "string",
"value": "IMEI_FlatTelco",
"@type": "StringCharacteristic"
},
{
"id": "",
"name": "MSISDN",
"valueType": "string",
"value": "90121391291",
"@type": "StringCharacteristic"
},
{
"id": "",
"name": "ServiceType",
"valueType": "string",
"value": "/service/telco/gsm/telephony",
"@type": "StringCharacteristic"
}
],
"usageStart": {
"unit": "absolute",
"amount": 0
},
"gracePeriod": {
"unit": "absolute",
"amount": 0
},
"purchaseEnd": {
"unit": "absolute",
"amount": 0
},
"cycleEnd": {
"unit": "absolute",
"amount": 0
},
"id": "0.0.0.1+-purchased_product+167961",
"href": "https://localhost:9998/brm/productInventory/v5/product/0.0.0.1+-purchased_product+167961",
"status": "active",
"quantity": 1,
"billingAccount": {
"id": "0.0.0.1+-account+169803",
"name": "Junior Walter",
"@type": "BillingAccount"
},
"realizingService": [
{
"id": "0.0.0.1+-service-telco-gsm-telephony+168937",
"@type": "RealizingService"
}
],
"startDate": "2020-01-03T08:00:00.00Z",
"usageEnd": {
"unit": "absolute",
"amount": 0
}
},
{
"isBundle": false,
"name": "Voice Over IP ",
"@type": "Product",
"cycleStart": {
"unit": "absolute",
"amount": 0
},
"purchaseStart": {
"unit": "absolute",
"amount": 0
},
"description": "Test description",
"terminationDate": "2018-01-01T08:00:00.00Z",
"productOffering": {
"id": "0.0.0.1+-product+168011",
"name": "Teen Telephony C4B",
"@type": "ProductOffering"
},
"productCharacteristic": [
{
"id": "",
"name": "IMEI",
"valueType": "string",
"value": "IMEI_FlatTelco",
"@type": "StringCharacteristic"
},
{
"id": "",
"name": "MSISDN",
"valueType": "string",
"value": "flattened_characteristic_007",
"@type": "StringCharacteristic"
},
{
"id": "",
"name": "ServiceType",
"valueType": "string",
"value": "/service/telco/gsm/telephony",
"@type": "StringCharacteristic"
}
],
"usageStart": {
"unit": "absolute",
"amount": 0
},
"gracePeriod": {
"unit": "absolute",
"amount": 0
},
"purchaseEnd": {
"unit": "absolute",
"amount": 0
},
"cycleEnd": {
"unit": "absolute",
"amount": 0
},
"id": "0.0.0.1+-purchased_product+168427",
"href": "https://localhost:9998/brm/productInventory/v5/product/0.0.0.1+-purchased_product+168427",
"status": "cancelled",
"quantity": 1,
"billingAccount": {
"id": "0.0.0.1+-account+169803",
"name": "Junior Walter",
"@type": "BillingAccount"
},
"realizingService": [
{
"id": "0.0.0.1+-service-telco-gsm-telephony+168683",
"@type": "RealizingService"
}
],
"startDate": "2018-01-01T08:00:00.00Z",
"usageEnd": {
"unit": "absolute",
"amount": 0
}
}
]
Example 9: Filter a Product By Its Billing Account ID
The following example shows how to filter a product by it's billing account ID by submitting a GET request on the REST resource using cURL. For more information about cURL, see Use cURL.
curl -X GET 'http://host:port/brm/productInventory/version/product?billingAccount.id=0.0.0.1+-account+172465'
Example of the Response Body
The following example shows the contents of the response body in JSON format.
[
{
"isBundle": false,
"name": "Voice Over IP ",
"@type": "Product",
"cycleStart": {
"unit": "absolute",
"amount": 0
},
"purchaseStart": {
"unit": "absolute",
"amount": 0
},
"description": "Test description",
"terminationDate": "2020-01-04T08:00:00.00Z",
"productOffering": {
"id": "0.0.0.1+-product+174600",
"name": "Teen Telephony C4B0",
"@type": "ProductOffering"
},
"productCharacteristic": [
{
"id": "",
"name": "IMEI",
"valueType": "string",
"value": "IMEI_FlatTelco",
"@type": "StringCharacteristic"
},
{
"id": "",
"name": "MSISDN",
"valueType": "string",
"value": "90121391291",
"@type": "StringCharacteristic"
},
{
"id": "",
"name": "ServiceType",
"valueType": "string",
"value": "/service/telco/gsm/telephony",
"@type": "StringCharacteristic"
}
],
"usageStart": {
"unit": "absolute",
"amount": 0
},
"gracePeriod": {
"unit": "absolute",
"amount": 0
},
"purchaseEnd": {
"unit": "absolute",
"amount": 0
},
"cycleEnd": {
"unit": "absolute",
"amount": 0
},
"id": "0.0.0.1+-purchased_product+170345",
"href": "https://localhost:9998/brm/productInventory/v5/product/0.0.0.1+-purchased_product+170345",
"status": "active",
"quantity": 1,
"billingAccount": {
"id": "0.0.0.1+-account+172465",
"name": "Junior Walter",
"@type": "BillingAccount"
},
"realizingService": [
{
"id": "0.0.0.1+-service-telco-gsm-telephony+170601",
"@type": "RealizingService"
}
],
"startDate": "2020-01-03T08:00:00.00Z",
"usageEnd": {
"unit": "absolute",
"amount": 0
}
},
{
"isBundle": true,
"name": "Voice Over IP ",
"@type": "Product",
"cycleStart": {
"unit": "absolute",
"amount": 0
},
"product": [
{
"isBundle": false,
"name": "Voice Over IP ",
"@type": "Product",
"cycleStart": {
"unit": "absolute",
"amount": 0
},
"purchaseStart": {
"unit": "absolute",
"amount": 0
},
"description": "Test description",
"terminationDate": "2020-01-04T08:00:00.00Z",
"productOffering": {
"id": "0.0.0.1+-product+174600",
"name": "Teen Telephony C4B0",
"@type": "ProductOffering"
},
"usageStart": {
"unit": "absolute",
"amount": 0
},
"gracePeriod": {
"unit": "absolute",
"amount": 0
},
"purchaseEnd": {
"unit": "absolute",
"amount": 0
},
"cycleEnd": {
"unit": "absolute",
"amount": 0
},
"id": "0.0.0.1+-purchased_product+174363",
"href": "https://localhost:9998/brm/productInventory/v5/product/0.0.0.1+-purchased_product+174363",
"status": "active",
"quantity": 1,
"billingAccount": {
"id": "0.0.0.1+-account+172465",
"name": "Junior Walter",
"@type": "BillingAccount"
},
"realizingService": [
{
"id": "0.0.0.1+-service-telco-gsm-telephony+173083",
"@type": "RealizingService"
}
],
"startDate": "2020-01-03T08:00:00.00Z",
"usageEnd": {
"unit": "absolute",
"amount": 0
}
}
],
"purchaseStart": {
"unit": "absolute",
"amount": 0
},
"description": "Test description",
"terminationDate": "2020-01-04T08:00:00.00Z",
"productOffering": {
"id": "0.0.0.1+-product+174600",
"name": "Teen Telephony C4B0",
"@type": "ProductOffering"
},
"productCharacteristic": [
{
"id": "",
"name": "IMEI",
"valueType": "string",
"value": "IMEI_FlatTelco",
"@type": "StringCharacteristic"
},
{
"id": "",
"name": "MSISDN",
"valueType": "string",
"value": "90121391291",
"@type": "StringCharacteristic"
},
{
"id": "",
"name": "ServiceType",
"valueType": "string",
"value": "/service/telco/gsm/telephony",
"@type": "StringCharacteristic"
}
],
"usageStart": {
"unit": "absolute",
"amount": 0
},
"gracePeriod": {
"unit": "absolute",
"amount": 0
},
"purchaseEnd": {
"unit": "absolute",
"amount": 0
},
"cycleEnd": {
"unit": "absolute",
"amount": 0
},
"id": "0.0.0.1+-purchased_product+173595",
"href": "https://localhost:9998/brm/productInventory/v5/product/0.0.0.1+-purchased_product+173595",
"status": "active",
"quantity": 1,
"billingAccount": {
"id": "0.0.0.1+-account+172465",
"name": "Junior Walter",
"@type": "BillingAccount"
},
"realizingService": [
{
"id": "0.0.0.1+-service-telco-gsm-telephony+173083",
"@type": "RealizingService"
}
],
"startDate": "2020-01-03T08:00:00.00Z",
"usageEnd": {
"unit": "absolute",
"amount": 0
}
}
]
Example 10: Filter A Product By Its Realizing Service ID
The following example shows how to filter a product by its realizing service ID by submitting a GET request on the REST resource using cURL. For more information about cURL, see Use cURL.
curl -X GET 'http://host:port/brm/productInventory/version/product?realizingService.id=0.0.0.1+-service-telco-gsm-telephony+170601'
Example of the Response Body
The following example shows the contents of the response body in JSON format.
[
{
"isBundle": false,
"name": "Voice Over IP ",
"@type": "Product",
"cycleStart": {
"unit": "absolute",
"amount": 0
},
"purchaseStart": {
"unit": "absolute",
"amount": 0
},
"description": "Test description",
"terminationDate": "2020-01-04T08:00:00.00Z",
"productOffering": {
"id": "0.0.0.1+-product+174600",
"name": "Teen Telephony C4B0",
"@type": "ProductOffering"
},
"productCharacteristic": [
{
"id": "",
"name": "IMEI",
"valueType": "string",
"value": "IMEI_FlatTelco",
"@type": "StringCharacteristic"
},
{
"id": "",
"name": "MSISDN",
"valueType": "string",
"value": "90121391291",
"@type": "StringCharacteristic"
},
{
"id": "",
"name": "ServiceType",
"valueType": "string",
"value": "/service/telco/gsm/telephony",
"@type": "StringCharacteristic"
}
],
"usageStart": {
"unit": "absolute",
"amount": 0
},
"gracePeriod": {
"unit": "absolute",
"amount": 0
},
"purchaseEnd": {
"unit": "absolute",
"amount": 0
},
"cycleEnd": {
"unit": "absolute",
"amount": 0
},
"id": "0.0.0.1+-purchased_product+170345",
"href": "https://localhost:9998/brm/productInventory/v5/product/0.0.0.1+-purchased_product+170345",
"status": "active",
"quantity": 1,
"billingAccount": {
"id": "0.0.0.1+-account+172465",
"name": "Junior Walter",
"@type": "BillingAccount"
},
"realizingService": [
{
"id": "0.0.0.1+-service-telco-gsm-telephony+170601",
"@type": "RealizingService"
}
],
"startDate": "2020-01-03T08:00:00.00Z",
"usageEnd": {
"unit": "absolute",
"amount": 0
}
}
]