# Fidel API

Fidel API provides a developer-friendly, secure, and reliable API for businesses to link payment cards with mobile and web applications, enabling real-time transaction monitoring and event-based experiences.

- **Category:** payment processing
- **Auth:** API_KEY
- **Tools:** 40
- **Triggers:** 0
- **Slug:** `FIDEL_API`
- **Version:** 20260217_00

## Tools

### Create Brand

**Slug:** `FIDEL_API_CREATE_BRAND`

Create a new brand in Fidel API. Use this action to register a brand with a unique name. Brands are independent of Programs and can be reused between different programs. Once created, the brand can be associated with locations and offers. Returns the created brand object with its unique ID and timestamps.

### Create Brand Webhook

**Slug:** `FIDEL_API_CREATE_BRAND_WEBHOOK`

Tool to create a webhook at the brand level for receiving real-time event notifications. Use when you need to be notified of brand-related events, such as when brand consent is approved. In test mode, the webhook triggers immediately after creating a brand; in live mode, it triggers when the brand user approves the consent request.

### Create Location

**Slug:** `FIDEL_API_CREATE_LOCATION`

Create a new location for a program in Fidel API. Use when you need to add a physical store or merchant location to track card transactions at that specific address.

### Create MID Request

**Slug:** `FIDEL_API_CREATE_MID_REQUEST`

Tool to create a new MID (Merchant ID) request for a specific program and location. Use when you need to onboard a new MID or reassign an existing MID to a location.

### Create Offer

**Slug:** `FIDEL_API_CREATE_OFFER`

Create a new offer in Fidel API. Use this to set up promotional offers with reward configurations (fixed amount or percentage discount) for specific brands and countries. The offer will be associated with your publisher account and can be activated by customers.

### Create Program

**Slug:** `FIDEL_API_CREATE_PROGRAM`

Creates a new card-linked loyalty program in Fidel. A Program is the parent object for tracking card transactions - all Cards, Locations, Webhooks, and Transactions are linked to a Program. Use this before adding cards or locations.

### Create Program Webhook

**Slug:** `FIDEL_API_CREATE_PROGRAM_WEBHOOK`

Tool to register a new webhook for program-related events. Use when you need to receive real-time notifications for specific program events in your application.

### Delete Location

**Slug:** `FIDEL_API_DELETE_LOCATION`

Tool to delete a location by its ID. Use after confirming the correct location ID. The operation is idempotent - deleting an already-deleted location returns success.

### Delete Offer

**Slug:** `FIDEL_API_DELETE_OFFER`

Tool to delete a specified offer by its ID. Use after confirming the correct offer ID.

### Delete Program Webhook

**Slug:** `FIDEL_API_DELETE_PROGRAM_WEBHOOK`

Permanently deletes a webhook by its ID. This is a destructive operation that cannot be undone. The webhook will immediately stop receiving event notifications. Use List Program Webhooks first to get the webhook ID if needed.

### Delete Webhook

**Slug:** `FIDEL_API_DELETE_WEBHOOK`

Permanently delete a webhook by its ID. Use this to remove webhook endpoints that are no longer needed. The operation is idempotent - deleting an already-deleted webhook returns success (204 No Content).

### Get Brand

**Slug:** `FIDEL_API_GET_BRAND`

Tool to retrieve information about a specific brand. Use when you have a brand ID and need its details.

### Get Location

**Slug:** `FIDEL_API_GET_LOCATION`

Tool to retrieve details of a specific location by its ID. Use when you have a location ID and need its full details.

### Get MID

**Slug:** `FIDEL_API_GET_MID`

Tool to retrieve details of a specific MID (Merchant ID). Use when you have a program ID and MID ID to get full MID details.

### Get MID Request

**Slug:** `FIDEL_API_GET_MID_REQUEST`

Tool to retrieve details of a specific MID request. Use when you have a program ID and MID request ID and need to check the status or details of a Merchant ID request.

### Get Offer

**Slug:** `FIDEL_API_GET_OFFER`

Retrieves detailed information about a specific offer by its unique ID. Use this tool when you need to: - Get full details about a known offer (reward type, value, dates, etc.) - Verify offer status (active, expired, requests) - Check offer configuration (schemes, days of week, transaction limits) - View brand and location information for an offer Returns comprehensive offer details including reward configuration, eligibility criteria, and metadata.

### Get Program

**Slug:** `FIDEL_API_GET_PROGRAM`

Tool to retrieve details of a specific program. Use when you have a program ID and need its full details.

### Get Transaction

**Slug:** `FIDEL_API_GET_TRANSACTION`

Tool to retrieve details of a specific transaction by its ID. Use when you need to get complete information about a card-linked transaction including amount, currency, timestamp, and associated metadata.

### Get Webhook

**Slug:** `FIDEL_API_GET_WEBHOOK`

Retrieve details of a specific webhook by its unique identifier. Use this tool when you need to inspect webhook configuration, verify its URL, check the subscribed event type, or obtain the secret key for signature verification.

### Link All Program Locations to Offer

**Slug:** `FIDEL_API_LINK_ALL_PROGRAM_LOCATIONS_TO_OFFER`

Tool to link all brand locations in a program to an offer. Use when you need to associate all locations from a specific program with an offer, making the offer available at all those brand locations.

### Link Location to Offer

**Slug:** `FIDEL_API_LINK_LOCATION_TO_OFFER`

