---
title: "DomainError"
url: "https://api-catalog-test.8451.com/apis/kroger-ad-platform-api-1/versions/161b884e-bbcf-458e-9b78-9eff02a00217/schemas/DomainError"
---

> Full API specification: https://api-catalog-test.8451.com/apis/kroger-ad-platform-api-1/versions/161b884e-bbcf-458e-9b78-9eff02a00217.md

# DomainError

## OpenAPI definition

```yaml
openapi: 3.1.0
info:
  title: Kroger Ad Platform API
  version: "1"
servers:
  - url: /v1
components:
  schemas:
    DomainType:
      type: string
      enum:
        - ad_group
        - campaign
        - entity
        - keyword
        - sub_commodity
      title: DomainType
    ErrorDateTime:
      properties:
        value:
          type: string
          title: value
          description: ISO time string
        timezone:
          type: string
          title: timezone
          description: Timezone abbreviation
      type: object
      required:
        - value
        - timezone
      title: ErrorDateTime
    DomainError:
      properties:
        domain:
          $ref: "#/components/schemas/DomainType"
          title: domain
          description: Type of object related to this error
        id:
          anyOf:
            - type: integer
            - type: string
            - type: "null"
          title: id
          description: Id of the object related to this error
        fieldName:
          type: string
          title: fieldName
          description: Name of the field in the object that has an error
        code:
          type: string
          title: code
          description: Generic error code
        reason:
          type: string
          title: reason
          description: Human readable reason for the error
        datetime:
          $ref: "#/components/schemas/ErrorDateTime"
          title: datetime
          description: Time the error occurred
        rootCauses:
          anyOf:
            - items:
                $ref: "#/components/schemas/DomainError"
              type: array
            - type: "null"
          title: rootCauses
          description: Root causes for this error
      type: object
      required:
        - domain
        - fieldName
        - code
        - reason
        - datetime
      title: DomainError
```
