{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/clockwork-sms/json-schema/clockwork-sms-post-api-v10-rest-subaccount-userparam-subaccount-purchase-request-schema.json",
  "title": "PostApiV10RestSubaccountUserparamSubaccountPurchaseRequest",
  "x-generated": "2026-11-15",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/clockwork-sms-openapi-generated.yml#/components/schemas/PostApiV10RestSubaccountUserparamSubaccountPurchaseRequest",
  "type": "object",
  "properties": {
    "purchases": {
      "type": "array",
      "description": "The list of purchases to be created"
    },
    "Purchase.message-types": {
      "type": "array",
      "description": "The purchase’s message types"
    },
    "Purchase.price": {
      "type": "number",
      "description": "The quantity of purchased credits"
    },
    "MessageType.message-type": {
      "type": "string",
      "description": "The message type (“GP” for Gold+)"
    },
    "MessageType.unit-price": {
      "type": "number",
      "description": "The cost for the subaccount of a unit of the respective message-type"
    },
    "MessageType.nation": {
      "type": "string",
      "description": "The nation to which this price is bound"
    }
  },
  "required": [
    "purchases",
    "Purchase.message-types",
    "Purchase.price",
    "MessageType.message-type",
    "MessageType.unit-price"
  ]
}