{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rootline/json-schema/rootline-post-v1-payments-request-schema.json",
  "title": "PostV1PaymentsRequest",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/rootline-core-openapi-generated.yml#/components/schemas/PostV1PaymentsRequest",
  "type": "object",
  "properties": {
    "account_id": {
      "type": "string",
      "description": "Platform account ID for the payment"
    },
    "reference": {
      "type": "string",
      "description": "Reference for the payment"
    },
    "amount": {
      "type": "object",
      "description": "Amount object with currency and quantity"
    },
    "return_url": {
      "type": "string",
      "description": "URL to redirect customer after payment completion"
    },
    "splits": {
      "type": "array",
      "description": "Array of split payment instructions"
    }
  },
  "required": [
    "account_id",
    "reference",
    "amount",
    "return_url"
  ]
}