
Technical white paper | Integrated Billing Solutions with HP CSA 4.00
4. For each subscriber, retrieve information on their subscriptions including pricing, options, start and stop dates, and
more.
Figure 12. Sample REST API sequence
In the following steps, please note that XML responses will be abbreviated in most examples, highlighting the content of
most interest for that example. In practice, you will receive substantially more XML content returned by the REST.
Step 1: Get a credential token for an authenticated user
REST Syntax:
GET http://<host>:<port>/csa/rest/login/<organization_name>/<user_name>
Where organization_name and user_name are the names configured for the organization and user in LDAP.
Response Format:
The first field of the response is the user’s ID. We’ll refer to this as adminId since we will be working with individual
subscriber IDs shortly. Save adminId; you’ll use it in subsequent calls.
<person>
<id>90d96588360da0c701360da0f1d600a1</id>
…
<organization>
<id>402895e336d17e380136d17e7b470001</id>
…
</organization>
</person>
Step 2: Retrieve the list of organizations
REST Syntax:
GET http://<host>:<port>/csa/rest/organization?userIdentifier=<adminId>
8
Komentarze do niniejszej Instrukcji