{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dhl/json-schema/dhl-invoice-subscription-schema.json",
  "title": "invoiceSubscription",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dhl-dgf-push-api-openapi.yml#/components/schemas/invoiceSubscription",
  "properties": {
    "enable": {
      "type": "boolean",
      "description": "Use this property to enable or disable your subscription",
      "enum": [
        true,
        false
      ]
    },
    "support-email-address": {
      "type": "string",
      "description": "Your support contact email address in case we need to reach you",
      "format": "email"
    },
    "callback-url": {
      "type": "string",
      "format": "uri",
      "description": "Your callback URL where DHL will post the invoice data to"
    },
    "subscription-type": {
      "type": "string",
      "description": "Specify the type of data to push to your API endpoint e.g. notification message or payload",
      "enum": [
        "invoice-notification",
        "invoice-payload"
      ]
    },
    "http-headers": {
      "additionalProperties": {
        "type": "string"
      },
      "minProperties": 0,
      "maxProperties": 5,
      "description": "Use this to specify the HTTP Headers you want DHL to provide when connecting to your URL e.g. Authorization header or API Key for authentication"
    }
  }
}