Lunchbox Customer API

Guest account registration, authentication, and profile management.

GitHub OpenAPI

Operations 39

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /customers/login Log in a customer · Lunchbox Log in a Customer #
Ask an LLM
“How do I log a customer in with their username and password?”
“Can a guest account be turned into a registered customer account?”
Tell an agent
Log in customer {username} with password {password}.
Authenticate {username} as a registered customer.
POST /customers/registration Register a new customer · Lunchbox Register a Customer #
Ask an LLM
“How do I sign up a new customer with an email and password?”
“Can I collect a customer's phone number and birthdate at registration?”
Tell an agent
Register customer {email} with password {password}.
Create a new customer {email} born {birthdate} with phone {phone}.
POST /customers/logout Log out the current customer · Lunchbox Log Out a Customer #
Ask an LLM
“How do I log a customer out of their account?”
“Can I end the current session for the signed-in customer?”
Tell an agent
Log out the current customer.
End the signed-in customer's session.
POST /customers/guest Log in as a guest · Lunchbox Log in as a Guest #
Ask an LLM
“Can a guest order without logging in?”
“How do I start a session as a guest customer?”
Tell an agent
Log in as a guest.
Start a guest session for this order.
POST /customers/login_by_foreign_auth Log in with a foreign auth provider · Lunchbox Log in by Foreign Auth #
Ask an LLM
“Can a customer sign in with their social or third-party account?”
“How do I authenticate a customer using a foreign auth token?”
Tell an agent
Log in the customer using their foreign auth token.
Authenticate this guest with a third-party identity.
POST /customers/password Request or reset a customer password · Lunchbox Request or Reset Password #
Ask an LLM
“How do I request a password reset for a customer?”
“Can I send a password reset link to a customer's email?”
Tell an agent
Request a password reset for this customer.
Send a password reset email to the customer.
POST /customers/send-verify-phone Send a phone verification code · Lunchbox Send Phone Verification #
Ask an LLM
“How do I send a verification code to a customer's phone?”
“Can I trigger a text with a phone verification code?”
Tell an agent
Send a phone verification code to this customer.
Text a verification code to the customer's phone.
POST /customers/verify-phone Verify a customer's phone number · Lunchbox Verify Phone #
Ask an LLM
“How do I confirm a customer's phone number with the code they received?”
“Can I mark a phone number as verified?”
Tell an agent
Verify the customer's phone number with the code they entered.
Confirm the phone number is correct.
POST /customers/send-verify-code Send an email verification code · Lunchbox Send Email Verification Code #
Ask an LLM
“How do I send a verification code to a customer's email?”
“Can I trigger a verification email for a new customer?”
Tell an agent
Send an email verification code to this customer.
Email a verification code to the customer.
POST /customers/verify Verify a customer's email address · Lunchbox Verify Email #
Ask an LLM
“How do I confirm a customer's email address with the verification code?”
“Can I mark an email as verified?”
Tell an agent
Verify the customer's email address with the code they entered.
Confirm the email address is correct.
GET /customers/me Get the currently logged-in customer · Lunchbox Get the Current Customer #
Ask an LLM
“Who is the customer currently signed in to my app?”
“Can I fetch the profile of the logged-in user?”
Tell an agent
Get the current customer.
Show the profile of the signed-in customer.
GET /customers/{customer_id} Get a customer by ID · Lunchbox Get a Customer #
Ask an LLM
“How do I look up a customer's profile by their customer ID?”
“Can I fetch one customer's details from the database?”
Tell an agent
Get customer {customer_id}.
Show the profile of customer {customer_id}.
POST /customers/{customer_id} Update a customer's profile · Lunchbox Update a Customer #
Ask an LLM
“How do I change a customer's phone number or email?”
“Can I mark a customer's phone as verified?”
Tell an agent
Update customer {customer_id} with phone {phone}.
Set customer {customer_id}'s email to {email}.
DELETE /customers/{customer_id} Delete a customer account · Lunchbox Delete a Customer #
Ask an LLM
“How do I delete a customer's account?”
“Can I permanently remove a customer from the database?”
Tell an agent destructive · confirm first
Delete customer {customer_id}.
Permanently remove customer {customer_id}.
GET /customers/{customer_id}/preferences Get a customer's preferences · Lunchbox Get Customer Preferences #
Ask an LLM
“How do I read a customer's saved preferences?”
“Can I fetch one customer's preferences?”
Tell an agent
Get the preferences of customer {customer_id}.
Show customer {customer_id}'s saved preferences.
POST /customers/{customer_id}/preferences Update a customer's preferences · Lunchbox Update Customer Preferences #
Ask an LLM
“How do I save a customer's preferences?”
“Can I update a customer's preferences after they change them?”
Tell an agent
Update the preferences of customer {customer_id}.
Save the customer's updated preferences.
GET /customers/{customer_id}/addresses List a customer's addresses · Lunchbox List Customer Addresses #
Ask an LLM
“How do I show all the addresses saved for a customer?”
“Can I list every address on a customer's profile?”
Tell an agent
List the addresses of customer {customer_id}.
Show every saved address for customer {customer_id}.
POST /customers/{customer_id}/addresses Add an address to a customer · Lunchbox Add a Customer Address #
Ask an LLM
“How do I add a new address to a customer's profile?”
“Can I save a delivery address for a customer?”
Tell an agent
Add address {address1}, {city}, {statecode} {zipcode} to customer {customer_id}.
Save a new address for customer {customer_id}.
DELETE /customers/{customer_id}/addresses Delete a customer address · Lunchbox Delete a Customer Address #
Ask an LLM
“How do I remove an address from a customer's profile?”
“Can I delete one saved address by its ID?”
Tell an agent destructive · confirm first
Delete address {address_id} from customer {customer_id}.
Remove saved address {address_id} for customer {customer_id}.
GET /customers/{customer_id}/saved-cards List a customer's saved cards · Lunchbox List Saved Cards #
Ask an LLM
“How do I show the cards saved on a customer's account?”
“Can I list every saved card for a customer?”
Tell an agent
List the saved cards of customer {customer_id}.
Show every card saved on customer {customer_id}.
POST /customers/{customer_id}/saved-cards Save a card on a customer account · Lunchbox Add a Saved Card #
Ask an LLM
“How do I save a card so a guest can pay later?”
“Can I add a saved card to a customer's account?”
Tell an agent
Save this card on customer {customer_id}.
Add a saved card to {customer_id}.
DELETE /customers/{customer_id}/saved-cards Remove a saved card from a customer · Lunchbox Delete a Saved Card #
Ask an LLM
“How do I remove a saved card from a guest's account?”
“Can I delete a saved card by its account ID?”
Tell an agent destructive · confirm first
Delete saved card {cc_account_id} from customer {customer_id}.
Remove saved card {cc_account_id} on {customer_id}.
PUT /customers/{customer_id}/saved-cards/{cc_account_id}/in-store-priority Set which saved card is used in-store · Lunchbox Set In-Store Card Priority #
Ask an LLM
“How do I make a saved card the default for in-store payments?”
“Can I change which card a guest pays with in-store?”
Tell an agent
Set saved card {cc_account_id} as the in-store priority for customer {customer_id}.
Make {cc_account_id} the in-store card for {customer_id}.
GET /customers/{customer_id}/orders List a customer's order history · Lunchbox Get Customer Order History #
Ask an LLM
“What has a guest ordered before?”
“Can I include the items in a guest's order history?”
Tell an agent
Show order history for customer {customer_id}.
List {customer_id}'s orders including items {include_items}.
GET /customers/{customer_id}/group-orders List a customer's group orders · Lunchbox Get Customer Group Orders #
Ask an LLM
“Which group orders has a guest placed?”
“Can I see a guest's group order history?”
Tell an agent
Show group orders for customer {customer_id}.
List {customer_id}'s group orders.
POST /customers/{customer_id}/saved-orders Save an order for a guest · Lunchbox Save an Order #
Ask an LLM
“How do I save an order so a guest can reorder it later?”
“Can I save a guest's order for quick reordering?”
Tell an agent
Save this order for customer {customer_id}.
Save a guest order for {customer_id}.
DELETE /customers/{customer_id}/saved-orders Delete a saved order · Lunchbox Delete a Saved Order #
Ask an LLM
“How do I remove a saved order a guest made?”
“Can I delete one saved order by its ID?”
Tell an agent destructive · confirm first
Delete saved order {order_id} for customer {customer_id}.
Remove saved order {order_id} from {customer_id}.
GET /customers/{customer_id}/loyalty Get a customer's loyalty status · Lunchbox Get Customer Loyalty #
Ask an LLM
“What loyalty status does a guest have?”
“Can I see a guest's loyalty points and tier?”
Tell an agent
Show loyalty status for customer {customer_id}.
Get {customer_id}'s loyalty points and tier.
GET /customers/{customer_id}/memberships List a customer's memberships · Lunchbox List Customer Memberships #
Ask an LLM
“Which memberships does a guest hold?”
“Can I see all of a guest's memberships?”
Tell an agent
List memberships for customer {customer_id}.
Show every membership {customer_id} has.
GET /customers/{customer_id}/memberships/{membership_id} Get one customer membership · Lunchbox Get a Customer Membership #
Ask an LLM
“What are the details of a specific membership a guest holds?”
“Can I look up one membership by its ID?”
Tell an agent
Show membership {membership_id} for customer {customer_id}.
Get {customer_id}'s membership {membership_id}.
DELETE /customers/{customer_id}/memberships/{membership_id} Cancel a customer membership · Lunchbox Cancel a Customer Membership #
Ask an LLM
“How do I cancel a guest's membership?”
“Can I end a membership a guest holds?”
Tell an agent destructive · confirm first
Cancel membership {membership_id} for customer {customer_id}.
End {customer_id}'s membership {membership_id}.
GET /customers/{customer_id}/favorite-stores List a customer's favorite stores · Lunchbox List Favorite Stores #
Ask an LLM
“Which stores does a guest have favorited?”
“Can I see a guest's favorite store list?”
Tell an agent
List favorite stores for customer {customer_id}.
Show {customer_id}'s favorite stores.
POST /customers/{customer_id}/favorite-stores Add a store to a customer's favorites · Lunchbox Add a Favorite Store #
Ask an LLM
“How do I add a store to a guest's favorites?”
“Can I favorite a store for a guest?”
Tell an agent
Add a favorite store for customer {customer_id}.
Favorite a store on {customer_id}'s list.
DELETE /customers/{customer_id}/favorite-stores Remove a store from a customer's favorites · Lunchbox Delete a Favorite Store #
Ask an LLM
“How do I unfavorite a store a guest has?”
“Can I remove one store from a guest's favorites by store ID?”
Tell an agent destructive · confirm first
Remove store {store_id} from favorites of customer {customer_id}.
Unfavorite store {store_id} for {customer_id}.
GET /customers/{customer_id}/favorite-items List a customer's favorite items · Lunchbox List Favorite Items #
Ask an LLM
“Which menu items does a guest have favorited?”
“Can I include unavailable items in a guest's favorites list?”
Tell an agent
List favorite items for customer {customer_id}.
Show {customer_id}'s favorite items including unavailable {include_unavailable}.
POST /customers/{customer_id}/favorite-items Add an item to a customer's favorites · Lunchbox Add a Favorite Item #
Ask an LLM
“How do I add a menu item to a guest's favorites?”
“Can I favorite an item for a guest?”
Tell an agent
Add a favorite item for customer {customer_id}.
Favorite an item on {customer_id}'s list.
DELETE /customers/{customer_id}/favorite-items Remove an item from a customer's favorites · Lunchbox Delete a Favorite Item #
Ask an LLM
“How do I unfavorite an item a guest has?”
“Can I remove one favorite item by its ID?”
Tell an agent destructive · confirm first
Remove favorite item {favorite_id} from customer {customer_id}.
Unfavorite item {favorite_id} for {customer_id}.
GET /customers/{customer_id}/orders/checkin List a customer's check-in orders · Lunchbox Get Check-In Orders #
Ask an LLM
“Which orders has a guest checked in to?”
“Can I see a guest's check-in order history?”
Tell an agent
Show check-in orders for customer {customer_id}.
List {customer_id}'s orders that are checked in.
POST /customers/{customer_id}/orders/checkin/{order_id} Check a guest into an order · Lunchbox Check in to an Order #
Ask an LLM
“How do I check a guest into an order at the store?”
“Can I mark an order as checked in for a guest?”
Tell an agent
Check customer {customer_id} into order {order_id}.
Check {customer_id} into order {order_id} at the store.

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:lunchbox-customer-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

