{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/getsmileapi/json-schema/getsmileapi-account-export-generate-response-schema.json",
  "title": "AccountExportGenerateResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/getsmileapi-accounts-api-openapi.yml#/components/schemas/AccountExportGenerateResponse",
  "type": "object",
  "properties": {
    "code": {
      "$ref": "#/$defs/ObjectMetadataRefCode"
    },
    "message": {
      "$ref": "#/$defs/ObjectMetadataRefMessage"
    },
    "requestId": {
      "$ref": "#/$defs/ObjectMetadataRefRequestID"
    },
    "data": {
      "$ref": "#/$defs/AccountExport"
    }
  },
  "$defs": {
    "AccountExport": {
      "type": "object",
      "required": [
        "id",
        "accountId",
        "exportExtensionType",
        "createdAt",
        "downloadUrl",
        "md5"
      ],
      "properties": {
        "accountId": {
          "type": "string",
          "description": "The particular account ID"
        },
        "id": {
          "type": "string",
          "description": "The unique ID of this export"
        },
        "downloadUrl": {
          "type": "string",
          "description": "The url which can download the export. This url will become invalid after account revoked or more than 60 days ago."
        },
        "exportExtensionType": {
          "$ref": "#/$defs/ExportExtensionType"
        },
        "md5": {
          "type": "string",
          "description": "You can use this value to check whether the file is modified. Smile use Md5 algorithm to generate the value"
        },
        "createdAt": {
          "$ref": "#/$defs/RefDateTime"
        }
      }
    },
    "ExportExtensionType": {
      "type": "string",
      "description": "The type of the export",
      "enum": [
        "PDF",
        "CSV"
      ]
    },
    "ObjectMetadataRefCode": {
      "type": "string",
      "title": "ObjectMetadataRefCode",
      "description": "Request status code",
      "enum": [
        "OK",
        "CREATED",
        "INVALID_CREDENTIALS",
        "INVALID_PARAMETERS",
        "INVALID_TOKEN",
        "UNAUTHORIZED_ACCESS",
        "MISSING_RESOURCE",
        "REQUEST_LIMIT_EXCEEDED",
        "SERVER_ERROR",
        "UNSUPPORTED_METHOD",
        "SERVER_UNAVAILABLE",
        "TIME_LIMIT_EXCEEDED"
      ],
      "x-internal": false
    },
    "ObjectMetadataRefMessage": {
      "type": "string",
      "title": "ObjectMetadataRefMessage",
      "description": "Message response to the request",
      "x-internal": false
    },
    "ObjectMetadataRefRequestID": {
      "type": "string",
      "title": "ObjectMetadataRefRequestID",
      "description": "Unique ID that is added to the body of every response for easy traceability of the request in our logs.",
      "x-internal": false
    },
    "RefDateTime": {
      "type": "string",
      "title": "Date and Time string",
      "format": "date-time",
      "description": "Date and time"
    }
  }
}