TBNS
  • Welcome to TBNS!
  • Getting Started
    • Quickstart
  • Basics
  • References
    • Get Auth Token
    • Get Partner Details
    • User Management API
    • User Creation API
    • Points Management API
Powered by GitBook
On this page
  • Create Points
  • Update Points Status
  1. References

Points Management API

Create Points

Create new loyalty points for a user.

POST https://virtualassistant-17105.bubbleapps.io/version-test/api/1.1/obj/point_mint_history

Headers

Authorization: Bearer {auth_token}
Content-Type: application/json

Request Body

{
    "email": "string",
    "Last Name": "string",
    "First Name": "string",
    "Tenant List": ["string"],
    "User Type": "User"
}

Success Response (200)

{
    "status": "success",
    "id": "string"  // Points mint ID
}

Update Points Status

Update the approval status of minted points.

PATCH https://virtualassistant-17105.bubbleapps.io/version-test/api/1.1/obj/point_mint_history/{MINT_ID}

Headers

Authorization: Bearer {auth_token}
Content-Type: application/json

Request Body

{
    "Status": "string"  // "Open", "Approved", or "Declined"
}

Status Types

  • Open: Initial state, points pending

  • Approved: Points credited, triggers billing

  • Declined: Points rejected, no billing impact

Important Notes

  • Only Approved points affect billing

  • Save mint ID for status updates

  • Points start in Open status by default

PreviousUser Creation API

Last updated 3 months ago