{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/storecove/json-schema/storecove-c5-redirect-request-schema.json",
  "title": "C5 Redirect Request",
  "description": "The C5 redirect request object for both activation and deactivation",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/storecove-c5activation-api-openapi.yml#/components/schemas/C5RedirectRequest",
  "type": "object",
  "properties": {
    "client_redirect_success_url": {
      "title": "Client Redirect Success URL",
      "description": "The URL to redirect to in case of a C5 authorization success",
      "type": "string",
      "format": "uri"
    },
    "client_redirect_fail_url": {
      "title": "Client Redirect Fail URL",
      "description": "The URL to redirect to in case of a C5 authorization fail",
      "type": "string",
      "format": "uri"
    },
    "name": {
      "title": "Representative Name",
      "description": "The representative name. Required by Dex when it is not stored on the Peppol identifier.",
      "type": "string"
    },
    "email": {
      "title": "Representative Email",
      "description": "The representative email. Required by Dex when it is not stored on the Peppol identifier.",
      "type": "string",
      "format": "email"
    },
    "simulate": {
      "title": "Simulate",
      "description": "Whether to simulate the C5 request",
      "type": "boolean"
    },
    "identifier": {
      "title": "Identifier",
      "description": "The identifier",
      "type": "string"
    },
    "scheme": {
      "title": "Scheme",
      "description": "The scheme",
      "type": "string",
      "enum": [
        "SG:UEN"
      ]
    },
    "superscheme": {
      "title": "Superscheme",
      "description": "The superscheme",
      "type": "string",
      "enum": [
        "iso6523-actorid-upis"
      ]
    }
  },
  "required": [
    "client_redirect_success_url",
    "client_redirect_fail_url",
    "identifier",
    "scheme",
    "superscheme"
  ]
}