{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/moneygraph-ai/json-schema/moneygraph-ai-post-api-v1-payment-session-request-schema.json",
  "title": "PostApiV1PaymentSessionRequest",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/moneygraph-ai-openapi-generated.yml#/components/schemas/PostApiV1PaymentSessionRequest",
  "type": "object",
  "properties": {
    "currency": {
      "type": "string",
      "description": "Currency to charge in, for example USD. Your business must hold a wallet in this currency and its asset must have payment collection enabled."
    },
    "amount": {
      "type": "string",
      "description": "Amount to charge. Must be within the asset's minimum and maximum send amounts."
    },
    "external_reference": {
      "type": "string",
      "description": "Your unique reference for this payment. Use it to verify the payment."
    },
    "customer.email": {
      "type": "string",
      "description": "Payer's email address. The domain must resolve."
    },
    "customer.first_name": {
      "type": "string",
      "description": "Payer's first name."
    },
    "customer.last_name": {
      "type": "string",
      "description": "Payer's last name."
    },
    "customer.ip_address": {
      "type": "string",
      "description": "Payer's IP address."
    },
    "billing_address.country": {
      "type": "string",
      "description": "Payer's billing country, as a 2-letter code."
    },
    "billing_address.city": {
      "type": "string",
      "description": "Billing city."
    },
    "billing_address.address": {
      "type": "string",
      "description": "Billing street address."
    },
    "billing_address.postal_code": {
      "type": "string",
      "description": "Billing postal code. Checked against the format for the billing country."
    },
    "billing_address.state": {
      "type": "string",
      "description": "Billing state or region."
    },
    "callback_url": {
      "type": "string",
      "description": "Where the payer is redirected after paying."
    },
    "notify_url": {
      "type": "string",
      "description": "Stored on the session and on the resulting transaction."
    },
    "webhook_id": {
      "type": "string",
      "description": "One of your webhooks, in the same mode as your API key, to notify about this payment."
    },
    "metadata": {
      "type": "object",
      "description": "Your own key-value data. Returned when you verify the payment and on the payment transaction."
    },
    "title": {
      "type": "string",
      "description": "Title shown on the checkout page."
    },
    "description": {
      "type": "string",
      "description": "Description shown on the checkout page."
    },
    "image": {
      "type": "string",
      "description": "Image shown on the checkout page."
    }
  },
  "required": [
    "currency",
    "amount",
    "external_reference",
    "customer.email",
    "customer.first_name",
    "customer.last_name",
    "customer.ip_address",
    "billing_address.country",
    "billing_address.city",
    "billing_address.address",
    "billing_address.postal_code"
  ]
}