CSA Subscription extract for billing.

Hello,

I am actually looking to do an extraction of subscription datas in order to build a billing for our (internal) customers.

Does anyone have already done this kind of extraction and how ?

We need to do something simple, only subscription reference and comments and price ...

Thanks by advance for your answers.

Best regards.

Tags:

  • Have you tried CSA API?

    https://<host:port>/csa/rest/artifact/<subscription id>?userIdentifier=<user identifier>&scope=subtree&detail=full

    this should give you all required information of particular subscription in XML format....

    Check more information CSA API documentation

  • Sorry to dig up an old thread, but i have a question relating to this. 

    As an administrator, how do we query the API to retrieve ALL ACTIVE subscription id's so we can query them further for details? 

    My use case is a scheduled OO flow which queries CSA for all active subscriptions, then for each subscription fetch the associated VM name so i can query an external system. This would be run once a day to update a property within a subscription as to the last time the vm associated with a subscription was backed up.

    I can do this on a per organisation basis but would rather do this across all organisations as an administrative user. 

    Thanks, 

    Andrew

  • I have a service request in with HP Software support (SD01966675) But this hasnt had any movement for almost a week now. 

    Looking through the API Guide for CSA 4.7 I have found the LEGACY API offers something but it says this REST call isnt implemented:

    https://{{url}}:8444/csa/rest/artifact?userIdentifier={{useridentifier}}&artifactType=SUBSCRIPTION

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <ExceptionView>
    <exceptionClass>java.lang.RuntimeException</exceptionClass>
    <exceptionMessage>The Restful Web Service API for this model has not been implemented yet.</exceptionMessage>
    </ExceptionView>

    the same as with Service instance:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <ExceptionView>
    <exceptionClass>java.lang.RuntimeException</exceptionClass>
    <exceptionMessage>The Restful Web Service API for this model has not been implemented yet.</exceptionMessage>
    </ExceptionView>

    These are the same response when using the userIdentifier for the CSATransportUser,ooInboundUser and admin users for the provider Organisation.

    Again, using the Legacy API to /search/ for type=subscription&query=* returns no results. 

    Using the APIDOCS.jsp I can use several "Internal Only" calls to achieve this when logged in as the Admin user for the PROVIDER tenant, 

    list organisations : ORGANIZATION: The operational reporting API for organizations. (internal use only)

    https://csa.server.local:8444/csa/api/organization/

    list all users in organisation - PERSON: The operational reporting API for persons. (internal use only)


    https://csa.server.local:8444/csa/api/person/organization/filter
    {
    "organizationName": "TENTANTNAME"
    }


    list all subscriptions for user
    https://csa.server.local:8444/csa/api/mpp/mpp-subscription/filter?onBehalf=tenant@user&onBehalfOrg=TENANTNAME
    {
    "status":"ACTIVE",
    "category":null,
    "name":null
    }

  • The issue about CSAs is that they are all different, and the quality will be determined by the specific CSA you select.

    I don't think they're worthwhile, but I have plenty of time to visit my local food co-ops or farmers markets whenever I want. The quality of vegetables varies greatly from one farmer to the next. I tried one of the larger ones in my region, farm fresh to you, and the quality was terrible. Despite this, they have a stand at my local farmers market, which is one of my favorites. In the winter, I don't think they're worth it because there's only so much I can do with a bunch of radishes and turnips.

  • The issue about CSAs is that they are all different, and the quality will be determined by the specific CSA you select.

    I don't think they're worthwhile, but I have plenty of time to visit my local food co-ops or farmers markets whenever I want. The quality of vegetables varies greatly from one farmer to the next. I tried one of the larger ones in my region, farm fresh to you, and the quality was terrible. Despite this, they have a stand at my local farmers market, which is one of my favorites. In the winter, I don't think they're worth it because there's only so much I can do with a bunch of radishes and turnips.