HighLevel Custom Provider API

Documentation for payments API

Operations 6

POST /payments/custom-provider/provider Create new integration #
DELETE /payments/custom-provider/provider Deleting an existing integration #
GET /payments/custom-provider/connect Fetch given provider config #
POST /payments/custom-provider/connect Create new provider config #
POST /payments/custom-provider/disconnect Disconnect existing provider config #
PUT /payments/custom-provider/capabilities Custom-provider marketplace app update capabilities #

Specifications

Schemas & Data

📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-campaign-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-upsert-ad-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-upsert-segment-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-create-lead-form-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-upsert-conversion-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-upsert-adset-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-estimate-response-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-estimate-template-response-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-get-invoice-response-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-update-estimate-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-text2-pay-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-create-estimates-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-create-post-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-post-create-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-search-post-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-set-accounts-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-bulk-delete-response-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-get-by-location-id-response-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-calendar-create-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-calendar-update-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-appointment-create-schema-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-appointment-edit-schema-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-update-calendar-notifications-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-create-calendar-notification-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-update-product-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-create-price-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-update-price-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-create-product-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-create-product-response-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-get-product-response-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-get-subscription-response-schema-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-get-txn-response-schema-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-get-order-response-schema-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-create-coupon-response-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-connect-custom-providers-response-schema-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-create-custom-providers-response-schema-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-get-available-shipping-rates-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-create-shipping-rate-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-update-shipping-rate-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-create-shipping-carrier-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-update-shipping-carrier-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-create-store-setting-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-send-message-body-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-get-message-response-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-process-message-body-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-get-email-message-response-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-get-conversation-by-id-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-user-subscription-change-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-create-location-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-update-location-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-create-location-successful-response-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-recurring-task-create-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-create-custom-fields-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-recurring-task-update-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-upsert-contact-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-create-contact-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-update-contact-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-update-tags-response-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-update-tags-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-contacts-business-update-schema.json

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/highlevel:highlevel-custom-provider-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

highlevel-custom-provider-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Payments Custom Provider API
  description: Documentation for payments API
  version: '1.0'
  contact: {}
servers:
- url: https://services.leadconnectorhq.com
tags:
- name: Custom Provider
  description: Documentation for payments API
