{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/divvy/json-schema/divvy-bill-approve-deny-action-request-dto-schema.json",
  "title": "BillApproveDenyActionRequestDto",
  "description": "Bill approve/deny action request",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/divvy-bill-approvals-api-openapi.yml#/components/schemas/BillApproveDenyActionRequestDto",
  "required": [
    "action",
    "billId"
  ],
  "type": "object",
  "properties": {
    "billId": {
      "type": "string",
      "description": "BILL-generated ID of the bill. The value begins with `00n`."
    },
    "action": {
      "allOf": [
        {
          "$ref": "#/$defs/BillApproveDenyAction"
        },
        {
          "description": "Approve or deny the bill. Approved bills can be paid."
        }
      ]
    },
    "comment": {
      "type": "string",
      "description": "Reason of the decision"
    }
  },
  "$defs": {
    "BillApproveDenyAction": {
      "type": "string",
      "description": "Bill approval and denial actions.",
      "enum": [
        "APPROVE",
        "DENY"
      ]
    }
  }
}