Salesforce UX API icon

Salesforce UX API

(0 reviews)

product-inventory-specification-TMF637

This operation retrieves a product entity by input MSISDN/SubscriptionId.

Key points for Puerto Rico

Below are the key points for PR business unit..

https://[host]/sfdc-ux/v1/{businessId}/product

  • API expects the below-mentioned query parameters (Y - Mandatory & N - Optional)
nametypedescriptionrequired
publicIdentifierstringPublic identifier value of a product, like MSISDN, subscription id.Y
publicIdentifierTypestringPublic identifier type value. Allowed values are MSISDN and SubscriptionId.Y
  • API expects the below-mentioned header parameters (Y - Mandatory & N - Optional)
namevaluedescriptionrequired
client_idstringThe client_id identifying the channel.Y
client_secretstringPassword associated with the client_id.Y
X-Correlation-IDstringAn 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.
Note - Mule default behavior creates a sample x-correlation-id field if value is not passed from client, API will use this value in case value is not passed in API request
Y/N
channelIdstringChannel to business:
In this case, expected channelId will be: "SFDC-B2C"
Y
lobstringThe Line of Business Identifier currently available are:
FIXED
PREPAID
POSTPAID
Y
targetSystemStringThis describes the end system request is for Eg: “MATRIXX".Y

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 - listProduct request processed successfully, response body contains an entity corresponding to the requested resource.

[
    {
        "id": "S-80001",
        "name": "Sub-ABC",
        "description": "Subscription details",
        "status": "active",
        "@type": "Subscription",
        "productCharacteristic": [
            {
                "name": "LastActivityTime",
                "value": "2022-03-22T13:27:06.000000Z"
            },
            {
                "name": "CurrentStatusTransitionTime",
                "value": "2022-03-22T13:27:06.000000Z"
            },
            {
                "name": "UserCount",
                "value": "1"
            }
        ],
        "relatedParty": [
            {
                "id": "SU-80001",
                "role": "Owner",
                "@type": "SubscriptionUserRef"
            }
        ],
        "product": [
            {
                "id": "1",
                "name": "Prepaid Subscription Setup",
                "status": "active",
                "startDate": "2022-03-22T09:27:06.000000-04:00",
                "orderDate": "2022-03-22T09:27:06.000000-04:00",
                "@type": "Offer",
                "productOffering": {
                    "id": "Prepaid Subscription Setup",
                    "@type": "CatalogProductOfferRef"
                },
                "productTerm": [
                    {
                        "name": "3",
                        "duration": {
                            "amount": 1,
                            "units": "monthly"
                        },
                        "validFor": {
                            "startDateTime": "2022-05-22T09:27:06.000000-04:00",
                            "endDateTime": "2022-06-22T09:27:06.000000-04:00"
                        },
                        "@type": "CycleInfoRef"
                    }
                ],
                "productPrice": [
                    {
                        "productOfferingPrice": {
                            "id": "9",
                            "@type": "ProductOfferingPriceRef"
                        }
                    }
                ],
                "productCharacteristic": [
                    {
                        "name": "CurrentStatusTransitionTime",
                        "value": "2022-03-22T09:27:06.000000-04:00"
                    },
                    {
                        "name": "CycleModifyAllowed",
                        "value": "false"
                    },
                    {
                        "name": "OfferStatusDescription",
                        "value": "active"
                    },
                    {
                        "name": "CatalogItemId",
                        "value": "39"
                    },
                    {
                        "name": "OfferType",
                        "value": "purchased_bundle"
                    }
                ]
            },
            {
                "id": "2",
                "name": "Prepaid Balance",
                "status": "active",
                "startDate": "2022-03-22T09:27:06.000000-04:00",
                "orderDate": "2022-03-22T09:27:06.000000-04:00",
                "@type": "Offer",
                "productPrice": [
                    {
                        "productOfferingPrice": {
                            "id": "11",
                            "@type": "ProductOfferingPriceRef"
                        }
                    }
                ],
                "productRelationship": [
                    {
                        "relationshipType": "parent",
                        "product": {
                            "id": "1"
                        }
                    }
                ],
                "productCharacteristic": [
                    {
                        "name": "CurrentStatusTransitionTime",
                        "value": "2022-03-22T09:27:06.000000-04:00"
                    },
                    {
                        "name": "OfferStatusDescription",
                        "value": "active"
                    },
                    {
                        "name": "OfferType",
                        "value": "bundle_purchased_offer"
                    },
                    {
                        "name": "PrimaryBalanceResourceId",
                        "value": "1"
                    }
                ]
            }
        ]
    }
]
Definitions
nametypedescriptionrequired
idstringExternal ID of the subscription.N
namestringDescriptive name of subscription.N
descriptionstringIs the description of the response. Hard coded as static in Mule API.N
statusstringStatus of the subscription.N
@typestringThe actual type of an response.N
productCharacteristicarrayDescribes a given characteristic of an object or entity through a name/value pair.
Note - Please refer Customer Characteristic below for more details
N
productCharacteristic.namestringName of the characteristicN
productCharacteristic.valueanyThe value of the characteristicN
productCharacteristic.valueTypestringData type of the value of the characteristicN
relatedPartyarray
relatedParty.idstringSubscription User unique Id at MatrixxN
relatedParty.rolestringthe role of subscription userN
relatedParty.@typestringReference of subscription userN
productarrayN
product.idstringUnique identifier for this offer (within subscriber/group).N
product.namestringExternal ID of product offer in pricing DB.N
product.statusstringThe offer status.N
product.startDatedatetimeWhen the offer was activated. Not set if status is pre-active. If active at purchase time, ActivationTime and PurchaseTime have the same value.N
product.orderDatedatetimeWhen the offer was purchased.N
product.@typestringtype of product/offerN
product.productOfferingobjectA EntityRef is a detailed description of a bill structure.N
product.productOffering.idstringExternal ID of catalog item in pricing DB, if associated with a catalog item. I.e., not for purchased offers which are part of a bundle.N
product.productOffering.@typestring'When sub-classing, this defines the sub-class entity name'N
product.productTermarrayN
product.productTerm.namestringUnique identifier for the purchased item cycle period.N
product.productTerm.durationobjectN
product.productTerm.duration.amountnumberNumber of periods in a purchased item cycle.N
product.productTerm.duration.unitsstringThe period type. 1=Hourly, 2=Daily, 3=Weekly, 4=Monthly, 5=Yearly, 6=Minutes"N
product.productTerm.validForobjectN
product.productTerm.validFor.startDateTimedatetimeStart of current cycle period (latest period for which recurring processing has been attempted).N
product.productTerm.validFor.endDateTimedatetimeEnd of current cycle period (latest period for which recurring processing has been attempted).N
product.productTerm.@typestringN
product.productPricearrayN
product.productPrice.productOfferingPriceobjectN
product.productPrice.productOfferingPrice.idstringID of product offer in pricing DB.N
product.productPrice.productOfferingPrice.@typestringRefarence of ProductOfferingPriceN
product.productCharacteristicarrayDescribes a given characteristic of an object or entity through a name/value pair.
Note - Please refer Customer Characteristic below for more details
N
product.productCharacteristic.namestringName of the characteristicN
product.productCharacteristic.valueanyThe value of the characteristicN
product.productCharacteristic.valueTypestringData type of the value of the characteristicN
product.productRelationshiparrayN
product.productRelationship.relationshipTypestringN
product.productRelationship.productobjectN
product.productRelationship.product.idstringIf this purchased offer was purchased as part of a bundle, this field holds the resource ID of the bundle. Otherwise the value is zero (null).N