Link a location to an offer in Fidel API. Use this action to associate a specific location with an offer, making the offer available at that location. Once linked, transactions at the location will be eligible for the offer's rewards.

### List Brands

**Slug:** `FIDEL_API_LIST_BRANDS`

Retrieves a paginated list of all brands associated with your Fidel API account. Use this tool to: - Get an overview of all brands in your account - Retrieve brand IDs for use in other operations (e.g., getting locations, creating offers) - Paginate through large sets of brands using the cursor-based pagination Returns brand details including name, ID, consent status, and live/test mode indicator.

### List Cards

**Slug:** `FIDEL_API_LIST_CARDS`

List all payment cards linked to a Fidel program. Returns card details including scheme (visa/mastercard/amex), last 4 digits, expiry date, and country. Use this to view which cards are enrolled in a loyalty/rewards program. Requires a valid programId - use list_programs first if you don't have one.

### List Cards By Metadata

**Slug:** `FIDEL_API_LIST_CARDS_BY_METADATA`

Tool to list payment cards filtered by metadata ID. Use when you need to retrieve all cards that share a specific metadata identifier. Returns card details including scheme, last 4 digits, expiry date, and country. Useful for segmenting cards by custom tags or user groups.

### List Cards with Active Offer

**Slug:** `FIDEL_API_LIST_CARDS_WITH_ACTIVE_OFFER`

List all payment cards that have activated a specific offer. Returns card details for cards enrolled in the offer, including activation status and timestamps. Use this to track which cards are participating in a specific loyalty offer. Requires a valid offerId - use list_offers first if you don't have one.

### List Locations

**Slug:** `FIDEL_API_LIST_LOCATIONS`

Tool to list all locations for a program. Use when you need to retrieve paginated store locations within a specific program.

### List Locations by Brand

**Slug:** `FIDEL_API_LIST_LOCATIONS_BY_BRAND`

Tool to list all locations for a specific brand within a program. Use when you need to retrieve locations filtered by both brand and program IDs with optional pagination, status, and postcode filters.

### List Locations by Offer

**Slug:** `FIDEL_API_LIST_LOCATIONS_BY_OFFER`

Tool to list all locations linked to a specific offer. Use when you need to retrieve locations where an offer is valid or active.

### List MID Requests

**Slug:** `FIDEL_API_LIST_MID_REQUESTS`

List all MID (Merchant ID) requests for a specific program. Use when you need to retrieve MID requests associated with a program for card-linking operations. Supports pagination via the 'start' parameter using cursors from previous responses.

### List MIDs

**Slug:** `FIDEL_API_LIST_MIDS`

Tool to list all MIDs (Merchant IDs) for a program. Use when you need to retrieve merchant IDs associated with a specific program for transaction tracking or location management.

### List Missing Transaction Requests

**Slug:** `FIDEL_API_LIST_MISSING_TRANSACTION_REQUESTS`

Tool to list all missing transaction requests for a specific program. Use when you need to retrieve reports of transactions that were expected but not recorded in the system.

### List Offers

**Slug:** `FIDEL_API_LIST_OFFERS`

List all offers in the Fidel API. Retrieves offers associated with the account, optionally filtered by brand. Returns offer details including type (amount/discount), validity period, card schemes, and activation settings.

### List Programs

**Slug:** `FIDEL_API_LIST_PROGRAMS`

List all Fidel programs in your account. Use this to retrieve programs for card-linking, loyalty, or reward systems. Supports pagination via the 'start' parameter using cursors from previous responses. Returns program details including name, type, status, and sync state.

### List Program Webhooks

**Slug:** `FIDEL_API_LIST_PROGRAM_WEBHOOKS`

Tool to list all registered webhooks for a specific program. Use when you need to retrieve existing webhooks after confirming the programId.

### List Transactions

**Slug:** `FIDEL_API_LIST_TRANSACTIONS`

List transactions for a Fidel program with optional filtering and pagination. Use this tool to retrieve card-linked transaction data for loyalty, rewards, or analytics purposes. Requires a valid programId.

### Unlink Location From Offer

**Slug:** `FIDEL_API_UNLINK_LOCATION_FROM_OFFER`

Tool to unlink a location from an offer by removing the location association. Use after confirming the correct offer ID and location ID.

### Update Brand

**Slug:** `FIDEL_API_UPDATE_BRAND`

Update an existing brand's details in Fidel API. Use this to modify websiteURL, logoURL, or metadata for a brand. The brand name cannot be changed after creation. Requires a valid brand ID from get_brand or list_brands.

### Update Offer

**Slug:** `FIDEL_API_UPDATE_OFFER`

Updates specific properties of an existing offer. Use this when you need to modify offer details such as name, dates, transaction amounts, terms, or metadata. At least one field must be provided to update. Returns the complete updated offer object with all current properties.

### Update Program

**Slug:** `FIDEL_API_UPDATE_PROGRAM`

Updates a Fidel API program's properties. Can modify name (4-50 chars), icon (emoji in :name: format), iconBackground (HEX color), metadata (key/value pairs, max 2KB), or status ('syncing' for live programs only). Requires a valid program ID obtained from list_programs or create_program.

### Update Webhook

**Slug:** `FIDEL_API_UPDATE_WEBHOOK`

Tool to update an existing webhook's configuration. Use when you need to change the webhook URL or event type. The event field is required even when updating.
