CRM
This document outlines where to find the endpoint definitions and how to authenticate to the Pub Invest Group CRM service.
You will need to have a Client ID and secret issued from the ID system.
Authenticating
You will need to acquire a bearer token from the IdP before sending a request to POS Engine.
This can be acquired by calling the following endpoint, with the method HTTP POST and a form body and content type of application/x-www-form-urlencoded
Token Endpoint = https://id.jsm.systems/realms/wtl/protocol/openid-connect/token
Body
| Name | Value |
|---|---|
| grant_type | client_credentials |
| client_id | stock |
| client_secret | TO BE PROVIDED |
| audience | api-pos-engine |
| scope | roles |
.Net Notes
The IdentityModel library can do all the token management wrapping around a HttpClient.
https://identitymodel.readthedocs.io/en/latest/client/token.html
End Points
The Swagger documentation is available at https://api.qa.loyalty.jsm.systems
QA End Point = https://api.qa.loyalty.jsm.systems
Prod End Point = https://api.qa.loyalty.jsm.systems