{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/sovos/main/json-schema/sovos-get-notifications-countrycode-response-schema.json",
  "title": "GetNotificationsCountrycodeResponse",
  "x-generated": "2026-10-14",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/sovos-openapi-generated.yml#/components/schemas/GetNotificationsCountrycodeResponse",
  "type": "object",
  "properties": {
    "timestamp": {
      "type": "integer",
      "description": "Unix time stamp of the response"
    },
    "status": {
      "type": "integer",
      "description": "HTTP status code"
    },
    "success": {
      "type": "boolean",
      "description": "Request success indicator"
    },
    "message": {
      "type": "string",
      "description": "Human-readable message"
    },
    "data": {
      "type": "object",
      "description": "Contains pagination state and the notifications array"
    },
    "data.pageState": {
      "type": "object",
      "description": "Pagination information"
    },
    "data.pageState.page": {
      "type": "integer",
      "description": "Current page number"
    },
    "data.pageState.perPage": {
      "type": "integer",
      "description": "Results per page"
    },
    "data.pageState.totalEntries": {
      "type": "integer",
      "description": "Total notifications available"
    },
    "data.notifications": {
      "type": "array",
      "description": "Array of notification objects"
    },
    "data.notifications[].notificationId": {
      "type": "string",
      "description": "Unique notification identifier"
    },
    "data.notifications[].createdDate": {
      "type": "integer",
      "description": "Unix time stamp when the notification was created"
    },
    "data.notifications[].appPrefix": {
      "type": "string",
      "description": "Application prefix (for example, \"INV\")"
    },
    "data.notifications[].content": {
      "type": "string",
      "description": "Base64-encoded ApplicationResponse XML"
    },
    "data.notifications[].metadata": {
      "type": "object",
      "description": "Document processing details"
    },
    "data.notifications[].metadata.productId": {
      "type": "string",
      "description": "Product identifier"
    },
    "data.notifications[].metadata.documentId": {
      "type": "string",
      "description": "Sovos-generated document ID"
    },
    "data.notifications[].metadata.erpDocumentId": {
      "type": "string",
      "description": "Your ERP document reference"
    },
    "data.notifications[].metadata.erpSystemId": {
      "type": "string",
      "description": "Source ERP system identifier"
    },
    "data.notifications[].metadata.processType": {
      "type": "string",
      "description": "Document direction: \"0\" = outbound, \"1\" = inbound"
    },
    "data.notifications[].metadata.taxId": {
      "type": "string",
      "description": "Company tax ID"
    },
    "data.notifications[].metadata.sciCloudStatusCode": {
      "type": "string",
      "description": "Current processing status"
    },
    "data.notifications[].metadata.sciResponseCode": {
      "type": "string",
      "description": "Overall compliance status"
    },
    "data.notifications[].metadata.sciStatusAction": {
      "type": "string",
      "description": "Action required"
    }
  }
}