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:
POST /auth/refresh Renews authentication tokenPOST /auth/login/email Authenticates the user by email in the systemPOST /auth/forgot/init/email Starts recovering a forgotten password by emailPOST /auth/resend-activation Re-send the account activation emailPOST /member Register a new memberGET /member/account/{accountId} Get the user information from the account IDPOST /merchants Register a new merchantGET /merchants/{merchantId} Returns merchant detailsGET /merchants/{merchantId}/customers/v2 list customersGET /merchants/{merchantId}/customers/account/{accountId} Look up a customer and balance by card numberPOST /merchants/{merchantId}/customers/cards Register a cardPUT /merchants/{merchantId}/customers/activate-account Activate AccountGET /merchants/{merchantId}/customers/{customerId} Returns a customer detailsGET /merchants/{merchantId}/transactions/byUniqueId/{uniqueIdentifier} Find a transaction by your identifierGET /merchants/{merchantId}/transactions/v2 List merchant transactionGET /merchants/{merchantId}/orders Returns merchant ordersGET /merchants/{merchantId}/orders/v2 Returns Merchant OrdersGET /merchants/{merchantId}/orders/products Returns merchant order productsGET /merchants/{merchantId}/reports/gift-cards/liability/kpis Returns KPI data for gift cards liability reportGET /merchants/{merchantId}/reports/gift-cards/liability Returns merchant gift cards liability report dataGET /merchants/{merchantId}/reports/transactions Fetch transaction report from payment gatewaysGET /merchants/{merchantId}/reports/batches Fetch batch report with settlement dataGET /inventory/products Returns a list of Merchant's Inventory ProductsPOST /inventory/products Creates an inventory productGET /inventory/products/{productId} Returns a product detailsPUT /inventory/products/{productId} Updates a productPUT /inventory/products/{productId}/image Update image of a productDELETE /inventory/products/{productId}/image Deletes image of a categoryGET /inventory/categories Returns a list of Merchant's Inventory CategoriesPOST /inventory/categories Updates a categoryGET /inventory/categories/{categoryId} Returns a categoty detailsPUT /inventory/categories/{categoryId} Updates a categoryPUT /inventory/categories/{categoryId}/image Update image of a categoryDELETE /inventory/categories/{categoryId}/image Deletes image of a categoryGET /inventory/categories/{categoryId}/products Returns products from a categoryPUT /inventory/categories/{categoryId}/products Update products from a categoryGET /inventory/modifiers-groups Returns modifier groupsPOST /inventory/modifiers-groups creates a new modifier groupGET /inventory/modifiers-groups/{modifiersGroupId} Returns a modifier groupPUT /inventory/modifiers-groups/{modifiersGroupId} Updates a modifier groupPUT /inventory/modifiers-groups/{modifiersGroupId}/image Updates a modifier group imageDELETE /inventory/modifiers-groups/{modifiersGroupId}/image Deletes a modifier group imageGET /inventory/modifiers-groups/{modifiersGroupId}/products Returns a modifier group with its associated productsPUT /inventory/modifiers-groups/{modifiersGroupId}/products Returns a modifier group with its associated productsGET /merchants/{merchantId}/inventory/products Returns a list of Merchant's Inventory ProductsPOST /merchants/{merchantId}/inventory/products Creates an inventory productGET /merchants/{merchantId}/inventory/products/{productId} Returns a product detailsPUT /merchants/{merchantId}/inventory/products/{productId} Updates a productPUT /merchants/{merchantId}/inventory/products/{productId}/image Update image of a productDELETE /merchants/{merchantId}/inventory/products/{productId}/image Deletes image of a categoryGET /merchants/{merchantId}/inventory/categories Returns a list of Merchant's Inventory CategoriesPOST /merchants/{merchantId}/inventory/categories Updates a categoryGET /merchants/{merchantId}/inventory/categories/{categoryId} Returns a Categoty detailsPUT /merchants/{merchantId}/inventory/categories/{categoryId} Updates a categoryPUT /merchants/{merchantId}/inventory/categories/{categoryId}/image Update image of a categoryDELETE /merchants/{merchantId}/inventory/categories/{categoryId}/image Deletes image of a categoryGET /merchants/{merchantId}/inventory/categories/{categoryId}/products Returns products from a categoryPUT /merchants/{merchantId}/inventory/categories/{categoryId}/products Update products from a categoryGET /merchants/{merchantId}/inventory/modifiers-groups Returns modifier groupsPOST /merchants/{merchantId}/inventory/modifiers-groups creates a new modifier groupGET /merchants/{merchantId}/inventory/modifiers-groups/{modifiersGroupId} Returns a modifier groupPUT /merchants/{merchantId}/inventory/modifiers-groups/{modifiersGroupId} Updates a modifier groupPUT /merchants/{merchantId}/inventory/modifiers-groups/{modifiersGroupId}/image Updates a modifier group imageDELETE /merchants/{merchantId}/inventory/modifiers-groups/{modifiersGroupId}/image Deletes a modifier group imageGET /merchants/{merchantId}/inventory/modifiers-groups/{modifiersGroupId}/products Returns a modifier group with its associated productsPUT /merchants/{merchantId}/inventory/modifiers-groups/{modifiersGroupId}/products Returns a modifier group with its associated productsGET /campaigns Returns a list of campaignsGET /campaigns/{campaignId} Returns a campaignPUT /campaigns/{campaignId}/notifications Updates a campaign notificationPUT /campaigns/{campaignId}/highlight Updates a campaign highlightPUT /campaigns/{campaignId}/status Updates a campaign statusPUT /campaigns/{campaignId}/basic Updates a campaignGET /campaigns/{campaignId}/transactions Returns a campaign transactionsGET /campaigns/{campaignId}/stats Returns a campaign statsPUT /campaigns/{campaignId}/rules/gender Updates a campaign gender rulePUT /campaigns/{campaignId}/rules/age Updates a campaign age rulePUT /campaigns/{campaignId}/rules/customer_domains Updates a campaign customer domains rulePUT /campaigns/{campaignId}/rules/birthday Updates a campaign birthday rulePUT /campaigns/{campaignId}/rules/lapsed_customers Updates a campaign lapsed customers rulePUT /campaigns/{campaignId}/rules/cake_day Updates a campaign cake day rulePUT /campaigns/{campaignId}/rules/visits Updates a campaign visits rulePUT /campaigns/{campaignId}/rules/spent Updates a campaign spent rulePUT /campaigns/{campaignId}/rules/products Updates a campaign products rulePUT /campaigns/{campaignId}/rules/top_visitors Updates a campaign top visitors rulePUT /campaigns/{campaignId}/rules/top_spenders Updates a campaign top spenders rulePUT /campaigns/{campaignId}/rules/role Updates a campaign role rulePUT /campaigns/{campaignId}/rules/branches Updates a campaign branches rulePUT /campaigns/{campaignId}/rules/customers Updates a campaign customers rulePUT /campaigns/{campaignId}/rules/transaction_types Updates a campaign transaction types rulePUT /campaigns/{campaignId}/rewards/discount Updates a campaign discount rewardPUT /campaigns/{campaignId}/rewards/discount_product Updates a campaign discount_product rewardPUT /campaigns/{campaignId}/rewards/cashback Updates a campaign cashback rewardPUT /campaigns/{campaignId}/rewards/voucher Updates a campaign voucher rewardPOST /payments Redeem or load stored value on a customer's cardPOST /gift-card/digital/send Send digital giftcard