{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/stabledrop-me/json-schema/stabledrop-me-prepare-body-schema.json",
  "title": "PrepareBody",
  "description": "What a payment, or a request for one, would be: everything /settle needs except the money.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/stabledrop-me-openapi.json#/components/schemas/PrepareBody",
  "properties": {
    "seller": {
      "type": "string",
      "title": "Seller",
      "description": "Who is paid: a wallet address, or an email (resolved to that person's wallet)."
    },
    "amount": {
      "type": "integer",
      "title": "Amount",
      "description": "In the TOKEN's base units (1 USDC = 1000000). One of the terms the address derives from."
    },
    "expiry_timestamp": {
      "type": "integer",
      "title": "Expiry Timestamp",
      "description": "Unix time the dispute window closes. 0 settles instantly with no recourse. Required: say which."
    },
    "nominal_buyer": {
      "type": "string",
      "title": "Nominal Buyer",
      "description": "Who may dispute and receives any refund: a wallet, or an email (resolved to that person's wallet). Fixed now, whoever later pays."
    },
    "external_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "External Id",
      "description": "Keeps otherwise-identical payment contracts apart. Omit for a fresh one; pass back the one returned."
    },
    "payer": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Payer",
      "description": "The wallet that will sign, when paying by signature. Omit for a request someone else will pay."
    },
    "token_symbol": {
      "type": "string",
      "title": "Token Symbol",
      "description": "A configured token, e.g. USDC.",
      "default": "USDC"
    },
    "description": {
      "type": "string",
      "title": "Description",
      "description": "What the payment is for, 1 to 160 characters, in the buyer's words."
    },
    "brand": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Brand",
      "description": "White-label partner id (`?b=`). Attribution only."
    },
    "product_name": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 160
        },
        {
          "type": "null"
        }
      ],
      "title": "Product Name",
      "description": "What is being bought, shown on both dashboards. Display only."
    },
    "arbiter": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Arbiter",
      "description": "Who decides a dispute: a wallet. Omit for the default arbiter. A term, so pass the same value to /settle."
    }
  },
  "type": "object",
  "required": [
    "seller",
    "amount",
    "expiry_timestamp",
    "nominal_buyer",
    "description"
  ]
}