{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/scanpay/json-schema/scanpay-post-v1-new-request-schema.json",
  "title": "PostV1NewRequest",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/scanpay-openapi-generated.yml#/components/schemas/PostV1NewRequest",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "description": "An array with one or more items. Each item needs a total, but all other fields are optional."
    },
    "items[].name": {
      "type": "string",
      "description": "The name of the item or service."
    },
    "items[].quantity": {
      "type": "integer",
      "description": "The number of items."
    },
    "items[].total": {
      "type": "string",
      "description": "Line total, i.e. unit-price times quantity, with an ISO 4217 currency code."
    },
    "items[].sku": {
      "type": "string",
      "description": "A SKU for this particular item."
    },
    "billing": {
      "type": "object",
      "description": "Customer billing address."
    },
    "billing.name": {
      "type": "string"
    },
    "billing.company": {
      "type": "string"
    },
    "billing.vatin": {
      "type": "string"
    },
    "billing.gln": {
      "type": "string"
    },
    "billing.email": {
      "type": "string"
    },
    "billing.phone": {
      "type": "string"
    },
    "billing.address": {
      "type": "array",
      "description": "An address array where each element is a new line."
    },
    "billing.city": {
      "type": "string"
    },
    "billing.zip": {
      "type": "string"
    },
    "billing.state": {
      "type": "string"
    },
    "billing.country": {
      "type": "string"
    },
    "shipping": {
      "type": "object",
      "description": "Customer shipping address."
    },
    "shipping.name": {
      "type": "string"
    },
    "shipping.company": {
      "type": "string"
    },
    "shipping.email": {
      "type": "string"
    },
    "shipping.phone": {
      "type": "string"
    },
    "shipping.address": {
      "type": "array",
      "description": "An address array where each element is a new line."
    },
    "shipping.city": {
      "type": "string"
    },
    "shipping.zip": {
      "type": "string"
    },
    "shipping.state": {
      "type": "string"
    },
    "shipping.country": {
      "type": "string"
    },
    "orderid": {
      "type": "string",
      "description": "An order identifier that identifies the order in your system."
    },
    "successurl": {
      "type": "string",
      "description": "The success URL is where we send the customer after successful payment."
    },
    "language": {
      "type": "string",
      "description": "The desired payment window language in ISO 639-1."
    },
    "autocapture": {
      "type": "boolean",
      "description": "Automatically capture the payment."
    },
    "lifetime": {
      "type": "string",
      "description": "Payment link lifetime in days (\"d\"), hours (\"h\") or minutes (\"m\")."
    }
  },
  "required": [
    "items",
    "items[].total"
  ]
}