{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/pinch/main/json-schema/pinch-post-subscriptions-request-schema.json",
  "title": "PostSubscriptionsRequest",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/pinch-openapi-generated.yml#/components/schemas/PostSubscriptionsRequest",
  "type": "object",
  "properties": {
    "planId": {
      "type": "string",
      "description": "Identifier of the plan to subscribe to"
    },
    "payerId": {
      "type": "string",
      "description": "Identifier of the payer (customer)"
    },
    "totalAmount": {
      "type": "string",
      "description": "Total amount in cents when required by the plan"
    },
    "startDate": {
      "type": "string",
      "description": "Start date of the subscription"
    },
    "currency": {
      "type": "string",
      "description": "Currency code"
    },
    "sourceId": {
      "type": "string",
      "description": "Payment source identifier"
    }
  },
  "required": [
    "planId",
    "payerId"
  ]
}