Update Token

This API will be call only once at the time of registration.

OneStack will provide one 36 character long alphanumeric token against each CRN

This token will be pass in further API call.

POST /cbs/update-token


Request Body

{
  "ver": "1.2", //required
  "timestamp": "2021-12-31 23:59:59",//required
  "txnid": "0b811819-9044-4856-b0ee-8c88035f8858", //required 
	"data":"AB1C505BE81959A0E20257AE.....4DF393C1" //required
}

Encrypted Payload

"param_array": {
		"customer":{
			"bank_id":"99999ABC", //required
			"branch_id":"", //optional
	    "crn": "99999999", //required
			"customer_token": "eyJraWQiOiJUDzMyW14ze6cgW1S6XHx2kq0J" //required
		},
}
// customer_token is 36 character long alphanumeric string generated by OneStack for each CRN

Response Body

Success Response

{
  "ver": "1.2",//requried
  "timestamp": "2021-07-13 09:16:43",//requried
  "txnid": "4a4adbbe-29ae-11e8-a8d7-0289437bf331",//requried
  "status": "success",//requried
  "message": "token updated successfully."//requried
}

Failure Response

{
  "ver": "1.2",//requried
  "timestamp": "2021-07-13 09:16:43",//requried
  "txnid": "4a4adbbe-29ae-11e8-a8d7-0289437bf331",//requried
  "status": "failed",//requried
  "message": "Unable to update token."//requried
}

Sample Code

Below sample code is ready with business logic CBS only need to manage dynamic data from Database

For external libraries and other information please contact us