{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/fusio/main/json-schema/fusio-backend-transaction-schema.json",
  "title": "Backend_Transaction",
  "description": "This object represents a transaction. The system generates a transaction in case a payment was successfully executed",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fusio-transaction-api-openapi.yml#/components/schemas/Backend_Transaction",
  "type": "object",
  "properties": {
    "id": {
      "description": "Unique identifier for the object",
      "type": "integer"
    },
    "userId": {
      "type": "integer"
    },
    "planId": {
      "type": "integer"
    },
    "transactionId": {
      "type": "string"
    },
    "amount": {
      "type": "number"
    },
    "points": {
      "type": "number"
    },
    "periodStart": {
      "type": "string",
      "format": "date-time"
    },
    "periodEnd": {
      "type": "string",
      "format": "date-time"
    },
    "insertDate": {
      "type": "string",
      "format": "date-time"
    }
  }
}