Characteristics Values:

NameDescriptionSample
LastActivityTimeThis value is used for determining lifecycle inactivity trigger(s). It represents the maximum of the LastActivityUpdateTime of the subscriber and the LastActivityUpdateTime for all of the associated devices unless excluding device activity for current status definition. This field is only updated by eligible activity while in a lifecycle state which features inactivity condition(s), when transitioning status, or when the LastActivityUpdateTime is explicitly modified.{
"name": "LastActivityTime",
"value": "2022-03-22T13:27:06.000000Z"
}
CurrentStatusTransitionTimeThe time at which the subscription transitioned to the current status.{
"name": "CurrentStatusTransitionTime",
"value": "2022-03-22T13:27:06.000000Z"
}
UserCountNumber of users for this subscription.{
"name": "UserCount",
"value": "1"
}

product.Characteristics Values:

NameDescriptionSample
CurrentStatusTransitionTimeThe time at which the subscription transitioned to the current status.{
"name": "CurrentStatusTransitionTime",
"value": "2022-03-22T09:27:06.000000-04:00"
}
ModifyAllowedIf true, the cycle is configured to allow for modification.{
"name": "CycleModifyAllowed",
"value": "false"
}
OfferStatusDescriptionStatus description of the purchased offer.{
"name": "OfferStatusDescription",
"value": "active"
}
CatalogItemIdCatalog item ID in pricing DB, if associated with a catalog item. I.e., not for purchased offers which are part of a bundle.{
"name": "CatalogItemId",
"value": "39"
}
OfferTypeType of purchased offer. 1 = purchased_offer, 2 = purchased_bundle, 3 = bundle_purchased_offer
Note - Mule API is doing logic, based on description making integer as string and passing to SF.
{
"name": "OfferType",
"value": "purchased_bundle"
}
PrimaryBalanceResourceIdResource ID of primary balance.{
"name": "PrimaryBalanceResourceId",
"value": "1"
}

Reviews