CM Service
This help QUICKOM query customer's info via your service
Set up endpoint
Endpoint's requirement:
- Method:
GET - Header:
Signature: <Signature> - Parameters:
Param Type Mandatory Description request_id String YES Request ID customer_id String YES Customer's id time Long YES Requesting time in millisecond - Response:
200 OK
{ "customer_id" : "", "name" : "", "email" : "", "phone_number" : "", "note" : "" }- Method:
Configuration
- Go to https://cc.quickom.com/dashboard/web-hook.
- Under
Endpoints Customer Querysection, selectCreate Endpoint. - Input your endpoint URL and description.
- Click
Add Endpoint. - Save
Signing Secretfor using later.
Validate Request
- Your endpoint need to validate request via
timeandSignatureheader usingSigning Secretabove. - Validate requesting time: your service need to validate requesting time by comparing
timevsyour current time, allow+- 5000 ms. - Validate signature:
- Build
data=customer_id+time. - Create
signature=HMACSHA256(Signing_Secret, data). - Validate request by compare
Signaturefrom header andsignatureyou created.
- Build
- Your endpoint need to validate request via