Rootline payments API

Rootline payments API as documented publicly: 11 operations. Contract generated from the documentation by API Evangelist (2026-10-29); not the provider's own document.

Operations 11

GET /payments/{paymentId} Fetch the payment status after a redirect. #
GET /v1/accounts/{accountId} Retrieve the accountPublishableKey from an account #
DELETE /v1/accounts/{accountId}/allowed-domains Remove a domain from an account #
GET /v1/accounts/{accountId}/allowed-domains Retrieve allowed domains of an account #
POST /v1/accounts/{accountId}/allowed-domains Add multiple domains to an account #
GET /v1/customers GET /v1/customers #
POST /v1/customers Create a customer. #
GET /v1/customers/{customerId}/payment-tokens List all active tokens for a customer. #
GET /v1/payment-tokens/{id} Retrieve a token. #
GET /v1/payments GET /v1/payments #
GET /v1/payments/pmt_1oZcjWpZZM1wPn722lq2vQ GET /v1/payments/pmt_1oZcjWpZZM1wPn722lq2vQ #

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/rootline:payments-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

rootline-payments-openapi-generated.yml Raw ↑
openapi: 3.1.0
info:
  title: Rootline payments API
  version: '2026-10-29'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-10-29: 11 operation(s) read from 3 public documentation page(s) (each operation
    names its page in x-source). This is not the provider''s published contract; Rootline has published no machine-readable contract that the
    pipeline could find. Engine: anthropic.'
  x-evidence-tiers:
    code-example: 8
    documentation: 22
    pages-with-code: 12
    pages-read: 17
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-10-29'
  x-generator: generate-contract-from-docs.py
  x-engine: anthropic
  x-sources:
  - https://docs.rootline.com/guides/payments/components/account-configuration
  - https://docs.rootline.com/guides/payments/payment-api
  - https://docs.rootline.com/guides/payments/tokenization
  x-docs-section: payments
