Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent
with a free APIs.io key —
sign in with
GitHub,
Google or
LinkedIn.
No form to fill in; signing in shares your email address with us (Privacy).
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.
openapi: 3.2.0
info:
title: WalletPassBuilder Loyalty API
version: 1.0.0
description: 'Create, read, update, and archive Apple Wallet and Google Wallet passes,
check pass-credit balance, and send notifications.
An account can have several workspaces. Send a workspace''s id in the
`X-Workspace-Id` header to say which one a request is for; without it,
requests that create things use the account''s default workspace (chosen
in the dashboard under Settings > Workspace or API).
Full documentation with examples: https://walletpassbuilder.com/api-docs'
contact:
name: WalletPassBuilder Support
email: support@walletpassbuilder.com
url: https://walletpassbuilder.com/api-docs
servers:
- url: https://walletpassbuilder.com/api/v1
security:
- bearerAuth: []
tags:
- name: Loyalty
paths:
/loyalty/members:
get:
operationId: listLoyaltyMembers
summary: Loyalty members
description: Customers who joined a loyalty program, newest first, each with their own card.
parameters:
- $ref: '#/components/parameters/WorkspaceId'
- name: programId
in: query
required: false
schema:
type: string
description: The loyalty design's pass id.
- name: limit
in: query
required: false
schema:
type: integer
minimum: 1
maximum: 100
default: 25
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
members:
type: array
items:
type: object
properties:
id:
type: string
passId:
type: string
description: The member's own card.
programId:
type: string
businessName:
type: string
phone:
type:
- string
- 'null'
answers:
type: object
additionalProperties:
type: string
description: Sign-up answers keyed by field label.
rewardType:
type:
- string
- 'null'
enum:
- visits
- spend
- null
progress:
type: number
threshold:
type: number
rewardsEarned:
type: integer
link:
type: string
joinedAt:
type: string
format: date-time
'401':
$ref: '#/components/responses/Unauthorized'
'422':
$ref: '#/components/responses/InvalidRequest'
tags:
- Loyalty
components:
parameters:
WorkspaceId:
name: X-Workspace-Id
in: header
required: false
description: Which workspace this request is for. Find ids in the dashboard under API or Settings > Workspace. An id that isn't one of the account's workspaces returns `invalid_request`.
schema:
type: string
schemas:
Error:
type: object
properties:
error:
type: object
properties:
code:
type: string
enum:
- unauthorized
- invalid_request
- not_found
- credit_limit_exceeded
- rate_limited
- internal_error
message:
type: string
responses:
InvalidRequest:
description: The request body or a parameter is missing or malformed
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Unauthorized:
description: Missing, invalid, or revoked API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: wpb_live_<key>
description: The account's API key (generate one at /api-keys), or an OAuth access token from an app the account connected, such as Zapier.