Facilipay API Reference
Hand this API to an AI assistant or Postman

The whole reference is also published as plain text at /llms-full.txt (short index: /llms.txt).

Paste this prompt into your AI assistant, then describe what you want to build. To use Postman or Insomnia, import the OpenAPI YAML file.

I'm building an integration with the Facilipay API v2. Before you write any code, read its reference:
- Full reference as plain text (every endpoint with its parameters, request body and responses): https://developers.facilipay.io/llms-full.txt
- Short endpoint index: https://developers.facilipay.io/llms.txt
- OpenAPI 3 spec, the source of truth for schemas: https://developers.facilipay.io/openapi.json

Base URLs:
- Staging server: https://api-staging.loylap.com/v2
- Production server: https://api.loylap.com/v2

Authentication: each operation lists its security schemes. Where ApiKeyAuth is listed, send an API key issued from the Facilipay Dashboard in the X-API-Key header. Where `authorization` is listed, send the merchant JWT returned by POST /auth/login/email in the authorization header. Operations that list no scheme, such as login, token refresh and registration, need no credentials.
Only use endpoints and fields that appear in the spec. If something I ask for is not covered, tell me instead of guessing.

What I want to build:

Endpoints

Accounts

Authentication

Members

Merchants

Merchant Details

Customers

Transactions

Orders

Reporting

Gateway Reports

Inventory

Products

Categories

Modifier Groups

Products (by merchant ID)

Categories (by merchant ID)

Modifier Groups (by merchant ID)

Campaigns

Campaigns

Segmentation Rules

Rewards

Payments

Payments

Gift Cards