{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/getcourier-dev/json-schema/getcourier-dev-deposit-schema.json",
  "title": "Deposit",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/getcourier-dev-openapi.json#/components/schemas/Deposit",
  "type": "object",
  "required": [
    "deposit_id",
    "account_id",
    "rail",
    "pay_to",
    "amount",
    "amount_atomic",
    "credits",
    "status",
    "created_at",
    "expires_at",
    "uri"
  ],
  "properties": {
    "deposit_id": {
      "type": "string"
    },
    "account_id": {
      "type": "string"
    },
    "rail": {
      "type": "string",
      "enum": [
        "usdc-base",
        "btc"
      ]
    },
    "pay_to": {
      "type": "string",
      "description": "Public deposit address (EVM address for usdc-base, Bitcoin address for btc)."
    },
    "amount": {
      "type": "string",
      "description": "Exact amount to send, as a decimal string (USDC 6 dp, BTC 8 dp). Unique to this deposit."
    },
    "amount_atomic": {
      "type": "string",
      "description": "Amount in the asset's smallest unit (USDC micro-units, BTC satoshis)."
    },
    "credits": {
      "type": "integer",
      "description": "Credits added when the deposit confirms; fixed at creation."
    },
    "status": {
      "type": "string",
      "enum": [
        "pending",
        "paid",
        "expired"
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "expires_at": {
      "type": "string",
      "format": "date-time"
    },
    "uri": {
      "type": "string",
      "description": "Wallet URI: ethereum:<usdc>@8453/transfer?address=<pay_to>&uint256=<amount_atomic> or bitcoin:<pay_to>?amount=<amount>."
    },
    "paid_at": {
      "type": "string",
      "format": "date-time"
    },
    "chain_ref": {
      "type": "string",
      "description": "Chain reference that credited the deposit: <txHash>:<logIndex> for usdc-base, <txid>:<vout> for btc."
    }
  }
}