Tapfiliate Conversions API

Track and manage conversions and commissions

Operations 11

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

GET /conversions/{conversion_id}/ Retrieve a conversion · Retrieve a Conversion #
Ask an LLM
“Can I look up one conversion by its ID?”
“What details are recorded on a single conversion?”
Tell an agent
Get conversion {conversion_id}.
Show me conversion {conversion_id} and its details.
PATCH /conversions/{conversion_id}/ Update a conversion · Update a Conversion #
Ask an LLM
“Can I change the amount on a conversion after it was tracked?”
“Is it possible to correct the external ID on an existing conversion?”
Tell an agent
Change the amount of conversion {conversion_id} to {amount}.
Set the external ID of conversion {conversion_id} to {external_id}.
DELETE /conversions/{conversion_id}/ Delete a conversion · Delete a Conversion #
Ask an LLM
“How do I delete a conversion that was recorded by mistake?”
“Can I remove a fraudulent conversion entirely?”
Tell an agent destructive · confirm first
Delete conversion {conversion_id}.
Remove the conversion record {conversion_id}.
GET /conversions/ List conversions · List all conversions #
Ask an LLM
“Which conversions happened between two dates?”
“Can I see only the conversions for one affiliate or one program?”
Tell an agent
List conversions from {date_from} to {date_to}.
Show conversions for affiliate {affiliate_id}.
POST /conversions/ Record a conversion · Create a conversion #
Ask an LLM
“How do I track a sale and credit it to an affiliate?”
“Can I attribute a new conversion to a specific click?”
Tell an agent
Record a conversion of {amount} in program {program_id}.
Create a conversion in program {program_id} for click {click_id} with order ID {external_id}.
POST /conversions/{conversion_id}/commissions/ Add commissions to a conversion · Add commissions to a conversion #
Ask an LLM
“Can I add extra commission entries to a conversion that already exists?”
“How do I attach another commission to a recorded conversion?”
Tell an agent
Add commissions to conversion {conversion_id}.
Attach additional commission entries to existing conversion {conversion_id}.
GET /conversions/{conversion_id}/meta-data/ Get all metadata for a conversion · Retrieve meta data for a Conversion #
Ask an LLM
“What custom metadata is stored on a conversion?”
“Can I fetch every metadata key on one conversion at once?”
Tell an agent
Get all metadata for conversion {conversion_id}.
Show the full metadata set on conversion {conversion_id}.
PUT /conversions/{conversion_id}/meta-data/ Replace a conversion's metadata · Update (replace) meta data for a Conversion #
Ask an LLM
“Can I overwrite a conversion's whole metadata object in one go?”
“What happens to old conversion metadata keys when I replace them all?”
Tell an agent
Replace all metadata on conversion {conversion_id}.
Overwrite the entire metadata set for conversion {conversion_id}.
GET /conversions/{conversion_id}/meta-data/{key}/ Get one metadata key for a conversion · Retrieve meta data by key for a Conversion #
Ask an LLM
“Can I read one metadata value from a conversion by its key?”
“What value does a conversion hold for a given metadata key?”
Tell an agent
Get metadata key {key} for conversion {conversion_id}.
Show conversion {conversion_id}'s {key} metadata value.
PUT /conversions/{conversion_id}/meta-data/{key}/ Set one metadata key on a conversion · Set meta data by key for a Conversion #
Ask an LLM
“Can I set a single metadata key on a conversion without touching the rest?”
“Is there a way to update one conversion metadata field?”
Tell an agent
Set metadata key {key} on conversion {conversion_id}.
Update only the {key} metadata field for conversion {conversion_id}.
DELETE /conversions/{conversion_id}/meta-data/{key}/ Delete one metadata key from a conversion · Delete meta data by key for a Conversion #
Ask an LLM
“Can I remove a single metadata key from a conversion?”
“How do I drop one custom field from a conversion's metadata?”
Tell an agent destructive · confirm first
Delete metadata key {key} from conversion {conversion_id}.
Remove the {key} metadata entry on conversion {conversion_id}.

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

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

