DealHub Import API

The Import API from DealHub — 10 operation(s) for import.

Operations 11

GET /import/{importId}/result Get import details #
GET /import Gets all import items #
POST /import Validate import file #
GET /import/{importId} Gets an import item #
GET /import/export/newOrders Get new orders in import CSV format #
GET /import/export/amendmentOrders Get amendment orders in import CSV format #
GET /import/export/accountContact Get account contacts for export #
GET /import/export/catalog Get catalog data for export #
PUT /import/{importId}/process Process an import by ID #
GET /import/schemas Return available schemas #
POST /import/flatfile/{domain} Create a Flatfile workbook #

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/dealhub-import-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 email required.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

dealhub-import-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 1.0.0
  title: Subskribe Import API
servers:
- url: https://api.app.subskribe.com
security:
- ApiKeyAuth: []
tags:
- name: Import
paths:
  /import/{importId}/result:
    get:
      tags:
      - Import
      summary: Get import details
      description: Returns the details of an import by its ID
      operationId: getImportResult_2
      parameters:
      - name: importId
        in: path
        required: true
        schema:
          type: string
      responses:
        default:
          description: successful operation
  /import:
    get:
      tags:
      - Import
      summary: Gets all import items
      description: Gets all items that was imported
      operationId: getDataImports
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataImport'
    post:
      tags:
      - Import
      summary: Validate import file
      description: Validates a multi-part import file. Returns an import ID on success.
      operationId: validateMultiPartFileImport
      requestBody:
        $ref: '#/components/requestBodies/uploadApprovalMatrixCSV'
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                type: string
  /import/{importId}:
    get:
      tags:
      - Import
      summary: Gets an import item
      description: Gets an item that was imported by its ID
      operationId: getDataImportById
      parameters:
      - name: importId
        in: path
        description: id of the item
        required: true
        schema:
          type: string
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataImport'
  /import/export/newOrders:
    get:
      tags:
      - Import
      summary: Get new orders in import CSV format
      description: Gets new orders in a format appropriate for re-import. On success, the output is a csv containing the orders.
      operationId: getNewOrderExportInImportFormat
      parameters:
      - name: useRealIds
        in: query
        description: use the subskribe ID instead of external ID for exported objects
        required: false
        schema:
          type: boolean
      responses:
        default:
          description: successful operation
  /import/export/amendmentOrders:
    get:
      tags:
      - Import
      summary: Get amendment orders in import CSV format
      description: Gets amendment orders in a format appropriate for re-import for the given generation. On success, the output is a csv containing the orders.
      operationId: getAmendmentOrderExportInImportFormat
      parameters:
      - name: generation
        in: query
        description: the generation of amendments to include in the export, generations are defined as 1 based index of number of amendments applied to subscription
        required: false
        schema:
          type: integer
          format: int32
      - name: useRealIds
        in: query
        description: use the subskribe ID instead of external ID for exported objects
        required: false
        schema:
          type: boolean
      responses:
        default:
          description: successful operation
  /import/export/accountContact:
    get:
      tags:
      - Import
      summary: Get account contacts for export
      description: Gets account contacts in a format appropriate for re-import. On success, the output is a csv containing the account and contacts.
      operationId: getAccountContactsInImportFormat
      responses:
        default:
          description: successful operation
  /import/export/catalog:
    get:
      tags:
      - Import
      summary: Get catalog data for export
      description: Gets catalog data in a format appropriate for re-import. On success, the output is a csv containing the catalog data containing Product, Plan and Charge data.
      operationId: getCatalogDataInImportFormat
      responses:
        default:
          description: successful operation
  /import/{importId}/process:
    put:
      tags:
      - Import
      summary: Process an import by ID
      description: Processes the import specified.
      operationId: processImport
      parameters:
      - name: importId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataImport'
  /import/schemas:
    get:
      tags:
      - Import
      summary: Return available schemas
      description: Returns the set of schemas available for import
      operationId: getAvailableSchemas
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  type: array
                  items:
                    type: object
  /import/flatfile/{domain}:
    post:
      tags:
      - Import
      summary: Create a Flatfile workbook
      description: Creates a Flatfile workbook and adds it to a space
      operationId: createFlatfileWorkbook
      parameters:
      - name: domain
        in: path
        description: the domain to import
        required: true
        schema:
          type: string
          enum:
          - ORDER
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FlatfileWorkbookResponse'
components:
  requestBodies:
    uploadApprovalMatrixCSV:
      content:
        multipart/form-data:
          schema:
            type: object
            properties:
              file:
                type: string
                format: binary
  schemas:
    FlatfileWorkbookResponseData:
      type: object
      required:
      - environmentId
      - spaceId
      properties:
        spaceId:
          type: string
          readOnly: true
        environmentId:
          type: string
          readOnly: true
    FlatfileWorkbookResponse:
      type: object
      required:
      - data
      properties:
        data:
          $ref: '#/components/schemas/FlatfileWorkbookResponseData'
    DataImport:
      type: object
      properties:
        importId:
          type: string
        entityIds:
          type: array
          uniqueItems: true
          items:
            type: string
        fileName:
          type: string
        fileType:
          type: string
          enum:
          - CSV
        fileSizeBytes:
          type: integer
          format: int64
        rowCount:
          type: integer
          format: int64
        importedBy:
          type: string
        importedByUserId:
          type: string
        importedOn:
          type: integer
          format: int64
        domain:
          type: string
          enum:
          - CATALOG
          - ACCOUNT
          - ORDER
          - USAGE
          - BULK_ACCOUNT_UPDATE
          - BULK_ORDER_UPDATE
          - BULK_SUBSCRIPTION_UPDATE
          - BULK_PRODUCT_UPDATE
          - BULK_PLAN_UPDATE
        operation:
          type: string
          enum:
          - CREATE
          - UPDATE
        status:
          type: string
          enum:
          - VALIDATED
          - PROCESSING
          - SUCCESSFUL
          - FAILED
          - PARTIALLY_SUCCESSFUL
        completedOn:
          type: integer
          format: int64
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key