{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pinkwallet-com/json-schema/pinkwallet-com-transaction-schema.json",
  "title": "Transaction",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pinkwallet-com-openapi.json#/components/schemas/Transaction",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "object": {
      "type": "string",
      "const": "transaction"
    },
    "type": {
      "type": "string",
      "enum": [
        "deposit",
        "payout",
        "conversion",
        "payment"
      ]
    },
    "asset": {
      "type": "string"
    },
    "amount": {
      "$ref": "#/$defs/Amount"
    },
    "status": {
      "type": "string"
    },
    "reference": {
      "type": "string"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "$defs": {
    "Amount": {
      "type": "string",
      "description": "A decimal amount as a string, e.g. \"250.00\"."
    }
  }
}