servers:
- url: https://payment-api.staging.rootline.com
paths:
  /payments/{paymentId}:
    get:
      operationId: get_payments_paymentId
      tags:
      - Payments
      summary: Fetch the payment status after a redirect.
      x-source: https://docs.rootline.com/guides/payments/payment-api
      parameters:
      - name: paymentId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetPaymentsPaymentidResponse'
      x-evidence:
        kind: documentation
  /v1/accounts/{accountId}:
    get:
      operationId: get_v1_accounts_accountId
      tags:
      - Accounts
      summary: Retrieve the accountPublishableKey from an account
      x-source: https://docs.rootline.com/guides/payments/components/account-configuration
      parameters:
      - name: accountId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetV1AccountsAccountidResponse'
      x-evidence:
        kind: documentation
  /v1/accounts/{accountId}/allowed-domains:
    delete:
      operationId: delete_v1_accounts_accountId_allowed_domains
      tags:
      - Accounts
      summary: Remove a domain from an account
      x-source: https://docs.rootline.com/guides/payments/components/account-configuration
      parameters:
      - name: accountId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
    get:
      operationId: get_v1_accounts_accountId_allowed_domains
      tags:
      - Accounts
      summary: Retrieve allowed domains of an account
      x-source: https://docs.rootline.com/guides/payments/components/account-configuration
      parameters:
      - name: accountId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetV1AccountsAccountidAllowedDomainsResponse'
      x-evidence:
        kind: documentation
    post:
      operationId: post_v1_accounts_accountId_allowed_domains
      tags:
      - Accounts
      summary: Add multiple domains to an account
      x-source: https://docs.rootline.com/guides/payments/components/account-configuration
      parameters:
      - name: accountId
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostV1AccountsAccountidAllowedDomainsRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/customers:
    get:
      operationId: get_v1_customers
      tags:
      - Customers
      summary: GET /v1/customers
      x-source: https://docs.rootline.com/guides/payments/tokenization
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl 'https://payment-api.staging.rootline.com/v1/customers'  - - request POST  - - header 'content-type: application/json'\
          \  - - header 'x-api-key: [paste-your-api-key]'  - - data ' { \n \"first_name\" : \"Jane\" , \n \"name\" : \"Doe\" , \n \"email\" :\
          \ \"jane@example.com\" , \n \"reference\" : \"AN64-JDOE\" \n } ' \n { \n \"id\" : \"cus_3VfPsTP2kqnjR6LHnOdpVe\" , \n \"created_at\"\
          \ : \"2026-04-21T10:00:00Z\" , \n \"last_updated_at"
    post:
      operationId: post_v1_customers
      tags:
      - Customers
      summary: Create a customer.
      x-source: https://docs.rootline.com/guides/payments/tokenization
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostV1CustomersRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostV1CustomersResponse'
      x-evidence:
        kind: documentation
  /v1/customers/{customerId}/payment-tokens:
    get:
      operationId: get_v1_customers_customerId_payment_tokens
      tags:
      - Customers
      summary: List all active tokens for a customer.
      x-source: https://docs.rootline.com/guides/payments/tokenization
      parameters:
      - name: customerId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetV1CustomersCustomeridPaymentTokensResponse'
      x-evidence:
        kind: documentation
  /v1/payment-tokens/{id}:
    get:
      operationId: get_v1_payment_tokens_id
      tags:
      - Payment Tokens
      summary: Retrieve a token.
      x-source: https://docs.rootline.com/guides/payments/tokenization
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetV1PaymentTokensIdResponse'
      x-evidence:
        kind: documentation
  /v1/payments:
    get:
      operationId: get_v1_payments
      tags:
      - Payments
      summary: GET /v1/payments
      x-source: https://docs.rootline.com/guides/payments/payment-api
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl 'https://payment-api.staging.rootline.com/v1/payments'  - - request POST  - - header 'content-type: application/json' \
          \ - - header 'x-api-key: [paste-your-api-key]'  - - header 'rootline-version: 2024-04-23'  - - data ' { \n \"account_id\" : \"[platform-account-id]\"\
          \ , \n \"reference\" : \"your-reference\" , \n \"amount\" : { \n \"currency\" : \"EUR\" , \n \"quantity\" : \"10.00\" \n } , \n \"payment_rails\"\
          \ : { \n \"paym"
  /v1/payments/pmt_1oZcjWpZZM1wPn722lq2vQ:
    get:
      operationId: get_v1_payments_pmt_1oZcjWpZZM1wPn722lq2vQ
      tags:
      - Payments
      summary: GET /v1/payments/pmt_1oZcjWpZZM1wPn722lq2vQ
      x-source: https://docs.rootline.com/guides/payments/tokenization
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl 'https://payment-api.staging.rootline.com/v1/payments/pmt_1oZcjWpZZM1wPn722lq2vQ'  - - header 'x-api-key: [paste-your-api-key]'\
          \ \n { \n \"id\" : \"pmt_1oZcjWpZZM1wPn722lq2vQ\" , \n \"checkout_status\" : \"succeeded\" , \n \"amount\" : { \"currency\" : \"EUR\"\
          \ , \"quantity\" : \"10.00\" } , \n \"payment_rails\" : { \n \"payment_method\" : \"visa\" , \n \"card_summary\" : { \n \"bin\" : \"\
          476173\" , \n \"last_four_digits\" : \"0010\" \n "
security:
- apiKey: []
components:
  schemas:
    GetPaymentsPaymentidResponse:
      type: object
      properties:
        id:
          type: string
        object:
          type: string
        created_at:
          type: string
        account_id:
          type: string
        reference:
          type: string
        amount:
          type: object
        payment_rails:
          type: object
        checkout_status:
          type: string
        authorizations:
          type: array
        return_url:
          type: string
        user_agent:
          type: string
    GetV1AccountsAccountidResponse:
      type: object
      properties:
        id:
          type: string
        object:
          type: string
        description:
          type: string
        legal_entity_id:
          type: string
        base_return_url:
          type: string
        created_at:
          type: string
        business_address:
          type: object
        publishable_keys:
          type: array
        allowed_domains:
          type: array
        payment_method_settings:
          type: array
    GetV1AccountsAccountidAllowedDomainsResponse:
      type: object
      properties:
        allowed_domains:
          type: array
    PostV1AccountsAccountidAllowedDomainsRequest:
      type: object
      properties:
        allowed_domains:
          type: array
        allowed_domain:
          type: string
    PostV1CustomersRequest:
      type: object
      properties:
        first_name:
          type: string
        name:
          type: string
        email:
          type: string
        phone_number:
          type: string
        reference:
          type: string
        date_of_birth:
          type: string
    PostV1CustomersResponse:
      type: object
      properties:
        id:
          type: string
        created_at:
          type: string
        last_updated_at:
          type: string
        first_name:
          type: string
        name:
          type: string
        email:
          type: string
        reference:
          type: string
    GetV1CustomersCustomeridPaymentTokensResponse:
      type: object
      properties:
        payment_tokens:
          type: array
        card_summary:
          type: object
        payment_method:
          type: string
        charge_type:
          type: string
        charge_type_reason:
          type: string
    GetV1PaymentTokensIdResponse:
      type: object
      properties:
        card_summary:
          type: object
        payment_method:
          type: string
        charge_type:
          type: string
        charge_type_reason:
          type: string
        customer_id:
          type: string
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
tags:
- name: Accounts
- name: Customers
- name: Payment Tokens
- name: Payments