{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/swish-payments/json-schema/swish-payments-post-v1-prefilled-request-schema.json",
  "title": "PostV1PrefilledRequest",
  "x-generated": "2026-11-16",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/swish-payments-openapi-generated.yml#/components/schemas/PostV1PrefilledRequest",
  "type": "object",
  "properties": {
    "format": {
      "type": "string",
      "description": "Format of the response image, can be jpg, png or svg"
    },
    "payee": {
      "type": "object",
      "description": "Payment receiver details"
    },
    "payee.value": {
      "type": "string",
      "description": "Payment receiver"
    },
    "payee.editable": {
      "type": "boolean",
      "description": "If the value can be changed in the app after being scanned"
    },
    "amount": {
      "type": "object",
      "description": "Payment amount"
    },
    "amount.value": {
      "type": "number",
      "description": "Payment amount value"
    },
    "amount.editable": {
      "type": "boolean",
      "description": "If the value can be changed in the app after being scanned"
    },
    "message": {
      "type": "object",
      "description": "Message for payment"
    },
    "message.value": {
      "type": "string",
      "description": "Message text (max 50 characters)"
    },
    "message.editable": {
      "type": "boolean",
      "description": "If the value can be changed in the app after being scanned"
    },
    "size": {
      "type": "number",
      "description": "Size of the QR code. Minimum 300. Not required if the format is svg."
    },
    "border": {
      "type": "number",
      "description": "Width of the border."
    },
    "transparent": {
      "type": "boolean",
      "description": "Select background color to be transparent. Does not work with jpg format."
    }
  },
  "required": [
    "format",
    "payee.value",
    "payee.editable",
    "amount.value",
    "amount.editable",
    "message.value",
    "message.editable"
  ]
}