Lunchbox User Wallet API

Create, search, retrieve, update, validate, confirm, refund, and adjust loyalty user wallets.

Operations 8

POST /loyalty-engine/user-wallets Lunchbox Create a User Wallet #
GET /loyalty-engine/user-wallets Lunchbox Search User Wallets #
GET /loyalty-engine/user-wallets/{user_wallet_id} Lunchbox Get a User Wallet #
PATCH /loyalty-engine/user-wallets/{user_wallet_id} Lunchbox Update a User Wallet #
POST /loyalty-engine/user-wallets/{user_wallet_id}/confirm Lunchbox Confirm a Wallet Transaction #
POST /loyalty-engine/user-wallets/{user_wallet_id}/validate Lunchbox Validate a Wallet Transaction #
POST /loyalty-engine/user-wallets/{user_wallet_id}/refund Lunchbox Refund a Wallet Transaction #
PATCH /loyalty-engine/user-wallets/{user_wallet_id}/adjust Lunchbox Adjust a Wallet Balance #

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/lunchbox-user-wallet-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

lunchbox-user-wallet-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Lunchbox Loyalty User Wallet API
  description: The Lunchbox 2.0 Loyalty API is used for interacting with Lunchbox Loyalty so that you can adjust loyalty balances, redeem rewards, and catalog user wallets. It is served by the Lunchbox loyalty engine and authenticated with an API key. Responses use standard HTTP status codes and JSON schemas.
  version: '2.0'
  contact:
    name: Lunchbox Support
    email: support@lunchbox.io
    url: https://docs.lunchbox.io/
servers:
- url: https://{loyalty_base_url}
  description: Lunchbox loyalty engine base URL
  variables:
    loyalty_base_url:
      default: loyalty.lunchbox.io
      description: The loyalty engine host
security:
- apiKeyAuth: []
tags:
- name: User Wallet
  description: Create, search, retrieve, update, validate, confirm, refund, and adjust loyalty user wallets.
