Service Inventory Biz

(0 reviews)

GET-retrieveService

/service/{ID} [GET]

This API retrieves the Service Information

Request

This section defines all the possible data structures sent by the client when consuming the method.

URL

https://[localhost]:[port]/tmf-api/serviceInventory/v4/{businessId}/service/{ID}

URL PARAMS

nametypedescriptionrequired
businessIdstring2 letter ISO 3166 country code (TT, BB, JM, PA, etc.) identifying the business unit.Y
idstringUnique identifier of the service.Y
namevaluedescriptionrequired
client_idstringThe client_id identifying the channel. Minimum characters: 5Y
client_secretstringPassword associated with the client_id. Minimum characters: 5Y
Correlation-ID (DEPRECATED)stringAn identifier for the current call chain that can be used to tie together log entries on multiple layers (e.g. client, server, mainframe). This identifier must be designed to be unique across all applications.N
X-Correlation-IDstringIdentifier that correlates HTTP request between a client and server.
Any identification model (UUDI, checksum, etc.) can be used, as long as it is a unique value to differentiate a transaction.
N

Query Param

nametypedescriptionrequired
fieldsStringComma-separated properties to be provided in response. (NOTE: this parameter are used wrong to identify the accoundId value. Should be relatedParty.id)N
offsetIntegerRequested index for start of resources to be provided in responseN
limitIntegerRequested number of resources to be provided in responseN
relatedParty.idStringaccountIdN
serviceTypeStringBusiness type of the serviceN
serviceRelationship.service.categoryStringResource facing serviceN

Response

In this section all the possible data structures received by the client at the moment of responding the method are defined.

Possible response success

This section defines all the possible data structures received by the client and that must be considered satisfactory at the time of responding to the method.

[ 200 ]

OK - retrieveService request processed successfully, response body contains an entity corresponding to the requested resource.