lunchbox-customer-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Lunchbox Core Customer API
  description: 'The Lunchbox 2.0 Core API is used for interfacing with Lunchbox ordering functions and building frontend interfaces that interact with the variety of Lunchbox integrations: POS, Last Mile, Loyalty, Marketing, Gift Card and more. It exposes customer (guest) account management, store and menu data, order creation and item management, discounts, payments, group ordering, and order webhooks. The API uses standard HTTP status codes and all schemas are in JSON format.'
  version: '2.0'
  contact:
    name: Lunchbox Support
    email: support@lunchbox.io
    url: https://docs.lunchbox.io/
  termsOfService: https://lunchbox.io/
servers:
- url: https://{chain_name}.lunchbox.io/api/v2
  description: Per-chain Lunchbox 2.0 Core API base URL
  variables:
    chain_name:
      default: chain
      description: The restaurant chain's Lunchbox subdomain
security:
- tokenAuth: []
tags:
- name: Customer
  description: Guest account registration, authentication, and profile management.
paths:
  /customers/login:
    post:
      tags:
      - Customer
      summary: Lunchbox Log in a Customer
      operationId: loginCustomer
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LoginRequest'
            example:
              username: demo@lunchbox.io
              password: '12345678'
      responses:
        '200':
          description: Customer authenticated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthSession'
              examples:
                LoginCustomer200Example:
                  summary: Default loginCustomer 200 response
                  x-microcks-default: true
                  value: {}
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /customers/registration:
    post:
      tags:
      - Customer
      summary: Lunchbox Register a Customer
      operationId: registerCustomer
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RegistrationRequest'
            examples:
              RegisterCustomerRequestExample:
                summary: Default registerCustomer request
                x-microcks-default: true
                value: {}
      responses:
        '200':
          description: Customer created.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Customer'
              examples:
                RegisterCustomer200Example:
                  summary: Default registerCustomer 200 response
                  x-microcks-default: true
                  value: {}
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /customers/logout:
    post:
      tags:
      - Customer
      summary: Lunchbox Log Out a Customer
      operationId: logoutCustomer
      responses:
        '200':
          description: Customer logged out.
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: string
                    example: Logged out
              examples:
                LogoutCustomer200Example:
                  summary: Default logoutCustomer 200 response
                  x-microcks-default: true
                  value: {}
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /customers/guest:
    post:
      tags:
      - Customer
      summary: Lunchbox Log in as a Guest
      operationId: loginGuest
      responses:
        '200':
          description: Guest session created.
          content:
            application/json:
              schema:
                type: object
                properties:
                  customer_id:
                    type: integer
                  ok:
                    type: boolean
              examples:
                LoginGuest200Example:
                  summary: Default loginGuest 200 response
                  x-microcks-default: true
                  value: {}
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /customers/login_by_foreign_auth:
    post:
      tags:
      - Customer
      summary: Lunchbox Log in by Foreign Auth
      operationId: loginByForeignAuth
      responses:
        '200':
          description: Customer authenticated via a third-party identity provider.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthSession'
              examples:
                LoginByForeignAuth200Example:
                  summary: Default loginByForeignAuth 200 response
                  x-microcks-default: true
                  value: {}
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /customers/password:
    post:
      tags:
      - Customer
      summary: Lunchbox Request or Reset Password
      operationId: customerPassword
      responses:
        '200':
          description: Password reset email or update processed.
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /customers/send-verify-phone:
    post:
      tags:
      - Customer
      summary: Lunchbox Send Phone Verification
      operationId: sendVerifyPhone
      responses:
        '200':
          description: Verification code sent to the customer's phone.
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /customers/verify-phone:
    post:
      tags:
      - Customer
      summary: Lunchbox Verify Phone
      operationId: verifyPhone
      responses:
        '200':
          description: Phone number verified.
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /customers/send-verify-code:
    post:
      tags:
      - Customer
      summary: Lunchbox Send Email Verification Code
      operationId: sendVerifyCode
      responses:
        '200':
          description: Verification code sent to the customer's email.
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /customers/verify:
    post:
      tags:
      - Customer
      summary: Lunchbox Verify Email
      operationId: verifyEmail
      responses:
        '200':
          description: Email verified.
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /customers/me:
    get:
      tags:
      - Customer
      summary: Lunchbox Get the Current Customer
      operationId: getCurrentCustomer
      responses:
        '200':
          description: The authenticated customer.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Customer'
              examples:
                GetCurrentCustomer200Example:
                  summary: Default getCurrentCustomer 200 response
                  x-microcks-default: true
                  value: {}
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /customers/{customer_id}:
    parameters:
    - $ref: '#/components/parameters/CustomerId'
    get:
      tags:
      - Customer
      summary: Lunchbox Get a Customer
      operationId: getCustomer
      responses:
        '200':
          description: The requested customer.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Customer'
              examples:
                GetCustomer200Example:
                  summary: Default getCustomer 200 response
                  x-microcks-default: true
                  value: {}
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    post:
      tags:
      - Customer
      summary: Lunchbox Update a Customer
      operationId: updateCustomer
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Customer'
            examples:
              UpdateCustomerRequestExample:
                summary: Default updateCustomer request
                x-microcks-default: true
                value: {}
      responses:
        '200':
          description: Customer updated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Customer'
              examples:
                UpdateCustomer200Example:
                  summary: Default updateCustomer 200 response
                  x-microcks-default: true
                  value: {}
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    delete:
      tags:
      - Customer
      summary: Lunchbox Delete a Customer
      operationId: deleteCustomer
      responses:
        '200':
          description: Customer deleted.
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /customers/{customer_id}/preferences:
    parameters:
    - $ref: '#/components/parameters/CustomerId'
    get:
      tags:
      - Customer
      summary: Lunchbox Get Customer Preferences
      operationId: getCustomerPreferences
      responses:
        '200':
          description: Customer preferences.
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    post:
      tags:
      - Customer
      summary: Lunchbox Update Customer Preferences
      operationId: updateCustomerPreferences
      responses:
        '200':
          description: Preferences updated.
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /customers/{customer_id}/addresses:
    parameters:
    - $ref: '#/components/parameters/CustomerId'
    get:
      tags:
      - Customer
      summary: Lunchbox List Customer Addresses
      operationId: listCustomerAddresses
      responses:
        '200':
          description: Customer addresses.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Address'
              examples:
                ListCustomerAddresses200Example:
                  summary: Default listCustomerAddresses 200 response
                  x-microcks-default: true
                  value: {}
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    post:
      tags:
      - Customer
      summary: Lunchbox Add a Customer Address
      operationId: addCustomerAddress
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Address'
            examples:
              AddCustomerAddressRequestExample:
                summary: Default addCustomerAddress request
                x-microcks-default: true
                value: {}
      responses:
        '200':
          description: Address added.
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    delete:
      tags:
      - Customer
      summary: Lunchbox Delete a Customer Address
      operationId: deleteCustomerAddress
      parameters:
      - name: address_id
        in: query
        required: true
        schema:
          type: integer
        example: 1234
      responses:
        '200':
          description: Address deleted.
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /customers/{customer_id}/saved-cards:
    parameters:
    - $ref: '#/components/parameters/CustomerId'
    get:
      tags:
      - Customer
      summary: Lunchbox List Saved Cards
      operationId: listSavedCards
      responses:
        '200':
          description: Saved payment cards.
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    post:
      tags:
      - Customer
      summary: Lunchbox Add a Saved Card
      operationId: addSavedCard
      responses:
        '200':
          description: Card saved.
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    delete:
      tags:
      - Customer
      summary: Lunchbox Delete a Saved Card
      operationId: deleteSavedCard
      parameters:
      - name: cc_account_id
        in: query
        required: true
        schema:
          type: string
        example: 1234
      responses:
        '200':
          description: Card deleted.
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /customers/{customer_id}/saved-cards/{cc_account_id}/in-store-priority:
    parameters:
    - $ref: '#/components/parameters/CustomerId'
    - name: cc_account_id
      in: path
      required: true
      schema:
        type: string
    put:
      tags:
      - Customer
      summary: Lunchbox Set In-Store Card Priority
      operationId: setInStoreCardPriority
      responses:
        '200':
          description: In-store priority updated.
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /customers/{customer_id}/orders:
    parameters:
    - $ref: '#/components/parameters/CustomerId'
    get:
      tags:
      - Customer
      summary: Lunchbox Get Customer Order History
      operationId: getCustomerOrders
      parameters:
      - name: include_items
        in: query
        schema:
          type: boolean
        example: true
      - name: all_orders
        in: query
        schema:
          type: boolean
        example: true
      responses:
        '200':
          description: Customer order history.
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /customers/{customer_id}/group-orders:
    parameters:
    - $ref: '#/components/parameters/CustomerId'
    get:
      tags:
      - Customer
      summary: Lunchbox Get Customer Group Orders
      operationId: getCustomerGroupOrders
      responses:
        '200':
          description: Group orders for the customer.
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /customers/{customer_id}/saved-orders:
    parameters:
    - $ref: '#/components/parameters/CustomerId'
    post:
      tags:
      - Customer
      summary: Lunchbox Save an Order
      operationId: saveOrder
      responses:
        '200':
          description: Order saved.
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    delete:
      tags:
      - Customer
      summary: Lunchbox Delete a Saved Order
      operationId: deleteSavedOrder
      parameters:
      - name: order_id
        in: query
        required: true
        schema:
          type: integer
        example: 1234
      responses:
        '200':
          description: Saved order deleted.
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /customers/{customer_id}/loyalty:
    parameters:
    - $ref: '#/components/parameters/CustomerId'
    get:
      tags:
      - Customer
      summary: Lunchbox Get Customer Loyalty
      operationId: getCustomerLoyalty
      responses:
        '200':
          description: Loyalty balances and activity.
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /customers/{customer_id}/memberships:
    parameters:
    - $ref: '#/components/parameters/CustomerId'
    get:
      tags:
      - Customer
      summary: Lunchbox List Customer Memberships
      operationId: listCustomerMemberships
      responses:
        '200':
          description: Customer memberships.
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /customers/{customer_id}/memberships/{membership_id}:
    parameters:
    - $ref: '#/components/parameters/CustomerId'
    - name: membership_id
      in: path
      required: true
      schema:
        type: integer
    get:
      tags:
      - Customer
      summary: Lunchbox Get a Customer Membership
      operationId: getCustomerMembership
      responses:
        '200':
          description: The requested membership.
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    delete:
      tags:
      - Customer
      summary: Lunchbox Cancel a Customer Membership
      operationId: cancelCustomerMembership
      responses:
        '200':
          description: Membership canceled.
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /customers/{customer_id}/favorite-stores:
    parameters:
    - $ref: '#/components/parameters/CustomerId'
    get:
      tags:
      - Customer
      summary: Lunchbox List Favorite Stores
      operationId: listFavoriteStores
      responses:
        '200':
          description: Favorite stores.
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    post:
      tags:
      - Customer
      summary: Lunchbox Add a Favorite Store
      operationId: addFavoriteStore
      responses:
        '200':
          description: Favorite store added.
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    delete:
      tags:
      - Customer
      summary: Lunchbox Delete a Favorite Store
      operationId: deleteFavoriteStore
      parameters:
      - name: store_id
        in: query
        required: true
        schema:
          type: string
        example: '123456'
      responses:
        '200':
          description: Favorite store removed.
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /customers/{customer_id}/favorite-items:
    parameters:
    - $ref: '#/components/parameters/CustomerId'
    get:
      tags:
      - Customer
      summary: Lunchbox List Favorite Items
      operationId: listFavoriteItems
      parameters:
      - name: service_type_id
        in: query
        schema:
          type: integer
        example: 1234
      - name: include_unavailable
        in: query
        schema:
          type: boolean
        example: true
      - name: store_id
        in: query
        schema:
          type: string
        example: '123456'
      responses:
        '200':
          description: Favorite items.
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    post:
      tags:
      - Customer
      summary: Lunchbox Add a Favorite Item
      operationId: addFavoriteItem
      responses:
        '200':
          description: Favorite item added.
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    delete:
      tags:
      - Customer
      summary: Lunchbox Delete a Favorite Item
      operationId: deleteFavoriteItem
      parameters:
      - name: favorite_id
        in: query
        required: true
        schema:
          type: integer
        example: 1234
      responses:
        '200':
          description: Favorite item removed.
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /customers/{customer_id}/orders/checkin:
    parameters:
    - $ref: '#/components/parameters/CustomerId'
    get:
      tags:
      - Customer
      summary: Lunchbox Get Check-In Orders
      operationId: getCheckinOrders
      responses:
        '200':
          description: Orders eligible for check-in.
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /customers/{customer_id}/orders/checkin/{order_id}:
    parameters:
    - $ref: '#/components/parameters/CustomerId'
    - $ref: '#/components/parameters/OrderId'
    post:
      tags:
      - Customer
      summary: Lunchbox Check in to an Order
      operationId: checkinOrder
      responses:
        '200':
          description: Customer checked in.
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
components:
  schemas:
    LoginRequest:
      type: object
      required:
      - username
      - password
      properties:
        username:
          type: string
          format: email
          example: demo@lunchbox.io
        password:
          type: string
          example: string
    Address:
      type: object
      properties:
        address_id:
          type: integer
          example: 1234
        address1:
          type: string
          example: 1216 Broadway
        address2:
          type:
          - string
          - 'null'
          example: string
        address3:
          type:
          - string
          - 'null'
          example: string
        city:
          type: string
          example: New York
        statecode:
          type: string
          example: NY
        zipcode:
          type: string
          example: '10001'
        country:
          type: string
          example: US
        instructions:
          type:
          - string
          - 'null'
          example: string
        latitude:
          type: number
          example: 40.74661
        longitude:
          type: number
          example: -73.98833
    Customer:
      type: object
      properties:
        customer_id:
          type: integer
          example: 1234
        first_name:
          type: string
          example: John
        last_name:
          type: string
          example: Smith
        email:
          type: string
          format: email
          example: demo@lunchbox.io
        phone:
          type: string
          example: '2125551411'
        is_phone_verified:
          type: boolean
          example: '2125551411'
        is_verified:
          type: boolean
          example: true
        is_guest:
          type: boolean
          example: true
        is_mgmt:
          type: boolean
          example: true
        company_name:
          type:
          - string
          - 'null'
          example: Sample
        occupation:
          type:
          - string
          - 'null'
          example: string
        birthdate:
          type:
          - string
          - 'null'
          format: date
          example: '1990-05-21'
    AuthSession:
      type: object
      properties:
        customer_id:
          type: integer
          example: 1234
        auth_cookie:
          type: string
          example: string
    RegistrationRequest:
      type: object
      required:
      - email
      - password
      properties:
        email:
          type: string
          format: email
          example: demo@lunchbox.io
        password:
          type: string
          example: string
        first_name:
          type: string
          example: John
        last_name:
          type: string
          example: Smith
        phone:
          type: string
          example: '2125551411'
        email_optin:
          type: boolean
          example: true
        auto_login:
          type: boolean
          example: true
        birthdate:
          type: string
          format: date
          example: '1990-05-21'
  parameters:
    OrderId:
      name: order_id
      in: path
      required: true
      schema:
        type: integer
    CustomerId:
      name: customer_id
      in: path
      required: true
      schema:
        type: integer
  securitySchemes:
    tokenAuth:
      type: apiKey
      in: header
      name: Authorization
      description: 'Team token passed as: Authorization: Token <team_token>'