Skip to content

Instantly share code, notes, and snippets.

@viettd56
Last active October 21, 2019 06:53
Show Gist options
  • Save viettd56/5f72e2bb1f9f73bb2ef9b566ae36b5ae to your computer and use it in GitHub Desktop.
Save viettd56/5f72e2bb1f9f73bb2ef9b566ae36b5ae to your computer and use it in GitHub Desktop.
ACheckin bonus point

Get bonus point

  • Endpoint: /bonus-point-rules
  • Method: GET
  • Header:
    • x-api-key: String
  • Query:
    • workspace_id: String
  • Response:
    • error_code: Number
    • message: String
    • data:
      • time: Number (minutes)
      • type: String {CHECKIN, CHECKOUT}
      • point: Number

Update bonus point

  • Endpoint: /bonus-point-rules
  • Method: POST
  • Header:
    • x-api-key: String
  • Body:
    • workspace_id: String
    • rules: Array
      • time: Number (minutes)
      • type: String {CHECKIN, CHECKOUT}
      • point: Number
    • apoint_partner_access_key: String
    • apoint_partner_secret_key: String
  • Response:
    • error_code: Number
    • message: String
    • data:
      • status: boolean
@huutrancl
Copy link

huutrancl commented Oct 21, 2019

Get bonus point

  • Endpoint: /bonus-point-rules
  • Method: GET
  • Header:
    • x-api-key: String
  • Query:
    • workspace_id: String, required
    • type: String, optional {CHECKIN, CHECKOUT}
    • status: String, optional {ACTIVE, INACTIVE}
  • Response:
    • error_code: Number
    • message: String
    • data:
      • time: Number (minutes)
      • type: String {CHECKIN, CHECKOUT}
      • point: Number
      • status: String {ACTIVE, INACTIVE}

@huutrancl
Copy link

Update bonus point

  • Endpoint: /bonus-point-rules
  • Method: POST
  • Header:
    • x-api-key: String
  • Body:
    • workspace_id: String
    • rules: Array
      • time: Number (minutes)
      • type: String {CHECKIN, CHECKOUT - default CHECKIN}
      • point: Number
    • apoint_partner_access_key: String
    • apoint_partner_secret_key: String
    • status: String, optional {ACTIVE, INACTIVE - default ACTIVE}
  • Response:
    • error_code: Number
    • message: String
    • data:
      • status: boolean

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment