Socotra Payment Execution API

The Payment Execution API from Socotra — 5 operation(s) for payment execution.

Operations 8

POST /payment-execution/{tenantLocator}/paymentProviders #
GET /payment-execution/{tenantLocator}/financialInstruments/{financialInstrumentLocator} #
POST /payment-execution/{tenantLocator}/financialInstruments/{financialInstrumentLocator} #
PATCH /payment-execution/{tenantLocator}/financialInstruments/{financialInstrumentLocator} #
GET /payment-execution/{tenantLocator}/paymentProviders/{locator} #
PATCH /payment-execution/{tenantLocator}/paymentProviders/{locator} #
PATCH /payment-execution/{tenantLocator}/paymentProviders/{locator}/inactivate #
GET /payment-execution/{tenantLocator}/paymentProviders/list #

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/socotra-payment-execution-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

socotra-payment-execution-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Socotra Insurance Suite OpenAPI Definition Payment Execution API
  description: Socotra Insurance Suite API
  termsOfService: https://www.socotra.com
  version: v0
servers:
- url: /
  description: Generated server url
tags:
- name: Payment Execution
paths:
  /payment-execution/{tenantLocator}/paymentProviders:
    post:
      operationId: addPaymentProviderConfiguration
      parameters:
      - name: tenantLocator
        in: path
        required: true
        schema:
          type: string
          format: uuid
          deprecated: false
      requestBody:
        content:
          application/json:
            schema:
              oneOf:
              - $ref: '#/components/schemas/BraintreeConfigurationRequest'
                deprecated: false
              - $ref: '#/components/schemas/StripeConfigurationRequest'
                deprecated: false
              deprecated: false
        required: true
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/PaymentProvider'
                deprecated: false
      x-securityGroup: payment-providers
      x-securityPermission:
      - write
      deprecated: false
      tags:
      - Payment Execution
  /payment-execution/{tenantLocator}/financialInstruments/{financialInstrumentLocator}:
    get:
      operationId: fetchPaymentExecutionConfigurationForFinancialInstrument
      parameters:
      - name: tenantLocator
        in: path
        required: true
        schema:
          type: string
          format: uuid
          deprecated: false
      - name: financialInstrumentLocator
        in: path
        required: true
        schema:
          type: string
          format: ulid
          deprecated: false
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/FinancialInstrumentConfigurationResponse'
                deprecated: false
      x-securityGroup: financial-instruments
      x-securityPermission:
      - read
      deprecated: false
      tags:
      - Payment Execution
    post:
      operationId: addPaymentExecutionConfigurationForFinancialInstrument
      parameters:
      - name: tenantLocator
        in: path
        required: true
        schema:
          type: string
          format: uuid
          deprecated: false
      - name: financialInstrumentLocator
        in: path
        required: true
        schema:
          type: string
          format: ulid
          deprecated: false
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FinancialInstrumentConfigurationRequest'
              deprecated: false
        required: true
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/FinancialInstrumentConfigurationResponse'
                deprecated: false
      x-securityGroup: financial-instruments
      x-securityPermission:
      - write
      deprecated: false
      tags:
      - Payment Execution
    patch:
      operationId: updatePaymentExecutionConfigurationForFinancialInstrument
      parameters:
      - name: tenantLocator
        in: path
        required: true
        schema:
          type: string
          format: uuid
          deprecated: false
      - name: financialInstrumentLocator
        in: path
        required: true
        schema:
          type: string
          format: ulid
          deprecated: false
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FinancialInstrumentConfigurationRequest'
              deprecated: false
        required: true
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/FinancialInstrumentConfigurationResponse'
                deprecated: false
      x-securityGroup: financial-instruments
      x-securityPermission:
      - write
      deprecated: false
      tags:
      - Payment Execution
  /payment-execution/{tenantLocator}/paymentProviders/{locator}:
    get:
      operationId: fetchPaymentProviderConfiguration
      parameters:
      - name: tenantLocator
        in: path
        required: true
        schema:
          type: string
          format: uuid
          deprecated: false
      - name: locator
        in: path
        required: true
        schema:
          type: string
          format: ulid
          deprecated: false
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/PaymentProvider'
                deprecated: false
      x-securityGroup: payment-providers
      x-securityPermission:
      - read
      deprecated: false
      tags:
      - Payment Execution
    patch:
      operationId: updatePaymentProviderConfiguration
      parameters:
      - name: tenantLocator
        in: path
        required: true
        schema:
          type: string
          format: uuid
          deprecated: false
      - name: locator
        in: path
        required: true
        schema:
          type: string
          format: ulid
          deprecated: false
      requestBody:
        content:
          application/json:
            schema:
              oneOf:
              - $ref: '#/components/schemas/BraintreeConfigurationRequest'
                deprecated: false
              - $ref: '#/components/schemas/StripeConfigurationRequest'
                deprecated: false
              deprecated: false
        required: true
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/PaymentProvider'
                deprecated: false
      x-securityGroup: payment-providers
      x-securityPermission:
      - write
      deprecated: false
      tags:
      - Payment Execution
  /payment-execution/{tenantLocator}/paymentProviders/{locator}/inactivate:
    patch:
      operationId: inactivatePaymentProviderConfiguration
      parameters:
      - name: tenantLocator
        in: path
        required: true
        schema:
          type: string
          format: uuid
          deprecated: false
      - name: locator
        in: path
        required: true
        schema:
          type: string
          format: ulid
          deprecated: false
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/PaymentProvider'
                deprecated: false
      x-securityGroup: payment-providers
      x-securityPermission:
      - write
      deprecated: true
      tags:
      - Payment Execution
  /payment-execution/{tenantLocator}/paymentProviders/list:
    get:
      operationId: fetchPaymentProviderConfigurations
      parameters:
      - name: tenantLocator
        in: path
        required: true
        schema:
          type: string
          format: uuid
          deprecated: false
      - name: paymentServiceProvider
        in: query
        required: false
        schema:
          type: string
          enum:
          - braintree
          - braintreeSandbox
          - stripe
          - stripeTest
          deprecated: false
      - name: offset
        in: query
        required: false
        schema:
          type: integer
          format: int32
          deprecated: false
      - name: count
        in: query
        required: false
        schema:
          type: integer
          format: int32
          deprecated: false
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/ListPageResponsePaymentProvider'
                deprecated: false
      x-securityGroup: payment-providers
      x-securityPermission:
      - list
      deprecated: false
      tags:
      - Payment Execution
