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 Query
section, selectCreate Endpoint
. - Input your endpoint URL and description.
- Click
Add Endpoint
. - Save
Signing Secret
for using later.
Validate Request
- Your endpoint need to validate request via
time
andSignature
header usingSigning Secret
above. - Validate requesting time: your service need to validate requesting time by comparing
time
vsyour current time
, allow+- 5000 ms
. - Validate signature:
- Build
data
=customer_id
+time
. - Create
signature
=HMACSHA256(Signing_Secret, data)
. - Validate request by compare
Signature
from header andsignature
you created.
- Build
- Your endpoint need to validate request via