tapfiliate-conversions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Tapfiliate REST Conversions API
  description: Tapfiliate is an affiliate tracking and management platform. This REST API allows you to create and manage affiliate programs, track conversions, manage affiliates, handle commission payouts, and record clicks. The API is versioned at V1.6 and uses API key authentication via the X-Api-Key header.
  version: '1.6'
  contact:
    name: Tapfiliate Support
    url: https://tapfiliate.com/docs/rest/
  termsOfService: https://tapfiliate.com/terms/
servers:
- url: https://api.tapfiliate.com/1.6
  description: Tapfiliate REST API v1.6
security:
- ApiKeyAuth: []
tags:
- name: Conversions
  description: Track and manage conversions and commissions
paths:
  /conversions/{conversion_id}/:
    get:
      operationId: getConversion
      summary: Retrieve a Conversion
      description: Retrieve a single conversion by its ID.
      tags:
      - Conversions
      parameters:
      - $ref: '#/components/parameters/conversionId'
      responses:
        '200':
          description: Conversion retrieved
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Conversion'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
    patch:
      operationId: updateConversion
      summary: Update a Conversion
      description: Update an existing conversion record.
      tags:
      - Conversions
      parameters:
      - $ref: '#/components/parameters/conversionId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                amount:
                  type: number
                  format: float
                external_id:
                  type: string
                meta_data:
                  type: object
                  additionalProperties: true
      responses:
        '200':
          description: Conversion updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Conversion'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
    delete:
      operationId: deleteConversion
      summary: Delete a Conversion
      description: Delete a conversion record.
      tags:
      - Conversions
      parameters:
      - $ref: '#/components/parameters/conversionId'
      responses:
        '204':
          description: Conversion deleted
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
  /conversions/:
    get:
      operationId: listConversions
      summary: List all conversions
      description: Retrieve a paginated list of all conversions.
      tags:
      - Conversions
      parameters:
      - $ref: '#/components/parameters/page'
      - $ref: '#/components/parameters/limit'
      - name: date_from
        in: query
        schema:
          type: string
          format: date
        description: Filter conversions from this date (YYYY-MM-DD)
      - name: date_to
        in: query
        schema:
          type: string
          format: date
        description: Filter conversions to this date (YYYY-MM-DD)
      - name: affiliate_id
        in: query
        schema:
          type: string
        description: Filter by affiliate ID
      - name: program_id
        in: query
        schema:
          type: string
        description: Filter by program ID
      responses:
        '200':
          description: List of conversions
          headers:
            Link:
              $ref: '#/components/headers/PaginationLink'
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Conversion'
        '401':
          $ref: '#/components/responses/Unauthorized'
    post:
      operationId: createConversion
      summary: Create a conversion
      description: Record a new conversion event.
      tags:
      - Conversions
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - program_id
              properties:
                program_id:
                  type: string
                  description: The ID of the program for this conversion
                external_id:
                  type: string
                  description: Your unique reference for this conversion
                amount:
                  type: number
                  format: float
                  description: The conversion amount (for revenue-based commissions)
                click_id:
                  type: string
                  description: The click ID to attribute this conversion to
                customer_id:
                  type: string
                  description: The external customer identifier
                commission_type:
                  type: string
                  description: The commission type to apply
                meta_data:
                  type: object
                  additionalProperties: true
      responses:
        '201':
          description: Conversion created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Conversion'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
  /conversions/{conversion_id}/commissions/:
    post:
      operationId: addCommissionsToConversion
      summary: Add commissions to a conversion
      description: Add additional commission entries to an existing conversion.
      tags:
      - Conversions
      parameters:
      - $ref: '#/components/parameters/conversionId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: array
              items:
                type: object
                properties:
                  affiliate_id:
                    type: string
                  commission_type:
                    type: string
                  amount:
                    type: number
                    format: float
      responses:
        '200':
          description: Commissions added
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Conversion'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
  /conversions/{conversion_id}/meta-data/:
    get:
      operationId: getConversionMetaData
      summary: Retrieve meta data for a Conversion
      description: Retrieve all metadata for a given conversion.
      tags:
      - Conversions
      parameters:
      - $ref: '#/components/parameters/conversionId'
      responses:
        '200':
          description: Conversion metadata
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
    put:
      operationId: replaceConversionMetaData
      summary: Update (replace) meta data for a Conversion
      description: Replace all metadata for a conversion.
      tags:
      - Conversions
      parameters:
      - $ref: '#/components/parameters/conversionId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      responses:
        '200':
          description: Metadata replaced
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
  /conversions/{conversion_id}/meta-data/{key}/:
    get:
      operationId: getConversionMetaDataByKey
      summary: Retrieve meta data by key for a Conversion
      description: Retrieve a specific metadata key for a conversion.
      tags:
      - Conversions
      parameters:
      - $ref: '#/components/parameters/conversionId'
      - $ref: '#/components/parameters/metaDataKey'
      responses:
        '200':
          description: Metadata value
          content:
            application/json:
              schema:
                type: object
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
    put:
      operationId: setConversionMetaDataByKey
      summary: Set meta data by key for a Conversion
      description: Set a specific metadata key for a conversion.
      tags:
      - Conversions
      parameters:
      - $ref: '#/components/parameters/conversionId'
      - $ref: '#/components/parameters/metaDataKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
      responses:
        '200':
          description: Metadata set
          content:
            application/json:
              schema:
                type: object
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
    delete:
      operationId: deleteConversionMetaDataByKey
      summary: Delete meta data by key for a Conversion
      description: Delete a specific metadata key for a conversion.
      tags:
      - Conversions
      parameters:
      - $ref: '#/components/parameters/conversionId'
      - $ref: '#/components/parameters/metaDataKey'
      responses:
        '204':
          description: Metadata deleted
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    CommissionType:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        type:
          type: string
          enum:
          - percentage
          - fixed
        percentage:
          type:
          - number
          - 'null'
          format: float
        amount:
          type:
          - number
          - 'null'
          format: float
    AffiliateRef:
      type: object
      properties:
        id:
          type: string
        email:
          type: string
          format: email
        firstname:
          type: string
        lastname:
          type: string
    Error:
      type: object
      properties:
        message:
          type: string
          description: Human-readable error message
    Commission:
      type: object
      properties:
        id:
          type: string
          description: Commission ID
        amount:
          type: number
          format: float
          description: Commission amount
        approved:
          type: boolean
          description: Whether this commission has been approved
        commission_type:
          $ref: '#/components/schemas/CommissionType'
        affiliate:
          $ref: '#/components/schemas/AffiliateRef'
        conversion_id:
          type: string
          description: The conversion this commission is for
        created_at:
          type: string
          format: date-time
    Conversion:
      type: object
      properties:
        id:
          type: string
          description: Conversion ID
        external_id:
          type: string
          description: Your external identifier for this conversion
        amount:
          type: number
          format: float
          description: The conversion amount
        program_id:
          type: string
          description: The program this conversion belongs to
        affiliate:
          $ref: '#/components/schemas/AffiliateRef'
        commissions:
          type: array
          items:
            $ref: '#/components/schemas/Commission'
        created_at:
          type: string
          format: date-time
        meta_data:
          type: object
          additionalProperties: true
  parameters:
    metaDataKey:
      name: key
      in: path
      required: true
      schema:
        type: string
      description: Metadata key
    limit:
      name: limit
      in: query
      schema:
        type: integer
        default: 50
        minimum: 1
        maximum: 100
      description: Number of results per page
    page:
      name: page
      in: query
      schema:
        type: integer
        default: 1
        minimum: 1
      description: Page number for pagination
    conversionId:
      name: conversion_id
      in: path
      required: true
      schema:
        type: string
      description: Conversion ID
  responses:
    Unauthorized:
      description: Authentication failed — missing or invalid API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    UnprocessableEntity:
      description: Validation error — request body is invalid
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  headers:
    PaginationLink:
      description: Links to navigate between pages. Contains rel="next", rel="prev", rel="first", and rel="last" links as per RFC 5988.
      schema:
        type: string
      example: <https://api.tapfiliate.com/1.6/conversions/?page=3>; rel="next", <https://api.tapfiliate.com/1.6/conversions/?page=51>; rel="last"
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-Api-Key
x-provenance:
  method: harvested
  publisher: Tapfiliate
  source: https://developers.tapfiliate.com/api-reference/openapi.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)