Pull Bank Customer Data

Once the CBS & OneStack handshake is established

We need to ping the CBS & get all the customer data bank wise

Request: Bank ID

Response : Mobile numbers

Pull User

POST /cbs/pull-user


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": {
	"bank_id": "99999ABC", //required
  "start": "1", //required
	"limit": "5000" //required
}

Response Body

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

Encrypted Payload

"param_array":{
	"total_count":10000, //required
	"mobile_numbers": [
		"9999999999",
		"9999999998",
		"9999999997"
	] //required
}

Sample Code

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