Skip to content

Instantly share code, notes, and snippets.

@huetran97
huetran97 / bonusPoint.md
Last active October 19, 2019 03:57 — forked from viettd56/bonusPoint.md
ACheckin bonus point

Update bonus point

  • Endpoint: /update-bonus-point
  • Method: POST
  • Header:
    • x-api-key: String
  • Body:
    • workspace_id: String
    • rules: Array
      • time: Number (minutes)
  • type: String {CHECKIN, CHECKOUT}
@huetran97
huetran97 / Item.md
Last active December 10, 2019 09:51
Inventory

List item

  • Endpoint: /inventory/item/list
  • Method: GET
  • Queries:
    • offset: Number, Optional
    • limit: Number, Optional
    • name: String,
  • Response: JSON
    • error_code: Integer
  • message: String

Check staff has joined event yet

  • Endpoint: /application/check-joined-event-yet
  • Method: GET
  • Headers:
    • authorization: String, Required {staff_app_token}
  • Queries:
    • event_id: String, Required
  • Response: JSON
    • error_code: Integer
  • message: String

Send event staff checkin to webhook

  • Endpoint: /send-lixi
  • Method: POST
  • Headers:
    • X-API-KEY: String
    • X-WEBHOOK-TYPE: String {JOIN_EVENT, CHECKIN}
  • Params:
    • user_id: String, Required
    • event_code: Number, Required
  • workspace_id: String, Required

Upload image

  • URl: https://${host}/api/http (ví dụ appota là : https://appota.acheckin.vn/api/http )
  • Endpoint: /upload
  • Method: POST
  • Headers:
    • authorization: ACheckin-Access-Token
    • content-type: Multipart/form-data
  • Params:
    • upload: File, required
  • Response: JSON
@huetran97
huetran97 / HRM Upload.md
Last active June 5, 2021 02:47
HRM Upload

Upload attachment

  • URl: https://api.dev.acheckin.io/actions/api
  • Endpoint: /storage/upload
  • Method: POST
  • Headers:
    • authorization: HRM-Access-Token
    • content-type: Multipart/form-data
  • Params:
    • upload: File, required
  • Response: JSON