{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fluxapay-xyz/json-schema/fluxapay-xyz-post-api-payment-paymentid-request-schema.json",
  "title": "PostApiPaymentPaymentidRequest",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/fluxapay-xyz-openapi-generated.yml#/components/schemas/PostApiPaymentPaymentidRequest",
  "type": "object",
  "properties": {
    "scheme": {
      "type": "string",
      "description": "Payment scheme. Valid values \"exact\""
    },
    "network": {
      "type": "string",
      "description": "base , base-sepolia (or CAIP-2), fluxa-monetize-credits , or xrpl-mainnet (where enabled)."
    },
    "amount": {
      "type": "string",
      "description": "Amount in atomic units."
    },
    "currency": {
      "type": "string",
      "description": "Currency. Valid values \"USDC\" \"FLUXA_MONETIZE_CREDITS\" \"XRP\" Default \"USDC\""
    },
    "assetAddress": {
      "type": "string",
      "description": "Token contract (USDC)."
    },
    "payTo": {
      "type": "string",
      "description": "Recipient (for credits: monetize.fluxapay.xyz )."
    },
    "host": {
      "type": "string",
      "description": "Host of the resource being paid."
    },
    "resource": {
      "type": "string",
      "description": "Full resource URL."
    },
    "description": {
      "type": "string",
      "description": "Shown to the user."
    },
    "tokenName": {
      "type": "string",
      "description": "EIP-712 domain name ( extra.name )."
    },
    "tokenVersion": {
      "type": "string",
      "description": "EIP-712 domain version ( extra.version )."
    },
    "validityWindowSeconds": {
      "type": "integer",
      "description": "Signature validity; default 60, clamped to 30–300. Minimum 30 Maximum 300 Default 60"
    },
    "approvalId": {
      "type": "string",
      "description": "approvalId from a previous need_approval response, after the user approved."
    },
    "intentNaturalLanguage": {
      "type": "string",
      "description": "Optional suggested mandate description."
    },
    "intentCategory": {
      "type": "string",
      "description": "Optional suggested mandate label."
    },
    "intentLimitAmount": {
      "type": "string",
      "description": "Optional suggested mandate budget (atomic)."
    },
    "intentValidFrom": {
      "type": "string",
      "description": "Optional ISO timestamp."
    },
    "intentValidUntil": {
      "type": "string",
      "description": "Optional ISO timestamp."
    }
  },
  "required": [
    "scheme",
    "network",
    "amount",
    "payTo",
    "host",
    "resource"
  ]
}