Teya Tokens API

Token management for saved payment methods

Operations 1

DELETE /v1/tokens/{token_id} Delete a saved payment token #

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/teya-tokens-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

teya-tokens-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Teya APIs for external plugins Tokens API
  version: 1.0.0
  description: APIs that external plugins can access
  name: Teya
tags:
- name: Tokens
  description: Token management for saved payment methods
  x-displayName: Tokens
paths:
  /v1/tokens/{token_id}:
    delete:
      tags:
      - Tokens
      summary: Delete a saved payment token
      description: 'Remove a previously saved payment method token. Once deleted, the token can no longer be used for transactions.


        Access Token Required scope: token/delete'
      operationId: deleteToken
      parameters:
      - name: token_id
        in: path
        description: The unique identifier of the token to delete
        required: true
        schema:
          type: string
          format: uuid
          example: 5f7b1a3a-3b7a-4b1a-9b1a-3a3b7a4b1a9b
      - name: store_id
        in: query
        description: The store that owns the token
        required: true
        schema:
          type: string
          format: uuid
          example: f47ac10b-58cc-4372-a567-0e02b2c3d479
      responses:
        '204':
          description: Token successfully deleted
        '400':
          description: Bad request
        '401':
          description: Unauthorized
        '404':
          description: Token not found
        '500':
          description: Internal Server Error
components:
  securitySchemes:
    checkout_oauth_dev:
      flows:
        authorizationCode:
          authorizationUrl: https://id.teya.xyz/oauth/v2/oauth-authorize
          scopes: {}
          tokenUrl: https://id.teya.xyz/oauth/v2/oauth-token
        clientCredentials:
          scopes: {}
          tokenUrl: https://id.teya.xyz/oauth/v2/oauth-token
      type: oauth2
    checkout_oauth_prd:
      flows:
        authorizationCode:
          authorizationUrl: https://id.teya.com/oauth/v2/oauth-authorize
          scopes: {}
          tokenUrl: https://id.teya.com/oauth/v2/oauth-token
        clientCredentials:
          scopes: {}
          tokenUrl: https://id.teya.com/oauth/v2/oauth-token
      type: oauth2
    Ecommerce_Transaction_Payments_-_Public_oauth:
      flows:
        authorizationCode:
          authorizationUrl: https://id.teya.com/oauth/v2/oauth-authorize
          scopes: {}
          tokenUrl: https://id.teya.com/oauth/v2/oauth-token
        clientCredentials:
          scopes: {}
          tokenUrl: https://id.teya.com/oauth/v2/oauth-token
      type: oauth2
    pbl_oauth_dev:
      flows:
        authorizationCode:
          authorizationUrl: https://id.teya.xyz/oauth/v2/oauth-authorize
          scopes: {}
          tokenUrl: https://id.teya.xyz/oauth/v2/oauth-token
        clientCredentials:
          scopes: {}
          tokenUrl: https://id.teya.xyz/oauth/v2/oauth-token
      type: oauth2
    pbl_oauth_prd:
      flows:
        authorizationCode:
          authorizationUrl: https://id.teya.com/oauth/v2/oauth-authorize
          scopes: {}
          tokenUrl: https://id.teya.com/oauth/v2/oauth-token
        clientCredentials:
          scopes: {}
          tokenUrl: https://id.teya.com/oauth/v2/oauth-token
      type: oauth2
    Teya_Digital_Receipts_Service_oauth_prd:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://id.teya.com/oauth/v2/oauth-authorize
          tokenUrl: https://id.teya.com/oauth/v2/oauth-token
          scopes: {}
    Payments_Refunds_Wrapper_API_oauth_prd:
      type: oauth2
      flows:
        clientCredentials:
          tokenUrl: https://id.teya.com/oauth/v2/oauth-token
          scopes:
            terminal: ''
        authorizationCode:
          authorizationUrl: https://id.teya.com/oauth/v2/oauth-authorize
          tokenUrl: https://id.teya.com/oauth/v2/oauth-token
          scopes: {}