Credit Kudos Connector API Methods
In order to sign in properly, Credit Kudos Connector uses an endpoint to generate the JSON Web Token (JWT). The generated API key needs to be included in all API requests to the server, Base64 encoded within an Authorization header.
For the authentication, you must:
- Make a request with the JWT token using the HTTP GET method to Credit Kudos to return an
access_token
- Use the
access_token
to make a bearer authentication:CopyAuthorization: Bearer access_token
- Generate an UUID or a customReference token that is used to identify customers.
- The UUID is sent from the Digital Journey to Apache Camel.
- Map the UUID with the stored
accessToken
by using thegetToken
method.CopyGET /connect/token?code={accessToken}
headers: customReference = {uuid}
Request Example
Copy
POST /customer_token
Headers:
encoded_credentials = Base64("$CLIENT_ID:$CLIENT_SECRET")
"Authorization: Basic $encoded_credentials"
Body:
{
"email": "string",
"firstName": "string",
"lastName": "string",
"customReference": "string",
"dateOfBirth": "string",
"postcode": "string"
}
Response Example
Copy
{
"data": {
"customerToken": "v2.local.e1m...UsY",
"createdAt": 1635840000,
"expiresIn": 2592000,
}
}
Navigate to the below pages to see the API returns for each request made using the Credit Kudos Connector.