{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "transactions": {
      "type": "array",
      "items": [
        {
          "type": "object",
          "properties": {
            "date": {
              "type": "string"
            },
            "time": {
              "type": "string"
            },
            "date_time": {
              "type": "string"
            },
            "activation_date": {
              "type": "string"
            },
            "activation_time": {
              "type": "string"
            },
            "activation_date_time": {
              "type": "string"
            },
            "tid": {
              "type": "integer"
            },
            "status": {
              "type": "integer"
            },
            "status_desc": {
              "type": "string"
            },
            "payment_type": {
              "type": "string"
            },
            "payment_name": {
              "type": "string"
            },
            "invoice_type": {
              "type": "string"
            },
            "invoice_ref": {
              "type": "string"
            },
            "amount": {
              "type": "string"
            },
            "amount_eur": {
              "type": "string"
            },
            "currency": {
              "type": "string"
            },
            "fix_commission": {
              "type": "string"
            },
			"fix_commission_eur": {
              "type": "string"
            },
            "payout_amount": {
              "type": "string"
            },
            "payout_currency": {
              "type": "string"
            },
            "cost": {
              "type": "string"
            },
            "tax": {
              "type": "string"
            },
			"cost_with_tax": {
              "type": "string"
            },
            "open_amount": {
              "type": "string"
            },
            "affiliate_id": {
              "type": "integer"
            },
            "affiliate_name": {
              "type": "string"
            },
            "merchant_id": {
              "type": "integer"
            },
            "project": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "integer"
                },
                "name": {
                  "type": "string"
                },
                "tariff_id": {
                  "type": "integer"
                },
                "tariff_name": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "name",
                "tariff_id",
                "tariff_name"
              ]
            },
            "refund": {
              "type": "object",
              "properties": {
                "amount": {
                  "type": "string"
                },
                "tid": {
                  "type": "integer"
                },
                "date": {
                  "type": "string"
                },
                "reference": {
                  "type": "string"
                }
              },
              "required": [
                "amount",
                "tid",
                "date"
              ]
            },
            "chargeback": {
              "type": "object",
              "properties": {
                "amount": {
                  "type": "string"
                },
                "tid": {
                  "type": "integer"
                },
                "date": {
                  "type": "string"
                },
                "code": {
                  "type": "string"
                },
                "reason": {
                  "type": "string"
                }
              },
              "required": [
                "amount",
                "tid",
                "date",
                "code",
                "reason"
              ]
            },
            "credit": {
              "type": "object",
              "properties": {
                "amount": {
                  "type": "string"
                },
                "tid": {
                  "type": "integer"
                },
                "date": {
                  "type": "string"
                }
              },
              "required": [
                "amount",
                "tid",
                "date"
              ]
            },
            "original_transaction": {
              "type": "object",
              "properties": {
                "amount": {
                  "type": "string"
                },
                "tid": {
                  "type": "integer"
                },
                "date": {
                  "type": "string"
                }
              },
              "required": [
                "amount",
                "tid",
                "date"
              ]
            },
            "subscription": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "integer"
                },
                "start_amount": {
                  "type": "string"
                },
                "start_tid": {
                  "type": "integer"
                },
                "start_date": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "start_amount",
                "start_tid",
                "start_date"
              ]
            },
            "customer": {
              "type": "object",
              "properties": {
                "gender": {
                  "type": "string"
                },
                "first_name": {
                  "type": "string"
                },
                "last_name": {
                  "type": "string"
                },
                "email": {
                  "type": "string"
                },
                "street": {
                  "type": "string"
                },
                "house_no": {
                  "type": "string"
                },
                "street_house_no": {
                  "type": "string"
                },
                "zip_code": {
                  "type": "string"
                },
                "city": {
                  "type": "string"
                },
                "country_code": {
                  "type": "string"
                },
                "country_name": {
                  "type": "string"
                },
                "birthdate": {
                  "type": "string"
                },
                "no": {
                  "type": "string"
                },
                "nc_no": {
                  "type": "integer"
                },
                "company": {
                  "type": "string"
                },
                "vat_id": {
                  "type": "string"
                },
                "order_no": {
                  "type": "string"
                },
                "mobile": {
                  "type": "string"
                },
                "buergel_score": {
                  "type": "string"
                },
                "nn_invoice_no": {
                  "type": "string"
                }
              }
            },
            "additional_info": {
              "type": "object",
              "properties": {
                "marker": {
                  "type": "string"
                },
                "input1": {
                  "type": "string"
                },
                "val1": {
                  "type": "string"
                },
                "input2": {
                  "type": "string"
                },
                "val2": {
                  "type": "string"
                },
                "input3": {
                  "type": "string"
                },
                "val3": {
                  "type": "string"
                },
                "input4": {
                  "type": "string"
                },
                "val4": {
                  "type": "string"
                },
                "input5": {
                  "type": "string"
                },
                "val5": {
                  "type": "string"
                },
                "ip_country": {
                  "type": "string"
                },
                "isp_name": {
                  "type": "string"
                },
                "fraud_modules": {
                  "type": "string"
                },
                "rejected_fraud_module": {
                  "type": "string"
                }
              }
            },
            "payment": {
              "type": "object",
              "properties": {
                "info1": {
                  "type": "string"
                },
                "info2": {
                  "type": "string"
                },
                "info3": {
                  "type": "string"
                },
                "info4": {
                  "type": "string"
                },
                "info5": {
                  "type": "string"
                },
                "info6": {
                  "type": "string"
                },
                "info7": {
                  "type": "string"
                },
                "payment_ref": {
                  "type": "integer"
                },
                "description": {
                  "type": "string"
                },
                "acc_ref": {
                  "type": "string"
                }
              }
            }
          },
          "required": [
            "date",
            "time",
            "date_time",
            "tid",
            "status",
            "status_desc",
            "payment_type",
            "payment_name",
            "amount",
            "amount_eur",
            "currency",
            "payout_amount",
            "payout_currency",
            "cost",
            "tax",
            "cost_with_tax",
            "merchant_id",
            "project"
          ]
        }
      ]
    },
    "total_amount": {
      "type": "string"
    },
    "total_txn": {
      "type": "integer"
    },
    "unique_reference": {
      "type": "string"
    },
    "period": {
      "type": "string"
    }
  },
  "required": [
    "transactions",
    "total_amount",
    "total_txn",
    "unique_reference",
    "period"
  ]
}