{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lemonway/json-schema/lemonway-init-apm-transaction-output-schema.json",
  "title": "InitApmTransactionOutput",
  "description": "Represents the output of an APM transaction initialization.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lemonway-moneyins-apm-api-openapi.yml#/components/schemas/InitApmTransactionOutput",
  "required": [
    "id",
    "redirectUrl"
  ],
  "type": "object",
  "properties": {
    "id": {
      "format": "int64",
      "description": "Gets or sets the Lemonway transaction ID.",
      "type": "integer"
    },
    "redirectUrl": {
      "description": "Gets or sets the redirection URL.",
      "type": "string"
    },
    "error": {
      "$ref": "#/$defs/Error"
    }
  },
  "$defs": {
    "Error": {
      "type": "object",
      "properties": {
        "code": {
          "format": "int32",
          "type": "integer"
        },
        "message": {
          "type": "string"
        },
        "psp": {
          "$ref": "#/$defs/PSP"
        }
      }
    },
    "PSP": {
      "type": "object",
      "properties": {
        "message": {
          "description": "Get the Error Message from PSP",
          "type": "string"
        }
      }
    }
  }
}