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" : ""
    }
    
  • Configuration

    • Go to https://cc.quickom.com/dashboard/web-hook.
    • Under Endpoints Customer Query section, select Create 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 and Signature header using Signing Secret above.
    • Validate requesting time: your service need to validate requesting time by comparing time vs your 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 and signature you created.
Last Updated: 5/14/2021, 10:00:18 AM