{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/coudrebros-eu/json-schema/coudrebros-eu-prepare-payment-response-schema.json",
  "title": "PreparePaymentResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/coudrebros-eu-payment-api-openapi.yml#/components/schemas/PreparePaymentResponse",
  "properties": {
    "unsigned_tx": {
      "type": "string",
      "title": "Unsigned Tx",
      "description": "CBOR hex of the unsigned payment transaction, ready to sign"
    },
    "amount_lovelace": {
      "type": "integer",
      "title": "Amount Lovelace",
      "description": "Exact lovelace amount the transaction sends to the operator"
    },
    "to_address": {
      "type": "string",
      "title": "To Address",
      "description": "Operator's payment address the transaction pays to"
    },
    "network_fee_lovelace": {
      "type": "integer",
      "title": "Network Fee Lovelace",
      "description": "Cardano network fee for this transaction, deducted from the customer's own change, not from amount_lovelace"
    }
  },
  "type": "object",
  "required": [
    "unsigned_tx",
    "amount_lovelace",
    "to_address",
    "network_fee_lovelace"
  ]
}