paths:
  /loyalty-engine/user-wallets:
    post:
      tags:
      - User Wallet
      summary: Lunchbox Create a User Wallet
      operationId: createUserWallet
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UserWalletCreate'
            example:
              firstName: John
              lastName: Smith
              birthdate: '1990-05-21'
              email: john.smith@example.com
              phone: '2125551234'
      responses:
        '201':
          description: User wallet created.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserWallet'
              examples:
                CreateUserWallet201Example:
                  summary: Default createUserWallet 201 response
                  x-microcks-default: true
                  value: {}
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    get:
      tags:
      - User Wallet
      summary: Lunchbox Search User Wallets
      operationId: searchUserWallets
      responses:
        '200':
          description: Matching user wallets.
          content:
            application/json:
              schema:
                type: object
                properties:
                  results:
                    type: array
                    items:
                      $ref: '#/components/schemas/UserWallet'
              examples:
                SearchUserWallets200Example:
                  summary: Default searchUserWallets 200 response
                  x-microcks-default: true
                  value: {}
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /loyalty-engine/user-wallets/{user_wallet_id}:
    parameters:
    - $ref: '#/components/parameters/UserWalletId'
    get:
      tags:
      - User Wallet
      summary: Lunchbox Get a User Wallet
      operationId: getUserWallet
      responses:
        '200':
          description: The requested user wallet.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserWallet'
              examples:
                GetUserWallet200Example:
                  summary: Default getUserWallet 200 response
                  x-microcks-default: true
                  value: {}
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    patch:
      tags:
      - User Wallet
      summary: Lunchbox Update a User Wallet
      operationId: updateUserWallet
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UserWalletUpdate'
            examples:
              UpdateUserWalletRequestExample:
                summary: Default updateUserWallet request
                x-microcks-default: true
                value: {}
      responses:
        '200':
          description: User wallet updated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserWallet'
              examples:
                UpdateUserWallet200Example:
                  summary: Default updateUserWallet 200 response
                  x-microcks-default: true
                  value: {}
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /loyalty-engine/user-wallets/{user_wallet_id}/confirm:
    parameters:
    - $ref: '#/components/parameters/UserWalletId'
    post:
      tags:
      - User Wallet
      summary: Lunchbox Confirm a Wallet Transaction
      operationId: confirmUserWallet
      responses:
        '200':
          description: Transaction confirmed.
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /loyalty-engine/user-wallets/{user_wallet_id}/validate:
    parameters:
    - $ref: '#/components/parameters/UserWalletId'
    post:
      tags:
      - User Wallet
      summary: Lunchbox Validate a Wallet Transaction
      operationId: validateUserWallet
      responses:
        '200':
          description: Transaction validated.
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /loyalty-engine/user-wallets/{user_wallet_id}/refund:
    parameters:
    - $ref: '#/components/parameters/UserWalletId'
    post:
      tags:
      - User Wallet
      summary: Lunchbox Refund a Wallet Transaction
      operationId: refundUserWallet
      responses:
        '200':
          description: Transaction refunded.
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /loyalty-engine/user-wallets/{user_wallet_id}/adjust:
    parameters:
    - $ref: '#/components/parameters/UserWalletId'
    patch:
      tags:
      - User Wallet
      summary: Lunchbox Adjust a Wallet Balance
      operationId: adjustUserWallet
      responses:
        '200':
          description: Wallet balance adjusted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserWallet'
              examples:
                AdjustUserWallet200Example:
                  summary: Default adjustUserWallet 200 response
                  x-microcks-default: true
                  value: {}
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
components:
  schemas:
    UserWalletUpdate:
      type: object
      properties:
        firstName:
          type: string
          example: John
        lastName:
          type: string
          example: Smith
        birthdate:
          type: string
          format: date
          example: '1990-05-21'
        phone:
          type: string
          example: '2125551411'
    WalletReward:
      type: object
      properties:
        id:
          type: string
          format: uuid
          example: 130945e3-2b24-4530-a696-3b2c6977ba1c
    UserWalletCreate:
      type: object
      required:
      - email
      properties:
        firstName:
          type: string
          example: John
        lastName:
          type: string
          example: Smith
        birthdate:
          type: string
          format: date
          example: '1990-05-21'
        email:
          type: string
          format: email
          example: demo@lunchbox.io
        phone:
          type: string
          example: '2125551411'
    UserWallet:
      type: object
      properties:
        id:
          type: string
          format: uuid
          example: 130945e3-2b24-4530-a696-3b2c6977ba1c
        merchantId:
          type: string
          format: uuid
          example: 130945e3-2b24-4530-a696-3b2c6977ba1c
        email:
          type: string
          format: email
          example: demo@lunchbox.io
        firstName:
          type: string
          example: John
        lastName:
          type: string
          example: Smith
        phone:
          type: string
          example: '2125551411'
        birthdate:
          type:
          - string
          - 'null'
          format: date-time
          example: '2023-07-25T06:00:00-04:00'
        pointsBalance:
          type: integer
          example: 1
        creditsBalance:
          type: integer
          example: 1
        lifetimePointsBalance:
          type: integer
          example: 1
        isActive:
          type: boolean
          example: true
        lastBirthdayYear:
          type:
          - integer
          - 'null'
          example: 1
        createdAt:
          type: string
          format: date-time
          example: '2023-07-25T06:00:00-04:00'
        updatedAt:
          type: string
          format: date-time
          example: '2023-07-25T06:00:00-04:00'
        walletRewards:
          type: array
          items:
            $ref: '#/components/schemas/WalletReward'
          example: []
  parameters:
    UserWalletId:
      name: user_wallet_id
      in: path
      required: true
      schema:
        type: string
        format: uuid
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: Api-Key
      description: Loyalty engine API key passed in the Api-Key header.