[
  {
    "id": "string",
    "href": "string",
    "category": "string",
    "description": "string",
    "endDate": "2021-10-27T21:56:19.165Z",
    "hasStarted": true,
    "isBundle": true,
    "isServiceEnabled": true,
    "isStateful": true,
    "name": "string",
    "serviceDate": "string",
    "serviceType": "string",
    "startDate": "2021-10-27T21:56:19.165Z",
    "startMode": "string",
    "feature": [
      {
        "id": "string",
        "isBundle": true,
        "isEnabled": true,
        "name": "string",
        "constraint": [
          {
            "id": "string",
            "href": "string",
            "name": "string",
            "version": "string",
            "@baseType": "string",
            "@schemaLocation": "string",
            "@type": "string",
            "@referredType": "string"
          }
        ],
        "featureCharacteristic": [
          {
            "id": "string",
            "name": "string",
            "valueType": "string",
            "characteristicRelationship": [
              {
                "id": "string",
                "relationshipType": "string"
              }
            ],
            "value": "string",
            "@baseType": "string",
            "@schemaLocation": "string",
            "@type": "string"
          }
        ],
        "featureRelationship": [
          {
            "id": "string",
            "name": "string",
            "relationshipType": "string",
            "validFor": {
              "endDateTime": "1985-04-12T23:20:50.52Z",
              "startDateTime": "1985-04-12T23:20:50.52Z"
            }
          }
        ]
      }
    ],
    "note": [
      {
        "id": "string",
        "author": "string",
        "date": "2021-10-27T21:56:19.165Z",
        "text": "string"
      }
    ],
    "place": [
      {
        "id": "string",
        "href": "string",
        "name": "string",
        "role": "string",
        "@baseType": "string",
        "@schemaLocation": "string",
        "@type": "string",
        "@referredType": "string"
      }
    ],
    "relatedEntity": [
      {
        "id": "string",
        "href": "string",
        "name": "string",
        "role": "string",
        "@baseType": "string",
        "@schemaLocation": "string",
        "@type": "string",
        "@referredType": "string"
      }
    ],
    "relatedParty": [
      {
        "id": "string",
        "href": "string",
        "name": "string",
        "role": "string",
        "@baseType": "string",
        "@schemaLocation": "string",
        "@type": "string",
        "@referredType": "string"
      }
    ],
    "serviceCharacteristic": [
      {
        "id": "string",
        "name": "string",
        "valueType": "string",
        "characteristicRelationship": [
          {
            "id": "string",
            "relationshipType": "string"
          }
        ],
        "value": "string",
        "@baseType": "string",
        "@schemaLocation": "string",
        "@type": "string"
      }
    ],
    "serviceOrderItem": [
      {
        "itemId": "string",
        "role": "string",
        "serviceOrderHref": "string",
        "serviceOrderId": "string",
        "itemAction": "add",
        "@referredType": "string"
      }
    ],
    "serviceRelationship": [
      {
        "relationshipType": "string",
        "service": {
          "id": "string",
          "href": "string",
          "category": "string",
          "description": "string",
          "endDate": "2021-10-27T21:56:19.165Z",
          "hasStarted": true,
          "isBundle": true,
          "isServiceEnabled": true,
          "isStateful": true,
          "name": "string",
          "serviceDate": "string",
          "serviceType": "string",
          "startDate": "2021-10-27T21:56:19.165Z",
          "startMode": "string",
          "feature": [
            {
              "id": "string",
              "isBundle": true,
              "isEnabled": true,
              "name": "string",
              "constraint": [
                {
                  "id": "string",
                  "href": "string",
                  "name": "string",
                  "version": "string",
                  "@baseType": "string",
                  "@schemaLocation": "string",
                  "@type": "string",
                  "@referredType": "string"
                }
              ],
              "featureCharacteristic": [
                {
                  "id": "string",
                  "name": "string",
                  "valueType": "string",
                  "characteristicRelationship": [
                    {
                      "id": "string",
                      "relationshipType": "string"
                    }
                  ],
                  "value": "string",
                  "@baseType": "string",
                  "@schemaLocation": "string",
                  "@type": "string"
                }
              ],
              "featureRelationship": [
                {
                  "id": "string",
                  "name": "string",
                  "relationshipType": "string",
                  "validFor": {
                    "endDateTime": "1985-04-12T23:20:50.52Z",
                    "startDateTime": "1985-04-12T23:20:50.52Z"
                  }
                }
              ]
            }
          ],
          "note": [
            {
              "id": "string",
              "author": "string",
              "date": "2021-10-27T21:56:19.165Z",
              "text": "string"
            }
          ],
          "place": [
            {
              "id": "string",
              "href": "string",
              "name": "string",
              "role": "string",
              "@baseType": "string",
              "@schemaLocation": "string",
              "@type": "string",
              "@referredType": "string"
            }
          ],
          "relatedEntity": [
            {
              "id": "string",
              "href": "string",
              "name": "string",
              "role": "string",
              "@baseType": "string",
              "@schemaLocation": "string",
              "@type": "string",
              "@referredType": "string"
            }
          ],
          "relatedParty": [
            {
              "id": "string",
              "href": "string",
              "name": "string",
              "role": "string",
              "@baseType": "string",
              "@schemaLocation": "string",
              "@type": "string",
              "@referredType": "string"
            }
          ],
          "serviceCharacteristic": [
            {
              "id": "string",
              "name": "string",
              "valueType": "string",
              "characteristicRelationship": [
                {
                  "id": "string",
                  "relationshipType": "string"
                }
              ],
              "value": "string",
              "@baseType": "string",
              "@schemaLocation": "string",
              "@type": "string"
            }
          ],
          "serviceOrderItem": [
            {
              "itemId": "string",
              "role": "string",
              "serviceOrderHref": "string",
              "serviceOrderId": "string",
              "itemAction": "add",
              "@referredType": "string"
            }
          ],
          "serviceRelationship": [
            "string"
          ],
          "serviceSpecification": {
            "id": "string",
            "href": "string",
            "name": "string",
            "version": "string",
            "@baseType": "string",
            "@schemaLocation": "string",
            "@type": "string",
            "@referredType": "string"
          },
          "state": "feasibilityChecked",
          "supportingResource": [
            {
              "id": "string",
              "href": "string",
              "name": "string",
              "@baseType": "string",
              "@schemaLocation": "string",
              "@type": "string",
              "@referredType": "string"
            }
          ],
          "supportingService": [
            "string"
          ],
          "@baseType": "string",
          "@schemaLocation": "string",
          "@type": "string",
          "@referredType": "string"
        },
        "serviceRelationshipCharacteristic": [
          {
            "id": "string",
            "name": "string",
            "valueType": "string",
            "characteristicRelationship": [
              {
                "id": "string",
                "relationshipType": "string"
              }
            ],
            "value": "string",
            "@baseType": "string",
            "@schemaLocation": "string",
            "@type": "string"
          }
        ]
      }
    ],
    "serviceSpecification": {
      "id": "string",
      "href": "string",
      "name": "string",
      "version": "string",
      "@baseType": "string",
      "@schemaLocation": "string",
      "@type": "string",
      "@referredType": "string"
    },
    "state": "feasibilityChecked",
    "supportingResource": [
      {
        "id": "string",
        "href": "string",
        "name": "string",
        "@baseType": "string",
        "@schemaLocation": "string",
        "@type": "string",
        "@referredType": "string"
      }
    ],
    "supportingService": [
      {
        "id": "string",
        "href": "string",
        "category": "string",
        "description": "string",
        "endDate": "2021-10-27T21:56:19.165Z",
        "hasStarted": true,
        "isBundle": true,
        "isServiceEnabled": true,
        "isStateful": true,
        "name": "string",
        "serviceDate": "string",
        "serviceType": "string",
        "startDate": "2021-10-27T21:56:19.165Z",
        "startMode": "string",
        "feature": [
          {
            "id": "string",
            "isBundle": true,
            "isEnabled": true,
            "name": "string",
            "constraint": [
              {
                "id": "string",
                "href": "string",
                "name": "string",
                "version": "string",
                "@baseType": "string",
                "@schemaLocation": "string",
                "@type": "string",
                "@referredType": "string"
              }
            ],
            "featureCharacteristic": [
              {
                "id": "string",
                "name": "string",
                "valueType": "string",
                "characteristicRelationship": [
                  {
                    "id": "string",
                    "relationshipType": "string"
                  }
                ],
                "value": "string",
                "@baseType": "string",
                "@schemaLocation": "string",
                "@type": "string"
              }
            ],
            "featureRelationship": [
              {
                "id": "string",
                "name": "string",
                "relationshipType": "string",
                "validFor": {
                  "endDateTime": "1985-04-12T23:20:50.52Z",
                  "startDateTime": "1985-04-12T23:20:50.52Z"
                }
              }
            ]
          }
        ],
        "note": [
          {
            "id": "string",
            "author": "string",
            "date": "2021-10-27T21:56:19.166Z",
            "text": "string"
          }
        ],
        "place": [
          {
            "id": "string",
            "href": "string",
            "name": "string",
            "role": "string",
            "@baseType": "string",
            "@schemaLocation": "string",
            "@type": "string",
            "@referredType": "string"
          }
        ],
        "relatedEntity": [
          {
            "id": "string",
            "href": "string",
            "name": "string",
            "role": "string",
            "@baseType": "string",
            "@schemaLocation": "string",
            "@type": "string",
            "@referredType": "string"
          }
        ],
        "relatedParty": [
          {
            "id": "string",
            "href": "string",
            "name": "string",
            "role": "string",
            "@baseType": "string",
            "@schemaLocation": "string",
            "@type": "string",
            "@referredType": "string"
          }
        ],
        "serviceCharacteristic": [
          {
            "id": "string",
            "name": "string",
            "valueType": "string",
            "characteristicRelationship": [
              {
                "id": "string",
                "relationshipType": "string"
              }
            ],
            "value": "string",
            "@baseType": "string",
            "@schemaLocation": "string",
            "@type": "string"
          }
        ],
        "serviceOrderItem": [
          {
            "itemId": "string",
            "role": "string",
            "serviceOrderHref": "string",
            "serviceOrderId": "string",
            "itemAction": "add",
            "@referredType": "string"
          }
        ],
        "serviceRelationship": [
          "string"
        ],
        "serviceSpecification": {
          "id": "string",
          "href": "string",
          "name": "string",
          "version": "string",
          "@baseType": "string",
          "@schemaLocation": "string",
          "@type": "string",
          "@referredType": "string"
        },
        "state": "feasibilityChecked",
        "supportingResource": [
          {
            "id": "string",
            "href": "string",
            "name": "string",
            "@baseType": "string",
            "@schemaLocation": "string",
            "@type": "string",
            "@referredType": "string"
          }
        ],
        "supportingService": [
          "string"
        ],
        "@baseType": "string",
        "@schemaLocation": "string",
        "@type": "string",
        "@referredType": "string"
      }
    ]
  }
]

