These API's are used to establish a profile in CCS with userID/password credentials and use a federated profile in CCS that is tied to the userID/password credentials.. These APIs support functions such as adding a new user, validating user credentials, changing userID/password, recovering userID, resetting password, mobile snapshot login etc.
Paths
/v1/private/auth
NGA Log Off API
This API needs to be used to Log Off from NGA Sesison based on SID in header
ClientID
OAuth Client Credentials Grant Type
ClientID
OAuth Client Credentials Grant Type
A 128 bit universally unique identifier (UUID) that you generate for every request and is used for tracking. It is recommended to use the output from Java UUID class or an equivalent.
{
"default": "a7d1e304-83a9-4413-af97-62615e57eae66807840"
}
Content-Types that are acceptable for the response. Currently we support application/json
{
"default": "application\/json"
}
HTTP Accept-Language header
{
"default": "en-US"
}
2 character ISO country code
{
"default": "AU"
}
3 character business code
{
"default": "GCB"
}
channel ID used by the user
{
"default": "CML"
}
The client ID you received during application registration in the developer portal
{
"default": "29738e5a-fbbf-4b55-981d-d2f3d2a60605"
}
Client Secret generated during application registration
{
"default": "iX4xW5lG0gD6cX3uI5qN3pF6yK5nY2kB0eY5tB3xQ4rD4fD2xO"
}
sid
{
"default": "abbb4837-8343-418c-93d8-77a8519dff9e"
}
LogOff is successful
(BAD REQUEST) - Request was not processed
Type | Code | Details |
invalid | invalidRequest | Missing Parameters |
(INTERNAL SERVER ERROR) - API Server Error
Type | Code | Details |
fatal | serverUnavailable | The request failed due to an internal error/server unavailability |
Definitions
{
"required": [
"type",
"code"
],
"properties": {
"type": {
"type": "string",
"enum": [
"error",
"warn",
"invalid",
"fatal"
],
"description": "
invalid - Request did not confirm to the specification and was unprocessed & rejected. Please fix the value and try again
warn - Request was partially processed. E.g. some of the fields are missing in response to the system issues, request was accepted successfully but will be processed asynchronously
error - The request was accepted but could not be processed successfully
fatal - There was an internal system error while processing the request. These are technical errors and will be resolved by Citi, and the consumer should retry after some time. Business errors will not be categorized as fatal "
},
"code": {
"type": "string",
"description": "Error code which qualifies the error"
},
"details": {
"type": "string",
"description": "Human readable explanation specific to the occurrence of the problem"
},
"location": {
"type": "string",
"description": "The name of the field that resulted in the error"
},
"moreInfo": {
"type": "string",
"description": "URI to human readable documentation of the error"
}
}
}