Infinicept Close Reason API

The Close Reason API from Infinicept, for close reason.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 6

GET /api/{tenantId}/close-reasons Review Close Reasons #
POST /api/{tenantId}/close-reasons Create a Close Reason #
GET /api/{tenantId}/close-reasons/{id} Review a Close Reason by ID #
PUT /api/{tenantId}/close-reasons/{id} Update a Close Reason #
DELETE /api/{tenantId}/close-reasons/{id} Deactivate a Close Reason #
POST /api/{tenantId}/close-reasons/{id}/activate Reactivate a Close Reason #

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/infinicept:infinicept-close-reason-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

infinicept-close-reason-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Backoffice Close Reason API
  version: v1
security:
- globalAuth: []
tags:
- name: Close Reason
paths:
  /api/{tenantId}/close-reasons:
    get:
      tags:
      - Close Reason
      summary: Review Close Reasons
      description: 'Returns the tenant''s saved close reasons. A close reason records why a submerchant was closed. A reason can be recorded each time a submerchant moves to a Canceled, CancelledWithProcessor, or Deleted status, and is required only when the tenant''s Require Close Reason option is on. Send a reason''s `id` as `closeReasonId` when closing a submerchant with Disable a Submerchant or Update Submerchant Information.


        Every tenant starts with a default list of close reasons, which can be updated, deactivated, and reactivated like any other reason. By default, only active reasons are returned. Set `includeInactive` to true to include deactivated reasons. Results are sorted by `id`.'
      operationId: CloseReasons_List
      parameters:
      - in: header
        name: x-AuthenticationKeyId
        description: The API key id used to authenticate and authorize your request to Infinicept. API keys are managed within your Backoffice tenant.
        required: true
        schema:
          type: string
      - in: header
        name: x-AuthenticationKeyValue
        description: The API key value used to authenticate and authorize your request to Infinicept. API keys are managed within your Backoffice tenant.
        required: true
        schema:
          type: string
      - in: query
        name: includeInactive
        description: Set to true to include deactivated close reasons in the results. Defaults to false, which returns active close reasons only.
        schema:
          type: boolean
          default: false
      - in: path
        name: tenantId
        description: The tenant identifier.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/CloseReasonDto'
        '404':
          description: Not Found
    post:
      tags:
      - Close Reason
      summary: Create a Close Reason
      description: 'Adds a close reason to the tenant''s list. The new reason is active and available for new closures. In Backoffice, users select it in the Close Reason window. Through the API, send its `id` as `closeReasonId` when closing a submerchant with Disable a Submerchant or Update Submerchant Information.


        Each close reason must be unique, and capitalization is ignored when checking, so "Fraud" and "fraud" count as the same reason.


        If the text matches a deactivated close reason, no new reason is created. Instead, the deactivated reason is reactivated, and the response returns it with its original `id` and text.'
      operationId: CloseReasons_Create
      parameters:
      - in: header
        name: x-AuthenticationKeyId
        description: The API key id used to authenticate and authorize your request to Infinicept. API keys are managed within your Backoffice tenant.
        required: true
        schema:
          type: string
      - in: header
        name: x-AuthenticationKeyValue
        description: The API key value used to authenticate and authorize your request to Infinicept. API keys are managed within your Backoffice tenant.
        required: true
        schema:
          type: string
      - in: path
        name: tenantId
        description: The tenant identifier.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloseReasonDto'
        '404':
          description: Not Found
        '400':
          description: Bad Request
      requestBody:
        content:
          application/json-patch+json:
            schema:
              $ref: '#/components/schemas/CreateCloseReasonRequest'
          application/json:
            schema:
              $ref: '#/components/schemas/CreateCloseReasonRequest'
          text/json:
            schema:
              $ref: '#/components/schemas/CreateCloseReasonRequest'
          application/*+json:
            schema:
              $ref: '#/components/schemas/CreateCloseReasonRequest'
  /api/{tenantId}/close-reasons/{id}:
    get:
      tags:
      - Close Reason
      summary: Review a Close Reason by ID
      description: Returns a single close reason by its `id`, whether it is active or deactivated.
      operationId: CloseReasons_Get
      parameters:
      - in: header
        name: x-AuthenticationKeyId
        description: The API key id used to authenticate and authorize your request to Infinicept. API keys are managed within your Backoffice tenant.
        required: true
        schema:
          type: string
      - in: header
        name: x-AuthenticationKeyValue
        description: The API key value used to authenticate and authorize your request to Infinicept. API keys are managed within your Backoffice tenant.
        required: true
        schema:
          type: string
      - in: path
        name: id
        description: The identification number of the close reason.
        required: true
        schema:
          type: integer
          format: int32
      - in: path
        name: tenantId
        description: The tenant identifier.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloseReasonDto'
        '404':
          description: Not Found
    put:
      tags:
      - Close Reason
      summary: Update a Close Reason
      description: 'Updating a close reason''s text creates a new close reason with the new text and a new `id`. The original close reason is deactivated, so closures that already used it keep its original wording. Use the new `id` for future closures.


        If only the capitalization changes, the existing close reason is updated instead and keeps its `id`.


        The new text cannot match any other close reason, active or deactivated. Capitalization is ignored when checking, so "Fraud" and "fraud" count as the same reason.'
      operationId: CloseReasons_Update
      parameters:
      - in: header
        name: x-AuthenticationKeyId
        description: The API key id used to authenticate and authorize your request to Infinicept. API keys are managed within your Backoffice tenant.
        required: true
        schema:
          type: string
      - in: header
        name: x-AuthenticationKeyValue
        description: The API key value used to authenticate and authorize your request to Infinicept. API keys are managed within your Backoffice tenant.
        required: true
        schema:
          type: string
      - in: path
        name: id
        description: The identification number of the close reason to change.
        required: true
        schema:
          type: integer
          format: int32
      - in: path
        name: tenantId
        description: The tenant identifier.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloseReasonDto'
        '404':
          description: Not Found
        '400':
          description: Bad Request
      requestBody:
        content:
          application/json-patch+json:
            schema:
              $ref: '#/components/schemas/UpdateCloseReasonRequest'
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateCloseReasonRequest'
          text/json:
            schema:
              $ref: '#/components/schemas/UpdateCloseReasonRequest'
          application/*+json:
            schema:
              $ref: '#/components/schemas/UpdateCloseReasonRequest'
    delete:
      tags:
      - Close Reason
      summary: Deactivate a Close Reason
      description: 'Deactivates a close reason so it can no longer be used for new closures. Close reasons are never permanently deleted. Closures that already use the reason keep it, so it still appears on those submerchants and in the Closed Accounts export.


        A deactivated close reason can be reactivated with Reactivate a Close Reason.'
      operationId: CloseReasons_Delete
      parameters:
      - in: header
        name: x-AuthenticationKeyId
        description: The API key id used to authenticate and authorize your request to Infinicept. API keys are managed within your Backoffice tenant.
        required: true
        schema:
          type: string
      - in: header
        name: x-AuthenticationKeyValue
        description: The API key value used to authenticate and authorize your request to Infinicept. API keys are managed within your Backoffice tenant.
        required: true
        schema:
          type: string
      - in: path
        name: id
        description: The identification number of the close reason to deactivate.
        required: true
        schema:
          type: integer
          format: int32
      - in: path
        name: tenantId
        description: The tenant identifier.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloseReasonDto'
        '404':
          description: Not Found
  /api/{tenantId}/close-reasons/{id}/activate:
    post:
      tags:
      - Close Reason
      summary: Reactivate a Close Reason
      description: Reactivates a deactivated close reason so it can be used for new closures again. The close reason keeps its original `id` and text.
      operationId: CloseReasons_Activate
      parameters:
      - in: header
        name: x-AuthenticationKeyId
        description: The API key id used to authenticate and authorize your request to Infinicept. API keys are managed within your Backoffice tenant.
        required: true
        schema:
          type: string
      - in: header
        name: x-AuthenticationKeyValue
        description: The API key value used to authenticate and authorize your request to Infinicept. API keys are managed within your Backoffice tenant.
        required: true
        schema:
          type: string
      - in: path
        name: id
        description: The identification number of the close reason to reactivate.
        required: true
        schema:
          type: integer
          format: int32
      - in: path
        name: tenantId
        description: The tenant identifier.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloseReasonDto'
        '404':
          description: Not Found
components:
  schemas:
    UpdateCloseReasonRequest:
      required:
      - reasonText
      type: object
      properties:
        reasonText:
          description: The new text of the close reason, up to 200 characters. Must contain characters other than spaces.
          maxLength: 200
          type: string
          example: Merchant asked to close the account
    CloseReasonDto:
      type: object
      properties:
        id:
          format: int32
          description: The identification number of the close reason. Send it as `closeReasonId` when closing a submerchant.
          type: integer
          example: 13
        reasonText:
          description: The text of the close reason, up to 200 characters. Each close reason's text is unique within the tenant, ignoring capitalization.
          type: string
          example: Excessive Chargebacks
        isActive:
          description: Indicates whether the close reason can be used for new closures. Closures that already use a deactivated reason keep it.
          type: boolean
          example: true
        createdAt:
          format: date-time
          description: The date and time the close reason was created.
          type: string
          example: 9/15/2026 5:38:45 PM +00:00
        updatedAt:
          format: date-time
          description: The date and time the close reason was last changed, including when it was deactivated or reactivated.
          type: string
          example: 9/15/2026 5:38:45 PM +00:00
    CreateCloseReasonRequest:
      required:
      - reasonText
      type: object
      properties:
        reasonText:
          description: The text of the close reason, up to 200 characters. Must contain characters other than spaces.
          maxLength: 200
          type: string
          example: Merchant requested closure
  securitySchemes:
    globalAuth:
      type: apiKey
      name: AuthenticationKey
      in: header