{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/divvy/json-schema/divvy-list-export-response-dto-schema.json",
  "title": "ListExportResponseDto",
  "description": "Export response list wrapper.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/divvy-exports-api-openapi.yml#/components/schemas/ListExportResponseDto",
  "type": "object",
  "allOf": [
    {
      "$ref": "#/$defs/ListResponseDto_ExportResponseDto_"
    }
  ],
  "$defs": {
    "ExportEntity": {
      "type": "string",
      "description": "Enumeration of entities that map from bipaas.",
      "enum": [
        "BILL",
        "CUSTOMER",
        "CHART_OF_ACCOUNT",
        "DEPARTMENT",
        "INVOICE",
        "ITEM",
        "JOB",
        "VENDOR",
        "PAYMENT",
        "LOCATION",
        "EMPLOYEE",
        "ACCOUNTING_CLASS",
        "FUND_TRANSFER",
        "PAYMENT_RECEIVED",
        "VENDOR_CREDIT",
        "CREDIT_MEMO",
        "PAYMENT_TERM",
        "BILL_LINE_ITEM",
        "USER",
        "CUSTOMER_CREDIT_LINE_ITEM",
        "ACH_PAYMENT_HISTORY",
        "INVOICE_LINE_ITEM",
        "RECEIVABLE_CUSTOM_FIELD",
        "BILL_PAYMENT",
        "INVOICE_PAYMENT",
        "VENDOR_CREDIT_LINE_ITEM",
        "AMORTIZATION_SCHEDULE",
        "JOURNAL_ENTRY",
        "INTEGRATION_STATUS",
        "CARD_TRANSACTION",
        "REIMBURSEMENT",
        "PURCHASE_ORDER",
        "PURCHASE_ORDER_LINE_ITEM",
        "PAYMENT_FEES",
        "UNDEFINED"
      ]
    },
    "ExportResponseDto": {
      "type": "object",
      "properties": {
        "entity": {
          "allOf": [
            {
              "$ref": "#/$defs/ExportEntity"
            },
            {
              "description": "Exported record entity name."
            }
          ]
        },
        "name": {
          "type": "string",
          "description": "Exported record template name.\n\nIn the BILL web app, if you create a template for exported records (**Settings > Import & export > Custom File Integration > Teamplates**), `name` is set as the template name. If a template is not created, `name` is set as a BILL-generated value."
        },
        "processedTime": {
          "type": "string",
          "description": "Export operation processed date and time",
          "format": "date-time"
        },
        "status": {
          "allOf": [
            {
              "$ref": "#/$defs/ExportStatus"
            },
            {
              "description": "Export operation status."
            }
          ]
        },
        "fileName": {
          "type": "string",
          "description": "Exported record file name"
        },
        "exportId": {
          "type": "string",
          "description": "BILL-generated ID of the exported record file.\n\nUse this value to get the download URL for the exported record file with `GET /v3/exports/{exportId}/download-link`."
        }
      },
      "description": "Exports response."
    },
    "ExportStatus": {
      "type": "string",
      "description": "Enumeration of entities that map from bipaas.",
      "enum": [
        "CREATED",
        "QUEUED",
        "IN_PROGRESS",
        "DATA_REQUESTED",
        "DATA_GENERATION_IN_PROGRESS",
        "FILE_READY_FOR_TRANSFER",
        "FILE_TRANSFER_IN_PROGRESS",
        "FILE_TRANSFERRED",
        "FILE_TRANSFER_FAILED",
        "SUCCESS",
        "PARTIAL_SUCCESS",
        "FAILED",
        "CANCELLED",
        "EXPIRED",
        "UNDEFINED"
      ]
    },
    "ListResponseDto_ExportResponseDto_": {
      "type": "object",
      "properties": {
        "nextPage": {
          "type": "string"
        },
        "prevPage": {
          "type": "string"
        },
        "results": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ExportResponseDto"
          }
        }
      },
      "description": "Response from a list API request with paging references."
    }
  }
}