Depending of the legacy, follow the link to view the examples

Liberate

Cerillion

Eda

Movistar

Definitions

Each of the request parameters is detailed.

nametypedescriptionrequired
idstringUnique identifier of the service.N
hrefstringReference of the service.N
categorystringIs it a customer facing or resource facing serviceN
descriptionstringFree-text description of the serviceN
endDatedatetimeDate when the service endsN
hasStartedboolean'If TRUE, this Service has already been started'N
isBundlebooleanIf true, the service is a ServiceBundle which regroup a service hierarchy. If false, the service is a ''atomic'' service (hierachy leaf).N
isServiceEnabledbooleanIf FALSE and hasStarted is FALSE, this particular Service has NOT been enabled for use - if FALSE and hasStarted is TRUE then the service has failedN
isStatefulbooleanIf TRUE, this Service can be changed without affecting any other servicesN
namestringName of the serviceN
serviceDatestringDate when the service was created (whatever its status).N
serviceTypestringBusiness type of the serviceN
startDatedatetimeDate when the service startsN
startModestringThis attribute is an enumerated integer that indicates how the Service is started, such as:
0: Unknown;
1: Automatically by the managed environment;
2: Automatically by the owning device;
3: Manually by the Provider of the Service;
4: Manually by a Customer of the Provider;
5: Any of the above'
N
notearrayA list of notes made on this serviceN
note.idstringIdentifier of the note within its containing entity (may or may not be globally unique, depending on provider implementation)N
note.authorstringAuthor of the noteN
note.datedatetimeDate of the noteN
note.textstringText of the noteN
note.@baseTypestringWhen sub-classing, this defines the super-class'N
note.@schemaLocationstringA URI to a JSON-Schema file that defines additional attributes and relationshipsN
note.@typestringWhen sub-classing, this defines the sub-class entity nameN
placeobject arrayA list of places related to this service, e.g. where the service is installed, a delivery address for equipment, etc.'N
place.idstringUnique identifier of the placeN
place.hrefstringUnique reference of the placeN
place.namestringA user-friendly name for the place, such as [Paris Store], [London Store], [Main Home]N
place.rolestringRole of the place, such as: [home delivery], [shop retrieval])N
place.@baseTypestringWhen sub-classing, this defines the super-class'N
place.@schemaLocationstringA URI to a JSON-Schema file that defines additional attributes and relationshipsN
place.@typestringWhen sub-classing, this defines the sub-class entity nameN
relatedPartyobject arrayA list of related party references (RelatedParty [1..*]). A related party defines party or party role linked to a specific entity.N
relatedParty.idstringUnique identifier of the partyN
relatedParty.hrefstringUnique reference of the partyN
relatedParty.namestringName of the related entity.N
relatedParty.rolestringRole played by the related partyN
relatedParty.@baseTypestringWhen sub-classing, this defines the super-class'N
relatedParty.@schemaLocationstringA URI to a JSON-Schema file that defines additional attributes and relationshipsN
relatedParty.@typestringWhen sub-classing, this defines the sub-class entity nameN
relatedParty.@referredTypestringThe actual type of the target instance when needed for disambiguation.N
relatedParty.contact.contactMediumarrayIndicates the contact medium that could be used to contact the party.N
relatedParty.contact.contactMedium.mediumTypestringType of the contact medium, such as: email address, telephone number, postal addressN
relatedParty.contact.contactMedium.characteristicobjectAny additional characteristic(s) of this contact mediumN
relatedParty.contact.contactMedium.characteristic.phoneNumberstringThe primary phone number of the contactN
featureobject arrayA list of features (Feature [*]). A list of feature associated with this service.N
feature.featureCharacteristicobject arrayA list of characteristics (Characteristic [1..*]). This is a list of Characteristics for a particular feature.N
feature.featureCharacteristic.namestringName of the characteristicN
feature.featureCharacteristic.valueTypestringData type of the value of the characteristicN
feature.featureCharacteristic.valueanyThe value of the characteristicN
serviceOrderItemobject arrayA list of related service order items (RelatedServiceOrderItem [*]). A list of service order items related to this service.N
serviceOrderItem.serviceOrderIdstringUnique identifier of a related entity.N
serviceOrderItem.itemActionstringAn order item action type (OrderItemActionType). Action of the order item for this service.N
serviceCharacteristicobject arrayA list of characteristics (Characteristic []). A list of characteristics that characterize this service (ServiceCharacteristic []).N
serviceCharacteristic.namestringName of the characteristicN
serviceCharacteristic.valueTypestringData type of the value of the characteristicN
serviceCharacteristic.valuestringThe value of the characteristicN
serviceCharacteristic.@baseTypestringWhen sub-classing, this defines the super-class'N
serviceCharacteristic.@schemaLocationstringA URI to a JSON-Schema file that defines additional attributes and relationshipsN
serviceCharacteristic.@typestringWhen sub-classing, this defines the sub-class entity nameN
serviceOrderobject arrayA list of service orders related to this serviceN
serviceOrder.idstringA string. Unique identifier of the Service Order.N
serviceOrder.hrefstringA string. Reference of the Service Order.N
serviceOrder.serviceOrderItemIdstringA string. Unique identifier of the Service Order Item within a service order, not populated if this is a reference to a service order.N
serviceRelationshipobject arrayA list of service relationships (ServiceRelationship []). Describes links with other service(s) in the inventory (useful for describing relies-on, relies-from between CFS for example).'N
serviceRelationship.relationshipTypestringThe type of relationship (e.g. depends on, enables)N
serviceRelationship.servicearrayThe service being referred toN
serviceRelationship.service.idstringUnique identifier of the partyN
serviceRelationship.service.hrefstringUnique reference of the partyN
serviceRelationship.service.namestringName of the related entity.N
serviceRelationship.service.@baseTypestringWhen sub-classing, this defines the super-class'N
serviceRelationship.service.@schemaLocationstringA URI to a JSON-Schema file that defines additional attributes and relationshipsN
serviceRelationship.service.@typestringWhen sub-classing, this defines the sub-class entity nameN
serviceRelationship.service.@referredTypestringThe actual type of the target instance when needed for disambiguation.N
serviceRelationship.@baseTypestringWhen sub-classing, this defines the super-class'N
serviceRelationship.@schemaLocationstringA URI to a JSON-Schema file that defines additional attributes and relationshipsN
serviceRelationship.@typestringWhen sub-classing, this defines the sub-class entity nameN
serviceSpecificationarrayThe specification from which this service was instantiatedN
serviceSpecification.idstringUnique identifier of the requiredServiceSpecificationN
serviceSpecification.hrefstringUnique reference of the requiredServiceSpecificationN
serviceSpecification.namestringName of the requiredServiceSpecification.N
serviceSpecification.@referredTypestringThe actual type of the target instance when needed for disambiguation.N
serviceSpecification.targetServiceSchemastringA target service schema (TargetServiceSchema). A target service schema reference (TargetServiceSchemaRef). The reference object to the schema and type of target service which is described by service specification.N
serviceSpecification.versionstringA string. Service specification version.N
statestringThe life cycle state of the service, such as: feasibilityChecked,
designed,
reserved,
active,
inactive,
terminated'
N
supportingResourceobject arrayA list of supporting resources (SupportingResource []).Note: only Service of type RFS can be associated with Resources.'N
supportingResource.idstringUnique identifier of the EntityN
supportingResource.hrefstringUnique reference of the EntityN
supportingResource.namestringName of the Entity.N
supportingResource.valuestringThe resource value that can be used to identify a resource with a public key (e.g.: a tel nr, an msisdn)N
supportingResource.@baseTypestringWhen sub-classing, this defines the super-class'N
supportingResource.@schemaLocationstringA URI to a JSON-Schema file that defines additional attributes and relationshipsN
supportingResource.@typestringWhen sub-classing, this defines the sub-class entity nameN
supportingResource.@referredTypestringThe actual type of the target instance when needed for disambiguation.N
supportingServicearrayA list of supporting services (SupportingService [*]). A collection of services that support this service (bundling, link CFS to RFS).'N
supportingService.idstringUnique identifier of the related entity.N
supportingService.hrefstringUnique reference of the related entity.N
supportingService.namestringName of the related entity..N
supportingService.@baseTypestringWhen sub-classing, this defines the super-class'N
supportingService.@schemaLocationstringA URI to a JSON-Schema file that defines additional attributes and relationshipsN
supportingService.@typestringWhen sub-classing, this defines the sub-class entity nameN
supportingService.@referredTypestringThe actual type of the target instance when needed for disambiguation.N
@baseTypestringWhen sub-classing, this defines the super-class'N
@schemaLocationstringA URI to a JSON-Schema file that defines additional attributes and relationshipsN
@typestringWhen sub-classing, this defines the sub-class entity nameN