paths:
  /payments/custom-provider/provider:
    post:
      operationId: create-integration
      summary: Create new integration
      description: API to create a new association for an app and location
      parameters:
      - name: Version
        in: header
        description: API Version
        required: true
        schema:
          type: string
          enum:
          - '2021-07-28'
      - name: locationId
        required: true
        in: query
        description: Location id
        schema:
          example: Lk3nlfk4lxlelVEwcW
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateCustomProvidersDto'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateCustomProvidersResponseSchema'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: ../common/common-schemas.json#/components/schemas/BadRequestDTO
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: ../common/common-schemas.json#/components/schemas/UnauthorizedDTO
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: ../common/common-schemas.json#/components/schemas/UnprocessableDTO
      tags:
      - Custom Provider
      security:
      - Location-Access:
        - payments/custom-provider.write
    delete:
      operationId: delete-integration
      summary: Deleting an existing integration
      description: API to delete an association for an app and location
      parameters:
      - name: Version
        in: header
        description: API Version
        required: true
        schema:
          type: string
          enum:
          - '2021-07-28'
      - name: locationId
        required: true
        in: query
        description: Location id
        schema:
          example: Lk3nlfk4lxlelVEwcW
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteCustomProvidersResponseSchema'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: ../common/common-schemas.json#/components/schemas/BadRequestDTO
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: ../common/common-schemas.json#/components/schemas/UnauthorizedDTO
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: ../common/common-schemas.json#/components/schemas/UnprocessableDTO
      tags:
      - Custom Provider
      security:
      - Location-Access:
        - payments/custom-provider.write
  /payments/custom-provider/connect:
    get:
      operationId: fetch-config
      summary: Fetch given provider config
      description: API for fetching an existing payment config for given location
      parameters:
      - name: Version
        in: header
        description: API Version
        required: true
        schema:
          type: string
          enum:
          - '2021-07-28'
      - name: locationId
        required: true
        in: query
        description: Location id
        schema:
          example: Lk3nlfk4lxlelVEwcW
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetCustomProvidersResponseSchema'
        '400':
          description: No such config exists for given locationId and marketplaceAppId
          content:
            application/json:
              schema:
                $ref: ../common/common-schemas.json#/components/schemas/BadRequestDTO
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: ../common/common-schemas.json#/components/schemas/UnauthorizedDTO
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: ../common/common-schemas.json#/components/schemas/UnprocessableDTO
      tags:
      - Custom Provider
      security:
      - Location-Access:
        - payments/custom-provider.readonly
    post:
      operationId: create-config
      summary: Create new provider config
      description: API to create a new payment config for given location
      parameters:
      - name: Version
        in: header
        description: API Version
        required: true
        schema:
          type: string
          enum:
          - '2021-07-28'
      - name: locationId
        required: true
        in: query
        description: Location id
        schema:
          example: Lk3nlfk4lxlelVEwcW
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConnectCustomProvidersConfigDto'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConnectCustomProvidersResponseSchema'
        '400':
          description: No such config exists for given locationId and marketplaceAppId
          content:
            application/json:
              schema:
                $ref: ../common/common-schemas.json#/components/schemas/BadRequestDTO
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: ../common/common-schemas.json#/components/schemas/UnauthorizedDTO
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: ../common/common-schemas.json#/components/schemas/UnprocessableDTO
      tags:
      - Custom Provider
      security:
      - Location-Access:
        - payments/custom-provider.write
  /payments/custom-provider/disconnect:
    post:
      operationId: disconnect-config
      summary: Disconnect existing provider config
      description: API to disconnect an existing payment config for given location
      parameters:
      - name: Version
        in: header
        description: API Version
        required: true
        schema:
          type: string
          enum:
          - '2021-07-28'
      - name: locationId
        required: true
        in: query
        description: Location id
        schema:
          example: Lk3nlfk4lxlelVEwcW
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteCustomProvidersConfigDto'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DisconnectCustomProvidersResponseSchema'
        '400':
          description: No such config exists for given locationId and marketplaceAppId
          content:
            application/json:
              schema:
                $ref: ../common/common-schemas.json#/components/schemas/BadRequestDTO
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: ../common/common-schemas.json#/components/schemas/UnauthorizedDTO
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: ../common/common-schemas.json#/components/schemas/UnprocessableDTO
      tags:
      - Custom Provider
      security:
      - Location-Access:
        - payments/custom-provider.write
  /payments/custom-provider/capabilities:
    put:
      operationId: custom-provider-marketplace-app-update-capabilities
      summary: Custom-provider marketplace app update capabilities
      description: Toggle capabilities for the marketplace app tied to the OAuth client
      parameters:
      - name: Version
        in: header
        description: API Version
        required: true
        schema:
          type: string
          enum:
          - '2021-07-28'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateCustomProviderCapabilitiesDto'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateCustomProviderCapabilitiesResponseSchema'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: ../common/common-schemas.json#/components/schemas/BadRequestDTO
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: ../common/common-schemas.json#/components/schemas/UnauthorizedDTO
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: ../common/common-schemas.json#/components/schemas/UnprocessableDTO
      tags:
      - Custom Provider
      security:
      - Location-Access:
        - payments/custom-provider.write
