{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/spendesk/json-schema/spendesk-wallet-load-schema.json",
  "title": "walletLoad",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/spendesk-settlements-and-wallet-api-openapi.yml#/components/schemas/walletLoad",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "id": {
      "type": "string",
      "description": "Wallet load ID"
    },
    "amount": {
      "allOf": [
        {
          "$ref": "#/$defs/priceAmount"
        }
      ],
      "description": "Amount of the wallet load. Always in wallet currency. Expressed in smallest units of the currency (e.g. cents for EUR and USD, but yen for JPY)."
    },
    "currency": {
      "$ref": "#/$defs/currency"
    },
    "createdAt": {
      "allOf": [
        {
          "$ref": "#/$defs/dateTime"
        }
      ],
      "description": "The date the banking provider booked the wallet load (accounting date on SFS EEA accounts, value date on SFS GBP accounts, entry date on legacy accounts), not a record-creation timestamp."
    },
    "type": {
      "type": "string",
      "enum": [
        "card",
        "wireTransfer"
      ],
      "description": "The type of wallet load."
    },
    "bankName": {
      "type": "string",
      "enum": [
        "sfs",
        "adyen",
        "other"
      ],
      "description": "The name of the payment institution holding the account."
    }
  },
  "required": [
    "id",
    "amount",
    "currency",
    "createdAt",
    "type"
  ],
  "$defs": {
    "currency": {
      "type": "string",
      "pattern": "^[A-Z]{3}$",
      "description": "If the payment was made in a foreign currency, this amount will be the one in the payment currency. Three-letter [ISO currency codes](https://www.iso.org/iso-4217-currency-codes.html).",
      "title": "currency"
    },
    "dateTime": {
      "type": "string",
      "format": "date-time",
      "description": "String containing a UTC datetime expressed in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format like `2023-05-12T14:06:40Z`.",
      "title": "dateTime"
    },
    "priceAmount": {
      "type": "number",
      "description": "If the payment was made in a foreign currency, this amount will be the one in the payment currency.\nCan contain a negative value in case of refunds.\nExpressed in smallest units of the currency (e.g. cents for EUR and USD, but yen for JPY).",
      "title": "priceAmount"
    }
  }
}