VenHub Loyalty Points API

The loyalty-points API from VenHub — 2 operation(s) for loyalty-points.

Business capability
Loyalty & Retention Management BC-420.40

Operations 2

GET /users/loyalty/balance Get Loyalty Balance #
POST /users/loyalty/calculate-earnings Calculate Potential Earnings #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/autonomous-solutions:autonomous-solutions-loyalty-points-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

autonomous-solutions-loyalty-points-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Vencart Loyalty Points API
  version: 0.1.0
tags:
- name: loyalty-points
paths:
  /users/loyalty/balance:
    get:
      tags:
      - loyalty-points
      summary: Get Loyalty Balance
      description: 'Get the current VenBucks balance for the authenticated user.


        Returns:

        - loyalty_points: Current VenBucks balance

        - points_value_in_cents: Monetary value of points in cents'
      operationId: get_loyalty_balance_users_loyalty_balance_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LoyaltyPointsBalanceSchema'
  /users/loyalty/calculate-earnings:
    post:
      tags:
      - loyalty-points
      summary: Calculate Potential Earnings
      description: 'Calculate how many VenBucks will be earned for a given order subtotal.


        This endpoint helps the frontend display potential earnings before checkout.

        VenBucks are earned based on the order subtotal (after deal discounts, before tax).


        Args:

        order_total_cents: The order subtotal in cents (after deal discounts, before tax)


        Returns:

        - order_total: The input order subtotal

        - points_to_earn: VenBucks that will be earned

        - points_value: Monetary value of the points'
      operationId: calculate_potential_earnings_users_loyalty_calculate_earnings_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Body_calculate_potential_earnings_users_loyalty_calculate_earnings_post'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LoyaltyPointsCalculationSchema'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    LoyaltyPointsBalanceSchema:
      properties:
        loyalty_points:
          type: integer
          title: Loyalty Points
          description: Current VenBucks balance
        points_value_in_cents:
          type: integer
          title: Points Value In Cents
          description: Monetary value of points in cents
      type: object
      required:
      - loyalty_points
      - points_value_in_cents
      title: LoyaltyPointsBalanceSchema
      description: Schema for user's loyalty points balance
    Body_calculate_potential_earnings_users_loyalty_calculate_earnings_post:
      properties:
        order_total_cents:
          type: integer
          title: Order Total Cents
          description: Order subtotal in cents (after deal discounts, before tax)
      type: object
      required:
      - order_total_cents
      title: Body_calculate_potential_earnings_users_loyalty_calculate_earnings_post
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    LoyaltyPointsCalculationSchema:
      properties:
        order_total:
          type: integer
          title: Order Total
          description: Order total in cents
        points_to_earn:
          type: integer
          title: Points To Earn
          description: VenBucks that will be earned
        points_value:
          type: integer
          title: Points Value
          description: Monetary value in cents
      type: object
      required:
      - order_total
      - points_to_earn
      - points_value
      title: LoyaltyPointsCalculationSchema
      description: Schema for calculating potential points for an order
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError