TrustFabric Payment Intents API

Payment intent lifecycle: create, authorize, capture, refund

GitHub OpenAPI

Operations 8

GET /v1/payment_intents List payment intents #
POST /v1/payment_intents Create payment intent #
GET /v1/payment_intents/{id} Get payment intent #
POST /v1/payment_intents/{id}/authorize Authorize payment #
POST /v1/payment_intents/{id}/capture Capture payment #
POST /v1/payment_intents/{id}/refund Refund payment #
POST /v1/quotes Create quote #
GET /v1/quotes/{id} Get quote #

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/trustfabric-ai:trustfabric-ai-payment-intents-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

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.

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

OpenAPI Specification

trustfabric-ai-payment-intents-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  contact:
    name: No Fate Platform
  description: 'Complete payment processing platform with PSP parity: payments, settlements, disputes, billing, payouts, verification, webhooks, and platform management. Supports date-based API versioning via the API-Version header (default: 2025-01-01). All amounts are in minor units (cents). All timestamps are RFC 3339 UTC.'
  title: No Fate Payment Platform Payment Intents API
  version: 1.0.0
  x-api-versioning: Date-based (YYYY-MM-DD) via API-Version header. See /v1/versions for all supported versions.
servers:
- description: Current environment
  url: /
security:
- BearerAuth: []
tags:
- description: 'Payment intent lifecycle: create, authorize, capture, refund'
  name: Payment Intents
paths:
  /v1/payment_intents:
    get:
      description: List payment intents with pagination
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedList'
          description: Success
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Bad request
        '401':
          description: Unauthorized
        '404':
          description: Not found
        '429':
          description: Rate limited
        '500':
          description: Internal server error
      summary: List payment intents
      tags:
      - Payment Intents
      operationId: getV1PaymentIntents
      x-operation-id-source: derived
    post:
      description: Create a new payment intent with amount, currency, and routing constraints
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreatePaymentIntentRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentIntent'
          description: Success
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Bad request
        '401':
          description: Unauthorized
        '404':
          description: Not found
        '429':
          description: Rate limited
        '500':
          description: Internal server error
      summary: Create payment intent
      tags:
      - Payment Intents
      operationId: postV1PaymentIntents
      x-operation-id-source: derived
  /v1/payment_intents/{id}:
    get:
      description: Retrieve a payment intent by ID
      parameters:
      - description: Payment intent ID
        in: path
        name: id
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentIntent'
          description: Success
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Bad request
        '401':
          description: Unauthorized
        '404':
          description: Not found
        '429':
          description: Rate limited
        '500':
          description: Internal server error
      summary: Get payment intent
      tags:
      - Payment Intents
      operationId: getV1PaymentIntentsById
      x-operation-id-source: derived
  /v1/payment_intents/{id}/authorize:
    post:
      description: Route and authorize a payment via the intent engine
      parameters:
      - description: Payment intent ID
        in: path
        name: id
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentIntent'
          description: Success
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Bad request
        '401':
          description: Unauthorized
        '404':
          description: Not found
        '429':
          description: Rate limited
        '500':
          description: Internal server error
      summary: Authorize payment
      tags:
      - Payment Intents
      operationId: postV1PaymentIntentsByIdAuthorize
      x-operation-id-source: derived
  /v1/payment_intents/{id}/capture:
    post:
      description: Capture an authorized payment, recording fees and financial events
      parameters:
      - description: Payment intent ID
        in: path
        name: id
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentIntent'
          description: Success
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Bad request
        '401':
          description: Unauthorized
        '404':
          description: Not found
        '429':
          description: Rate limited
        '500':
          description: Internal server error
      summary: Capture payment
      tags:
      - Payment Intents
      operationId: postV1PaymentIntentsByIdCapture
      x-operation-id-source: derived
  /v1/payment_intents/{id}/refund:
    post:
      description: Refund a captured payment
      parameters:
      - description: Payment intent ID
        in: path
        name: id
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentIntent'
          description: Success
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Bad request
        '401':
          description: Unauthorized
        '404':
          description: Not found
        '429':
          description: Rate limited
        '500':
          description: Internal server error
      summary: Refund payment
      tags:
      - Payment Intents
      operationId: postV1PaymentIntentsByIdRefund
      x-operation-id-source: derived
  /v1/quotes:
    post:
      description: Create a cost quote for a payment
      responses:
        '200':
          description: Success
        '400':
          description: Bad request
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Not found
        '429':
          description: Rate limited
        '500':
          description: Internal server error
      summary: Create quote
      tags:
      - Payment Intents
      operationId: postV1Quotes
      x-operation-id-source: derived
  /v1/quotes/{id}:
    get:
      description: Retrieve a quote by ID
      responses:
        '200':
          description: Success
        '400':
          description: Bad request
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Not found
        '429':
          description: Rate limited
        '500':
          description: Internal server error
      summary: Get quote
      tags:
      - Payment Intents
      operationId: getV1QuotesById
      x-operation-id-source: derived
