{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/currencycloud/main/json-schema/currencycloud-simulate-funding-schema.json",
  "title": "SimulateFunding",
  "description": "SimulateFunding",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/currencycloud-demo-api-openapi.yml#/components/schemas/SimulateFunding",
  "type": "object",
  "required": [
    "id",
    "account_id",
    "state",
    "sender_name",
    "sender_address",
    "sender_country",
    "sender_reference",
    "sender_account_number",
    "sender_routing_code",
    "receiver_account_number",
    "receiver_routing_code",
    "amount",
    "currency",
    "action",
    "short_reference",
    "updated_at",
    "created_at"
  ],
  "additionalProperties": false,
  "properties": {
    "id": {
      "type": "string",
      "description": "The unique UUID for the simulated fund."
    },
    "account_id": {
      "type": "string",
      "description": "The account UUID the simulated fund was created for."
    },
    "state": {
      "type": "string",
      "description": "The state of the simulated fund."
    },
    "sender_name": {
      "type": "string",
      "description": "The sender's name."
    },
    "sender_address": {
      "type": "string",
      "description": "The sender's address."
    },
    "sender_country": {
      "type": "string",
      "description": "Two-digit sender country."
    },
    "sender_reference": {
      "type": "string",
      "description": "Sender reference."
    },
    "sender_account_number": {
      "type": "string",
      "description": "Sender account number."
    },
    "sender_routing_code": {
      "type": "string",
      "description": "Sender routing code."
    },
    "receiver_account_number": {
      "type": "string",
      "description": "A client or its sub-account's account number."
    },
    "receiver_routing_code": {
      "type": "string",
      "description": "Routing code for a client or its sub-account."
    },
    "amount": {
      "type": "string",
      "description": "Amount of the emulated transaction."
    },
    "currency": {
      "type": "string",
      "description": "Three-digit currency code."
    },
    "action": {
      "type": "string",
      "description": "Allows you to trigger approval or rejection behaviour.",
      "enum": [
        "approve",
        "reject"
      ]
    },
    "short_reference": {
      "type": "string",
      "description": "The reference generated by the system to identify the fund."
    },
    "created_at": {
      "type": "string",
      "description": "The date-time the SSI was added to the account.",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "description": "The date-time the SSI was last updated on the account.",
      "format": "date-time"
    }
  }
}