6

Possible response error

In this section all the possible data structures received by the client are defined and that must be considered as unsatisfactory when responding to the method.

[ 400 ]

Bad Request - the request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat the request without modifications.
json { "errors" : [{ "code" : 400, "message" : "The request is invalid or not properly formed.", "description" : "The client sent too many requests and server is not able to serve them all at the moment" } ] }

[ 401 ]

Unauthorized - The request has not been applied because it lacks valid authentication credentials for the target resource.
json { "errors" : [{ "code" : 401, "message" : "The user could not be authenticated for this request.", "description" : "The request has not been applied because it lacks valid authentication credentials for the target resource" } ] }

[ 404 ]

Not Found - server has not found a resource with that URI. This may be temporary and permanent condition. This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable.
json { "errors": [ { "code": 404, "message": "Liberate :Service details not found for reference id:2964328", "description": "SOAP-ENV:Client-Validation constraint violation: data type mismatch in element 'ns0:uniqueServId'-Validation constraint violation: data type mismatch in element 'ns0:uniqueServId'" } ] }
json { "errors": [ { "code": 404, "message": "Liberate:Error invoking SOAP service for serviceId: 2964328", "description": "SERVNOTFND-Service not found.-" } ] }

[ 405 ]

Method Not Allowed - HTTP method not allowed for this resource. The method specified in the Request-Line is not allowed for the resource identified by the Request-URI.
json { "errors": [{ "code": 405, "message": "APIKIT:METHOD_NOT_ALLOWED", "description": "HTTP Method POST not allowed for : /{businessId}/service/{id}" }] }