components:
  schemas:
    ListPageResponsePaymentProvider:
      type: object
      required:
      - listCompleted
      - items
      properties:
        listCompleted:
          type: boolean
          deprecated: false
        items:
          type: array
          deprecated: false
          items:
            $ref: '#/components/schemas/PaymentProvider'
            deprecated: false
      deprecated: false
    FinancialInstrumentConfigurationRequest:
      type: object
      required:
      - paymentProviderLocator
      - offlinePaymentToken
      properties:
        paymentProviderLocator:
          type: string
          format: ulid
          deprecated: false
        offlinePaymentToken:
          type: string
          deprecated: false
        externalAccountNumber:
          type: string
          deprecated: false
      deprecated: false
    StripeConfigurationRequest:
      type: object
      required:
      - paymentProviderState
      - paymentServiceProvider
      - secretKey
      allOf:
      - $ref: '#/components/schemas/PaymentProviderConfigurationRequestPaymentProviderConfiguration'
        deprecated: false
      - type: object
        properties:
          paymentServiceProvider:
            type: string
            enum:
            - braintree
            - braintreeSandbox
            - stripe
            - stripeTest
            deprecated: false
          paymentProviderState:
            type: string
            enum:
            - active
            - inactive
            deprecated: false
          secretKey:
            type: string
            deprecated: false
            writeOnly: true
        deprecated: false
      deprecated: false
    PaymentProvider:
      type: object
      required:
      - locator
      - paymentProviderState
      - paymentServiceProvider
      properties:
        locator:
          type: string
          format: ulid
          deprecated: false
        paymentServiceProvider:
          type: string
          enum:
          - braintree
          - braintreeSandbox
          - stripe
          - stripeTest
          deprecated: false
        paymentProviderState:
          type: string
          enum:
          - active
          - inactive
          deprecated: false
      deprecated: false
    BraintreeConfigurationRequest:
      type: object
      required:
      - paymentProviderState
      - merchantId
      - paymentServiceProvider
      - privateKey
      - publicKey
      allOf:
      - $ref: '#/components/schemas/PaymentProviderConfigurationRequestPaymentProviderConfiguration'
        deprecated: false
      - type: object
        properties:
          paymentServiceProvider:
            type: string
            enum:
            - braintree
            - braintreeSandbox
            - stripe
            - stripeTest
            deprecated: false
          paymentProviderState:
            type: string
            enum:
            - active
            - inactive
            deprecated: false
          merchantId:
            type: string
            deprecated: false
            writeOnly: true
          publicKey:
            type: string
            deprecated: false
            writeOnly: true
          privateKey:
            type: string
            deprecated: false
            writeOnly: true
        deprecated: false
      deprecated: false
    FinancialInstrumentConfigurationResponse:
      type: object
      required:
      - paymentInstrumentLocator
      - paymentProviderLocator
      properties:
        paymentInstrumentLocator:
          type: string
          format: ulid
          deprecated: false
        paymentProviderLocator:
          type: string
          format: ulid
          deprecated: false
        externalAccountNumber:
          type: string
          deprecated: false
      deprecated: false
    PaymentProviderConfigurationRequestPaymentProviderConfiguration:
      type: object
      required:
      - paymentServiceProvider
      properties:
        paymentServiceProvider:
          type: string
          deprecated: false
      discriminator:
        propertyName: paymentServiceProvider
      deprecated: false