{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lemonway/json-schema/lemonway-init-pay-pal-transaction-output-schema.json",
  "title": "InitPayPalTransactionOutput",
  "description": "Init PayPal transaction Output",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lemonway-moneyins-paypal-api-openapi.yml#/components/schemas/InitPayPalTransactionOutput",
  "required": [
    "id",
    "redirectionUrl",
    "payPalOrderId"
  ],
  "type": "object",
  "properties": {
    "id": {
      "format": "int64",
      "description": "Money-in Id",
      "type": "integer"
    },
    "redirectionUrl": {
      "description": "Redirection Url",
      "type": "string"
    },
    "payPalOrderId": {
      "description": "PayPal Order Id",
      "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"
        }
      }
    }
  }
}