[ 500 ]

Internal Server Error - server encountered an error processing request. This should not happen normally, but it is a generic error message, given when no more specific message is suitable.
json { "errors" : [{ "code" : 500, "message" : "The request failed due to an internal error.", "description": "error description" } ] }

[ 501 ]

Not implemented - indicates that the server does not support the functionality required to fulfill the request. This is the appropriate response when the server does not recognize the request method and is not capable of supporting it for any resource.

{
  "errors" : [{
      "code" : 501,
      "message" : "NOT IMPLEMENTED",
      "description" : "Operation GET /service for Business Id: xxxx not implemented"
    }
  ]
  }

Administration and data management

In this section you define all the transformations, temporary and final repositories of the data within the method flow.

Transformation Request

In this section the matrix of all the data transformations that is carried out within the service is defined.

liberate-service-inventory-management-sys
Original PayloadMulesofttransformation
IDid
relatedParty.idrelatedParty.id
cerillion-service-inventory-management-sys
Original PayloadMulesofttransformation
IDID
eda-sys
Original PayloadMulesofttransformation
idid
queryParams.serviceRelationship.service.categoryserviceRelationship.service.category
queryParams.serviceTypeserviceType
movistar-sys
Original PayloadMulesofttransformation
queryParams.serviceTypequeryParams.serviceType

Transformation Response

In this section the matrix of all the data transformations that is carried out within the service is defined.

note: same response from SYS without transformation

Original PayloadMulesofttransformation
payloadpayload

Services dependencies

This section defines all the connections to the web services and the methods that are used within the method.

liberate-service-inventory-management-sys
MethodType
/service/{id}GET
cerillion-service-inventory-management-sys
MethodType
/service/{id}GET
eda-sys
MethodType
/service/{id}GET
movistar-sys
MethodType
/service/{id}GET

Reviews