Open APIs

 View Only
Expand all | Collapse all

Check whether a logical resource that has MSISND (phone number) as input is a prepaid or postpaid element

  • 1.  Check whether a logical resource that has MSISND (phone number) as input is a prepaid or postpaid element

    TM Forum Member
    Posted May 12, 2022 09:10
    What is the TMF API I should use to know if a MISIDN number is prepaid or postpaid?
    I am evaluating TMF639 - Resource Inventory, but I can't find the correct attribute to associate in the response, for example:

    Request:
    GET /tmf-api/resourceInventoryManagement/v4/logicalResource/60759865​


    Response:
    {
        "id": "42",
        "href": "http://server:port/resourceInventoryManagement/resource/42",
        "publicIdentifier": "07455559833",
        "administrativeState": "unlocked",
        "operationalState": "enable",
        "usageState": "idle",
        "resourceStatus": "available",
        "serialNumber": "12444545544",
    
    
        //I am not sure if this is the correct mapping. 
        "resourceCharacteristic": [
            {
                "name": "SystemProfile",
                "valueType": "string",
                "value": "POSTPAID"
            }
        ],
        //END OF EXAMPLE BLOCK
    
    
        "@type": "MSISDN",
        "@schemaLocation": "http://server:port/MSISDN.schema.json",
        "@baseType": "Resource"
    }​


    ------------------------------
    Francisco Nieves
    Liberty Latin America
    ------------------------------


  • 2.  RE: Check whether a logical resource that has MSISND (phone number) as input is a prepaid or postpaid element

    TM Forum Member
    Posted May 12, 2022 10:22
    Hi Francisco
    An MSISDN per se is a resource, it is not inherently prepaid or postpaid. What you need to do is to find the Product that is using that resource, and then understand from the ProductPrice(s) attached to the Product what the nature is of the usage.
    An alternative approach might be to search for Prepay Balance buckets that are connected to the MSISDN, if you find one then you have a prepaid, otherwise it's postpaid.
    Hope it helps

    ------------------------------
    Jonathan Goldberg
    Amdocs Management Limited
    Any opinions and statements made by me on this forum are purely personal, and do not necessarily reflect the position of the TM Forum or my employer.
    ------------------------------