Privage Open API
    Privage Open API
    Open API
    • Open API
    • Welcome to Privage Open API Documents
    • Get Access Token
      POST
    • Add Point
      POST
    • Get Profile
      GET
    • Burn Point
      POST
    • Void Transaction By Id
      DELETE
    • Void Transaction By RefId
      DELETE
    • Get Campaign
      GET
    • Get Transaction
      GET

      Add Point

      สำหรับผู้ใช้ทั่วไป (Privage Open API)
      https://core.privageapp.com
      สำหรับผู้ใช้ทั่วไป (Privage Open API)
      https://core.privageapp.com
      POST
      /api/v1/connect/add/points
      This API is used to add points or convert value (amount) into points for a member card.
      The operation depends on the method parameter:
      method = 1 → Convert value into points
      method = 2 → Add points directly
      API สำหรับเพิ่มคะแนนหรือแปลงยอดมูลค่า (value) เป็นคะแนนให้กับบัตรสมาชิก โดยจะทำงานต่างกันตามค่า method
      method = 1 → แปลงยอดมูลค่า (value) เป็นคะแนน (Convert Value to Points)
      method = 2 → เพิ่มคะแนน (Add Points)

      Request

      Authorization
      Provide your bearer token in the
      Authorization
      header when making requests to protected resources.
      Example:
      Authorization: Bearer ********************
      Body Params application/json

      Examples

      Responses

      🟢201Created
      application/json
      Body

      🟠401Unauthorized
      Request Request Example
      Shell
      JavaScript
      Java
      Swift
      cURL
      curl --location --request POST 'https://core.privageapp.com/api/v1/connect/add/points' \
      --header 'Authorization: Bearer <token>' \
      --header 'Content-Type: application/json' \
      --data-raw '{
          "phoneNumber": "0888888888",
          "value": 1000,
          "method": 1,
          "refNo": "TBC00003",
          "remark": "ทดสอบให้คะแนนด้วยหมายเลขโทรศัพท์"
      }'
      Response Response Example
      201 - Success
      {
          "transactionId": "79445ff4-d918-49cd-b4fb-c60ebe3ab5c3",
          "amount": 1000,
          "points": 1000,
          "points_type": "AMOUNT",
          "receive_type": "GAIN",
          "ref_no": "TBC00002",
          "remark": "ทดสอบให้ points ด้วย API",
          "ref_remark": null
      }
      Modified at 2025-11-06 07:27:31
      Previous
      Get Access Token
      Next
      Get Profile
      Built with