components:
  schemas:
    DeleteCustomProvidersResponseSchema:
      type: object
      properties:
        success:
          type: boolean
          description: Whether the custom provider config is disconnect or not. true represents config is disconnect
          example: 'true'
      required:
      - success
    CreateCustomProvidersDto:
      type: object
      properties:
        name:
          type: string
          description: The name of the custom provider
          example: Company Paypal Integration
        description:
          type: string
          description: Description of payment gateway. Shown on the payments integrations page as subtext
          example: This payment gateway supports payments in India via UPI, Net banking, cards and wallets.
        paymentsUrl:
          type: string
          description: This url will be loaded in iFrame to start a payment session.
          example: https://testpayment.paypal.com
        queryUrl:
          type: string
          description: The url used for querying payments related events. Ex. verify, refund, subscription etc.
          example: https://testsubscription.paypal.com
        imageUrl:
          type: string
          description: Public image url for logo of the payment gateway displayed on the payments integrations page.
          example: https://testsubscription.paypal.com
        supportsSubscriptionSchedule:
          type: boolean
          description: Whether the config supports subscription schedule or not. true represents config supports subscription schedule
          example: true
      required:
      - name
      - description
      - paymentsUrl
      - queryUrl
      - imageUrl
      - supportsSubscriptionSchedule
    DisconnectCustomProvidersResponseSchema:
      type: object
      properties:
        success:
          type: boolean
          description: Whether the custom provider config is disconnect or not. true represents config is disconnect
          example: 'true'
      required:
      - success
    ConnectCustomProvidersResponseSchema:
      type: object
      properties:
        name:
          type: string
          description: The name of the custom provider
          example: Company Paypal Integration
        description:
          type: string
          description: Description of payment gateway. Shown on the payments integrations page as subtext
          example: This payment gateway supports payments in India via UPI, Net banking, cards and wallets.
        paymentsUrl:
          type: string
          description: This url will be loaded in iFrame to start a payment session.
          example: https://testpayment.paypal.com
        queryUrl:
          type: string
          description: The url used for querying payments related events. Ex. verify, refund, subscription etc.
          example: https://testsubscription.paypal.com
        imageUrl:
          type: string
          description: Public image url for logo of the payment gateway displayed on the payments integrations page.
          example: https://testsubscription.paypal.com
        _id:
          type: string
          description: The unique identifier for the custom provider.
          example: 662a44ad19a2a44d3cd9d749
        locationId:
          type: string
          description: Location id
          example: Lk3nlfk4lxlelVEwcW
        marketplaceAppId:
          type: string
          description: The application id of marketplace
          example: 65f0b217a05c774da7f1efa5
        paymentProvider:
          type: object
          description: Payment provider details.
          example: '{ live: { liveMode: true }, test: { liveMode: false, apiKey: "y5ZQxryRFXZHvUJZdLXXXXXX", publishableKey: "rzp_test_zPRoVMLOa0A9wo" }}'
        deleted:
          type: boolean
          description: Whether the config is deleted or not. true represents config is deleted
          example: true
        createdAt:
          format: date-time
          type: string
          description: The creation timestamp of the custom provider.
          example: '2023-11-20T10:23:36.515Z'
        updatedAt:
          format: date-time
          type: string
          description: The last update timestamp of the custom provider.
          example: '2024-01-23T09:57:04.846Z'
        traceId:
          type: string
          description: Trace id of the custom provider.
          example: 302d2cf4-1ba0-4bf5-bc3b-f8fa76fda58a
      required:
      - name
      - description
      - paymentsUrl
      - queryUrl
      - imageUrl
      - _id
      - locationId
      - marketplaceAppId
      - deleted
      - createdAt
      - updatedAt
    GetCustomProvidersResponseSchema:
      type: object
      properties:
        name:
          type: string
          description: The name of the custom provider
          example: Company Paypal Integration
        description:
          type: string
          description: Description of payment gateway. Shown on the payments integrations page as subtext
          example: This payment gateway supports payments in India via UPI, Net banking, cards and wallets.
        paymentsUrl:
          type: string
          description: This url will be loaded in iFrame to start a payment session.
          example: https://testpayment.paypal.com
        queryUrl:
          type: string
          description: The url used for querying payments related events. Ex. verify, refund, subscription etc.
          example: https://testsubscription.paypal.com
        imageUrl:
          type: string
          description: Public image url for logo of the payment gateway displayed on the payments integrations page.
          example: https://testsubscription.paypal.com
        _id:
          type: string
          description: The unique identifier for the custom provider.
          example: 662a44ad19a2a44d3cd9d749
        locationId:
          type: string
          description: Location id
          example: Lk3nlfk4lxlelVEwcW
        marketplaceAppId:
          type: string
          description: The application id of marketplace
          example: 65f0b217a05c774da7f1efa5
        paymentProvider:
          type: object
          description: Payment provider details.
          example: '{ live: { liveMode: true }, test: { liveMode: false, apiKey: "y5ZQxryRFXZHvUJZdLXXXXXX", publishableKey: "rzp_test_zPRoVMLOa0A9wo" }}'
        deleted:
          type: boolean
          description: Whether the config is deleted or not. true represents config is deleted
          example: true
        createdAt:
          format: date-time
          type: string
          description: The creation timestamp of the custom provider.
          example: '2023-11-20T10:23:36.515Z'
        updatedAt:
          format: date-time
          type: string
          description: The last update timestamp of the custom provider.
          example: '2024-01-23T09:57:04.846Z'
        traceId:
          type: string
          description: Trace id of the custom provider.
          example: 302d2cf4-1ba0-4bf5-bc3b-f8fa76fda58a
      required:
      - name
      - description
      - paymentsUrl
      - queryUrl
      - imageUrl
      - _id
      - locationId
      - marketplaceAppId
      - deleted
      - createdAt
      - updatedAt
    CreateCustomProvidersResponseSchema:
      type: object
      properties:
        name:
          type: string
          description: The name of the custom provider
          example: Company Paypal Integration
        description:
          type: string
          description: Description of payment gateway. Shown on the payments integrations page as subtext
          example: This payment gateway supports payments in India via UPI, Net banking, cards and wallets.
        paymentsUrl:
          type: string
          description: This url will be loaded in iFrame to start a payment session.
          example: https://testpayment.paypal.com
        queryUrl:
          type: string
          description: The url used for querying payments related events. Ex. verify, refund, subscription etc.
          example: https://testsubscription.paypal.com
        imageUrl:
          type: string
          description: Public image url for logo of the payment gateway displayed on the payments integrations page.
          example: https://testsubscription.paypal.com
        _id:
          type: string
          description: The unique identifier for the custom provider.
          example: 662a44ad19a2a44d3cd9d749
        locationId:
          type: string
          description: Location id
          example: Lk3nlfk4lxlelVEwcW
        marketplaceAppId:
          type: string
          description: The application id of marketplace
          example: 65f0b217a05c774da7f1efa5
        paymentProvider:
          type: object
          description: Payment provider details.
          example: '{ live: { liveMode: true }, test: { liveMode: false, apiKey: "y5ZQxryRFXZHvUJZdLXXXXXX", publishableKey: "rzp_test_zPRoVMLOa0A9wo" }}'
        deleted:
          type: boolean
          description: Whether the config is deleted or not. true represents config is deleted
          example: true
        createdAt:
          format: date-time
          type: string
          description: The creation timestamp of the custom provider.
          example: '2023-11-20T10:23:36.515Z'
        updatedAt:
          format: date-time
          type: string
          description: The last update timestamp of the custom provider.
          example: '2024-01-23T09:57:04.846Z'
        traceId:
          type: string
          description: Trace id of the custom provider.
          example: 302d2cf4-1ba0-4bf5-bc3b-f8fa76fda58a
      required:
      - name
      - description
      - paymentsUrl
      - queryUrl
      - imageUrl
      - _id
      - locationId
      - marketplaceAppId
      - deleted
      - createdAt
      - updatedAt
    UpdateCustomProviderCapabilitiesDto:
      type: object
      properties:
        supportsSubscriptionSchedules:
          type: boolean
          description: Whether the marketplace app supports subscription schedules or not
          example: true
        companyId:
          type: string
          description: Company id. Mandatory if locationId is not provided
          example: Yjnwuduw83e8x30sm0
        locationId:
          type: string
          description: Location / Sub-account id. Mandatory if companyId is not provided
          example: Yjnwuduw83e8x30sm0
      required:
      - supportsSubscriptionSchedules
    CustomProviderKeys:
      type: object
      properties:
        apiKey:
          type: string
          description: Api-key for custom payment provider config
          example: y5ZQxryRFXZHvUJZdLeXXXXX
        publishableKey:
          type: string
          description: Publishable-key for custom payment provider config
          example: rzp_test_zPRoVMLOa0XXXX
      required:
      - apiKey
      - publishableKey
    ConnectCustomProvidersConfigDto:
      type: object
      properties:
        live:
          description: Live config containing api-key and publishable key for live payments
          allOf:
          - $ref: '#/components/schemas/CustomProviderKeys'
        test:
          description: Test config containing api-key and publishable-key for test payments
          allOf:
          - $ref: '#/components/schemas/CustomProviderKeys'
      required:
      - live
      - test
    DeleteCustomProvidersConfigDto:
      type: object
      properties:
        liveMode:
          type: boolean
          description: Whether the config is for test mode or live mode. true represents config is for live payments
          example: 'true'
      required:
      - liveMode
    UpdateCustomProviderCapabilitiesResponseSchema:
      type: object
      properties:
        success:
          type: boolean
          description: Whether the custom provider capabilities are updated or not. true represents capabilities are updated
          example: 'true'
      required:
      - success
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      name: Authorization
      in: header
      description: Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account.
      type: http
    Location-Access:
      scheme: bearer
      bearerFormat: JWT
      name: Authorization
      in: header
      description: Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account.
      type: http
    Location-Access-Only:
      scheme: bearer
      bearerFormat: JWT
      name: Authorization
      in: header
      description: Use the Access Token generated with user type as Sub-Account.
      type: http
    Agency-Access:
      scheme: bearer
      bearerFormat: JWT
      name: Authorization
      in: header
      description: Use the Access Token generated with user type as Agency (OR) Private Integration Token of Agency.
      type: http
    Agency-Access-Only:
      scheme: bearer
      bearerFormat: JWT
      name: Authorization
      in: header
      description: Use the Access Token generated with user type as Agency.
      type: http
x-tagGroups:
  name: Payments
  tags:
  - Payments
  - Integrations
  - Orders
  - Order fulfillments
  - Order Notes
  - Transactions
  - Subscriptions
  - Coupons
  - Custom Provider