components:
  schemas:
    CreatePaymentIntentRequest:
      properties:
        amount:
          description: Amount in minor units (cents)
          format: int64
          type: integer
        currency:
          description: ISO 4217 currency code
          type: string
        destination_currency:
          description: Target settlement currency for cross-asset conversion
          type:
          - string
          - 'null'
        idempotency_key:
          description: Unique key for idempotent creation
          type: string
        metadata:
          additionalProperties:
            type: string
          description: Arbitrary key-value metadata
          type: object
      required:
      - amount
      - currency
      - idempotency_key
      type: object
    Error:
      properties:
        details:
          description: Additional error context
        error:
          description: Error code
          type: string
        message:
          description: Human-readable message
          type: string
      required:
      - error
      - message
      type: object
    PaymentIntent:
      properties:
        amount:
          description: Amount in minor units (cents)
          format: int64
          type: integer
        created_at:
          description: Creation timestamp
          format: date-time
          type: string
        currency:
          description: ISO 4217 currency code
          type: string
        destination_currency:
          description: Target settlement currency (null = same as currency)
          type:
          - string
          - 'null'
        failure_reason:
          description: Failure reason if state=failed
          type:
          - string
          - 'null'
        id:
          description: Unique payment intent ID
          type: string
        idempotency_key:
          description: Idempotency key for replay safety
          type: string
        merchant_id:
          description: Merchant account ID
          type: string
        metadata:
          additionalProperties:
            type: string
          description: Arbitrary key-value metadata
          type: object
        provider_reference:
          description: External provider reference
          type:
          - string
          - 'null'
        selected_rail:
          description: Rail chosen by intent engine routing
          type:
          - string
          - 'null'
        state:
          description: Intent lifecycle state
          enum:
          - created
          - authorized
          - captured
          - refunded
          - failed
          - pending
          - blocked
          - cancelled
          type: string
        updated_at:
          description: Last update timestamp
          format: date-time
          type: string
      required:
      - id
      - merchant_id
      - amount
      - currency
      - state
      - idempotency_key
      type: object
    PaginatedList:
      properties:
        data:
          description: Result items
          items:
            description: Resource
          type: array
        has_more:
          description: Whether more pages exist
          type: boolean
        page:
          description: Current page (1-based)
          format: int64
          type: integer
        per_page:
          description: Items per page
          format: int64
          type: integer
        total:
          description: Total matching items
          format: int64
          type: integer
      required:
      - data
      - total
      - page
      - per_page
      - has_more
      type: object
  securitySchemes:
    BearerAuth:
      bearerFormat: API Key
      description: 'API key authentication: sk_live_* (legacy) or rk_live_* (scoped)'
      scheme: bearer
      type: http
    SessionAuth:
      description: Session-based authentication for dashboard access
      in: cookie
      name: session_id
      type: apiKey