{
  "components": {
    "schemas": {
      "ACHCounterpartyDetails": {
        "additionalProperties": true,
        "description": "Bank account details for ACH payments.",
        "properties": {
          "account_name": {
            "description": "Name on the destination account.",
            "title": "Account Name",
            "type": "string"
          },
          "account_number": {
            "description": "Destination bank account number.",
            "title": "Account Number",
            "type": "string"
          },
          "bank_mailing_address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UnvalidatedMailingAddress"
              }
            ],
            "description": "Mailing address of the destination bank.",
            "title": "Bank Mailing Address"
          },
          "currency": {
            "default": "USD",
            "description": "Currency of the destination account.",
            "enum": [
              "USD"
            ],
            "title": "Currency",
            "type": "string"
          },
          "mailing_address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UnvalidatedMailingAddress"
              }
            ],
            "default": null,
            "description": "Mailing address of the counterparty.",
            "nullable": true
          },
          "payment_method": {
            "default": "ACH",
            "description": "Payment method.",
            "enum": [
              "ACH"
            ],
            "title": "Payment Method",
            "type": "string"
          },
          "routing_number": {
            "description": "Destination bank routing number.",
            "title": "Routing Number",
            "type": "string"
          },
          "type": {
            "default": "ach",
            "description": "Counterparty details type.",
            "enum": [
              "ach"
            ],
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "account_number",
          "routing_number"
        ],
        "title": "ACHCounterpartyDetails",
        "type": "object"
      },
      "AUDCounterpartyDetails": {
        "additionalProperties": true,
        "description": "Bank account details for Australian dollar payments.",
        "properties": {
          "account_name": {
            "description": "Name on the destination account.",
            "title": "Account Name",
            "type": "string"
          },
          "account_number": {
            "description": "Destination bank account number.",
            "title": "Account Number",
            "type": "string"
          },
          "bank_mailing_address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UnvalidatedMailingAddress"
              }
            ],
            "description": "Mailing address of the destination bank.",
            "title": "Bank Mailing Address"
          },
          "bsb_number": {
            "description": "Destination bank BSB number.",
            "title": "Bsb Number",
            "type": "string"
          },
          "currency": {
            "default": "AUD",
            "description": "Currency of the destination account.",
            "enum": [
              "AUD"
            ],
            "title": "Currency",
            "type": "string"
          },
          "mailing_address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UnvalidatedMailingAddress"
              }
            ],
            "default": null,
            "description": "Mailing address of the counterparty.",
            "nullable": true
          },
          "payment_method": {
            "default": "INTERNATIONAL",
            "description": "Payment method.",
            "enum": [
              "INTERNATIONAL"
            ],
            "title": "Payment Method",
            "type": "string"
          },
          "type": {
            "default": "aud",
            "description": "Counterparty details type.",
            "enum": [
              "aud"
            ],
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "account_number",
          "bsb_number"
        ],
        "title": "AUDCounterpartyDetails",
        "type": "object"
      },
      "AbkReportingProvider": {
        "enum": [
          "netsuite",
          "qbo"
        ],
        "title": "AbkReportingProvider",
        "type": "string"
      },
      "AbkReportingTimeWindowAsOf": {
        "additionalProperties": false,
        "description": "A cumulative balance through a single point in time (balance sheets).",
        "properties": {
          "as_of_date": {
            "format": "date",
            "title": "As Of Date",
            "type": "string"
          }
        },
        "required": [
          "as_of_date"
        ],
        "title": "AbkReportingTimeWindowAsOf",
        "type": "object"
      },
      "AbkReportingTimeWindowRange": {
        "additionalProperties": false,
        "description": "Activity within an inclusive date range (income statements).",
        "properties": {
          "end_date": {
            "format": "date",
            "title": "End Date",
            "type": "string"
          },
          "start_date": {
            "format": "date",
            "title": "Start Date",
            "type": "string"
          }
        },
        "required": [
          "end_date",
          "start_date"
        ],
        "title": "AbkReportingTimeWindowRange",
        "type": "object"
      },
      "AccountDailyBalanceInfo": {
        "properties": {
          "available_balance": {
            "title": "Available Balance",
            "type": "number"
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          }
        },
        "required": [
          "available_balance",
          "date"
        ],
        "title": "AccountDailyBalanceInfo",
        "type": "object"
      },
      "AccountingCategorySelectionInfo": {
        "description": "A tracking category selection currently set on the transaction.",
        "properties": {
          "tracking_category_name": {
            "description": "Display name of the tracking category (e.g., 'Department', 'Class')",
            "title": "Tracking Category Name",
            "type": "string"
          },
          "tracking_category_option_code": {
            "default": null,
            "description": "ERP code of the selected option (e.g., GL account number '60100'), or None if the option has no code",
            "nullable": true,
            "title": "Tracking Category Option Code",
            "type": "string"
          },
          "tracking_category_option_name": {
            "default": null,
            "description": "Display name of the selected option (e.g., 'Engineering', 'Marketing')",
            "nullable": true,
            "title": "Tracking Category Option Name",
            "type": "string"
          },
          "tracking_category_option_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "description": "UUID of the selected tracking category option, or None if not set",
            "nullable": true
          },
          "tracking_category_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "description": "UUID of the tracking category"
          }
        },
        "required": [
          "tracking_category_name",
          "tracking_category_uuid"
        ],
        "title": "AccountingCategorySelectionInfo",
        "type": "object"
      },
      "AccountingFieldApplicability": {
        "description": "Current client/provider/entity scope of an exact accounting field, not a row filter.",
        "properties": {
          "business_uuid": {
            "$ref": "#/components/schemas/UUIDStr"
          },
          "entity_uuids": {
            "items": {
              "$ref": "#/components/schemas/UUIDStr"
            },
            "title": "Entity Uuids",
            "type": "array"
          },
          "provider": {
            "title": "Provider",
            "type": "string"
          },
          "provider_connection_uuid": {
            "$ref": "#/components/schemas/UUIDStr"
          }
        },
        "required": [
          "business_uuid",
          "entity_uuids",
          "provider",
          "provider_connection_uuid"
        ],
        "title": "AccountingFieldApplicability",
        "type": "object"
      },
      "AccountingSelectionInputRequestBody": {
        "properties": {
          "boolean_value": {
            "default": null,
            "description": "Value for a yes/no category.",
            "nullable": true,
            "title": "Boolean Value",
            "type": "boolean"
          },
          "date": {
            "default": null,
            "description": "Value for a date category.",
            "format": "date",
            "nullable": true,
            "title": "Date",
            "type": "string"
          },
          "free_form_text": {
            "default": null,
            "description": "Value for a free-form text category.",
            "nullable": true,
            "title": "Free Form Text",
            "type": "string"
          },
          "tracking_category_option_uuid": {
            "default": null,
            "description": "Selected option UUID, for categories with a list of options.",
            "format": "uuid",
            "nullable": true,
            "title": "Tracking Category Option Uuid",
            "type": "string"
          },
          "tracking_category_uuid": {
            "description": "Tracking category (field) UUID.",
            "format": "uuid",
            "title": "Tracking Category Uuid",
            "type": "string"
          }
        },
        "required": [
          "tracking_category_uuid"
        ],
        "title": "AccountingSelectionInput",
        "type": "object"
      },
      "AccountingSyncStatusRequestBody": {
        "enum": [
          "NOT_SYNC_READY",
          "SYNCED",
          "SYNC_READY",
          "UNSYNCED"
        ],
        "title": "AccountingSyncStatus",
        "type": "string"
      },
      "AccrualDisplayReason": {
        "description": "Frontend-facing accrual reason/explanation derived from (mapping_reason, is_mapped).",
        "enum": [
          "AMORTIZED",
          "AUTOMATICALLY_ACCRUED",
          "DATES_OUT_OF_RANGE",
          "MANUALLY_ACCRUED",
          "MANUALLY_EXCLUDED",
          "MISSING_ACCOUNTING_CODINGS"
        ],
        "title": "AccrualDisplayReason",
        "type": "string"
      },
      "AccrualDisplayStatus": {
        "description": "Frontend-facing accrual status label derived from (mapping_reason, is_mapped).",
        "enum": [
          "ACCRUED",
          "AMORTIZED",
          "NOT_ACCRUED"
        ],
        "title": "AccrualDisplayStatus",
        "type": "string"
      },
      "ActivateCardRequestBody": {
        "description": "Activate the acting user's own card by its last four digits.\n\nCall this tool only when the user explicitly asks to activate a card. Only\nthe cardholder can activate a card. Do not call this tool for another\nperson's card (for example, an admin or manager asking to activate an\nemployee's card, or a card listed with ListCards cardholder_user_uuid or\ncan_activate=false); instead, tell the user the cardholder must activate it\nfrom their own Ramp account or the Ramp mobile app.\n\nWhen a card's last_four is withheld (null on SMS) and the user has not\nprovided the 4 digits, or whenever the 4 digits are unknown, ask the user\nfor the last four digits printed on the physical card before calling this\ntool. Never pass placeholders (such as \"0000\", \"\", card UUIDs, or short\ncodes).\n\nIf the card is a physical card awaiting delivery confirmation, call this tool\nfirst without confirm_delivery to detect the state, then call again with\nconfirm_delivery=True after the user confirms the physical card has arrived.",
        "properties": {
          "confirm_delivery": {
            "default": false,
            "description": "Set to true only after the user explicitly confirms the physical card has arrived. This completes activation for a card awaiting delivery confirmation.",
            "title": "Confirm Delivery",
            "type": "boolean"
          },
          "last_four": {
            "description": "Exactly 4 numeric digits: the last four digits printed on the target card. When last_four is withheld (null on SMS) and the user has not provided the 4 digits, or whenever the digits are unknown, ask the user for them before calling this tool; never pass placeholders such as '0000', '', card UUIDs, or short codes.",
            "title": "Last Four",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "last_four",
          "rationale"
        ],
        "title": "ActivateCard",
        "type": "object"
      },
      "ActorDetailsResource": {
        "discriminator": {
          "mapping": {
            "policy_agent": "#/components/schemas/AuditLogPolicyAgentDetailsResource",
            "ramp": "#/components/schemas/AuditLogRampActorDetailsResource",
            "spend_request_agent": "#/components/schemas/AuditLogSpendRequestAgentDetailsResource",
            "unknown": "#/components/schemas/EmptyObject",
            "user": "#/components/schemas/AuditLogUserDetailsResource"
          },
          "propertyName": "actor_type"
        },
        "oneOf": [
          {
            "$ref": "#/components/schemas/AuditLogPolicyAgentDetailsResource"
          },
          {
            "$ref": "#/components/schemas/AuditLogRampActorDetailsResource"
          },
          {
            "$ref": "#/components/schemas/AuditLogSpendRequestAgentDetailsResource"
          },
          {
            "$ref": "#/components/schemas/AuditLogUserDetailsResource"
          },
          {
            "$ref": "#/components/schemas/EmptyObject"
          }
        ]
      },
      "AddProcurementRequestFieldFileRequestBody": {
        "description": "Upload a file to a file-upload field on a procurement request's intake form.\n\nAppends the file to the field's existing files; existing files and other answers\nare kept. Only works while the request is submitted and pending approval.\nApproved requests need a change order instead. The acting user must be able to\nedit the request, for example its owner or an approver on its approval chain.\nThe edit is handled like a manual request edit in Ramp, including approval\nreconciliation and contract review updates.",
        "properties": {
          "content_type": {
            "description": "MIME type of the file, for example \"application/pdf\".",
            "minLength": 1,
            "title": "Content Type",
            "type": "string"
          },
          "field_id": {
            "description": "ID of the file-upload field on the request's intake form, for example \"supporting_documents\".",
            "minLength": 1,
            "title": "Field Id",
            "type": "string"
          },
          "file_content_base64": {
            "description": "Base64-encoded content of the file.",
            "title": "File Content Base64",
            "type": "string"
          },
          "filename": {
            "description": "Filename of the file, with extension, for example \"msa.pdf\".",
            "minLength": 1,
            "title": "Filename",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "spend_request_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UUIDStrRequestBody"
              }
            ],
            "description": "UUID of the procurement request (its spend request ID)."
          }
        },
        "required": [
          "content_type",
          "field_id",
          "file_content_base64",
          "filename",
          "rationale",
          "spend_request_id"
        ],
        "title": "AddProcurementRequestFieldFile",
        "type": "object"
      },
      "AddProcurementRequestFieldFileResult": {
        "properties": {
          "field_id": {
            "description": "ID of the intake form field that got the file.",
            "title": "Field Id",
            "type": "string"
          },
          "field_label": {
            "description": "Label of the intake form field.",
            "nullable": true,
            "title": "Field Label",
            "type": "string"
          },
          "file_count": {
            "description": "Number of files on the field, including the uploaded file.",
            "title": "File Count",
            "type": "integer"
          },
          "file_id": {
            "description": "UUID of the uploaded file.",
            "title": "File Id",
            "type": "string"
          },
          "filename": {
            "description": "Displayed filename of the uploaded file.",
            "title": "Filename",
            "type": "string"
          },
          "spend_request_id": {
            "description": "UUID of the procurement request.",
            "title": "Spend Request Id",
            "type": "string"
          }
        },
        "required": [
          "field_id",
          "field_label",
          "file_count",
          "file_id",
          "filename",
          "spend_request_id"
        ],
        "title": "AddProcurementRequestFieldFileResult",
        "type": "object"
      },
      "AddUserToSharedFundPublicRequestRequestBody": {
        "description": "Add a human user or standalone agent to a shared fund as a member or co-owner. Provide user_email for a human or agent_id for a standalone agent; role defaults to MEMBER. Human users must finish joining Ramp before they can be added. Fund co-owners can add members, but cannot grant co-owner roles through co-owner access alone. Managers relying on management authority may only add users within their permitted scope. Enabling sharing is rejected without changes when approval is required.",
        "oneOf": [
          {
            "properties": {
              "agent_id": {
                "format": "uuid",
                "type": "string"
              }
            },
            "required": [
              "agent_id"
            ]
          },
          {
            "properties": {
              "user_email": {
                "type": "string"
              }
            },
            "required": [
              "user_email"
            ]
          }
        ],
        "properties": {
          "agent_id": {
            "default": null,
            "description": "ID returned when the standalone agent was created",
            "format": "uuid",
            "nullable": true,
            "title": "Agent Id",
            "type": "string"
          },
          "enable_sharing_if_needed": {
            "default": false,
            "description": "Enable sharing atomically before adding the user when needed.",
            "title": "Enable Sharing If Needed",
            "type": "boolean"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "role": {
            "default": "MEMBER",
            "description": "Role to assign. Defaults to MEMBER.",
            "enum": [
              "COOWNER",
              "MEMBER"
            ],
            "title": "Role",
            "type": "string"
          },
          "spend_allocation_uuid": {
            "description": "UUID of the shared fund",
            "title": "Spend Allocation Uuid",
            "type": "string"
          },
          "user_email": {
            "default": null,
            "description": "Email of the human user to add",
            "nullable": true,
            "title": "User Email",
            "type": "string"
          }
        },
        "required": [
          "rationale",
          "spend_allocation_uuid"
        ],
        "title": "AddUserToSharedFundPublicRequest",
        "type": "object"
      },
      "AddUserToSharedFundPublicResult": {
        "properties": {
          "message": {
            "title": "Message",
            "type": "string"
          },
          "role": {
            "default": null,
            "description": "Role assigned to the user",
            "nullable": true,
            "title": "Role",
            "type": "string"
          },
          "spend_allocation_uuid": {
            "default": null,
            "description": "UUID of the spend allocation",
            "nullable": true,
            "title": "Spend Allocation Uuid",
            "type": "string"
          }
        },
        "required": [
          "message"
        ],
        "title": "AddUserToSharedFundPublicResult",
        "type": "object"
      },
      "AdminApprovalCandidate": {
        "properties": {
          "approval_instance_uuid": {
            "description": "Pending approval step UUID.",
            "title": "Approval Instance Uuid",
            "type": "string"
          },
          "name": {
            "description": "Approval step display name.",
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "approval_instance_uuid",
          "name"
        ],
        "title": "AdminApprovalCandidate",
        "type": "object"
      },
      "Agent": {
        "properties": {
          "created_at": {
            "description": "Time at which the standalone agent was created.",
            "format": "date-time",
            "type": "string"
          },
          "creator": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AgentIdentity"
              }
            ],
            "description": "User who created the standalone agent."
          },
          "deactivated_at": {
            "description": "Time at which the standalone agent was deactivated.",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "deleted_at": {
            "description": "Time at which the standalone agent was deleted.",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "description": {
            "description": "Description of the standalone agent.",
            "nullable": true,
            "type": "string"
          },
          "id": {
            "description": "Unique identifier of the standalone agent.",
            "format": "uuid",
            "type": "string",
            "x-relationship": {
              "inverse_field_name": null,
              "reference_field_name": "id",
              "target_resource": "agents",
              "type": "one-to-one"
            }
          },
          "identity_type": {
            "description": "Identity type of the standalone agent.",
            "enum": [
              "EXTERNAL_AGENT",
              "HUMAN",
              "INTEGRATION_AGENT"
            ],
            "type": "string"
          },
          "last_accessed_at": {
            "description": "Time at which the standalone agent last accessed Ramp.",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "name": {
            "description": "Display name of the standalone agent.",
            "type": "string"
          },
          "owner": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AgentIdentity"
              }
            ],
            "description": "Owner of the standalone agent.",
            "nullable": true
          },
          "roles": {
            "description": "Roles assigned to the standalone agent.",
            "items": {
              "$ref": "#/components/schemas/AgentRole"
            },
            "type": "array"
          },
          "status": {
            "description": "Current status of the standalone agent.",
            "enum": [
              "ACTIVE",
              "DELETED",
              "DRAFT",
              "INACTIVE",
              "PENDING"
            ],
            "type": "string"
          }
        },
        "required": [
          "created_at",
          "creator",
          "deactivated_at",
          "deleted_at",
          "description",
          "id",
          "identity_type",
          "last_accessed_at",
          "name",
          "owner",
          "roles",
          "status"
        ],
        "type": "object",
        "x-resource-name": "agents"
      },
      "AgentAccountDetails": {
        "discriminator": {
          "mapping": {
            "ach": "#/components/schemas/ACHCounterpartyDetails",
            "aud": "#/components/schemas/AUDCounterpartyDetails",
            "bre_b": "#/components/schemas/BreBCounterpartyDetails",
            "cad": "#/components/schemas/CADCounterpartyDetails",
            "eur": "#/components/schemas/EURCounterpartyDetails",
            "evm": "#/components/schemas/EVMCounterpartyDetails",
            "gbp": "#/components/schemas/GBPCounterpartyDetails",
            "inr": "#/components/schemas/INRCounterpartyDetails",
            "mvm": "#/components/schemas/MoveVMCounterpartyDetails",
            "mxn": "#/components/schemas/MXNCounterpartyDetails",
            "rtp": "#/components/schemas/RTPCounterpartyDetails",
            "sgd": "#/components/schemas/SGDCounterpartyDetails",
            "svm": "#/components/schemas/SVMCounterpartyDetails",
            "swift": "#/components/schemas/SWIFTCounterpartyDetails",
            "wire": "#/components/schemas/WireCounterpartyDetails"
          },
          "propertyName": "type"
        },
        "oneOf": [
          {
            "$ref": "#/components/schemas/ACHCounterpartyDetails"
          },
          {
            "$ref": "#/components/schemas/AUDCounterpartyDetails"
          },
          {
            "$ref": "#/components/schemas/BreBCounterpartyDetails"
          },
          {
            "$ref": "#/components/schemas/CADCounterpartyDetails"
          },
          {
            "$ref": "#/components/schemas/EURCounterpartyDetails"
          },
          {
            "$ref": "#/components/schemas/EVMCounterpartyDetails"
          },
          {
            "$ref": "#/components/schemas/GBPCounterpartyDetails"
          },
          {
            "$ref": "#/components/schemas/INRCounterpartyDetails"
          },
          {
            "$ref": "#/components/schemas/MXNCounterpartyDetails"
          },
          {
            "$ref": "#/components/schemas/MoveVMCounterpartyDetails"
          },
          {
            "$ref": "#/components/schemas/RTPCounterpartyDetails"
          },
          {
            "$ref": "#/components/schemas/SGDCounterpartyDetails"
          },
          {
            "$ref": "#/components/schemas/SVMCounterpartyDetails"
          },
          {
            "$ref": "#/components/schemas/SWIFTCounterpartyDetails"
          },
          {
            "$ref": "#/components/schemas/WireCounterpartyDetails"
          }
        ],
        "title": "AgentAccountDetails"
      },
      "AgentAccountNumberResponse": {
        "example": {
          "account_details": [
            {
              "account_name": null,
              "account_number": "123456789",
              "currency": "USD",
              "mailing_address": null,
              "payment_method": "ACH",
              "routing_number": "987654320",
              "type": "ach"
            }
          ],
          "banking_account_id": "f6a0e5f1-45cc-4e36-9c47-b44c6422f5be",
          "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
          "name": "Agent account number"
        },
        "properties": {
          "account_details": {
            "description": "Payment details available for receiving funds",
            "items": {
              "$ref": "#/components/schemas/AgentAccountDetails"
            },
            "type": "array"
          },
          "banking_account_id": {
            "description": "Banking account that owns this account number",
            "format": "uuid",
            "type": "string",
            "x-relationship": {
              "inverse_field_name": null,
              "reference_field_name": "id",
              "target_resource": "banking_accounts",
              "type": "many-to-one"
            }
          },
          "id": {
            "description": "Identifier of the agent account number",
            "format": "uuid",
            "type": "string"
          },
          "name": {
            "description": "Display name of the account number",
            "type": "string"
          }
        },
        "required": [
          "account_details",
          "banking_account_id",
          "id",
          "name"
        ],
        "type": "object"
      },
      "AgentAddressFieldAnswerRequestBody": {
        "properties": {
          "address1": {
            "description": "Street address line 1.",
            "title": "Address1",
            "type": "string"
          },
          "address2": {
            "default": null,
            "description": "Street address line 2.",
            "nullable": true,
            "title": "Address2",
            "type": "string"
          },
          "answer_type": {
            "description": "Must be address.",
            "enum": [
              "address"
            ],
            "title": "Answer Type",
            "type": "string"
          },
          "city": {
            "description": "City.",
            "title": "City",
            "type": "string"
          },
          "country": {
            "description": "ISO 3166-1 alpha-2 country code, such as US.",
            "title": "Country",
            "type": "string"
          },
          "field_id": {
            "description": "Visible custom-form field ID returned by draft state.",
            "title": "Field Id",
            "type": "string"
          },
          "postal_code": {
            "default": null,
            "description": "Postal or ZIP code.",
            "nullable": true,
            "title": "Postal Code",
            "type": "string"
          },
          "state": {
            "default": null,
            "description": "State or province.",
            "nullable": true,
            "title": "State",
            "type": "string"
          }
        },
        "required": [
          "address1",
          "answer_type",
          "city",
          "country",
          "field_id"
        ],
        "title": "AgentAddressFieldAnswer",
        "type": "object"
      },
      "AgentBankTransferPaymentDetailsRequestBody": {
        "additionalProperties": false,
        "properties": {
          "amount": {
            "description": "Payment amount in the bill currency.",
            "oneOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              }
            ]
          },
          "bank_account_uuid": {
            "default": null,
            "description": "UUID of the business bank account to pay from.",
            "nullable": true,
            "type": "string"
          },
          "destination_currency": {
            "description": "3-letter ISO 4217 currency code.",
            "type": "string"
          },
          "payee_bank_account_uuid": {
            "default": null,
            "description": "UUID of the vendor bank account to pay to.",
            "nullable": true,
            "type": "string"
          },
          "payment_date": {
            "default": null,
            "format": "date",
            "nullable": true,
            "type": "string"
          },
          "payment_method": {
            "enum": [
              "ACH",
              "DOMESTIC_WIRE",
              "FED_NOW",
              "INTERNATIONAL",
              "LOCAL_BANK_TRANSFER",
              "RTP",
              "SWIFT"
            ],
            "type": "string"
          },
          "payment_speed": {
            "$ref": "#/components/schemas/BillPayVendorPaymentSpeedRequestBody"
          }
        },
        "required": [
          "amount",
          "destination_currency",
          "payment_method",
          "payment_speed"
        ],
        "title": "AgentBankTransferPaymentDetails",
        "type": "object"
      },
      "AgentBooleanFieldAnswerRequestBody": {
        "properties": {
          "answer_type": {
            "description": "Must be boolean.",
            "enum": [
              "boolean"
            ],
            "title": "Answer Type",
            "type": "string"
          },
          "field_id": {
            "description": "Visible custom-form field ID returned by draft state.",
            "title": "Field Id",
            "type": "string"
          },
          "value": {
            "description": "Boolean answer for this field.",
            "title": "Value",
            "type": "boolean"
          }
        },
        "required": [
          "answer_type",
          "field_id",
          "value"
        ],
        "title": "AgentBooleanFieldAnswer",
        "type": "object"
      },
      "AgentCardFundInfo": {
        "properties": {
          "allowed_categories": {
            "items": {
              "type": "string"
            },
            "title": "Allowed Categories",
            "type": "array"
          },
          "allowed_merchants": {
            "items": {
              "type": "string"
            },
            "title": "Allowed Merchants",
            "type": "array"
          },
          "available_balance": {
            "title": "Available Balance",
            "type": "string"
          },
          "currency": {
            "title": "Currency",
            "type": "string"
          },
          "display_name": {
            "title": "Display Name",
            "type": "string"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "interval": {
            "title": "Interval",
            "type": "string"
          },
          "max_transaction_amount": {
            "nullable": true,
            "title": "Max Transaction Amount",
            "type": "string"
          }
        },
        "required": [
          "allowed_categories",
          "allowed_merchants",
          "available_balance",
          "currency",
          "display_name",
          "id",
          "interval",
          "max_transaction_amount"
        ],
        "title": "AgentCardFundInfo",
        "type": "object"
      },
      "AgentCardFundsList": {
        "properties": {
          "funds": {
            "items": {
              "$ref": "#/components/schemas/AgentCardFundInfo"
            },
            "title": "Funds",
            "type": "array"
          }
        },
        "required": [
          "funds"
        ],
        "title": "AgentCardFundsList",
        "type": "object"
      },
      "AgentCheckPaymentDetailsRequestBody": {
        "additionalProperties": false,
        "properties": {
          "amount": {
            "description": "Payment amount in the bill currency.",
            "oneOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              }
            ]
          },
          "bank_account_uuid": {
            "default": null,
            "description": "UUID of the business bank account to pay from.",
            "nullable": true,
            "type": "string"
          },
          "payee_address_uuid": {
            "default": null,
            "description": "UUID of the vendor mailing address.",
            "nullable": true,
            "type": "string"
          },
          "payment_date": {
            "default": null,
            "format": "date",
            "nullable": true,
            "type": "string"
          },
          "payment_method": {
            "enum": [
              "CHECK"
            ],
            "type": "string"
          },
          "payment_speed": {
            "$ref": "#/components/schemas/BillPayVendorPaymentSpeedRequestBody"
          }
        },
        "required": [
          "amount",
          "payment_method",
          "payment_speed"
        ],
        "title": "AgentCheckPaymentDetails",
        "type": "object"
      },
      "AgentContactFieldAnswerRequestBody": {
        "properties": {
          "answer_type": {
            "description": "Must be contact.",
            "enum": [
              "contact"
            ],
            "title": "Answer Type",
            "type": "string"
          },
          "email": {
            "description": "Contact email address.",
            "title": "Email",
            "type": "string"
          },
          "field_id": {
            "description": "Visible custom-form field ID returned by draft state.",
            "title": "Field Id",
            "type": "string"
          },
          "first_name": {
            "default": null,
            "description": "Optional first name.",
            "nullable": true,
            "title": "First Name",
            "type": "string"
          },
          "last_name": {
            "default": null,
            "description": "Optional last name.",
            "nullable": true,
            "title": "Last Name",
            "type": "string"
          },
          "phone_number": {
            "default": null,
            "description": "Optional phone number.",
            "nullable": true,
            "title": "Phone Number",
            "type": "string"
          }
        },
        "required": [
          "answer_type",
          "email",
          "field_id"
        ],
        "title": "AgentContactFieldAnswer",
        "type": "object"
      },
      "AgentCreateRequestBody": {
        "example": {
          "description": "Automates purchase order intake.",
          "name": "Procurement Agent",
          "role_ids": [
            "7c322160-2871-4382-b026-92597ce3ed19"
          ]
        },
        "properties": {
          "description": {
            "default": null,
            "description": "Description of the standalone agent.",
            "maxLength": 300,
            "nullable": true,
            "type": "string"
          },
          "name": {
            "description": "Display name of the standalone agent.",
            "minLength": 1,
            "type": "string"
          },
          "owner_id": {
            "description": "Unique identifier of the owning user. Defaults to the authorizing user when omitted.",
            "format": "uuid",
            "nullable": true,
            "type": "string",
            "x-relationship": {
              "inverse_field_name": null,
              "reference_field_name": "id",
              "target_resource": "users",
              "type": "many-to-one"
            }
          },
          "role_ids": {
            "description": "Custom role ids assigned to the standalone agent. At least one existing custom role is required.",
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "maxItems": 25,
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "name",
          "role_ids"
        ],
        "type": "object"
      },
      "AgentCreateResponse": {
        "properties": {
          "client_id": {
            "description": "OAuth client id bound to the standalone agent.",
            "type": "string"
          },
          "client_secret": {
            "description": "OAuth client secret bound to the standalone agent. Shown only once; store it securely.",
            "type": "string"
          },
          "created_at": {
            "description": "Time at which the standalone agent was created.",
            "format": "date-time",
            "type": "string"
          },
          "creator": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AgentIdentity"
              }
            ],
            "description": "User who created the standalone agent."
          },
          "deactivated_at": {
            "description": "Time at which the standalone agent was deactivated.",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "deleted_at": {
            "description": "Time at which the standalone agent was deleted.",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "description": {
            "description": "Description of the standalone agent.",
            "nullable": true,
            "type": "string"
          },
          "id": {
            "description": "Unique identifier of the standalone agent.",
            "format": "uuid",
            "type": "string",
            "x-relationship": {
              "inverse_field_name": null,
              "reference_field_name": "id",
              "target_resource": "agents",
              "type": "one-to-one"
            }
          },
          "identity_type": {
            "description": "Identity type of the standalone agent.",
            "enum": [
              "EXTERNAL_AGENT",
              "HUMAN",
              "INTEGRATION_AGENT"
            ],
            "type": "string"
          },
          "last_accessed_at": {
            "description": "Time at which the standalone agent last accessed Ramp.",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "name": {
            "description": "Display name of the standalone agent.",
            "type": "string"
          },
          "owner": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AgentIdentity"
              }
            ],
            "description": "Owner of the standalone agent.",
            "nullable": true
          },
          "roles": {
            "description": "Roles assigned to the standalone agent.",
            "items": {
              "$ref": "#/components/schemas/AgentRole"
            },
            "type": "array"
          },
          "status": {
            "description": "Current status of the standalone agent.",
            "enum": [
              "ACTIVE",
              "DELETED",
              "DRAFT",
              "INACTIVE",
              "PENDING"
            ],
            "type": "string"
          }
        },
        "required": [
          "client_id",
          "client_secret",
          "created_at",
          "creator",
          "deactivated_at",
          "deleted_at",
          "description",
          "id",
          "identity_type",
          "last_accessed_at",
          "name",
          "owner",
          "roles",
          "status"
        ],
        "type": "object",
        "x-resource-name": "agents"
      },
      "AgentCredentials": {
        "properties": {
          "client_id": {
            "description": "OAuth client id bound to the standalone agent.",
            "type": "string"
          },
          "client_secret": {
            "description": "OAuth client secret bound to the standalone agent. Shown only once; store it securely.",
            "type": "string"
          }
        },
        "required": [
          "client_id",
          "client_secret"
        ],
        "type": "object"
      },
      "AgentCurrentFileJsonMode": {
        "properties": {
          "displayed_filename": {
            "title": "Displayed Filename",
            "type": "string"
          },
          "document_category": {
            "title": "Document Category",
            "type": "string"
          },
          "file_uuid": {
            "title": "File Uuid",
            "type": "string"
          }
        },
        "required": [
          "displayed_filename",
          "document_category",
          "file_uuid"
        ],
        "title": "AgentCurrentFile",
        "type": "object"
      },
      "AgentDateFieldAnswerRequestBody": {
        "properties": {
          "answer_type": {
            "description": "Must be date. Value must be a YYYY-MM-DD string.",
            "enum": [
              "date"
            ],
            "title": "Answer Type",
            "type": "string"
          },
          "field_id": {
            "description": "Visible custom-form field ID returned by draft state.",
            "title": "Field Id",
            "type": "string"
          },
          "value": {
            "description": "String answer for this field.",
            "title": "Value",
            "type": "string"
          }
        },
        "required": [
          "answer_type",
          "field_id",
          "value"
        ],
        "title": "AgentDateFieldAnswer",
        "type": "object"
      },
      "AgentDepartmentFieldAnswerRequestBody": {
        "properties": {
          "answer_type": {
            "description": "Must be department.",
            "enum": [
              "department"
            ],
            "title": "Answer Type",
            "type": "string"
          },
          "department_uuid": {
            "description": "Existing Ramp department UUID.",
            "format": "uuid",
            "title": "Department Uuid",
            "type": "string"
          },
          "field_id": {
            "description": "Visible custom-form field ID returned by draft state.",
            "title": "Field Id",
            "type": "string"
          }
        },
        "required": [
          "answer_type",
          "department_uuid",
          "field_id"
        ],
        "title": "AgentDepartmentFieldAnswer",
        "type": "object"
      },
      "AgentDraftBillInvoiceRequestBody": {
        "additionalProperties": false,
        "description": "Attached invoice document.",
        "properties": {
          "attachment_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BillPayAttachmentTypeRequestBody"
              }
            ],
            "default": null,
            "nullable": true
          },
          "document_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BillDocumentTypeRequestBody"
              }
            ],
            "nullable": true
          },
          "id": {
            "description": "UUID of the uploaded invoice document.",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "title": "AgentDraftBillInvoice",
        "type": "object"
      },
      "AgentDraftBillPaymentDetailsRequestBody": {
        "additionalProperties": false,
        "description": "Planned payment details for the draft.",
        "properties": {
          "bank_account_id": {
            "default": null,
            "nullable": true,
            "type": "integer"
          },
          "payment_currency": {
            "default": null,
            "description": "3-letter ISO 4217 currency code.",
            "nullable": true,
            "type": "string"
          },
          "payment_date": {
            "default": null,
            "format": "date",
            "nullable": true,
            "type": "string"
          },
          "payment_method": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BillPaymentMethodRequestBody"
              }
            ],
            "default": null,
            "nullable": true
          },
          "payment_speed": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BillPayVendorPaymentSpeedRequestBody"
              }
            ],
            "default": null,
            "nullable": true
          },
          "vendor_address_uuid": {
            "default": null,
            "nullable": true,
            "type": "string"
          },
          "vendor_bank_account_uuid": {
            "default": null,
            "nullable": true,
            "type": "string"
          },
          "vendor_should_upload_ach_details": {
            "default": false,
            "description": "Ask the vendor to provide bank account details.",
            "type": "boolean"
          }
        },
        "title": "AgentDraftBillPaymentDetails",
        "type": "object"
      },
      "AgentDraftBillVendorPaymentRequestBody": {
        "additionalProperties": false,
        "description": "A draft payment. The list replaces all existing draft payments.",
        "properties": {
          "payment_details": {
            "discriminator": {
              "mapping": {
                "ACH": "#/components/schemas/AgentBankTransferPaymentDetailsRequestBody",
                "CHECK": "#/components/schemas/AgentCheckPaymentDetailsRequestBody",
                "DOMESTIC_WIRE": "#/components/schemas/AgentBankTransferPaymentDetailsRequestBody",
                "FED_NOW": "#/components/schemas/AgentBankTransferPaymentDetailsRequestBody",
                "INTERNATIONAL": "#/components/schemas/AgentBankTransferPaymentDetailsRequestBody",
                "LOCAL_BANK_TRANSFER": "#/components/schemas/AgentBankTransferPaymentDetailsRequestBody",
                "PAID_MANUALLY": "#/components/schemas/AgentManualPaymentDetailsRequestBody",
                "RTP": "#/components/schemas/AgentBankTransferPaymentDetailsRequestBody",
                "SWIFT": "#/components/schemas/AgentBankTransferPaymentDetailsRequestBody"
              },
              "propertyName": "payment_method"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/AgentBankTransferPaymentDetailsRequestBody"
              },
              {
                "$ref": "#/components/schemas/AgentCheckPaymentDetailsRequestBody"
              },
              {
                "$ref": "#/components/schemas/AgentManualPaymentDetailsRequestBody"
              }
            ]
          }
        },
        "required": [
          "payment_details"
        ],
        "title": "AgentDraftBillVendorPayment",
        "type": "object"
      },
      "AgentDraftFieldJsonMode": {
        "properties": {
          "answer_template": {
            "additionalProperties": {
              "$ref": "#/components/schemas/JsonValueJsonMode"
            },
            "title": "Answer Template",
            "type": "object"
          },
          "answered": {
            "title": "Answered",
            "type": "boolean"
          },
          "choices": {
            "items": {
              "$ref": "#/components/schemas/AgentFieldChoiceJsonMode"
            },
            "title": "Choices",
            "type": "array"
          },
          "current_files": {
            "default": null,
            "items": {
              "$ref": "#/components/schemas/AgentCurrentFileJsonMode"
            },
            "nullable": true,
            "title": "Current Files",
            "type": "array"
          },
          "current_value_display_string": {
            "nullable": true,
            "title": "Current Value Display String",
            "type": "string"
          },
          "description": {
            "default": null,
            "nullable": true,
            "title": "Description",
            "type": "string"
          },
          "field_id": {
            "title": "Field Id",
            "type": "string"
          },
          "field_type": {
            "title": "Field Type",
            "type": "string"
          },
          "label": {
            "nullable": true,
            "title": "Label",
            "type": "string"
          },
          "lookup": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AgentFieldLookupJsonMode"
              }
            ],
            "default": null,
            "nullable": true
          },
          "required": {
            "title": "Required",
            "type": "boolean"
          }
        },
        "required": [
          "answer_template",
          "answered",
          "current_value_display_string",
          "field_id",
          "field_type",
          "label",
          "required"
        ],
        "title": "AgentDraftField",
        "type": "object"
      },
      "AgentEmailFieldAnswerRequestBody": {
        "properties": {
          "answer_type": {
            "description": "Must be email.",
            "enum": [
              "email"
            ],
            "title": "Answer Type",
            "type": "string"
          },
          "field_id": {
            "description": "Visible custom-form field ID returned by draft state.",
            "title": "Field Id",
            "type": "string"
          },
          "value": {
            "description": "String answer for this field.",
            "title": "Value",
            "type": "string"
          }
        },
        "required": [
          "answer_type",
          "field_id",
          "value"
        ],
        "title": "AgentEmailFieldAnswer",
        "type": "object"
      },
      "AgentFieldChoiceJsonMode": {
        "properties": {
          "label": {
            "nullable": true,
            "title": "Label",
            "type": "string"
          },
          "value": {
            "title": "Value",
            "type": "string"
          }
        },
        "required": [
          "label",
          "value"
        ],
        "title": "AgentFieldChoice",
        "type": "object"
      },
      "AgentFieldLookupJsonMode": {
        "properties": {
          "category": {
            "title": "Category",
            "type": "string"
          },
          "example_args": {
            "additionalProperties": {
              "$ref": "#/components/schemas/JsonValueJsonMode"
            },
            "title": "Example Args",
            "type": "object"
          },
          "purpose": {
            "title": "Purpose",
            "type": "string"
          },
          "result_path": {
            "title": "Result Path",
            "type": "string"
          },
          "tool": {
            "title": "Tool",
            "type": "string"
          }
        },
        "required": [
          "category",
          "example_args",
          "purpose",
          "result_path",
          "tool"
        ],
        "title": "AgentFieldLookup",
        "type": "object"
      },
      "AgentFileUploadFieldAnswerRequestBody": {
        "properties": {
          "answer_type": {
            "description": "Must be file_upload.",
            "enum": [
              "file_upload"
            ],
            "title": "Answer Type",
            "type": "string"
          },
          "field_id": {
            "description": "Visible custom-form field ID returned by draft state.",
            "title": "Field Id",
            "type": "string"
          },
          "file_uuids": {
            "description": "Form file UUIDs to keep on the field, from its current_files. A procurement file upload link saves new files to the field itself.",
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "title": "File Uuids",
            "type": "array"
          }
        },
        "required": [
          "answer_type",
          "field_id",
          "file_uuids"
        ],
        "title": "AgentFileUploadFieldAnswer",
        "type": "object"
      },
      "AgentIdentity": {
        "properties": {
          "id": {
            "description": "Unique identifier of the user.",
            "format": "uuid",
            "type": "string",
            "x-relationship": {
              "inverse_field_name": null,
              "reference_field_name": "id",
              "target_resource": "users",
              "type": "one-to-one"
            }
          },
          "name": {
            "description": "Display name of the user.",
            "type": "string"
          },
          "status": {
            "description": "Current status of the user.",
            "enum": [
              "ACTIVE",
              "DELETED",
              "DRAFT",
              "INACTIVE",
              "PENDING"
            ],
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "status"
        ],
        "type": "object"
      },
      "AgentKeyDetail": {
        "description": "Agent key information when the caller is authenticated via an agent key.",
        "properties": {
          "id": {
            "description": "Agent key UUID",
            "title": "Id",
            "type": "string"
          },
          "name": {
            "default": null,
            "description": "Human-readable agent key name, if available",
            "nullable": true,
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "title": "AgentKeyDetail",
        "type": "object"
      },
      "AgentLinkFieldAnswerRequestBody": {
        "properties": {
          "answer_type": {
            "description": "Must be link.",
            "enum": [
              "link"
            ],
            "title": "Answer Type",
            "type": "string"
          },
          "field_id": {
            "description": "Visible custom-form field ID returned by draft state.",
            "title": "Field Id",
            "type": "string"
          },
          "value": {
            "description": "String answer for this field.",
            "title": "Value",
            "type": "string"
          }
        },
        "required": [
          "answer_type",
          "field_id",
          "value"
        ],
        "title": "AgentLinkFieldAnswer",
        "type": "object"
      },
      "AgentManualPaymentDetailsRequestBody": {
        "additionalProperties": false,
        "properties": {
          "amount": {
            "description": "Payment amount in the bill currency.",
            "oneOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              }
            ]
          },
          "destination_currency": {
            "description": "3-letter ISO 4217 currency code.",
            "type": "string"
          },
          "payment_method": {
            "enum": [
              "PAID_MANUALLY"
            ],
            "type": "string"
          }
        },
        "required": [
          "amount",
          "destination_currency",
          "payment_method"
        ],
        "title": "AgentManualPaymentDetails",
        "type": "object"
      },
      "AgentMerchantCategoryFieldAnswerRequestBody": {
        "properties": {
          "answer_type": {
            "description": "Must be merchant_category.",
            "enum": [
              "merchant_category"
            ],
            "title": "Answer Type",
            "type": "string"
          },
          "category_ids": {
            "description": "Existing merchant category integer IDs returned by merchant categories.",
            "items": {
              "type": "integer"
            },
            "title": "Category Ids",
            "type": "array"
          },
          "field_id": {
            "description": "Visible custom-form field ID returned by draft state.",
            "title": "Field Id",
            "type": "string"
          }
        },
        "required": [
          "answer_type",
          "category_ids",
          "field_id"
        ],
        "title": "AgentMerchantCategoryFieldAnswer",
        "type": "object"
      },
      "AgentMerchantFieldAnswerRequestBody": {
        "properties": {
          "answer_type": {
            "description": "Must be merchant.",
            "enum": [
              "merchant"
            ],
            "title": "Answer Type",
            "type": "string"
          },
          "field_id": {
            "description": "Visible custom-form field ID returned by draft state.",
            "title": "Field Id",
            "type": "string"
          },
          "merchant_uuids": {
            "description": "Existing Ramp merchant UUIDs returned by merchant search.",
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "title": "Merchant Uuids",
            "type": "array"
          }
        },
        "required": [
          "answer_type",
          "field_id",
          "merchant_uuids"
        ],
        "title": "AgentMerchantFieldAnswer",
        "type": "object"
      },
      "AgentMonetaryAmountFieldAnswerRequestBody": {
        "properties": {
          "amount": {
            "description": "Finite amount in currency units. String values are preferred.",
            "oneOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "title": "Amount"
          },
          "answer_type": {
            "description": "Must be monetary_amount.",
            "enum": [
              "monetary_amount"
            ],
            "title": "Answer Type",
            "type": "string"
          },
          "currency": {
            "description": "ISO 4217 currency code, such as USD.",
            "title": "Currency",
            "type": "string"
          },
          "field_id": {
            "description": "Visible custom-form field ID returned by draft state.",
            "title": "Field Id",
            "type": "string"
          }
        },
        "required": [
          "amount",
          "answer_type",
          "currency",
          "field_id"
        ],
        "title": "AgentMonetaryAmountFieldAnswer",
        "type": "object"
      },
      "AgentMultiSelectFieldAnswerRequestBody": {
        "properties": {
          "answer_type": {
            "description": "Must be multi_select.",
            "enum": [
              "multi_select"
            ],
            "title": "Answer Type",
            "type": "string"
          },
          "field_id": {
            "description": "Visible custom-form field ID returned by draft state.",
            "title": "Field Id",
            "type": "string"
          },
          "values": {
            "description": "Selected choice values. Use choices[].value from the latest draft response.",
            "items": {
              "type": "string"
            },
            "title": "Values",
            "type": "array"
          }
        },
        "required": [
          "answer_type",
          "field_id",
          "values"
        ],
        "title": "AgentMultiSelectFieldAnswer",
        "type": "object"
      },
      "AgentNumberFieldAnswerRequestBody": {
        "properties": {
          "answer_type": {
            "description": "Must be number.",
            "enum": [
              "number"
            ],
            "title": "Answer Type",
            "type": "string"
          },
          "field_id": {
            "description": "Visible custom-form field ID returned by draft state.",
            "title": "Field Id",
            "type": "string"
          },
          "value": {
            "description": "Finite numeric answer for this field.",
            "oneOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "title": "Value"
          }
        },
        "required": [
          "answer_type",
          "field_id",
          "value"
        ],
        "title": "AgentNumberFieldAnswer",
        "type": "object"
      },
      "AgentParagraphFieldAnswerRequestBody": {
        "properties": {
          "answer_type": {
            "description": "Must be paragraph.",
            "enum": [
              "paragraph"
            ],
            "title": "Answer Type",
            "type": "string"
          },
          "field_id": {
            "description": "Visible custom-form field ID returned by draft state.",
            "title": "Field Id",
            "type": "string"
          },
          "value": {
            "description": "String answer for this field.",
            "title": "Value",
            "type": "string"
          }
        },
        "required": [
          "answer_type",
          "field_id",
          "value"
        ],
        "title": "AgentParagraphFieldAnswer",
        "type": "object"
      },
      "AgentPurchaseOrderLinkRequestBody": {
        "additionalProperties": false,
        "properties": {
          "provenance": {
            "enum": [
              "AUTO_MATCHED",
              "PO_CONTEXT_PRESELECTED",
              "USER_SELECTED"
            ],
            "type": "string"
          },
          "purchase_order_id": {
            "description": "UUID of the purchase order.",
            "type": "string"
          }
        },
        "required": [
          "provenance",
          "purchase_order_id"
        ],
        "title": "AgentPurchaseOrderLink",
        "type": "object"
      },
      "AgentReportSummary": {
        "properties": {
          "agent_title": {
            "title": "Agent Title",
            "type": "string"
          },
          "has_report": {
            "title": "Has Report",
            "type": "boolean"
          },
          "report_content": {
            "default": null,
            "nullable": true,
            "title": "Report Content",
            "type": "string"
          },
          "report_id": {
            "title": "Report Id",
            "type": "string"
          },
          "report_summary": {
            "default": null,
            "nullable": true,
            "title": "Report Summary",
            "type": "string"
          },
          "status": {
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "agent_title",
          "has_report",
          "report_id",
          "status"
        ],
        "title": "AgentReportSummary",
        "type": "object"
      },
      "AgentRole": {
        "properties": {
          "id": {
            "description": "Unique identifier of the agent role.",
            "format": "uuid",
            "type": "string"
          },
          "name": {
            "description": "Display name of the agent role.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "type": "object"
      },
      "AgentSingleSelectFieldAnswerRequestBody": {
        "properties": {
          "answer_type": {
            "description": "Must be single_select. Use choices[].value exactly.",
            "enum": [
              "single_select"
            ],
            "title": "Answer Type",
            "type": "string"
          },
          "field_id": {
            "description": "Visible custom-form field ID returned by draft state.",
            "title": "Field Id",
            "type": "string"
          },
          "value": {
            "description": "String answer for this field.",
            "title": "Value",
            "type": "string"
          }
        },
        "required": [
          "answer_type",
          "field_id",
          "value"
        ],
        "title": "AgentSingleSelectFieldAnswer",
        "type": "object"
      },
      "AgentStatusRequestBody": {
        "example": {
          "status": "INACTIVE"
        },
        "properties": {
          "status": {
            "description": "Set ACTIVE to reactivate the standalone agent or INACTIVE to deactivate it.",
            "enum": [
              "ACTIVE",
              "INACTIVE"
            ],
            "type": "string",
            "x-enum-descriptions": {
              "ACTIVE": "Reactivate the standalone agent.",
              "INACTIVE": "Deactivate the standalone agent."
            }
          }
        },
        "required": [
          "status"
        ],
        "type": "object"
      },
      "AgentTextFieldAnswerRequestBody": {
        "properties": {
          "answer_type": {
            "description": "Must be text.",
            "enum": [
              "text"
            ],
            "title": "Answer Type",
            "type": "string"
          },
          "field_id": {
            "description": "Visible custom-form field ID returned by draft state.",
            "title": "Field Id",
            "type": "string"
          },
          "value": {
            "description": "String answer for this field.",
            "title": "Value",
            "type": "string"
          }
        },
        "required": [
          "answer_type",
          "field_id",
          "value"
        ],
        "title": "AgentTextFieldAnswer",
        "type": "object"
      },
      "AgentTrackingCategorySelectionRequestBody": {
        "additionalProperties": false,
        "description": "One accounting field (tracking category) value.\n\nSet exactly one of tracking_category_option_id, free_form_text, or date.\nA tracking category can have only one value per bill or line item.",
        "properties": {
          "date": {
            "default": null,
            "description": "Value for a date tracking category.",
            "format": "date",
            "nullable": true,
            "type": "string"
          },
          "free_form_text": {
            "default": null,
            "description": "Value for a free-text tracking category.",
            "nullable": true,
            "type": "string"
          },
          "tracking_category_id": {
            "default": null,
            "description": "Tracking category UUID. Optional when tracking_category_option_id is an option UUID.",
            "nullable": true,
            "oneOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ]
          },
          "tracking_category_option_id": {
            "default": null,
            "description": "Option UUID for list-type tracking categories. Prefer this.",
            "nullable": true,
            "oneOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ]
          }
        },
        "title": "AgentTrackingCategorySelection",
        "type": "object"
      },
      "AgentUpdateRequestBody": {
        "example": {
          "name": "Procurement Agent"
        },
        "properties": {
          "description": {
            "description": "Description of the standalone agent. Pass null to clear.",
            "maxLength": 300,
            "nullable": true,
            "type": "string"
          },
          "name": {
            "description": "Display name of the standalone agent.",
            "minLength": 1,
            "type": "string"
          },
          "owner_id": {
            "description": "Unique identifier of the owning user.",
            "format": "uuid",
            "type": "string",
            "x-relationship": {
              "inverse_field_name": null,
              "reference_field_name": "id",
              "target_resource": "users",
              "type": "many-to-one"
            }
          },
          "role_ids": {
            "description": "Custom role ids that replace the agent's current custom roles.",
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "maxItems": 25,
            "minItems": 1,
            "type": "array"
          }
        },
        "type": "object"
      },
      "AgentUserFieldAnswerRequestBody": {
        "properties": {
          "answer_type": {
            "description": "Must be user.",
            "enum": [
              "user"
            ],
            "title": "Answer Type",
            "type": "string"
          },
          "field_id": {
            "description": "Visible custom-form field ID returned by draft state.",
            "title": "Field Id",
            "type": "string"
          },
          "user_uuid": {
            "description": "Existing Ramp user UUID returned by users list.",
            "format": "uuid",
            "title": "User Uuid",
            "type": "string"
          }
        },
        "required": [
          "answer_type",
          "field_id",
          "user_uuid"
        ],
        "title": "AgentUserFieldAnswer",
        "type": "object"
      },
      "AgentVendorFieldAnswerRequestBody": {
        "properties": {
          "answer_type": {
            "description": "Must be vendor.",
            "enum": [
              "vendor"
            ],
            "title": "Answer Type",
            "type": "string"
          },
          "field_id": {
            "description": "Visible custom-form field ID returned by draft state.",
            "title": "Field Id",
            "type": "string"
          },
          "new_vendor_name": {
            "default": null,
            "description": "Name for a vendor that does not exist yet. Prefer payee_uuid when vendor search finds the vendor.",
            "nullable": true,
            "title": "New Vendor Name",
            "type": "string"
          },
          "payee_contact_uuid": {
            "default": null,
            "description": "Existing contact UUID belonging to the selected vendor.",
            "format": "uuid",
            "nullable": true,
            "title": "Payee Contact Uuid",
            "type": "string"
          },
          "payee_uuid": {
            "default": null,
            "description": "Existing vendor UUID returned by vendor search.",
            "format": "uuid",
            "nullable": true,
            "title": "Payee Uuid",
            "type": "string"
          }
        },
        "required": [
          "answer_type",
          "field_id"
        ],
        "title": "AgentVendorFieldAnswer",
        "type": "object"
      },
      "AgentWalletPolicyListResponse": {
        "description": "Policy history returned by the Developer API.",
        "properties": {
          "policies": {
            "items": {
              "$ref": "#/components/schemas/PolicyListItem"
            },
            "title": "Policies",
            "type": "array"
          }
        },
        "required": [
          "policies"
        ],
        "title": "AgentWalletPolicyListResponse",
        "type": "object"
      },
      "AggregateFilterClause": {
        "description": "Numeric post-aggregation comparison against a selected measure output.",
        "properties": {
          "field": {
            "maxLength": 200,
            "minLength": 1,
            "title": "Field",
            "type": "string"
          },
          "op": {
            "$ref": "#/components/schemas/AggregateFilterOp"
          },
          "value": {
            "description": "Numeric threshold compared with the aggregated measure value.",
            "oneOf": [
              {
                "type": "integer"
              },
              {
                "type": "number"
              }
            ],
            "title": "Value"
          }
        },
        "required": [
          "field",
          "op",
          "value"
        ],
        "title": "AggregateFilterClause",
        "type": "object"
      },
      "AggregateFilterOp": {
        "enum": [
          "eq",
          "gt",
          "gte",
          "lt",
          "lte",
          "neq"
        ],
        "title": "AggregateFilterOp",
        "type": "string"
      },
      "AggregatedCostResponseSchema": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/AggregatedCostRowSchema"
            },
            "title": "Data",
            "type": "array"
          },
          "effective_end_at": {
            "format": "date-time",
            "title": "Effective End At",
            "type": "string"
          },
          "effective_start_at": {
            "format": "date-time",
            "title": "Effective Start At",
            "type": "string"
          }
        },
        "required": [
          "data",
          "effective_end_at",
          "effective_start_at"
        ],
        "title": "AggregatedCostResponseSchema",
        "type": "object"
      },
      "AggregatedCostRowSchema": {
        "properties": {
          "business_id": {
            "default": null,
            "format": "uuid",
            "nullable": true,
            "title": "Business Id",
            "type": "string"
          },
          "business_name": {
            "default": null,
            "nullable": true,
            "title": "Business Name",
            "type": "string"
          },
          "client_group_family_id": {
            "default": null,
            "format": "uuid",
            "nullable": true,
            "title": "Client Group Family Id",
            "type": "string"
          },
          "client_group_id": {
            "default": null,
            "format": "uuid",
            "nullable": true,
            "title": "Client Group Id",
            "type": "string"
          },
          "client_group_name": {
            "default": null,
            "nullable": true,
            "title": "Client Group Name",
            "type": "string"
          },
          "configuration_display_name": {
            "default": null,
            "nullable": true,
            "title": "Configuration Display Name",
            "type": "string"
          },
          "configuration_id": {
            "default": null,
            "format": "uuid",
            "nullable": true,
            "title": "Configuration Id",
            "type": "string"
          },
          "cost_category": {
            "default": null,
            "nullable": true,
            "title": "Cost Category",
            "type": "string"
          },
          "model": {
            "default": null,
            "nullable": true,
            "title": "Model",
            "type": "string"
          },
          "model_display_name": {
            "default": null,
            "nullable": true,
            "title": "Model Display Name",
            "type": "string"
          },
          "period_end_at": {
            "default": null,
            "format": "date-time",
            "nullable": true,
            "title": "Period End At",
            "type": "string"
          },
          "period_start_at": {
            "default": null,
            "format": "date-time",
            "nullable": true,
            "title": "Period Start At",
            "type": "string"
          },
          "product": {
            "default": null,
            "nullable": true,
            "title": "Product",
            "type": "string"
          },
          "provider": {
            "default": null,
            "description": "AI provider: one of OPENAI, ANTHROPIC, CURSOR, FIREWORKS, GCP, AWS, AZURE, RAMP, or the provider name reported for usage.",
            "nullable": true,
            "title": "Provider",
            "type": "string"
          },
          "tag_definition_id": {
            "default": null,
            "format": "uuid",
            "nullable": true,
            "title": "Tag Definition Id",
            "type": "string"
          },
          "tag_key": {
            "default": null,
            "nullable": true,
            "title": "Tag Key",
            "type": "string"
          },
          "tag_label": {
            "default": null,
            "nullable": true,
            "title": "Tag Label",
            "type": "string"
          },
          "tag_value": {
            "default": null,
            "nullable": true,
            "title": "Tag Value",
            "type": "string"
          },
          "tag_value_id": {
            "default": null,
            "format": "uuid",
            "nullable": true,
            "title": "Tag Value Id",
            "type": "string"
          },
          "tag_value_name": {
            "default": null,
            "nullable": true,
            "title": "Tag Value Name",
            "type": "string"
          },
          "total_cost": {
            "default": "0",
            "title": "Total Cost",
            "type": "number"
          }
        },
        "title": "AggregatedCostRowSchema",
        "type": "object"
      },
      "AggregatedUsageResponseSchema": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/AggregatedUsageRowSchema"
            },
            "title": "Data",
            "type": "array"
          },
          "effective_end_at": {
            "format": "date-time",
            "title": "Effective End At",
            "type": "string"
          },
          "effective_start_at": {
            "format": "date-time",
            "title": "Effective Start At",
            "type": "string"
          },
          "provider_usage_metadata": {
            "items": {
              "$ref": "#/components/schemas/ProviderUsageMetadataSchema"
            },
            "title": "Provider Usage Metadata",
            "type": "array"
          }
        },
        "required": [
          "data",
          "effective_end_at",
          "effective_start_at"
        ],
        "title": "AggregatedUsageResponseSchema",
        "type": "object"
      },
      "AggregatedUsageRowSchema": {
        "properties": {
          "business_id": {
            "default": null,
            "format": "uuid",
            "nullable": true,
            "title": "Business Id",
            "type": "string"
          },
          "business_name": {
            "default": null,
            "nullable": true,
            "title": "Business Name",
            "type": "string"
          },
          "cached_input_cost": {
            "default": null,
            "nullable": true,
            "title": "Cached Input Cost",
            "type": "number"
          },
          "cached_input_tokens": {
            "default": 0,
            "title": "Cached Input Tokens",
            "type": "integer"
          },
          "client_group_family_id": {
            "default": null,
            "format": "uuid",
            "nullable": true,
            "title": "Client Group Family Id",
            "type": "string"
          },
          "client_group_id": {
            "default": null,
            "format": "uuid",
            "nullable": true,
            "title": "Client Group Id",
            "type": "string"
          },
          "client_group_name": {
            "default": null,
            "nullable": true,
            "title": "Client Group Name",
            "type": "string"
          },
          "configuration_display_name": {
            "default": null,
            "nullable": true,
            "title": "Configuration Display Name",
            "type": "string"
          },
          "configuration_id": {
            "default": null,
            "format": "uuid",
            "nullable": true,
            "title": "Configuration Id",
            "type": "string"
          },
          "department_name": {
            "default": null,
            "nullable": true,
            "title": "Department Name",
            "type": "string"
          },
          "department_uuid": {
            "default": null,
            "format": "uuid",
            "nullable": true,
            "title": "Department Uuid",
            "type": "string"
          },
          "estimated_cost": {
            "default": "0",
            "title": "Estimated Cost",
            "type": "number"
          },
          "estimated_list_price_cost": {
            "default": "0",
            "title": "Estimated List Price Cost",
            "type": "number"
          },
          "input_tokens": {
            "default": 0,
            "title": "Input Tokens",
            "type": "integer"
          },
          "input_tokens_cost": {
            "default": null,
            "nullable": true,
            "title": "Input Tokens Cost",
            "type": "number"
          },
          "matched_billing": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MatchedBillingSchema"
              }
            ],
            "default": null,
            "nullable": true
          },
          "misc_cost": {
            "default": null,
            "nullable": true,
            "title": "Misc Cost",
            "type": "number"
          },
          "model": {
            "default": null,
            "nullable": true,
            "title": "Model",
            "type": "string"
          },
          "model_display_name": {
            "default": null,
            "nullable": true,
            "title": "Model Display Name",
            "type": "string"
          },
          "output_tokens": {
            "default": 0,
            "title": "Output Tokens",
            "type": "integer"
          },
          "output_tokens_cost": {
            "default": null,
            "nullable": true,
            "title": "Output Tokens Cost",
            "type": "number"
          },
          "period_end_at": {
            "default": null,
            "format": "date-time",
            "nullable": true,
            "title": "Period End At",
            "type": "string"
          },
          "period_start_at": {
            "default": null,
            "format": "date-time",
            "nullable": true,
            "title": "Period Start At",
            "type": "string"
          },
          "product": {
            "default": null,
            "nullable": true,
            "title": "Product",
            "type": "string"
          },
          "provider": {
            "default": null,
            "description": "AI provider: one of OPENAI, ANTHROPIC, CURSOR, FIREWORKS, GCP, AWS, AZURE, RAMP, or the provider name reported for usage.",
            "nullable": true,
            "title": "Provider",
            "type": "string"
          },
          "tag_definition_id": {
            "default": null,
            "format": "uuid",
            "nullable": true,
            "title": "Tag Definition Id",
            "type": "string"
          },
          "tag_key": {
            "default": null,
            "nullable": true,
            "title": "Tag Key",
            "type": "string"
          },
          "tag_label": {
            "default": null,
            "nullable": true,
            "title": "Tag Label",
            "type": "string"
          },
          "tag_value": {
            "default": null,
            "nullable": true,
            "title": "Tag Value",
            "type": "string"
          },
          "tag_value_id": {
            "default": null,
            "format": "uuid",
            "nullable": true,
            "title": "Tag Value Id",
            "type": "string"
          },
          "tag_value_name": {
            "default": null,
            "nullable": true,
            "title": "Tag Value Name",
            "type": "string"
          },
          "total_estimated_cost": {
            "default": "0",
            "title": "Total Estimated Cost",
            "type": "number"
          },
          "user_email": {
            "default": null,
            "nullable": true,
            "title": "User Email",
            "type": "string"
          },
          "user_first_name": {
            "default": null,
            "nullable": true,
            "title": "User First Name",
            "type": "string"
          },
          "user_last_name": {
            "default": null,
            "nullable": true,
            "title": "User Last Name",
            "type": "string"
          },
          "user_uuid": {
            "default": null,
            "format": "uuid",
            "nullable": true,
            "title": "User Uuid",
            "type": "string"
          },
          "web_search_requests": {
            "default": 0,
            "title": "Web Search Requests",
            "type": "integer"
          }
        },
        "title": "AggregatedUsageRowSchema",
        "type": "object"
      },
      "AgreementSummary": {
        "properties": {
          "agreement_id": {
            "description": "UUID of the agreement",
            "title": "Agreement Id",
            "type": "string"
          },
          "auto_renewal": {
            "default": null,
            "description": "Whether the contract auto-renews",
            "nullable": true,
            "title": "Auto Renewal",
            "type": "boolean"
          },
          "contract_owners": {
            "description": "Contract owners",
            "items": {
              "$ref": "#/components/schemas/ContractOwnerSummary"
            },
            "title": "Contract Owners",
            "type": "array"
          },
          "currency": {
            "default": null,
            "description": "ISO currency code",
            "nullable": true,
            "title": "Currency",
            "type": "string"
          },
          "days_remaining": {
            "default": null,
            "description": "Days remaining until the next renewal action date: last_date_to_action when present, otherwise end_date.",
            "nullable": true,
            "title": "Days Remaining",
            "type": "integer"
          },
          "days_until_end_date": {
            "default": null,
            "description": "Days remaining until the contract end or expiration date",
            "nullable": true,
            "title": "Days Until End Date",
            "type": "integer"
          },
          "days_until_last_date_to_action": {
            "default": null,
            "description": "Days remaining until the last date to action",
            "nullable": true,
            "title": "Days Until Last Date To Action",
            "type": "integer"
          },
          "description": {
            "default": null,
            "description": "Agreement description",
            "nullable": true,
            "title": "Description",
            "type": "string"
          },
          "end_date": {
            "default": null,
            "description": "Contract end date",
            "format": "date",
            "nullable": true,
            "title": "End Date",
            "type": "string"
          },
          "has_price_benchmarks": {
            "default": null,
            "description": "Whether the agreement can be price benchmarked: true when at least one line item has a displayable peer price benchmark, false when it has no comparable pricing data, null when availability was not evaluated for this listing (listings not filtered to one vendor, or an evaluation failure) and must be checked by benchmarking the agreement.",
            "nullable": true,
            "title": "Has Price Benchmarks",
            "type": "boolean"
          },
          "is_active": {
            "description": "Whether the contract is currently active",
            "title": "Is Active",
            "type": "boolean"
          },
          "is_up_for_renewal": {
            "description": "Whether the contract is within the 90-day renewal window",
            "title": "Is Up For Renewal",
            "type": "boolean"
          },
          "last_date_to_action": {
            "default": null,
            "description": "Last date to action for the contract renewal workflow",
            "format": "date",
            "nullable": true,
            "title": "Last Date To Action",
            "type": "string"
          },
          "last_date_to_terminate": {
            "default": null,
            "description": "Raw contract field for the last date to action",
            "format": "date",
            "nullable": true,
            "title": "Last Date To Terminate",
            "type": "string"
          },
          "line_items": {
            "description": "Contract line items",
            "items": {
              "$ref": "#/components/schemas/LineItemSummary"
            },
            "title": "Line Items",
            "type": "array"
          },
          "name": {
            "default": null,
            "description": "Agreement name",
            "nullable": true,
            "title": "Name",
            "type": "string"
          },
          "notifications_on": {
            "description": "Whether renewal notifications are enabled",
            "title": "Notifications On",
            "type": "boolean"
          },
          "payee_uuid": {
            "description": "Vendor UUID",
            "title": "Payee Uuid",
            "type": "string"
          },
          "payment_frequency": {
            "default": null,
            "description": "How often payments are made",
            "nullable": true,
            "title": "Payment Frequency",
            "type": "string"
          },
          "payment_term": {
            "default": null,
            "description": "Payment terms, e.g. Net 30",
            "nullable": true,
            "title": "Payment Term",
            "type": "string"
          },
          "renewal_status": {
            "default": null,
            "description": "Current renewal status",
            "nullable": true,
            "title": "Renewal Status",
            "type": "string"
          },
          "renewal_term": {
            "default": null,
            "description": "Length of the renewal term",
            "nullable": true,
            "title": "Renewal Term",
            "type": "string"
          },
          "start_date": {
            "default": null,
            "description": "Contract start date",
            "format": "date",
            "nullable": true,
            "title": "Start Date",
            "type": "string"
          },
          "termination_for_convenience": {
            "default": null,
            "description": "Termination for convenience clause summary",
            "nullable": true,
            "title": "Termination For Convenience",
            "type": "string"
          },
          "total_value": {
            "default": null,
            "description": "Total contract value",
            "nullable": true,
            "title": "Total Value",
            "type": "number"
          },
          "vendor_name": {
            "description": "Vendor name",
            "title": "Vendor Name",
            "type": "string"
          },
          "vendor_spend": {
            "allOf": [
              {
                "$ref": "#/components/schemas/VendorSpendSummary"
              }
            ],
            "default": null,
            "description": "The vendor's Ramp card and bill spend across the business, present only when include_vendor_spend was requested and spend has been computed.",
            "nullable": true
          }
        },
        "required": [
          "agreement_id",
          "is_active",
          "is_up_for_renewal",
          "notifications_on",
          "payee_uuid",
          "vendor_name"
        ],
        "title": "AgreementSummary",
        "type": "object"
      },
      "AiCurrentSpendProviderSchema": {
        "description": "Current AI spend attributed to a single AI provider.",
        "properties": {
          "amount_spent_last_30_days": {
            "title": "Amount Spent Last 30 Days",
            "type": "number"
          },
          "currency": {
            "title": "Currency",
            "type": "string"
          },
          "merchant_logo": {
            "default": null,
            "nullable": true,
            "title": "Merchant Logo",
            "type": "string"
          },
          "num_paid_bills": {
            "title": "Num Paid Bills",
            "type": "integer"
          },
          "num_paid_reimbursements": {
            "title": "Num Paid Reimbursements",
            "type": "integer"
          },
          "num_transactions": {
            "title": "Num Transactions",
            "type": "integer"
          },
          "percentage_spend_last_30_days": {
            "title": "Percentage Spend Last 30 Days",
            "type": "number"
          },
          "provider": {
            "$ref": "#/components/schemas/AiProviderType"
          },
          "provider_name": {
            "title": "Provider Name",
            "type": "string"
          }
        },
        "required": [
          "amount_spent_last_30_days",
          "currency",
          "merchant_logo",
          "num_paid_bills",
          "num_paid_reimbursements",
          "num_transactions",
          "percentage_spend_last_30_days",
          "provider",
          "provider_name"
        ],
        "title": "AiCurrentSpendProviderSchema",
        "type": "object"
      },
      "AiCurrentSpendResponseSchema": {
        "properties": {
          "providers": {
            "items": {
              "$ref": "#/components/schemas/AiCurrentSpendProviderSchema"
            },
            "title": "Providers",
            "type": "array"
          },
          "total_spend": {
            "$ref": "#/components/schemas/AiCurrentSpendTotalSpendSchema"
          }
        },
        "required": [
          "providers",
          "total_spend"
        ],
        "title": "AiCurrentSpendResponseSchema",
        "type": "object"
      },
      "AiCurrentSpendTotalSpendSchema": {
        "properties": {
          "amount": {
            "title": "Amount",
            "type": "number"
          },
          "currency": {
            "$ref": "#/components/schemas/Currency"
          }
        },
        "required": [
          "amount",
          "currency"
        ],
        "title": "AiCurrentSpendTotalSpendSchema",
        "type": "object"
      },
      "AiKeyValidationStatus": {
        "enum": [
          "INVALID",
          "PENDING",
          "VALIDATED"
        ],
        "title": "AiKeyValidationStatus",
        "type": "string"
      },
      "AiProviderConfigurationDetailSchema": {
        "properties": {
          "connected": {
            "title": "Connected",
            "type": "boolean"
          },
          "connection_health": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AiProviderConnectionHealthStatus"
              }
            ],
            "default": null,
            "nullable": true
          },
          "connection_types": {
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/AiProviderConnectionType"
                },
                {
                  "enum": [
                    "aws",
                    "azure",
                    "fireworks",
                    "ramp"
                  ],
                  "type": "string"
                }
              ]
            },
            "title": "Connection Types",
            "type": "array"
          },
          "connection_unhealthy_reason": {
            "default": null,
            "nullable": true,
            "title": "Connection Unhealthy Reason",
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "display_name": {
            "default": null,
            "nullable": true,
            "title": "Display Name",
            "type": "string"
          },
          "gateway_provider": {
            "default": null,
            "nullable": true,
            "title": "Gateway Provider",
            "type": "string"
          },
          "integration_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AiProviderIntegrationType"
              }
            ],
            "default": null,
            "nullable": true
          },
          "is_connected_via_gateway": {
            "default": false,
            "title": "Is Connected Via Gateway",
            "type": "boolean"
          },
          "last_successful_sync_time": {
            "default": null,
            "format": "date-time",
            "nullable": true,
            "title": "Last Successful Sync Time",
            "type": "string"
          },
          "metadata": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AiProviderConfigurationMetadataSchema"
              }
            ],
            "default": null,
            "nullable": true
          },
          "provider": {
            "$ref": "#/components/schemas/AiProviderType"
          },
          "scopes": {
            "items": {
              "$ref": "#/components/schemas/AiProviderConfigurationScope"
            },
            "title": "Scopes",
            "type": "array"
          },
          "updated_at": {
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          },
          "uuid": {
            "default": null,
            "nullable": true,
            "title": "Uuid",
            "type": "string"
          },
          "validation_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AiKeyValidationStatus"
              }
            ],
            "default": "VALIDATED"
          }
        },
        "required": [
          "connected",
          "created_at",
          "display_name",
          "gateway_provider",
          "is_connected_via_gateway",
          "metadata",
          "provider",
          "scopes",
          "updated_at",
          "uuid",
          "validation_status"
        ],
        "title": "AiProviderConfigurationDetailSchema",
        "type": "object"
      },
      "AiProviderConfigurationMetadataSchema": {
        "discriminator": {
          "mapping": {
            "ANTHROPIC": "#/components/schemas/AnthropicConfigurationMetadataSchema",
            "GCP": "#/components/schemas/GcpConfigurationMetadataSchema",
            "OPENAI": "#/components/schemas/OpenAIConfigurationMetadataSchema"
          },
          "propertyName": "provider"
        },
        "oneOf": [
          {
            "$ref": "#/components/schemas/AnthropicConfigurationMetadataSchema"
          },
          {
            "$ref": "#/components/schemas/GcpConfigurationMetadataSchema"
          },
          {
            "$ref": "#/components/schemas/OpenAIConfigurationMetadataSchema"
          }
        ]
      },
      "AiProviderConfigurationScope": {
        "description": "Per-key scope set tracked on an AiProviderConfiguration.\n\nAnthropic keys fall into two classes:\n\n* ``ADMIN`` \u2014 keys with ``read:admin`` (``sk-ant-admin01-...``). Can\n  call V1 endpoints like ``/v1/organizations/me`` and the V1\n  usage/cost report.\n* ``ANALYTICS`` \u2014 keys with ``read:analytics`` (``sk-ant-api01-...``).\n  Can call V2 Enterprise Analytics endpoints.\n\nA single key may carry both ``ADMIN`` and ``ANALYTICS``.\n\nChatGPT Enterprise (OpenAI) keys carry ``ADMIN`` and, when the key has\nthe ``enterprise.analytics.usage.read`` scope,\n``CHATGPT_ENTERPRISE_USAGE_ANALYTICS``. Costs access is tracked separately\nas ``CHATGPT_ENTERPRISE_COSTS``.",
        "enum": [
          "admin",
          "analytics",
          "chatgpt_enterprise_costs",
          "chatgpt_enterprise_usage_analytics"
        ],
        "title": "AiProviderConfigurationScope",
        "type": "string"
      },
      "AiProviderConnectionHealthStatus": {
        "enum": [
          "HEALTHY",
          "UNHEALTHY"
        ],
        "title": "AiProviderConnectionHealthStatus",
        "type": "string"
      },
      "AiProviderConnectionType": {
        "description": "Credential connection types supported by health tracking and invitations.",
        "enum": [
          "anthropic-platform",
          "anthropic-subscription",
          "cursor",
          "gcp",
          "openai-platform",
          "openai-subscription"
        ],
        "title": "AiProviderConnectionType",
        "type": "string"
      },
      "AiProviderHasConfigurationsResponseSchema": {
        "properties": {
          "ANTHROPIC": {
            "title": "Anthropic",
            "type": "boolean"
          },
          "AWS": {
            "title": "Aws",
            "type": "boolean"
          },
          "AZURE": {
            "title": "Azure",
            "type": "boolean"
          },
          "CURSOR": {
            "title": "Cursor",
            "type": "boolean"
          },
          "GCP": {
            "title": "Gcp",
            "type": "boolean"
          },
          "OPENAI": {
            "title": "Openai",
            "type": "boolean"
          },
          "RAMP": {
            "title": "Ramp",
            "type": "boolean"
          }
        },
        "required": [
          "ANTHROPIC",
          "AWS",
          "AZURE",
          "CURSOR",
          "GCP",
          "OPENAI",
          "RAMP"
        ],
        "title": "AiProviderHasConfigurationsResponseSchema",
        "type": "object"
      },
      "AiProviderIntegrationType": {
        "description": "Integration classification stored on an AI provider configuration.",
        "enum": [
          "anthropic-platform",
          "aws-bedrock",
          "azure",
          "chatgpt-enterprise",
          "claude-enterprise",
          "cursor",
          "fireworks-ai",
          "google-cloud-gemini",
          "openai-platform",
          "ramp-router"
        ],
        "title": "AiProviderIntegrationType",
        "type": "string"
      },
      "AiProviderType": {
        "enum": [
          "ANTHROPIC",
          "AWS",
          "AZURE",
          "CURSOR",
          "FIREWORKS",
          "GCP",
          "OPENAI",
          "RAMP"
        ],
        "title": "AiProviderType",
        "type": "string",
        "x-enum-descriptions": {
          "ANTHROPIC": "Anthropic",
          "AWS": "AWS Bedrock",
          "AZURE": "Azure",
          "CURSOR": "Cursor",
          "FIREWORKS": "Fireworks AI",
          "GCP": "Google Cloud (Gemini)",
          "OPENAI": "OpenAI",
          "RAMP": "Ramp Router"
        }
      },
      "AiSpendApiKey": {
        "description": "A provider API key tracked for AI spend. Estimated cost applies to the requested period. All other fields reflect current metadata, not state as of the requested dates.",
        "example": {
          "active_spend_limit": {
            "amount": {
              "currency": "USD",
              "value": 500000
            },
            "interval": "monthly"
          },
          "estimated_cost": {
            "currency": "USD",
            "value": 184250
          },
          "external_id": "key_abc123",
          "id": "0198f3c4-ece8-7a41-968f-7f399e397ef6",
          "name": "Production coding",
          "owner": {
            "email": "jamie.chen@example.com",
            "first_name": "Jamie",
            "id": "0198f3bd-bcb7-76a0-a68c-f99fd15df941",
            "last_name": "Chen"
          },
          "provider": "OPENAI",
          "provider_created_at": "2026-03-12T15:30:00Z",
          "provider_key_hint": "...a1b2",
          "provider_last_used_at": "2026-08-31T23:54:12Z",
          "status": "active",
          "synced_at": "2026-09-01T01:10:04Z",
          "tags": [
            {
              "key": "Cost center",
              "value": "Engineering"
            }
          ]
        },
        "properties": {
          "active_spend_limit": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AiSpendApiKeySpendLimitResource"
              }
            ],
            "description": "Currently active configured spend limit. Its amount and reset cadence are independent of the requested historical dates. Null when the API key has no active spend limit.",
            "nullable": true
          },
          "estimated_cost": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiAmount"
              }
            ],
            "description": "Cost estimated by Ramp for usage attributed to the API key during the requested period. Zero when no usage was attributed.",
            "readOnly": true
          },
          "external_id": {
            "description": "API key identifier assigned by the provider.",
            "type": "string"
          },
          "id": {
            "description": "Unique identifier of the API key.",
            "format": "uuid",
            "type": "string"
          },
          "name": {
            "description": "API key name reported by the provider.",
            "nullable": true,
            "type": "string"
          },
          "owner": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AiSpendApiKeyOwnerResource"
              }
            ],
            "description": "Owner identified by Ramp or the provider.",
            "nullable": true,
            "readOnly": true
          },
          "provider": {
            "description": "Provider that issued the API key.",
            "enum": [
              "ANTHROPIC",
              "OPENAI",
              "RAMP"
            ],
            "readOnly": true,
            "type": "string",
            "x-enum-descriptions": {
              "ANTHROPIC": "Anthropic",
              "OPENAI": "OpenAI",
              "RAMP": "Ramp Router"
            }
          },
          "provider_created_at": {
            "description": "Date and time the provider created the API key.",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "provider_key_hint": {
            "description": "Redacted API key hint reported by the provider.",
            "nullable": true,
            "type": "string"
          },
          "provider_last_used_at": {
            "description": "Date and time the provider last recorded usage.",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "status": {
            "description": "Current API key status, when available from the provider.",
            "enum": [
              "active",
              "expired",
              "locked",
              "terminated"
            ],
            "nullable": true,
            "type": "string",
            "x-enum-descriptions": {
              "active": "The API key is active.",
              "expired": "The API key has expired.",
              "locked": "The API key is locked.",
              "terminated": "The API key was terminated or archived."
            }
          },
          "synced_at": {
            "description": "Date and time Ramp last synchronized the API key.",
            "format": "date-time",
            "type": "string"
          },
          "tags": {
            "description": "Active tags assigned to the API key.",
            "items": {
              "$ref": "#/components/schemas/AiSpendApiKeyTagResource"
            },
            "type": "array"
          }
        },
        "required": [
          "active_spend_limit",
          "estimated_cost",
          "external_id",
          "id",
          "name",
          "owner",
          "provider",
          "provider_created_at",
          "provider_key_hint",
          "provider_last_used_at",
          "status",
          "synced_at",
          "tags"
        ],
        "type": "object"
      },
      "AiSpendApiKeyOwnerResource": {
        "properties": {
          "email": {
            "description": "Owner email reported by Ramp or the provider.",
            "format": "email",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "first_name": {
            "description": "First name of the matched Ramp user.",
            "nullable": true,
            "type": "string"
          },
          "id": {
            "description": "Unique identifier of the matched Ramp user.",
            "format": "uuid",
            "nullable": true,
            "type": "string",
            "x-relationship": {
              "inverse_field_name": null,
              "reference_field_name": "id",
              "target_resource": "users",
              "type": "many-to-one"
            }
          },
          "last_name": {
            "description": "Last name of the matched Ramp user.",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "email",
          "first_name",
          "id",
          "last_name"
        ],
        "type": "object"
      },
      "AiSpendApiKeySpendLimitResource": {
        "properties": {
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiAmount"
              }
            ],
            "description": "Maximum spend allowed per reset interval.",
            "readOnly": true
          },
          "interval": {
            "description": "How often the spend limit resets.",
            "enum": [
              "annual",
              "daily",
              "monthly",
              "quarterly",
              "tertiary",
              "total",
              "weekly",
              "yearly"
            ],
            "readOnly": true,
            "type": "string",
            "x-enum-descriptions": {
              "annual": "The spend limit resets annually based on its start date.",
              "daily": "The spend limit resets daily.",
              "monthly": "The spend limit resets monthly.",
              "quarterly": "The spend limit resets every three months.",
              "tertiary": "The spend limit resets every four months.",
              "total": "The spend limit does not reset.",
              "weekly": "The spend limit resets weekly.",
              "yearly": "The spend limit resets at the start of the calendar year."
            }
          }
        },
        "required": [
          "amount",
          "interval"
        ],
        "type": "object"
      },
      "AiSpendApiKeyTagResource": {
        "properties": {
          "key": {
            "description": "Tag name.",
            "type": "string"
          },
          "value": {
            "description": "Assigned tag value.",
            "type": "string"
          }
        },
        "required": [
          "key",
          "value"
        ],
        "type": "object"
      },
      "AiSpendTeam": {
        "properties": {
          "department_name": {
            "description": "Current Ramp department name, when available.",
            "nullable": true,
            "type": "string"
          },
          "email": {
            "description": "Ramp user email.",
            "format": "email",
            "type": "string"
          },
          "estimated_cost": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiAmount"
              }
            ],
            "description": "Usage-derived estimated cost for the requested period.",
            "readOnly": true
          },
          "estimated_cost_by_provider": {
            "description": "Estimated cost split by AI provider.",
            "items": {
              "$ref": "#/components/schemas/AiSpendTeamProviderCost"
            },
            "type": "array"
          },
          "first_name": {
            "description": "Ramp user first name.",
            "type": "string"
          },
          "id": {
            "description": "Unique Ramp user identifier.",
            "format": "uuid",
            "type": "string",
            "x-relationship": {
              "inverse_field_name": null,
              "reference_field_name": "id",
              "target_resource": "users",
              "type": "many-to-one"
            }
          },
          "is_anomalous": {
            "description": "Whether Ramp detected anomalous AI spend for the user during the requested period.",
            "type": "boolean"
          },
          "is_ramp_user": {
            "description": "Whether the person is a Ramp user. Always true for records returned by this endpoint.",
            "type": "boolean"
          },
          "last_name": {
            "description": "Ramp user last name.",
            "type": "string"
          },
          "user_status": {
            "description": "Current Ramp user lifecycle status.",
            "enum": [
              "active",
              "deleted",
              "draft",
              "inactive",
              "pending"
            ],
            "readOnly": true,
            "type": "string",
            "x-enum-descriptions": {
              "active": "Active Ramp user",
              "deleted": "Deleted Ramp user",
              "draft": "Draft Ramp user",
              "inactive": "Inactive Ramp user",
              "pending": "Pending Ramp user"
            }
          }
        },
        "required": [
          "department_name",
          "email",
          "estimated_cost",
          "estimated_cost_by_provider",
          "first_name",
          "id",
          "is_anomalous",
          "is_ramp_user",
          "last_name",
          "user_status"
        ],
        "type": "object"
      },
      "AiSpendTeamListResponse": {
        "properties": {
          "data": {
            "description": "Ramp users and their AI spend.",
            "items": {
              "$ref": "#/components/schemas/AiSpendTeam"
            },
            "type": "array"
          },
          "page": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DeveloperAPINestedPage"
              }
            ],
            "description": "Pagination details for this response."
          }
        },
        "required": [
          "data",
          "page"
        ],
        "type": "object"
      },
      "AiSpendTeamProviderCost": {
        "properties": {
          "estimated_cost": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiAmount"
              }
            ],
            "description": "Usage-derived estimated cost for this provider.",
            "readOnly": true
          },
          "provider": {
            "description": "AI provider or reported provider name attributed to this estimated cost.",
            "readOnly": true,
            "type": "string"
          }
        },
        "required": [
          "estimated_cost",
          "provider"
        ],
        "type": "object"
      },
      "AiSpendUsage": {
        "example": {
          "cached_input_tokens": 20,
          "department_id": null,
          "estimated_cost": {
            "currency": "USD",
            "value": 124
          },
          "input_tokens": 150,
          "model": "claude-sonnet-4",
          "output_tokens": 30,
          "product": "claude_code",
          "provider": "ANTHROPIC",
          "usage_date": "2026-05-01",
          "user_email": null,
          "user_id": null,
          "web_search_requests": 3
        },
        "properties": {
          "cached_input_tokens": {
            "description": "Number of cached input tokens.",
            "type": "integer"
          },
          "department_id": {
            "description": "Department of the Ramp user. Null unless group_by includes department, or when the user has no department.",
            "format": "uuid",
            "nullable": true,
            "type": "string",
            "x-relationship": {
              "inverse_field_name": null,
              "reference_field_name": "id",
              "target_resource": "departments",
              "type": "many-to-one"
            }
          },
          "estimated_cost": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiAmount"
              }
            ],
            "description": "Estimated cost, matching the AI Spend page. Null for AWS Bedrock, which Ramp reports as billed cost rather than an estimate. When rows combine AWS Bedrock with other providers, the estimate excludes AWS Bedrock.",
            "nullable": true,
            "readOnly": true
          },
          "input_tokens": {
            "description": "Number of input tokens.",
            "type": "integer"
          },
          "model": {
            "description": "Provider model name. Null unless group_by includes model, or when the provider did not report one.",
            "nullable": true,
            "type": "string"
          },
          "output_tokens": {
            "description": "Number of output tokens.",
            "type": "integer"
          },
          "product": {
            "description": "Product the usage came from, such as claude_code, codex, or cursor. Null unless group_by includes product, or when no product applies.",
            "nullable": true,
            "type": "string"
          },
          "provider": {
            "description": "AI provider or reported provider name. Null unless group_by includes provider.",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "usage_date": {
            "description": "UTC calendar date for this usage row.",
            "format": "date",
            "type": "string"
          },
          "user_email": {
            "description": "Email of the Ramp user, or the email the provider reported when the usage is not attributed to a Ramp user. Null unless group_by includes user.",
            "format": "email",
            "nullable": true,
            "type": "string"
          },
          "user_id": {
            "description": "Ramp user. Null unless group_by includes user, or when the usage is not attributed to a Ramp user.",
            "format": "uuid",
            "nullable": true,
            "type": "string",
            "x-relationship": {
              "inverse_field_name": null,
              "reference_field_name": "id",
              "target_resource": "users",
              "type": "many-to-one"
            }
          },
          "web_search_requests": {
            "description": "Number of provider web-search requests.",
            "type": "integer"
          }
        },
        "required": [
          "cached_input_tokens",
          "department_id",
          "estimated_cost",
          "input_tokens",
          "model",
          "output_tokens",
          "product",
          "provider",
          "usage_date",
          "user_email",
          "user_id",
          "web_search_requests"
        ],
        "type": "object"
      },
      "AiTokenSpendAggregatesResult": {
        "description": "Aggregate AI token spend response for the selected metric.",
        "properties": {
          "cost": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AggregatedCostResponseSchema"
              }
            ],
            "default": null,
            "description": "Estimated-cost aggregate response when metric='cost'.",
            "nullable": true
          },
          "usage": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AggregatedUsageResponseSchema"
              }
            ],
            "default": null,
            "description": "Usage aggregate response when metric='usage'.",
            "nullable": true
          }
        },
        "title": "AiTokenSpendAggregatesResult",
        "type": "object"
      },
      "AiTokenSpendConnectionsResult": {
        "description": "Connected AI providers for the business.",
        "properties": {
          "configurations": {
            "description": "Connected AI provider configurations, including admin-key connections, gateway-sourced (OpenRouter/LiteLLM) connections, and the Ramp Router (provider RAMP) configuration when the business has one.",
            "items": {
              "$ref": "#/components/schemas/AiProviderConfigurationDetailSchema"
            },
            "title": "Configurations",
            "type": "array"
          },
          "provider_has_configurations": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AiProviderHasConfigurationsResponseSchema"
              }
            ],
            "description": "Per-provider boolean for whether the business has any active connection for that provider."
          }
        },
        "required": [
          "configurations",
          "provider_has_configurations"
        ],
        "title": "AiTokenSpendConnectionsResult",
        "type": "object"
      },
      "AiTokenSpendFilterOptionsResult": {
        "description": "Dimensions and values available for aggregate AI-spend queries.",
        "properties": {
          "filter_options": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FilterOptionsResponseSchema"
              }
            ],
            "description": "Providers, models, model families, model facets, and departments that aggregate usage/cost queries can filter or group by."
          },
          "tag_definitions": {
            "description": "API-key tag groups (label groups) configured for the business. Use a tag definition id as tag_definition_id in GetAiTokenSpendAggregates to group by tag group. Empty when the tag definitions feature is not enabled for the business.",
            "items": {
              "$ref": "#/components/schemas/TagDefinitionSchema"
            },
            "title": "Tag Definitions",
            "type": "array"
          }
        },
        "required": [
          "filter_options",
          "tag_definitions"
        ],
        "title": "AiTokenSpendFilterOptionsResult",
        "type": "object"
      },
      "AiTokenTrackingAggregateRollupRequestBody": {
        "enum": [
          "all",
          "daily",
          "monthly",
          "weekly"
        ],
        "title": "AiTokenTrackingAggregateRollup",
        "type": "string"
      },
      "AirlineCreditRefV1": {
        "description": "Compact reference to a traveler's flight credit that may apply to a fare.",
        "properties": {
          "airline_iata_code": {
            "default": null,
            "description": "IATA code of the issuing airline, e.g. 'UA'",
            "nullable": true,
            "title": "Airline Iata Code",
            "type": "string"
          },
          "airline_name": {
            "default": null,
            "description": "Airline that issued the credit; null when unknown",
            "nullable": true,
            "title": "Airline Name",
            "type": "string"
          },
          "amount": {
            "description": "Original credit value as a decimal string, e.g. '250.00'; the airline may apply less.",
            "title": "Amount",
            "type": "string"
          },
          "credit_id": {
            "description": "Ramp's id for this credit",
            "title": "Credit Id",
            "type": "string"
          },
          "currency": {
            "description": "ISO 4217 currency code of amount, e.g. 'USD'",
            "title": "Currency",
            "type": "string"
          }
        },
        "required": [
          "amount",
          "credit_id",
          "currency"
        ],
        "title": "AirlineCreditRefV1",
        "type": "object"
      },
      "AirlineCreditStatus": {
        "enum": [
          "expired",
          "invalidated",
          "redeemable",
          "spent"
        ],
        "title": "AirlineCreditStatus",
        "type": "string"
      },
      "AirlineCreditV1": {
        "description": "One flight credit held by the traveler.",
        "properties": {
          "airline_iata_code": {
            "default": null,
            "description": "IATA code of the issuing airline, e.g. 'UA'",
            "nullable": true,
            "title": "Airline Iata Code",
            "type": "string"
          },
          "airline_name": {
            "default": null,
            "description": "Airline that issued the credit; null when unknown",
            "nullable": true,
            "title": "Airline Name",
            "type": "string"
          },
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MoneyAmountSchema"
              }
            ],
            "description": "Original credit value and currency. The airline may apply less than this to a fare and may keep any unused remainder."
          },
          "credit_id": {
            "description": "Ramp's id for this credit",
            "title": "Credit Id",
            "type": "string"
          },
          "expires_on": {
            "default": null,
            "description": "Last calendar day (UTC) the credit can be redeemed, inclusive; null when the airline set no expiry",
            "format": "date",
            "nullable": true,
            "title": "Expires On",
            "type": "string"
          },
          "issued_on": {
            "default": null,
            "description": "Date the airline issued it",
            "format": "date",
            "nullable": true,
            "title": "Issued On",
            "type": "string"
          },
          "provider": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FlightSourceType"
              }
            ],
            "default": null,
            "description": "Flight provider that holds the credit; null for credits imported before the provider was recorded",
            "nullable": true
          },
          "redeemable_in_ramp": {
            "description": "True when status is 'redeemable' and Ramp Travel can apply this credit to a new fare. False for spent, expired, or invalidated credits.",
            "title": "Redeemable In Ramp",
            "type": "boolean"
          },
          "source_booking_id": {
            "default": null,
            "description": "Ramp booking id of the cancelled flight that produced this credit; null when unknown",
            "nullable": true,
            "title": "Source Booking Id",
            "type": "string"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AirlineCreditStatus"
              }
            ],
            "description": "'redeemable' can be applied to a fare; 'spent', 'expired', and 'invalidated' cannot."
          },
          "traveler_name": {
            "default": null,
            "description": "Name on the credit; airlines only accept it for this traveler",
            "nullable": true,
            "title": "Traveler Name",
            "type": "string"
          }
        },
        "required": [
          "amount",
          "credit_id",
          "redeemable_in_ramp",
          "status"
        ],
        "title": "AirlineCreditV1",
        "type": "object"
      },
      "AllUserInfo": {
        "properties": {
          "department_name": {
            "default": null,
            "description": "User department name",
            "nullable": true,
            "title": "Department Name",
            "type": "string"
          },
          "email": {
            "description": "User email address",
            "title": "Email",
            "type": "string"
          },
          "first_name": {
            "description": "User first name",
            "title": "First Name",
            "type": "string"
          },
          "has_active_card": {
            "description": "Whether the user has an active issued card",
            "title": "Has Active Card",
            "type": "boolean"
          },
          "id": {
            "description": "User UUID; for a standalone agent, this is also its agent_id",
            "title": "Id",
            "type": "string"
          },
          "identity_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/IdentityType"
              }
            ],
            "description": "Whether this result is a human user or standalone agent"
          },
          "is_assistant": {
            "description": "Whether the user is an active assistant for another user",
            "title": "Is Assistant",
            "type": "boolean"
          },
          "is_inactive": {
            "description": "Whether the user is deactivated/inactive. Inactive users should generally be excluded from write operations.",
            "title": "Is Inactive",
            "type": "boolean"
          },
          "last_name": {
            "description": "User last name",
            "title": "Last Name",
            "type": "string"
          },
          "location_name": {
            "default": null,
            "description": "User location name",
            "nullable": true,
            "title": "Location Name",
            "type": "string"
          },
          "role": {
            "description": "Primary role only, not add-on roles or effective permissions. An Employee role does not establish absence of Accounts Payable access or card-credential entitlement.",
            "title": "Role",
            "type": "string"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DeveloperUserStatus"
              }
            ],
            "description": "User invitation, onboarding, or lifecycle status"
          }
        },
        "required": [
          "email",
          "first_name",
          "has_active_card",
          "id",
          "identity_type",
          "is_assistant",
          "is_inactive",
          "last_name",
          "role",
          "status"
        ],
        "title": "AllUserInfo",
        "type": "object"
      },
      "AmortizationMode": {
        "description": "Mode used to define amortization amounts.",
        "enum": [
          "CUSTOM",
          "DDB",
          "POINT_IN_TIME",
          "PURE_DDB",
          "STRAIGHT_LINE"
        ],
        "title": "AmortizationMode",
        "type": "string"
      },
      "AmortizationPeriod": {
        "description": "Period along which amortization schedule should be generated.",
        "enum": [
          "DAILY",
          "MONTHLY",
          "QUARTERLY"
        ],
        "title": "AmortizationPeriod",
        "type": "string"
      },
      "AnswerPolicyQuestionRequestBody": {
        "description": "Get an answer to a question about the expense policy or funds (amount, restrictions, etc).\n\nUse this tool when the user asks about expense policy rules, spending limits,\nfund restrictions, or whether certain purchases are allowed under company policy.",
        "properties": {
          "include_restrictions": {
            "default": true,
            "title": "Include Restrictions",
            "type": "boolean"
          },
          "question": {
            "title": "Question",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "question",
          "rationale"
        ],
        "title": "AnswerPolicyQuestion",
        "type": "object"
      },
      "AnthropicClaudeAiMetadataSchema": {
        "properties": {
          "last_probed_at": {
            "format": "date-time",
            "title": "Last Probed At",
            "type": "string"
          }
        },
        "required": [
          "last_probed_at"
        ],
        "title": "AnthropicClaudeAiMetadataSchema",
        "type": "object"
      },
      "AnthropicConfigurationMetadataSchema": {
        "properties": {
          "claude_ai": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AnthropicClaudeAiMetadataSchema"
              }
            ],
            "default": null,
            "nullable": true
          },
          "platform_claude_dev": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AnthropicPlatformClaudeDevMetadataSchema"
              }
            ],
            "default": null,
            "nullable": true
          },
          "provider": {
            "default": "ANTHROPIC",
            "enum": [
              "ANTHROPIC"
            ],
            "title": "Provider",
            "type": "string"
          }
        },
        "required": [
          "claude_ai",
          "platform_claude_dev",
          "provider"
        ],
        "title": "AnthropicConfigurationMetadataSchema",
        "type": "object"
      },
      "AnthropicPlatformClaudeDevMetadataSchema": {
        "properties": {
          "last_probed_at": {
            "format": "date-time",
            "title": "Last Probed At",
            "type": "string"
          },
          "organization_id": {
            "default": null,
            "nullable": true,
            "title": "Organization Id",
            "type": "string"
          },
          "organization_name": {
            "default": null,
            "nullable": true,
            "title": "Organization Name",
            "type": "string"
          },
          "organization_type": {
            "default": null,
            "nullable": true,
            "title": "Organization Type",
            "type": "string"
          }
        },
        "required": [
          "last_probed_at",
          "organization_id",
          "organization_name",
          "organization_type"
        ],
        "title": "AnthropicPlatformClaudeDevMetadataSchema",
        "type": "object"
      },
      "ApAgingAgeBy": {
        "description": "Date AP Aging counts days from when assigning buckets.",
        "enum": [
          "bill_date",
          "due_date"
        ],
        "title": "ApAgingAgeBy",
        "type": "string"
      },
      "ApAgingPaidBy": {
        "description": "When an AP Aging money-movement payment stops counting as open.",
        "enum": [
          "credit_completion",
          "debit_completion"
        ],
        "title": "ApAgingPaidBy",
        "type": "string"
      },
      "ApAgingReportQuerySettings": {
        "additionalProperties": false,
        "description": "As-of AP Aging settings; stored null/unsplit inputs remain readable.",
        "properties": {
          "ap_aging_age_by": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApAgingAgeBy"
              }
            ],
            "default": null,
            "description": "AP Aging bucket basis, supported by ap_aging and ap_events. Omitted or null means due_date; bill_date uses ap_aging_bill_date_type.",
            "nullable": true
          },
          "ap_aging_bill_date_type": {
            "default": null,
            "description": "AP Aging bill date for inclusion and prepayments, supported only by ap_aging and ap_events. Omitted or null means accounting_date. received_at is invoice-draft creation in America/New_York. Missing accounting or received dates fall back to the invoice date; vendor credits retain their accounting date. time_range does not set this basis.",
            "enum": [
              "accounting_date",
              "issued_at",
              "received_at"
            ],
            "nullable": true,
            "title": "Ap Aging Bill Date Type",
            "type": "string"
          },
          "ap_aging_paid_by": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApAgingPaidBy"
              }
            ],
            "default": null,
            "description": "AP Aging bank payment cutoff, supported by ap_aging and ap_events. Omitted or null means debit_completion. credit_completion uses vendor payment completion; card/manual payments and allocations are unchanged.",
            "nullable": true
          },
          "line_item_grain": {
            "allOf": [
              {
                "$ref": "#/components/schemas/LineItemGrain"
              }
            ],
            "default": "unsplit",
            "nullable": true
          },
          "reference_date": {
            "default": null,
            "description": "AP Aging as-of calendar date (YYYY-MM-DD), supported by ap_aging and ap_events. Omitted or null means today in America/New_York. Future dates are rejected when validating or executing a query. This changes aging balances and buckets; time_range only filters entity dates.",
            "format": "date",
            "nullable": true,
            "title": "Reference Date",
            "type": "string"
          }
        },
        "title": "ApAgingReportQuerySettings",
        "type": "object"
      },
      "ApEventsReportQuerySettings": {
        "additionalProperties": false,
        "description": "AP Events settings; aging behavior still depends on the selected fields.",
        "properties": {
          "ap_aging_age_by": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApAgingAgeBy"
              }
            ],
            "default": null,
            "description": "AP Aging bucket basis, supported by ap_aging and ap_events. Omitted or null means due_date; bill_date uses ap_aging_bill_date_type.",
            "nullable": true
          },
          "ap_aging_bill_date_type": {
            "default": null,
            "description": "AP Aging bill date for inclusion and prepayments, supported only by ap_aging and ap_events. Omitted or null means accounting_date. received_at is invoice-draft creation in America/New_York. Missing accounting or received dates fall back to the invoice date; vendor credits retain their accounting date. time_range does not set this basis.",
            "enum": [
              "accounting_date",
              "issued_at",
              "received_at"
            ],
            "nullable": true,
            "title": "Ap Aging Bill Date Type",
            "type": "string"
          },
          "ap_aging_paid_by": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApAgingPaidBy"
              }
            ],
            "default": null,
            "description": "AP Aging bank payment cutoff, supported by ap_aging and ap_events. Omitted or null means debit_completion. credit_completion uses vendor payment completion; card/manual payments and allocations are unchanged.",
            "nullable": true
          },
          "line_item_grain": {
            "allOf": [
              {
                "$ref": "#/components/schemas/LineItemGrain"
              }
            ],
            "default": null,
            "nullable": true
          },
          "reference_date": {
            "default": null,
            "description": "AP Aging as-of calendar date (YYYY-MM-DD), supported by ap_aging and ap_events. Omitted or null means today in America/New_York. Future dates are rejected when validating or executing a query. This changes aging balances and buckets; time_range only filters entity dates.",
            "format": "date",
            "nullable": true,
            "title": "Reference Date",
            "type": "string"
          }
        },
        "title": "ApEventsReportQuerySettings",
        "type": "object"
      },
      "ApOperationsMetricContract": {
        "properties": {
          "metric": {
            "$ref": "#/components/schemas/MetricKey"
          }
        },
        "required": [
          "metric"
        ],
        "title": "ApOperationsMetricContract",
        "type": "object"
      },
      "ApOperationsMetricsRequest": {
        "additionalProperties": false,
        "description": "Public query; tenant and resource limits are server-owned.",
        "properties": {
          "as_of": {
            "format": "date-time",
            "title": "As Of",
            "type": "string"
          },
          "end_at": {
            "default": null,
            "format": "date-time",
            "nullable": true,
            "title": "End At",
            "type": "string"
          },
          "metric_windows": {
            "items": {
              "$ref": "#/components/schemas/MetricWindowOverride"
            },
            "title": "Metric Windows",
            "type": "array"
          },
          "start_at": {
            "default": null,
            "format": "date-time",
            "nullable": true,
            "title": "Start At",
            "type": "string"
          }
        },
        "required": [
          "as_of"
        ],
        "title": "ApOperationsMetricsRequest",
        "type": "object"
      },
      "ApiAccountingCategory": {
        "properties": {
          "category_id": {
            "description": "User-selected category id for transaction.",
            "type": "string"
          },
          "category_name": {
            "description": "User-selected category name for transaction.",
            "type": "string"
          },
          "tracking_category_remote_id": {
            "type": "string"
          },
          "tracking_category_remote_name": {
            "type": "string"
          },
          "tracking_category_remote_type": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ApiAccountingFailedSyncRequestBody": {
        "example": {
          "error": {
            "message": "The account period has closed and the account books cannot be updated."
          },
          "id": "bb037f47-c664-46f9-afa7-cc68cbcf5a23"
        },
        "properties": {
          "error": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiAccountingSyncErrorRequestBody"
              }
            ],
            "description": "describes the reason why the sync object failed to sync."
          },
          "id": {
            "description": "ID that uniquely identifies the object to sync in Ramp systems.",
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "error",
          "id"
        ],
        "type": "object"
      },
      "ApiAccountingFieldSelectionSource": {
        "properties": {
          "type": {
            "description": "Describes the type of source that added this selection.",
            "type": "string"
          }
        },
        "type": "object"
      },
      "ApiAccountingReadyToSyncParamsRequestBody": {
        "example": {
          "object_ids": [
            "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
            "f6e5d4c3-b2a1-4f9e-8d7c-6b5a4e3d2c1b"
          ],
          "object_type": "TRANSACTION"
        },
        "properties": {
          "object_ids": {
            "description": "IDs of the objects to mark as ready to sync. All IDs must belong to the authenticated business; the request fails if any ID is not found.",
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "maxItems": 500,
            "minItems": 1,
            "type": "array"
          },
          "object_type": {
            "description": "The type of object to mark ready to sync. Supported values are TRANSACTION and REIMBURSEMENT.",
            "enum": [
              "REIMBURSEMENT",
              "TRANSACTION"
            ],
            "type": "string",
            "x-enum-descriptions": {
              "REIMBURSEMENT": "Mark a Ramp reimbursement as ready to sync.",
              "TRANSACTION": "Mark a Ramp card transaction as ready to sync."
            }
          }
        },
        "required": [
          "object_ids",
          "object_type"
        ],
        "type": "object"
      },
      "ApiAccountingSplitFieldSelectionRequestBody": {
        "properties": {
          "field_external_id": {
            "default": null,
            "description": "Remote ID of the accounting field in the ERP system. Provide exactly one of field_id or field_external_id.",
            "nullable": true,
            "type": "string"
          },
          "field_id": {
            "default": null,
            "description": "UUID of the accounting field. Provide exactly one of field_id or field_external_id.",
            "format": "uuid",
            "nullable": true,
            "type": "string",
            "x-relationship": {
              "inverse_field_name": null,
              "reference_field_name": "ramp_id",
              "target_resource": "accounting_fields",
              "type": "many-to-one"
            }
          },
          "field_option_external_id": {
            "default": null,
            "description": "Remote ID of the accounting field option in the ERP system. Provide exactly one of field_option_id, field_option_external_id, or free_form_text.",
            "nullable": true,
            "type": "string"
          },
          "field_option_id": {
            "default": null,
            "description": "UUID of the accounting field option. Provide exactly one of field_option_id, field_option_external_id, or free_form_text.",
            "format": "uuid",
            "nullable": true,
            "type": "string",
            "x-relationship": {
              "inverse_field_name": null,
              "reference_field_name": "ramp_id",
              "target_resource": "custom_field_options",
              "type": "many-to-one"
            }
          },
          "free_form_text": {
            "default": null,
            "description": "Free form text for the accounting field selection. For DATE-type fields, use ISO format (YYYY-MM-DD). Provide exactly one of field_option_id, field_option_external_id, or free_form_text.",
            "minLength": 1,
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "ApiAccountingSplitLineItemRequestBody": {
        "properties": {
          "accounting_field_selections": {
            "description": "Accounting field selections for this line item. Each field and option may be identified by Ramp ID or by ERP remote ID.",
            "items": {
              "$ref": "#/components/schemas/ApiAccountingSplitFieldSelectionRequestBody"
            },
            "type": "array"
          },
          "amount": {
            "description": "Amount in minor units (e.g. 5000 = $50.00).",
            "type": "integer"
          },
          "memo": {
            "default": null,
            "description": "Memo for this line item (e.g. a case ID).",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "amount"
        ],
        "type": "object"
      },
      "ApiAccountingSuccessfulSyncRequestBody": {
        "example": {
          "id": "bb037f47-c664-46f9-afa7-cc68cbcf5a23",
          "reference_id": "83283a15-c0a0-4105-9724-2fcfefa9924f"
        },
        "properties": {
          "deep_link_url": {
            "description": "URL that links to the object in the remote ERP system. Applicable for transactions, reimbursements, bills, bill payments, and vendor credits. Bill payment syncs update the bill's URL. Omitting this field preserves the existing URL.",
            "format": "url",
            "type": "string"
          },
          "id": {
            "description": "ID that uniquely identifies the object to sync in Ramp systems.",
            "format": "uuid",
            "type": "string"
          },
          "reference_id": {
            "description": "ID that uniquely identifies the object to sync in remote ERP systems.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "reference_id"
        ],
        "type": "object"
      },
      "ApiAccountingSyncCreateRequestBody": {
        "example": {
          "failed_syncs": [
            {
              "error": {
                "message": "The account period has closed and the account books cannot be updated."
              },
              "id": "d471d830-2e73-4082-8a75-68540f83e86e"
            }
          ],
          "idempotency_key": "d471d830-2e73-4082-8a75-68540f83e86e",
          "successful_syncs": [
            {
              "id": "5a58eb94-a583-458f-810d-c794f32f2f90",
              "reference_id": "d8573713-a97d-4119-bdd7-b69c318df9bb"
            },
            {
              "id": "bb037f47-c664-46f9-afa7-cc68cbcf5a23",
              "reference_id": "83283a15-c0a0-4105-9724-2fcfefa9924f"
            }
          ],
          "sync_type": "TRANSACTION_SYNC"
        },
        "properties": {
          "failed_syncs": {
            "description": "A list of objects that failed to be synced.",
            "items": {
              "$ref": "#/components/schemas/ApiAccountingFailedSyncRequestBody"
            },
            "maxItems": 5000,
            "minItems": 1,
            "type": "array"
          },
          "idempotency_key": {
            "description": "An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. To avoid collisions, we encourage clients to use random generated UUIDs.",
            "type": "string"
          },
          "mark_ready_to_sync": {
            "description": "Mark successful transaction syncs ready before recording completion, clearing their accounting requirements. Only supported for TRANSACTION_SYNC without sync_request_id; failed_syncs are not marked ready. Defaults to false.",
            "type": "boolean"
          },
          "successful_syncs": {
            "description": "A list of successfully synced objects.",
            "items": {
              "$ref": "#/components/schemas/ApiAccountingSuccessfulSyncRequestBody"
            },
            "maxItems": 5000,
            "minItems": 1,
            "type": "array"
          },
          "sync_request_id": {
            "default": null,
            "description": "For Sync Button flows, provide the sync request ID received from the TRANSACTION_SYNC_REQUESTED, REIMBURSEMENT_SYNC_REQUESTED, or ACCRUAL_SYNC_REQUESTED outbound webhook. Do not provide this value for non-Sync Button flows.",
            "format": "uuid",
            "nullable": true,
            "type": "string",
            "x-relationship": {
              "inverse_field_name": null,
              "reference_field_name": "id",
              "target_resource": "accounting_sync_requests",
              "type": "many-to-one"
            }
          },
          "sync_type": {
            "description": "The type of object to sync.",
            "enum": [
              "ACCRUAL_SYNC",
              "BILL_PAYMENT_SYNC",
              "BILL_SYNC",
              "BROKERAGE_ORDER_SYNC",
              "RECOGNITION_SCHEDULE_ENTRY_SYNC",
              "REIMBURSEMENT_SYNC",
              "REPAYMENT_SYNC",
              "STATEMENT_CREDIT_SYNC",
              "TRANSACTION_SYNC",
              "TRANSFER_SYNC",
              "VENDOR_CREDIT_SYNC",
              "WALLET_TRANSFER_SYNC"
            ],
            "type": "string",
            "x-enum-descriptions": {
              "ACCRUAL_SYNC": "Report the result of an accrual sync request.",
              "RECOGNITION_SCHEDULE_ENTRY_SYNC": "Report sync results for a recognition schedule sync request.",
              "REPAYMENT_SYNC": "Report sync results for employee repayments to the business.",
              "VENDOR_CREDIT_SYNC": "Report sync results for vendor credits. Requires bill sync through the API to be enabled."
            }
          }
        },
        "required": [
          "idempotency_key",
          "sync_type"
        ],
        "type": "object"
      },
      "ApiAccountingSyncErrorRequestBody": {
        "example": {
          "message": "The account period has closed and the account books cannot be updated."
        },
        "properties": {
          "message": {
            "description": "an error message that explains the reason of the sync failure.",
            "type": "string"
          }
        },
        "required": [
          "message"
        ],
        "type": "object"
      },
      "ApiAccountingSyncResource": {
        "properties": {
          "sync_id": {
            "description": "Unique identifier of the sync job.",
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "sync_id"
        ],
        "type": "object"
      },
      "ApiAmount": {
        "properties": {
          "currency": {
            "description": "The currency of the amount in ISO 4217 format (e.g. USD).",
            "enum": [
              "AED",
              "AFN",
              "ALL",
              "AMD",
              "ANG",
              "AOA",
              "ARS",
              "AUD",
              "AWG",
              "AZN",
              "BAM",
              "BBD",
              "BDT",
              "BGN",
              "BHD",
              "BIF",
              "BMD",
              "BND",
              "BOB",
              "BOV",
              "BRL",
              "BSD",
              "BTN",
              "BWP",
              "BYN",
              "BZD",
              "CAD",
              "CDF",
              "CHE",
              "CHF",
              "CHW",
              "CLF",
              "CLP",
              "CNH",
              "CNY",
              "COP",
              "COU",
              "CRC",
              "CUC",
              "CUP",
              "CVE",
              "CZK",
              "DJF",
              "DKK",
              "DOP",
              "DZD",
              "EGP",
              "ERN",
              "ETB",
              "EUR",
              "EURC",
              "FJD",
              "FKP",
              "GBP",
              "GEL",
              "GHS",
              "GIP",
              "GMD",
              "GNF",
              "GTQ",
              "GYD",
              "HKD",
              "HNL",
              "HRK",
              "HTG",
              "HUF",
              "IDR",
              "ILS",
              "INR",
              "IQD",
              "IRR",
              "ISK",
              "JMD",
              "JOD",
              "JPY",
              "KES",
              "KGS",
              "KHR",
              "KMF",
              "KPW",
              "KRW",
              "KWD",
              "KYD",
              "KZT",
              "LAK",
              "LBP",
              "LKR",
              "LRD",
              "LSL",
              "LYD",
              "MAD",
              "MDL",
              "MGA",
              "MKD",
              "MMK",
              "MNT",
              "MOP",
              "MRU",
              "MUR",
              "MVR",
              "MWK",
              "MXN",
              "MXV",
              "MYR",
              "MZN",
              "NAD",
              "NGN",
              "NIO",
              "NOK",
              "NPR",
              "NZD",
              "OMR",
              "OPEN_USD",
              "PAB",
              "PEN",
              "PGK",
              "PHP",
              "PKR",
              "PLN",
              "PYG",
              "QAR",
              "RON",
              "RSD",
              "RUB",
              "RWF",
              "SAR",
              "SBD",
              "SCR",
              "SDG",
              "SEK",
              "SGD",
              "SHP",
              "SLE",
              "SLL",
              "SOS",
              "SRD",
              "SSP",
              "STN",
              "SVC",
              "SYP",
              "SZL",
              "THB",
              "TJS",
              "TMT",
              "TND",
              "TOP",
              "TRY",
              "TTD",
              "TWD",
              "TZS",
              "UAH",
              "UGX",
              "USD",
              "USDB",
              "USDC",
              "USDG",
              "USDT",
              "USN",
              "UYI",
              "UYU",
              "UYW",
              "UZS",
              "VED",
              "VES",
              "VND",
              "VUV",
              "WST",
              "XAD",
              "XAF",
              "XAG",
              "XAU",
              "XBA",
              "XBB",
              "XBC",
              "XBD",
              "XCD",
              "XCG",
              "XDR",
              "XOF",
              "XPD",
              "XPF",
              "XPT",
              "XSU",
              "XTS",
              "XUA",
              "XXX",
              "YER",
              "ZAR",
              "ZMW",
              "ZWG",
              "ZWL"
            ],
            "type": "string",
            "x-enum-descriptions": {
              "AED": "UAE Dirham",
              "AFN": "Afghani",
              "ALL": "Lek",
              "AMD": "Armenian Dram",
              "ANG": "Netherlands Antillean Guilder",
              "AOA": "Kwanza",
              "ARS": "Argentine Peso",
              "AUD": "Australian Dollar",
              "AWG": "Aruban Florin",
              "AZN": "Azerbaijan Manat",
              "BAM": "Convertible Mark",
              "BBD": "Barbados Dollar",
              "BDT": "Taka",
              "BGN": "Bulgarian Lev",
              "BHD": "Bahraini Dinar",
              "BIF": "Burundi Franc",
              "BMD": "Bermudian Dollar",
              "BND": "Brunei Dollar",
              "BOB": "Boliviano",
              "BOV": "Mvdol",
              "BRL": "Brazilian Real",
              "BSD": "Bahamian Dollar",
              "BTN": "Ngultrum",
              "BWP": "Pula",
              "BYN": "Belarusian Ruble",
              "BZD": "Belize Dollar",
              "CAD": "Canadian Dollar",
              "CDF": "Congolese Franc",
              "CHE": "WIR Euro",
              "CHF": "Swiss Franc",
              "CHW": "WIR Franc",
              "CLF": "Unidad de Fomento",
              "CLP": "Chilean Peso",
              "CNH": "CNH",
              "CNY": "Yuan Renminbi",
              "COP": "Colombian Peso",
              "COU": "Unidad de Valor Real",
              "CRC": "Costa Rican Colon",
              "CUC": "Peso Convertible",
              "CUP": "Cuban Peso",
              "CVE": "Cabo Verde Escudo",
              "CZK": "Czech Koruna",
              "DJF": "Djibouti Franc",
              "DKK": "Danish Krone",
              "DOP": "Dominican Peso",
              "DZD": "Algerian Dinar",
              "EGP": "Egyptian Pound",
              "ERN": "Nakfa",
              "ETB": "Ethiopian Birr",
              "EUR": "Euro",
              "EURC": "Euro Coin",
              "FJD": "Fiji Dollar",
              "FKP": "Falkland Islands Pound",
              "GBP": "Pound Sterling",
              "GEL": "Lari",
              "GHS": "Ghana Cedi",
              "GIP": "Gibraltar Pound",
              "GMD": "Dalasi",
              "GNF": "Guinean Franc",
              "GTQ": "Quetzal",
              "GYD": "Guyana Dollar",
              "HKD": "Hong Kong Dollar",
              "HNL": "Lempira",
              "HRK": "Croatian Kuna",
              "HTG": "Gourde",
              "HUF": "Forint",
              "IDR": "Rupiah",
              "ILS": "New Israeli Sheqel",
              "INR": "Indian Rupee",
              "IQD": "Iraqi Dinar",
              "IRR": "Iranian Rial",
              "ISK": "Iceland Krona",
              "JMD": "Jamaican Dollar",
              "JOD": "Jordanian Dinar",
              "JPY": "Yen",
              "KES": "Kenyan Shilling",
              "KGS": "Som",
              "KHR": "Riel",
              "KMF": "Comorian Franc",
              "KPW": "North Korean Won",
              "KRW": "Won",
              "KWD": "Kuwaiti Dinar",
              "KYD": "Cayman Islands Dollar",
              "KZT": "Tenge",
              "LAK": "Lao Kip",
              "LBP": "Lebanese Pound",
              "LKR": "Sri Lanka Rupee",
              "LRD": "Liberian Dollar",
              "LSL": "Loti",
              "LYD": "Libyan Dinar",
              "MAD": "Moroccan Dirham",
              "MDL": "Moldovan Leu",
              "MGA": "Malagasy Ariary",
              "MKD": "Denar",
              "MMK": "Kyat",
              "MNT": "Tugrik",
              "MOP": "Pataca",
              "MRU": "Ouguiya",
              "MUR": "Mauritius Rupee",
              "MVR": "Rufiyaa",
              "MWK": "Malawi Kwacha",
              "MXN": "Mexican Peso",
              "MXV": "Mexican Unidad de Inversion (UDI)",
              "MYR": "Malaysian Ringgit",
              "MZN": "Mozambique Metical",
              "NAD": "Namibia Dollar",
              "NGN": "Naira",
              "NIO": "Cordoba Oro",
              "NOK": "Norwegian Krone",
              "NPR": "Nepalese Rupee",
              "NZD": "New Zealand Dollar",
              "OMR": "Rial Omani",
              "OPEN_USD": "OpenUSD",
              "PAB": "Balboa",
              "PEN": "Sol",
              "PGK": "Kina",
              "PHP": "Philippine Peso",
              "PKR": "Pakistan Rupee",
              "PLN": "Zloty",
              "PYG": "Guarani",
              "QAR": "Qatari Rial",
              "RON": "Romanian Leu",
              "RSD": "Serbian Dinar",
              "RUB": "Russian Ruble",
              "RWF": "Rwanda Franc",
              "SAR": "Saudi Riyal",
              "SBD": "Solomon Islands Dollar",
              "SCR": "Seychelles Rupee",
              "SDG": "Sudanese Pound",
              "SEK": "Swedish Krona",
              "SGD": "Singapore Dollar",
              "SHP": "Saint Helena Pound",
              "SLE": "Leone",
              "SLL": "Leone",
              "SOS": "Somali Shilling",
              "SRD": "Surinam Dollar",
              "SSP": "South Sudanese Pound",
              "STN": "Dobra",
              "SVC": "El Salvador Colon",
              "SYP": "Syrian Pound",
              "SZL": "Lilangeni",
              "THB": "Baht",
              "TJS": "Somoni",
              "TMT": "Turkmenistan New Manat",
              "TND": "Tunisian Dinar",
              "TOP": "Pa\u2019anga",
              "TRY": "Turkish Lira",
              "TTD": "Trinidad and Tobago Dollar",
              "TWD": "New Taiwan Dollar",
              "TZS": "Tanzanian Shilling",
              "UAH": "Hryvnia",
              "UGX": "Uganda Shilling",
              "USD": "US Dollar",
              "USDB": "USDB",
              "USDC": "USDC",
              "USDG": "Global Dollar",
              "USDT": "USDT",
              "USN": "US Dollar (Next day)",
              "UYI": "Uruguay Peso en Unidades Indexadas (UI)",
              "UYU": "Peso Uruguayo",
              "UYW": "Unidad Previsional",
              "UZS": "Uzbekistan Sum",
              "VED": "Bol\u00edvar Soberano",
              "VES": "Bol\u00edvar Soberano",
              "VND": "Dong",
              "VUV": "Vatu",
              "WST": "Tala",
              "XAD": "Arab Accounting Dinar",
              "XAF": "CFA Franc BEAC",
              "XAG": "Silver",
              "XAU": "Gold",
              "XBA": "Bond Markets Unit European Composite Unit (EURCO)",
              "XBB": "Bond Markets Unit European Monetary Unit (E.M.U.-6)",
              "XBC": "Bond Markets Unit European Unit of Account 9 (E.U.A.-9)",
              "XBD": "Bond Markets Unit European Unit of Account 17 (E.U.A.-17)",
              "XCD": "East Caribbean Dollar",
              "XCG": "Caribbean Guilder",
              "XDR": "SDR (Special Drawing Right)",
              "XOF": "CFA Franc BCEAO",
              "XPD": "Palladium",
              "XPF": "CFP Franc",
              "XPT": "Platinum",
              "XSU": "Sucre",
              "XTS": "Codes specifically reserved for testing purposes",
              "XUA": "ADB Unit of Account",
              "XXX": "The codes assigned for transactions where no currency is involved",
              "YER": "Yemeni Rial",
              "ZAR": "Rand",
              "ZMW": "Zambian Kwacha",
              "ZWG": "Zimbabwe Gold",
              "ZWL": "Zimbabwe Dollar"
            }
          },
          "value": {
            "description": "The non-negative amount in the smallest denomination of the currency (e.g. cents for USD).",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "currency",
          "value"
        ],
        "type": "object"
      },
      "ApiAmountRequestBody": {
        "properties": {
          "currency": {
            "description": "The currency of the amount in ISO 4217 format (e.g. USD).",
            "enum": [
              "AED",
              "AFN",
              "ALL",
              "AMD",
              "ANG",
              "AOA",
              "ARS",
              "AUD",
              "AWG",
              "AZN",
              "BAM",
              "BBD",
              "BDT",
              "BGN",
              "BHD",
              "BIF",
              "BMD",
              "BND",
              "BOB",
              "BOV",
              "BRL",
              "BSD",
              "BTN",
              "BWP",
              "BYN",
              "BZD",
              "CAD",
              "CDF",
              "CHE",
              "CHF",
              "CHW",
              "CLF",
              "CLP",
              "CNH",
              "CNY",
              "COP",
              "COU",
              "CRC",
              "CUC",
              "CUP",
              "CVE",
              "CZK",
              "DJF",
              "DKK",
              "DOP",
              "DZD",
              "EGP",
              "ERN",
              "ETB",
              "EUR",
              "EURC",
              "FJD",
              "FKP",
              "GBP",
              "GEL",
              "GHS",
              "GIP",
              "GMD",
              "GNF",
              "GTQ",
              "GYD",
              "HKD",
              "HNL",
              "HRK",
              "HTG",
              "HUF",
              "IDR",
              "ILS",
              "INR",
              "IQD",
              "IRR",
              "ISK",
              "JMD",
              "JOD",
              "JPY",
              "KES",
              "KGS",
              "KHR",
              "KMF",
              "KPW",
              "KRW",
              "KWD",
              "KYD",
              "KZT",
              "LAK",
              "LBP",
              "LKR",
              "LRD",
              "LSL",
              "LYD",
              "MAD",
              "MDL",
              "MGA",
              "MKD",
              "MMK",
              "MNT",
              "MOP",
              "MRU",
              "MUR",
              "MVR",
              "MWK",
              "MXN",
              "MXV",
              "MYR",
              "MZN",
              "NAD",
              "NGN",
              "NIO",
              "NOK",
              "NPR",
              "NZD",
              "OMR",
              "OPEN_USD",
              "PAB",
              "PEN",
              "PGK",
              "PHP",
              "PKR",
              "PLN",
              "PYG",
              "QAR",
              "RON",
              "RSD",
              "RUB",
              "RWF",
              "SAR",
              "SBD",
              "SCR",
              "SDG",
              "SEK",
              "SGD",
              "SHP",
              "SLE",
              "SLL",
              "SOS",
              "SRD",
              "SSP",
              "STN",
              "SVC",
              "SYP",
              "SZL",
              "THB",
              "TJS",
              "TMT",
              "TND",
              "TOP",
              "TRY",
              "TTD",
              "TWD",
              "TZS",
              "UAH",
              "UGX",
              "USD",
              "USDB",
              "USDC",
              "USDG",
              "USDT",
              "USN",
              "UYI",
              "UYU",
              "UYW",
              "UZS",
              "VED",
              "VES",
              "VND",
              "VUV",
              "WST",
              "XAD",
              "XAF",
              "XAG",
              "XAU",
              "XBA",
              "XBB",
              "XBC",
              "XBD",
              "XCD",
              "XCG",
              "XDR",
              "XOF",
              "XPD",
              "XPF",
              "XPT",
              "XSU",
              "XTS",
              "XUA",
              "XXX",
              "YER",
              "ZAR",
              "ZMW",
              "ZWG",
              "ZWL"
            ],
            "type": "string",
            "x-enum-descriptions": {
              "AED": "UAE Dirham",
              "AFN": "Afghani",
              "ALL": "Lek",
              "AMD": "Armenian Dram",
              "ANG": "Netherlands Antillean Guilder",
              "AOA": "Kwanza",
              "ARS": "Argentine Peso",
              "AUD": "Australian Dollar",
              "AWG": "Aruban Florin",
              "AZN": "Azerbaijan Manat",
              "BAM": "Convertible Mark",
              "BBD": "Barbados Dollar",
              "BDT": "Taka",
              "BGN": "Bulgarian Lev",
              "BHD": "Bahraini Dinar",
              "BIF": "Burundi Franc",
              "BMD": "Bermudian Dollar",
              "BND": "Brunei Dollar",
              "BOB": "Boliviano",
              "BOV": "Mvdol",
              "BRL": "Brazilian Real",
              "BSD": "Bahamian Dollar",
              "BTN": "Ngultrum",
              "BWP": "Pula",
              "BYN": "Belarusian Ruble",
              "BZD": "Belize Dollar",
              "CAD": "Canadian Dollar",
              "CDF": "Congolese Franc",
              "CHE": "WIR Euro",
              "CHF": "Swiss Franc",
              "CHW": "WIR Franc",
              "CLF": "Unidad de Fomento",
              "CLP": "Chilean Peso",
              "CNH": "CNH",
              "CNY": "Yuan Renminbi",
              "COP": "Colombian Peso",
              "COU": "Unidad de Valor Real",
              "CRC": "Costa Rican Colon",
              "CUC": "Peso Convertible",
              "CUP": "Cuban Peso",
              "CVE": "Cabo Verde Escudo",
              "CZK": "Czech Koruna",
              "DJF": "Djibouti Franc",
              "DKK": "Danish Krone",
              "DOP": "Dominican Peso",
              "DZD": "Algerian Dinar",
              "EGP": "Egyptian Pound",
              "ERN": "Nakfa",
              "ETB": "Ethiopian Birr",
              "EUR": "Euro",
              "EURC": "Euro Coin",
              "FJD": "Fiji Dollar",
              "FKP": "Falkland Islands Pound",
              "GBP": "Pound Sterling",
              "GEL": "Lari",
              "GHS": "Ghana Cedi",
              "GIP": "Gibraltar Pound",
              "GMD": "Dalasi",
              "GNF": "Guinean Franc",
              "GTQ": "Quetzal",
              "GYD": "Guyana Dollar",
              "HKD": "Hong Kong Dollar",
              "HNL": "Lempira",
              "HRK": "Croatian Kuna",
              "HTG": "Gourde",
              "HUF": "Forint",
              "IDR": "Rupiah",
              "ILS": "New Israeli Sheqel",
              "INR": "Indian Rupee",
              "IQD": "Iraqi Dinar",
              "IRR": "Iranian Rial",
              "ISK": "Iceland Krona",
              "JMD": "Jamaican Dollar",
              "JOD": "Jordanian Dinar",
              "JPY": "Yen",
              "KES": "Kenyan Shilling",
              "KGS": "Som",
              "KHR": "Riel",
              "KMF": "Comorian Franc",
              "KPW": "North Korean Won",
              "KRW": "Won",
              "KWD": "Kuwaiti Dinar",
              "KYD": "Cayman Islands Dollar",
              "KZT": "Tenge",
              "LAK": "Lao Kip",
              "LBP": "Lebanese Pound",
              "LKR": "Sri Lanka Rupee",
              "LRD": "Liberian Dollar",
              "LSL": "Loti",
              "LYD": "Libyan Dinar",
              "MAD": "Moroccan Dirham",
              "MDL": "Moldovan Leu",
              "MGA": "Malagasy Ariary",
              "MKD": "Denar",
              "MMK": "Kyat",
              "MNT": "Tugrik",
              "MOP": "Pataca",
              "MRU": "Ouguiya",
              "MUR": "Mauritius Rupee",
              "MVR": "Rufiyaa",
              "MWK": "Malawi Kwacha",
              "MXN": "Mexican Peso",
              "MXV": "Mexican Unidad de Inversion (UDI)",
              "MYR": "Malaysian Ringgit",
              "MZN": "Mozambique Metical",
              "NAD": "Namibia Dollar",
              "NGN": "Naira",
              "NIO": "Cordoba Oro",
              "NOK": "Norwegian Krone",
              "NPR": "Nepalese Rupee",
              "NZD": "New Zealand Dollar",
              "OMR": "Rial Omani",
              "OPEN_USD": "OpenUSD",
              "PAB": "Balboa",
              "PEN": "Sol",
              "PGK": "Kina",
              "PHP": "Philippine Peso",
              "PKR": "Pakistan Rupee",
              "PLN": "Zloty",
              "PYG": "Guarani",
              "QAR": "Qatari Rial",
              "RON": "Romanian Leu",
              "RSD": "Serbian Dinar",
              "RUB": "Russian Ruble",
              "RWF": "Rwanda Franc",
              "SAR": "Saudi Riyal",
              "SBD": "Solomon Islands Dollar",
              "SCR": "Seychelles Rupee",
              "SDG": "Sudanese Pound",
              "SEK": "Swedish Krona",
              "SGD": "Singapore Dollar",
              "SHP": "Saint Helena Pound",
              "SLE": "Leone",
              "SLL": "Leone",
              "SOS": "Somali Shilling",
              "SRD": "Surinam Dollar",
              "SSP": "South Sudanese Pound",
              "STN": "Dobra",
              "SVC": "El Salvador Colon",
              "SYP": "Syrian Pound",
              "SZL": "Lilangeni",
              "THB": "Baht",
              "TJS": "Somoni",
              "TMT": "Turkmenistan New Manat",
              "TND": "Tunisian Dinar",
              "TOP": "Pa\u2019anga",
              "TRY": "Turkish Lira",
              "TTD": "Trinidad and Tobago Dollar",
              "TWD": "New Taiwan Dollar",
              "TZS": "Tanzanian Shilling",
              "UAH": "Hryvnia",
              "UGX": "Uganda Shilling",
              "USD": "US Dollar",
              "USDB": "USDB",
              "USDC": "USDC",
              "USDG": "Global Dollar",
              "USDT": "USDT",
              "USN": "US Dollar (Next day)",
              "UYI": "Uruguay Peso en Unidades Indexadas (UI)",
              "UYU": "Peso Uruguayo",
              "UYW": "Unidad Previsional",
              "UZS": "Uzbekistan Sum",
              "VED": "Bol\u00edvar Soberano",
              "VES": "Bol\u00edvar Soberano",
              "VND": "Dong",
              "VUV": "Vatu",
              "WST": "Tala",
              "XAD": "Arab Accounting Dinar",
              "XAF": "CFA Franc BEAC",
              "XAG": "Silver",
              "XAU": "Gold",
              "XBA": "Bond Markets Unit European Composite Unit (EURCO)",
              "XBB": "Bond Markets Unit European Monetary Unit (E.M.U.-6)",
              "XBC": "Bond Markets Unit European Unit of Account 9 (E.U.A.-9)",
              "XBD": "Bond Markets Unit European Unit of Account 17 (E.U.A.-17)",
              "XCD": "East Caribbean Dollar",
              "XCG": "Caribbean Guilder",
              "XDR": "SDR (Special Drawing Right)",
              "XOF": "CFA Franc BCEAO",
              "XPD": "Palladium",
              "XPF": "CFP Franc",
              "XPT": "Platinum",
              "XSU": "Sucre",
              "XTS": "Codes specifically reserved for testing purposes",
              "XUA": "ADB Unit of Account",
              "XXX": "The codes assigned for transactions where no currency is involved",
              "YER": "Yemeni Rial",
              "ZAR": "Rand",
              "ZMW": "Zambian Kwacha",
              "ZWG": "Zimbabwe Gold",
              "ZWL": "Zimbabwe Dollar"
            }
          },
          "value": {
            "description": "The non-negative amount in the smallest denomination of the currency (e.g. cents for USD).",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "currency",
          "value"
        ],
        "type": "object"
      },
      "ApiApplicationAddressParams": {
        "properties": {
          "apt_suite": {
            "default": null,
            "description": "Apartment or suite number.",
            "nullable": true,
            "type": "string"
          },
          "city": {
            "default": null,
            "description": "City.",
            "nullable": true,
            "type": "string"
          },
          "postal_code": {
            "default": null,
            "description": "Postal code.",
            "nullable": true,
            "type": "string"
          },
          "state": {
            "default": null,
            "description": "Two-letter state code (e.g. CA).",
            "maxLength": 2,
            "minLength": 2,
            "nullable": true,
            "type": "string"
          },
          "street_address": {
            "default": null,
            "description": "Street address.",
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "ApiApplicationAddressUpdateParamsRequestBody": {
        "properties": {
          "apt_suite": {
            "description": "Apartment or suite number.",
            "type": "string"
          },
          "city": {
            "description": "City.",
            "type": "string"
          },
          "postal_code": {
            "description": "Postal code.",
            "type": "string"
          },
          "state": {
            "description": "Two-letter state code (e.g. CA).",
            "maxLength": 2,
            "minLength": 2,
            "type": "string"
          },
          "street_address": {
            "description": "Street address.",
            "type": "string"
          }
        },
        "type": "object"
      },
      "ApiApplicationAgentOnlyWriteContextParamsRequestBody": {
        "properties": {
          "data_source_summary": {
            "description": "Describe how the agent got the data used for this write.",
            "example": "Legal name and EIN from the applicant's IRS letter; revenue from QuickBooks; address supplied by the applicant.",
            "minLength": 1,
            "type": "string"
          },
          "user_prompt": {
            "description": "The user's natural-language prompt that led to this tool call.",
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "data_source_summary",
          "user_prompt"
        ],
        "type": "object"
      },
      "ApiApplicationApplicantParams": {
        "properties": {
          "email": {
            "description": "Business email address of the applicant. The applicant signs in to Ramp with this email to complete the application, is the first user created on the new Ramp business, and becomes its business owner once the application is approved. Use the email of the person who should own the Ramp business. To complete general details without applicant action in Ramp, the business website domain must match this email domain or be its subdomain. If the domains differ, the applicant must explain the mismatch in Ramp.",
            "format": "email",
            "type": "string"
          },
          "first_name": {
            "description": "First name of the applicant.",
            "type": "string"
          },
          "last_name": {
            "description": "Last name of the applicant.",
            "type": "string"
          },
          "phone": {
            "default": null,
            "description": "Phone number of the applicant in E.164 format.",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "email",
          "first_name",
          "last_name"
        ],
        "type": "object"
      },
      "ApiApplicationBusinessParams": {
        "properties": {
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiApplicationAddressParams"
              }
            ],
            "default": null,
            "description": "Principal place of business address.",
            "nullable": true
          },
          "business_description": {
            "default": null,
            "description": "Brief description of the business.",
            "maxLength": 250,
            "nullable": true,
            "type": "string"
          },
          "business_name_dba": {
            "default": null,
            "description": "Doing-business-as name.",
            "nullable": true,
            "type": "string"
          },
          "business_name_legal": {
            "default": null,
            "description": "Legal name of the business.",
            "nullable": true,
            "type": "string"
          },
          "business_name_on_card": {
            "default": null,
            "description": "Name to display on cards.",
            "nullable": true,
            "type": "string"
          },
          "business_website": {
            "default": null,
            "description": "Business website URL. To complete general details without applicant action in Ramp, its domain must match the applicant email domain or be its subdomain. If the domains differ, the applicant must explain the mismatch in Ramp.",
            "nullable": true,
            "type": "string"
          },
          "incorporation": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiApplicationIncorporationParams"
              }
            ],
            "default": null,
            "description": "Business incorporation details.",
            "nullable": true
          },
          "phone": {
            "default": null,
            "description": "Office phone number in E.164 format.",
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "ApiApplicationBusinessUpdateParamsRequestBody": {
        "properties": {
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiApplicationAddressUpdateParamsRequestBody"
              }
            ],
            "description": "Principal place of business address."
          },
          "business_description": {
            "description": "Brief description of the business.",
            "type": "string"
          },
          "business_name_dba": {
            "description": "Doing-business-as name.",
            "nullable": true,
            "type": "string"
          },
          "business_name_legal": {
            "description": "Legal name of the business.",
            "type": "string"
          },
          "business_name_on_card": {
            "description": "Name to display on cards.",
            "nullable": true,
            "type": "string"
          },
          "business_website": {
            "description": "Business website URL. To complete general details without applicant action in Ramp, its domain must match the applicant email domain or be its subdomain. If the domains differ, the applicant must explain the mismatch in Ramp.",
            "type": "string"
          },
          "incorporation": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiApplicationIncorporationUpdateParamsRequestBody"
              }
            ],
            "description": "Business incorporation details."
          },
          "phone": {
            "description": "Office phone number in E.164 format.",
            "type": "string"
          },
          "reason_for_email_and_domain_mismatch": {
            "description": "Explanation for why the business website domain differs from the applicant email domain. Providing a non-empty value resolves an EMAIL_DOMAIN_MISMATCH validation issue so general details can complete without the applicant visiting Ramp. Pass null to clear a previously set explanation.",
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "ApiApplicationControllingOfficerParams": {
        "properties": {
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiApplicationPersonAddressParams"
              }
            ],
            "default": null,
            "description": "Residential address.",
            "nullable": true
          },
          "birth_date": {
            "default": null,
            "description": "Date of birth in YYYY-MM-DD format.",
            "nullable": true,
            "type": "string"
          },
          "email": {
            "default": null,
            "description": "Email address.",
            "format": "email",
            "nullable": true,
            "type": "string"
          },
          "first_name": {
            "default": null,
            "description": "First name.",
            "nullable": true,
            "type": "string"
          },
          "is_beneficial_owner": {
            "default": false,
            "description": "Whether this officer is also a beneficial owner. Defaults to false.",
            "type": "boolean"
          },
          "last_name": {
            "default": null,
            "description": "Last name.",
            "nullable": true,
            "type": "string"
          },
          "ownership_percentage": {
            "default": null,
            "description": "Beneficial ownership percentage for this individual.",
            "maximum": 100,
            "minimum": 0,
            "nullable": true,
            "type": "integer"
          },
          "passport_last_4": {
            "default": null,
            "description": "Last 4 digits of passport number.",
            "maxLength": 4,
            "minLength": 4,
            "nullable": true,
            "type": "string"
          },
          "phone": {
            "default": null,
            "description": "Phone number in E.164 format.",
            "nullable": true,
            "type": "string"
          },
          "ssn_last_4": {
            "default": null,
            "description": "Last 4 digits of SSN.",
            "maxLength": 4,
            "minLength": 4,
            "nullable": true,
            "type": "string"
          },
          "title": {
            "default": null,
            "description": "Job title or role.",
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "ApiApplicationControllingOfficerUpdateParamsRequestBody": {
        "properties": {
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiApplicationPersonAddressUpdateParamsRequestBody"
              }
            ],
            "description": "Residential address."
          },
          "birth_date": {
            "description": "Date of birth in YYYY-MM-DD format.",
            "type": "string"
          },
          "email": {
            "description": "Email address.",
            "format": "email",
            "type": "string"
          },
          "first_name": {
            "description": "First name.",
            "type": "string"
          },
          "is_beneficial_owner": {
            "description": "Whether this officer is also a beneficial owner.",
            "type": "boolean"
          },
          "last_name": {
            "description": "Last name.",
            "type": "string"
          },
          "ownership_percentage": {
            "description": "Beneficial ownership percentage for this individual.",
            "maximum": 100,
            "minimum": 0,
            "nullable": true,
            "type": "integer"
          },
          "passport_last_4": {
            "description": "Last 4 digits of passport number.",
            "maxLength": 4,
            "minLength": 4,
            "nullable": true,
            "type": "string"
          },
          "phone": {
            "description": "Phone number in E.164 format.",
            "type": "string"
          },
          "ssn_last_4": {
            "description": "Last 4 digits of SSN.",
            "maxLength": 4,
            "minLength": 4,
            "nullable": true,
            "type": "string"
          },
          "title": {
            "description": "Job title or role.",
            "type": "string"
          }
        },
        "type": "object"
      },
      "ApiApplicationDocumentPurposeRequestBody": {
        "enum": [
          "BANKING_PORTAL_SCREENSHOT",
          "BANK_STATEMENT",
          "BANK_VERIFICATION_LETTER",
          "FOLLOWUP"
        ],
        "title": "ApiApplicationDocumentPurpose",
        "type": "string",
        "x-enum-descriptions": {
          "BANKING_PORTAL_SCREENSHOT": "Banking portal screenshot for a manually provided bank account",
          "BANK_STATEMENT": "Bank statement for a manually provided bank account. For the standard statement path, three active statements satisfy the account requirement; three is not an upload maximum. Eligible applicants may be offered an alternative document path in Ramp.",
          "BANK_VERIFICATION_LETTER": "Bank verification letter for a manually provided bank account",
          "FOLLOWUP": "Document responds to a follow-up request"
        }
      },
      "ApiApplicationDocumentResource": {
        "properties": {
          "bank_statement_id": {
            "description": "Canonical bank statement id when this response represents a bank document. Always null for FOLLOWUP documents.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "filename": {
            "description": "Original uploaded filename.",
            "type": "string"
          },
          "followup_id": {
            "description": "Follow-up id when this document responds to a follow-up.",
            "format": "uuid",
            "nullable": true,
            "type": "string",
            "x-relationship": {
              "inverse_field_name": null,
              "reference_field_name": "id",
              "target_resource": "application_followups",
              "type": "many-to-one"
            }
          },
          "id": {
            "description": "Unique identifier of the uploaded document.",
            "format": "uuid",
            "type": "string"
          },
          "manual_bank_account_id": {
            "description": "Manual bank account id when this document supports a manual bank account. Use this field with purpose to count active BANK_STATEMENT documents for each manual account.",
            "format": "uuid",
            "nullable": true,
            "type": "string",
            "x-relationship": {
              "inverse_field_name": null,
              "reference_field_name": "id",
              "target_resource": "bank_accounts",
              "type": "many-to-one"
            }
          },
          "purpose": {
            "description": "Purpose of the uploaded document.",
            "enum": [
              "BANKING_PORTAL_SCREENSHOT",
              "BANK_STATEMENT",
              "BANK_VERIFICATION_LETTER",
              "FOLLOWUP"
            ],
            "type": "string",
            "x-enum-descriptions": {
              "BANKING_PORTAL_SCREENSHOT": "Banking portal screenshot for a manually provided bank account",
              "BANK_STATEMENT": "Bank statement for a manually provided bank account. For the standard statement path, three active statements satisfy the account requirement; three is not an upload maximum. Eligible applicants may be offered an alternative document path in Ramp.",
              "BANK_VERIFICATION_LETTER": "Bank verification letter for a manually provided bank account",
              "FOLLOWUP": "Document responds to a follow-up request"
            }
          },
          "uploaded_at": {
            "description": "Timestamp when the document was uploaded.",
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "filename",
          "id",
          "purpose",
          "uploaded_at"
        ],
        "type": "object"
      },
      "ApiApplicationDocumentUploadParamsRequestBody": {
        "example": {
          "file": "(binary)",
          "manual_bank_account_id": "123e4567-e89b-12d3-a456-426614174000",
          "purpose": "BANK_STATEMENT"
        },
        "properties": {
          "file": {
            "$ref": "#/components/schemas/UploadedFileRequestBody"
          },
          "followup_id": {
            "default": null,
            "description": "Follow-up id. Required when purpose is FOLLOWUP.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "manual_bank_account_id": {
            "default": null,
            "description": "Manual bank account id. Required for bank account documents. For the standard BANK_STATEMENT path, list current application documents for this account and upload until it has three active statements. Eligible applicants may instead be offered an alternative document path in Ramp.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "purpose": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiApplicationDocumentPurposeRequestBody"
              }
            ],
            "description": "Type of application document being uploaded."
          }
        },
        "required": [
          "file",
          "purpose"
        ],
        "title": "ApiApplicationDocumentUploadParams",
        "type": "object"
      },
      "ApiApplicationFinancialDetailsParams": {
        "properties": {
          "estimated_monthly_ap_spend_amount": {
            "default": null,
            "description": "Estimated monthly accounts payable spend amount in dollars.",
            "nullable": true,
            "type": "integer"
          },
          "estimated_monthly_spend_amount": {
            "default": null,
            "description": "Estimated monthly card spend amount in dollars.",
            "nullable": true,
            "type": "integer"
          }
        },
        "type": "object"
      },
      "ApiApplicationFinancialDetailsUpdateParamsRequestBody": {
        "properties": {
          "estimated_monthly_ap_spend_amount": {
            "description": "Estimated monthly accounts payable spend amount in dollars.",
            "nullable": true,
            "type": "integer"
          },
          "estimated_monthly_spend_amount": {
            "description": "Estimated monthly card spend amount in dollars.",
            "nullable": true,
            "type": "integer"
          }
        },
        "type": "object"
      },
      "ApiApplicationIncorporationParams": {
        "properties": {
          "date_of_incorporation": {
            "default": null,
            "description": "Date of incorporation in YYYY-MM-DD format.",
            "format": "date",
            "nullable": true,
            "type": "string"
          },
          "ein_number": {
            "default": null,
            "description": "Employer Identification Number.",
            "nullable": true,
            "type": "string"
          },
          "entity_type": {
            "default": null,
            "description": "Type of business entity.",
            "enum": [
              "COOPERATIVE",
              "CORPORATION",
              "LLC",
              "NON_PROFIT_CORPORATION",
              "OTHER",
              "PARTNERSHIP",
              "SOLE_PROPRIETORSHIP"
            ],
            "nullable": true,
            "type": "string"
          },
          "state_of_incorporation": {
            "default": null,
            "description": "Two-letter state code where the business is incorporated.",
            "maxLength": 2,
            "minLength": 2,
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "ApiApplicationIncorporationUpdateParamsRequestBody": {
        "properties": {
          "date_of_incorporation": {
            "description": "Date of incorporation in YYYY-MM-DD format.",
            "format": "date",
            "nullable": true,
            "type": "string"
          },
          "ein_number": {
            "description": "Employer Identification Number.",
            "nullable": true,
            "type": "string"
          },
          "entity_type": {
            "description": "Type of business entity.",
            "enum": [
              "COOPERATIVE",
              "CORPORATION",
              "LLC",
              "NON_PROFIT_CORPORATION",
              "OTHER",
              "PARTNERSHIP",
              "SOLE_PROPRIETORSHIP"
            ],
            "type": "string"
          },
          "state_of_incorporation": {
            "description": "Two-letter state code where the business is incorporated.",
            "maxLength": 2,
            "minLength": 2,
            "type": "string"
          }
        },
        "type": "object"
      },
      "ApiApplicationManualBankAccountUpdateParamsRequestBody": {
        "properties": {
          "account_number": {
            "description": "Bank account number.",
            "type": "string"
          },
          "account_subtype": {
            "description": "Bank account subtype, such as checking or savings.",
            "type": "string"
          },
          "balance": {
            "description": "Current account balance.",
            "oneOf": [
              {
                "format": "decimal",
                "type": "string"
              },
              {
                "type": "number"
              }
            ]
          },
          "routing_number": {
            "description": "ABA routing number.",
            "type": "string"
          }
        },
        "required": [
          "account_number",
          "account_subtype",
          "balance",
          "routing_number"
        ],
        "type": "object"
      },
      "ApiApplicationOptionalActionResource": {
        "example": {
          "optional_actions": [
            {
              "actor": "APPLICANT",
              "completion_status": "NOT_STARTED",
              "key": "LINK_ACCOUNTING_PROVIDER"
            }
          ],
          "ready_for_submission": false,
          "required_actions": [
            {
              "actor": "AGENT",
              "guidance": "Provide the missing application data for this section.",
              "page_key": "business_info",
              "section_key": "principal_place_of_business",
              "type": "PROVIDE_APPLICATION_DATA"
            }
          ],
          "status": "STARTED"
        },
        "properties": {
          "actor": {
            "description": "Party responsible for completing the optional action.",
            "enum": [
              "AGENT",
              "APPLICANT",
              "RAMP"
            ],
            "type": "string",
            "x-enum-descriptions": {
              "AGENT": "The API client can take the next action; a Ramp link may also be available for applicant takeover",
              "APPLICANT": "The applicant must take the next action",
              "RAMP": "Ramp must take the next action"
            }
          },
          "completion_status": {
            "description": "Optional action completion status.",
            "enum": [
              "COMPLETED",
              "IN_PROGRESS",
              "NOT_STARTED"
            ],
            "type": "string"
          },
          "deep_link_url": {
            "description": "Ramp URL where the optional action can be completed.",
            "nullable": true,
            "type": "string"
          },
          "key": {
            "description": "Optional action key.",
            "enum": [
              "LINK_ACCOUNTING_PROVIDER"
            ],
            "type": "string",
            "x-enum-descriptions": {
              "LINK_ACCOUNTING_PROVIDER": "Applicant can optionally link an accounting provider"
            }
          }
        },
        "required": [
          "actor",
          "completion_status",
          "deep_link_url",
          "key"
        ],
        "type": "object"
      },
      "ApiApplicationPersonAddressParams": {
        "properties": {
          "apt_suite": {
            "default": null,
            "description": "Apartment or suite number.",
            "nullable": true,
            "type": "string"
          },
          "city": {
            "default": null,
            "description": "City.",
            "nullable": true,
            "type": "string"
          },
          "country": {
            "default": null,
            "description": "Two-letter country code (e.g. US).",
            "maxLength": 2,
            "minLength": 2,
            "nullable": true,
            "type": "string"
          },
          "postal_code": {
            "default": null,
            "description": "Postal code.",
            "nullable": true,
            "type": "string"
          },
          "state": {
            "default": null,
            "description": "Two-letter state code (e.g. CA).",
            "maxLength": 2,
            "minLength": 2,
            "nullable": true,
            "type": "string"
          },
          "street_address": {
            "default": null,
            "description": "Street address.",
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "ApiApplicationPersonAddressUpdateParamsRequestBody": {
        "properties": {
          "apt_suite": {
            "description": "Apartment or suite number.",
            "type": "string"
          },
          "city": {
            "description": "City.",
            "type": "string"
          },
          "country": {
            "description": "Two-letter country code (e.g. US).",
            "maxLength": 2,
            "minLength": 2,
            "type": "string"
          },
          "postal_code": {
            "description": "Postal code.",
            "type": "string"
          },
          "state": {
            "description": "Two-letter state code (e.g. CA).",
            "maxLength": 2,
            "minLength": 2,
            "type": "string"
          },
          "street_address": {
            "description": "Street address.",
            "type": "string"
          }
        },
        "type": "object"
      },
      "ApiApplicationPersonParams": {
        "properties": {
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiApplicationPersonAddressParams"
              }
            ],
            "default": null,
            "description": "Residential address.",
            "nullable": true
          },
          "birth_date": {
            "default": null,
            "description": "Date of birth in YYYY-MM-DD format.",
            "nullable": true,
            "type": "string"
          },
          "email": {
            "default": null,
            "description": "Email address.",
            "format": "email",
            "nullable": true,
            "type": "string"
          },
          "first_name": {
            "default": null,
            "description": "First name.",
            "nullable": true,
            "type": "string"
          },
          "last_name": {
            "default": null,
            "description": "Last name.",
            "nullable": true,
            "type": "string"
          },
          "ownership_percentage": {
            "default": null,
            "description": "Beneficial ownership percentage for this individual.",
            "maximum": 100,
            "minimum": 0,
            "nullable": true,
            "type": "integer"
          },
          "passport_last_4": {
            "default": null,
            "description": "Last 4 digits of passport number.",
            "maxLength": 4,
            "minLength": 4,
            "nullable": true,
            "type": "string"
          },
          "phone": {
            "default": null,
            "description": "Phone number in E.164 format.",
            "nullable": true,
            "type": "string"
          },
          "ssn_last_4": {
            "default": null,
            "description": "Last 4 digits of SSN.",
            "maxLength": 4,
            "minLength": 4,
            "nullable": true,
            "type": "string"
          },
          "title": {
            "default": null,
            "description": "Job title or role.",
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "ApiApplicationPersonUpdateParamsRequestBody": {
        "properties": {
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiApplicationPersonAddressUpdateParamsRequestBody"
              }
            ],
            "description": "Residential address."
          },
          "birth_date": {
            "description": "Date of birth in YYYY-MM-DD format.",
            "type": "string"
          },
          "email": {
            "description": "Email address.",
            "format": "email",
            "type": "string"
          },
          "first_name": {
            "description": "First name.",
            "type": "string"
          },
          "last_name": {
            "description": "Last name.",
            "type": "string"
          },
          "ownership_percentage": {
            "description": "Beneficial ownership percentage for this individual.",
            "maximum": 100,
            "minimum": 0,
            "nullable": true,
            "type": "integer"
          },
          "passport_last_4": {
            "description": "Last 4 digits of passport number.",
            "maxLength": 4,
            "minLength": 4,
            "nullable": true,
            "type": "string"
          },
          "phone": {
            "description": "Phone number in E.164 format.",
            "type": "string"
          },
          "ssn_last_4": {
            "description": "Last 4 digits of SSN.",
            "maxLength": 4,
            "minLength": 4,
            "nullable": true,
            "type": "string"
          },
          "title": {
            "description": "Job title or role.",
            "type": "string"
          }
        },
        "type": "object"
      },
      "ApiApplicationProgressResource": {
        "example": {
          "optional_actions": [
            {
              "actor": "APPLICANT",
              "completion_status": "NOT_STARTED",
              "key": "LINK_ACCOUNTING_PROVIDER"
            }
          ],
          "ready_for_submission": false,
          "required_actions": [
            {
              "actor": "AGENT",
              "guidance": "Provide the missing application data for this section.",
              "page_key": "business_info",
              "section_key": "principal_place_of_business",
              "type": "PROVIDE_APPLICATION_DATA"
            }
          ],
          "status": "STARTED"
        },
        "properties": {
          "optional_actions": {
            "description": "Optional actions available to the applicant.",
            "items": {
              "$ref": "#/components/schemas/ApiApplicationOptionalActionResource"
            },
            "type": "array"
          },
          "ready_for_submission": {
            "description": "Whether the application is ready for the applicant to review and submit in Ramp.",
            "type": "boolean"
          },
          "required_actions": {
            "description": "Actions that must be completed before the application can progress.",
            "items": {
              "$ref": "#/components/schemas/ApiApplicationRequiredActionResource"
            },
            "type": "array"
          },
          "status": {
            "description": "Current status of the financing application.",
            "enum": [
              "APPROVED",
              "FOLLOW_UPS_REQUIRED",
              "IN_REVIEW",
              "REJECTED",
              "STARTED",
              "WITHDRAWN"
            ],
            "type": "string",
            "x-enum-descriptions": {
              "APPROVED": "Application has been approved",
              "FOLLOW_UPS_REQUIRED": "Application requires follow-up actions",
              "IN_REVIEW": "Application is currently under review by Ramp",
              "REJECTED": "Application has been rejected",
              "STARTED": "Application has been started but not yet submitted for review",
              "WITHDRAWN": "Application has been withdrawn by the applicant"
            }
          }
        },
        "required": [
          "optional_actions",
          "ready_for_submission",
          "required_actions",
          "status"
        ],
        "type": "object"
      },
      "ApiApplicationRequiredActionResource": {
        "example": {
          "optional_actions": [
            {
              "actor": "APPLICANT",
              "completion_status": "NOT_STARTED",
              "key": "LINK_ACCOUNTING_PROVIDER"
            }
          ],
          "ready_for_submission": false,
          "required_actions": [
            {
              "actor": "AGENT",
              "guidance": "Provide the missing application data for this section.",
              "page_key": "business_info",
              "section_key": "principal_place_of_business",
              "type": "PROVIDE_APPLICATION_DATA"
            }
          ],
          "status": "STARTED"
        },
        "properties": {
          "actor": {
            "description": "Party that must be able to complete the action for the application to advance. An AGENT action may also provide a Ramp deep link as an optional applicant fallback.",
            "enum": [
              "AGENT",
              "APPLICANT",
              "RAMP"
            ],
            "type": "string",
            "x-enum-descriptions": {
              "AGENT": "The API client can take the next action; a Ramp link may also be available for applicant takeover",
              "APPLICANT": "The applicant must take the next action",
              "RAMP": "Ramp must take the next action"
            }
          },
          "applicant_action": {
            "description": "Applicant-owned action required to make progress.",
            "enum": [
              "COMPLETE_FOLLOWUP_ACTION",
              "COMPLETE_IDENTITY_VERIFICATION",
              "LINK_BANK_ACCOUNT",
              "REVIEW_AND_SUBMIT",
              "VERIFY_EMAIL_OR_PHONE"
            ],
            "nullable": true,
            "type": "string",
            "x-enum-descriptions": {
              "COMPLETE_FOLLOWUP_ACTION": "Applicant must complete an unsupported follow-up action",
              "COMPLETE_IDENTITY_VERIFICATION": "Applicant must complete identity verification",
              "LINK_BANK_ACCOUNT": "Applicant must link an additional bank account",
              "REVIEW_AND_SUBMIT": "Applicant must review and submit the application",
              "VERIFY_EMAIL_OR_PHONE": "Applicant must verify email or phone in Ramp"
            }
          },
          "deep_link_url": {
            "description": "Ramp URL where the applicant can complete or take over the action, if available.",
            "nullable": true,
            "type": "string"
          },
          "followup_reasons": {
            "description": "Machine-readable reasons for a customer-pending follow-up action.",
            "items": {
              "enum": [
                "ADHOC_TEXT_INQUERY",
                "BANK_ACCOUNT_LINK_REQUEST",
                "BANK_ACCOUNT_MANUAL_CONNECTION_MISMATCH_LAST4",
                "BANK_ACCOUNT_MANUAL_CONNECTION_MISSING_STATEMENTS",
                "BANK_ACCOUNT_MANUAL_CONNECTION_SHARED_STATEMENT_BALANCE_MISMATCH",
                "BESPOKE_DOCUMENT_REQUEST",
                "FINANCIAL_BALANCE_SHEET_NEEDED",
                "FINANCIAL_CREDIT_CARD_STATEMENT_NEEDED",
                "FINANCIAL_DEBT_SCHEDULE_NEEDED",
                "FINANCIAL_LINE_OF_CREDIT_STATEMENT_NEEDED",
                "FINANCIAL_PROFIT_AND_LOSS_STATEMENT_NEEDED",
                "FINANCIAL_PROOF_OF_FUNDING_NEEDED",
                "KYB_ADDRESS_VERIFICATION",
                "KYB_BUSINESS_NAME_CHANGE_VERIFICATION",
                "KYB_BUSINESS_NAME_VERIFICATION",
                "KYB_BUSINESS_OWNERSHIP_VERIFICATION",
                "KYB_CANADA_BENEFICIAL_OWNERS_VERIFICATION",
                "KYB_CANADA_BUSINESS_ADDRESS_VERIFICATION",
                "KYB_CANADA_BUSINESS_ID_VERIFICATION",
                "KYB_CANADA_BUSINESS_NAME_VERIFICATION",
                "KYB_FEIN_VERIFICATION",
                "KYB_MEXICO_BUSINESS_ADDRESS_VERIFICATION",
                "KYB_PHYSICAL_ADDRESS_VERIFICATION",
                "KYB_RFC_VERIFICATION",
                "KYC_ADDRESS_VERIFICATION",
                "KYC_CANADA_AUTHORIZED_SIGNER_VERIFICATION",
                "KYC_CANADA_BENEFICIAL_OWNER_VERIFICATION",
                "KYC_CANADA_DIRECTOR_VERIFICATION",
                "KYC_CANADA_KYC_ADDRESS_VERIFICATION",
                "KYC_CANADA_NAME_DOB_VERIFICATION",
                "KYC_ID_VERIFICATION",
                "KYC_LETTER_OF_AUTHORIZATION",
                "KYC_NAME_DOB_VERIFICATION",
                "KYC_NO_BUSINESS_TIE_AND_FRAUD_MODEL_BLOCKED",
                "KYC_PASSPORT_VERIFICATION",
                "KYC_SSN_FULL_9_VERIFICATION",
                "KYC_SSN_VERIFICATION",
                "OWNERSHIP_VERIFICATION",
                "YC_ACCEPTANCE_LETTER_NEEDED"
              ],
              "type": "string"
            },
            "type": "array"
          },
          "formation_submission_status": {
            "description": "Cached provider formation status when the required action is COMPLETE_INCORPORATION.",
            "enum": [
              "APPROVED",
              "NOT_SUBMITTED",
              "PENDING_REVIEW",
              "REJECTED",
              "SUBMITTED"
            ],
            "nullable": true,
            "type": "string",
            "x-enum-descriptions": {
              "APPROVED": "Formation was approved; the company is formed.",
              "NOT_SUBMITTED": "Formation has not yet been submitted to the incorporation provider.",
              "PENDING_REVIEW": "Formation has been submitted and is under review by the provider.",
              "REJECTED": "Formation was rejected by the provider; see the rejection reason.",
              "SUBMITTED": "Formation has been filed and is awaiting EIN issuance."
            }
          },
          "guidance": {
            "description": "Human-readable guidance for completing the required action.",
            "type": "string"
          },
          "page_key": {
            "description": "Application page associated with the required action.",
            "enum": [
              "authorized_person",
              "business_info",
              "financials",
              "key_individuals",
              "leaders_and_owners",
              "organization_details",
              "phone_verification",
              "products",
              "sole_proprietor_individual",
              "verification"
            ],
            "nullable": true,
            "type": "string"
          },
          "provider": {
            "description": "Provider responsible for an incorporation action. Set only for COMPLETE_INCORPORATION actions.",
            "enum": [
              "doola"
            ],
            "nullable": true,
            "type": "string",
            "x-enum-descriptions": {
              "doola": "doola is the incorporation provider backing this action"
            }
          },
          "reason": {
            "description": "Structured reason for an incorporation action. Set only for COMPLETE_INCORPORATION actions.",
            "enum": [
              "NAME_CONFLICT",
              "NO_LEGAL_ENTITY",
              "RP_IDENTITY",
              "STATE_COMPLIANCE",
              "UNKNOWN_REJECTION"
            ],
            "nullable": true,
            "type": "string",
            "x-enum-descriptions": {
              "NAME_CONFLICT": "The incorporation provider rejected the proposed company names",
              "NO_LEGAL_ENTITY": "No legal entity exists yet; submit the incorporation filing through Ramp when this action is returned",
              "RP_IDENTITY": "The incorporation provider could not verify the responsible party",
              "STATE_COMPLIANCE": "The incorporation provider rejected the filing for state compliance reasons",
              "UNKNOWN_REJECTION": "The incorporation provider rejected the filing without a mapped reason"
            }
          },
          "section_key": {
            "description": "Application section associated with the required action.",
            "enum": [
              "add_accounting_details",
              "authorized_person",
              "beneficial_owners",
              "business_identity",
              "business_revenue",
              "controlling_officer",
              "eu_incorporation",
              "eu_uk_general_details",
              "eu_uk_key_individuals",
              "eu_uk_supporting_documents",
              "expected_deposit",
              "expected_monthly_ap_spend",
              "expected_monthly_card_spend",
              "general_details",
              "government_entity_address",
              "government_entity_general_details",
              "incorporation",
              "key_individuals",
              "latam_business_activity",
              "latam_general_details",
              "latam_incorporation",
              "latam_key_individuals",
              "latam_supporting_documents",
              "link_bank_accounts",
              "open_bank_account_without_funding_confirmation",
              "open_rba_notice",
              "phone_verification",
              "principal_place_of_business",
              "product_interest",
              "product_selection",
              "sole_proprietor_business_details",
              "sole_proprietor_individual",
              "supporting_documents",
              "uk_incorporation"
            ],
            "nullable": true,
            "type": "string"
          },
          "type": {
            "description": "Type of action required for progress.",
            "enum": [
              "COMPLETE_APPLICANT_ACTION",
              "COMPLETE_FOLLOWUPS",
              "COMPLETE_INCORPORATION",
              "PROVIDE_APPLICATION_DATA",
              "WAIT_FOR_RAMP"
            ],
            "type": "string",
            "x-enum-descriptions": {
              "COMPLETE_APPLICANT_ACTION": "Applicant must complete an action outside this API",
              "COMPLETE_FOLLOWUPS": "Customer-pending follow-up items must be completed",
              "COMPLETE_INCORPORATION": "The applicant's company formation must be completed before full activation",
              "PROVIDE_APPLICATION_DATA": "Application data is incomplete and can be updated through the API",
              "WAIT_FOR_RAMP": "Ramp review is in progress and no customer action is currently required"
            },
            "x-extensible-enum": [
              "COMPLETE_APPLICANT_ACTION",
              "COMPLETE_FOLLOWUPS",
              "COMPLETE_INCORPORATION",
              "PROVIDE_APPLICATION_DATA",
              "WAIT_FOR_RAMP"
            ]
          },
          "validation_issues": {
            "description": "Machine-readable validation issues explaining why an agent-editable section is incomplete.",
            "items": {
              "$ref": "#/components/schemas/ApiApplicationValidationIssue"
            },
            "type": "array"
          }
        },
        "required": [
          "actor",
          "applicant_action",
          "deep_link_url",
          "formation_submission_status",
          "guidance",
          "page_key",
          "provider",
          "reason",
          "section_key",
          "type"
        ],
        "type": "object"
      },
      "ApiApplicationResource": {
        "example": {
          "applicant": {
            "email": "jane@acmeplumbing.com",
            "first_name": "Jane",
            "last_name": "Doe",
            "phone": "+14155550124"
          },
          "application_type": "RAMP_SUITE",
          "beneficial_owners": [
            {
              "address": {
                "city": "San Francisco",
                "country": "US",
                "postal_code": "94104",
                "state": "CA",
                "street_address": "200 Pine St"
              },
              "birth_date": "1982-11-04",
              "email": "john@acmeplumbing.com",
              "first_name": "John",
              "last_name": "Smith",
              "ownership_percentage": 40,
              "phone": "+14155550125",
              "ssn_last_4": "5678",
              "title": "Co-Founder"
            }
          ],
          "business": {
            "address": {
              "apt_suite": "Suite 500",
              "city": "San Francisco",
              "postal_code": "94105",
              "state": "CA",
              "street_address": "123 Market St"
            },
            "business_description": "Residential and commercial plumbing services",
            "business_name_dba": null,
            "business_name_legal": "Acme Plumbing LLC",
            "business_name_on_card": null,
            "business_website": "https://acmeplumbing.com",
            "incorporation": {
              "date_of_incorporation": "2018-06-15",
              "ein_number": "12-3456789",
              "entity_type": "LLC",
              "state_of_incorporation": "CA"
            },
            "phone": "+14155550123"
          },
          "controlling_officer": {
            "address": {
              "city": "San Francisco",
              "country": "US",
              "postal_code": "94105",
              "state": "CA",
              "street_address": "123 Market St"
            },
            "birth_date": "1985-03-12",
            "email": "jane@acmeplumbing.com",
            "first_name": "Jane",
            "is_beneficial_owner": true,
            "last_name": "Doe",
            "ownership_percentage": 60,
            "phone": "+14155550124",
            "ssn_last_4": "1234",
            "title": "Owner"
          },
          "financial_details": {
            "estimated_monthly_ap_spend_amount": 25000,
            "estimated_monthly_spend_amount": 50000
          },
          "id": "123e4567-e89b-12d3-a456-426614174000",
          "incorporation_status": "NOT_INCORPORATED",
          "needs_incorporation": false,
          "open_ramp_checking_account": true,
          "status": "IN_REVIEW"
        },
        "properties": {
          "applicant": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiApplicationApplicantParams"
              }
            ],
            "description": "Information about the applicant, the person who completes the application in Ramp and becomes the business owner once it is approved."
          },
          "application_type": {
            "description": "Type of financing application.",
            "enum": [
              "BILL_PAY_ONLY",
              "RAMP_SUITE"
            ],
            "type": "string",
            "x-enum-descriptions": {
              "BILL_PAY_ONLY": "Application is for Bill Pay only",
              "RAMP_SUITE": "Application is for Ramp Suite, including card and bill pay"
            }
          },
          "beneficial_owners": {
            "description": "Beneficial owners of the business.",
            "items": {
              "$ref": "#/components/schemas/ApiApplicationPersonParams"
            },
            "nullable": true,
            "type": "array"
          },
          "business": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiApplicationBusinessParams"
              }
            ],
            "description": "Business details.",
            "nullable": true
          },
          "controlling_officer": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiApplicationControllingOfficerParams"
              }
            ],
            "description": "The controlling officer of the business.",
            "nullable": true
          },
          "financial_details": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiApplicationFinancialDetailsParams"
              }
            ],
            "description": "Financial details for underwriting.",
            "nullable": true
          },
          "id": {
            "description": "Unique identifier of the application.",
            "format": "uuid",
            "type": "string"
          },
          "incorporation_status": {
            "description": "Incorporation status for the business. NOT_INCORPORATED when the business has no incorporation record.",
            "enum": [
              "FORMED",
              "INCORPORATED_EXTERNALLY",
              "INCORPORATING",
              "NOT_INCORPORATED"
            ],
            "type": "string",
            "x-enum-descriptions": {
              "FORMED": "The entity has been formed and its details have been backfilled onto the application.",
              "INCORPORATED_EXTERNALLY": "The business supplied its own EIN; it was incorporated outside of Ramp.",
              "INCORPORATING": "The business is in the process of incorporating through Ramp.",
              "NOT_INCORPORATED": "The business has no incorporation record with Ramp."
            }
          },
          "needs_incorporation": {
            "description": "Whether the business still needs to be incorporated through Ramp. Reflects the needs_incorporation flag supplied at application creation.",
            "type": "boolean"
          },
          "open_ramp_checking_account": {
            "description": "Whether the applicant is applying for a Ramp checking account. For Agent FA, this is always true and external bank linking is unavailable.",
            "type": "boolean"
          },
          "status": {
            "description": "Current status of the financing application.",
            "enum": [
              "APPROVED",
              "FOLLOW_UPS_REQUIRED",
              "IN_REVIEW",
              "REJECTED",
              "STARTED",
              "WITHDRAWN"
            ],
            "type": "string",
            "x-enum-descriptions": {
              "APPROVED": "Application has been approved",
              "FOLLOW_UPS_REQUIRED": "Application requires follow-up actions",
              "IN_REVIEW": "Application is currently under review by Ramp",
              "REJECTED": "Application has been rejected",
              "STARTED": "Application has been started but not yet submitted for review",
              "WITHDRAWN": "Application has been withdrawn by the applicant"
            }
          }
        },
        "required": [
          "applicant",
          "beneficial_owners",
          "business",
          "controlling_officer",
          "financial_details",
          "id",
          "incorporation_status",
          "needs_incorporation",
          "open_ramp_checking_account",
          "status"
        ],
        "type": "object"
      },
      "ApiApplicationStatus": {
        "enum": [
          "APPROVED",
          "FOLLOW_UPS_REQUIRED",
          "IN_REVIEW",
          "REJECTED",
          "STARTED",
          "WITHDRAWN"
        ],
        "title": "ApiApplicationStatus",
        "type": "string",
        "x-enum-descriptions": {
          "APPROVED": "Application has been approved",
          "FOLLOW_UPS_REQUIRED": "Application requires follow-up actions",
          "IN_REVIEW": "Application is currently under review by Ramp",
          "REJECTED": "Application has been rejected",
          "STARTED": "Application has been started but not yet submitted for review",
          "WITHDRAWN": "Application has been withdrawn by the applicant"
        }
      },
      "ApiApplicationUpdateParamsRequestBody": {
        "example": {
          "beneficial_owners": [
            {
              "email": "john@acmeplumbing.com",
              "first_name": "John",
              "last_name": "Smith",
              "ownership_percentage": 40
            }
          ],
          "business": {
            "address": {
              "city": "San Francisco",
              "postal_code": "94105",
              "state": "CA",
              "street_address": "123 Market St"
            },
            "business_name_legal": "Acme Plumbing LLC",
            "business_website": "https://acmeplumbing.com",
            "incorporation": {
              "date_of_incorporation": "2018-06-15",
              "ein_number": "12-3456789",
              "entity_type": "LLC",
              "state_of_incorporation": "CA"
            }
          },
          "controlling_officer": {
            "email": "jane@acmeplumbing.com",
            "first_name": "Jane",
            "is_beneficial_owner": true,
            "last_name": "Doe",
            "ownership_percentage": 60
          },
          "financial_details": {
            "estimated_monthly_spend_amount": 50000
          },
          "manual_bank_account": {
            "account_number": "12345",
            "account_subtype": "checking",
            "balance": "12345.00",
            "routing_number": "123456780"
          },
          "open_ramp_checking_account": true,
          "ownership_acknowledgement": "CONFIRM_ALL_MAJOR_OWNERS_ENTERED"
        },
        "properties": {
          "beneficial_owners": {
            "description": "Beneficial owners of the business.",
            "items": {
              "$ref": "#/components/schemas/ApiApplicationPersonUpdateParamsRequestBody"
            },
            "type": "array"
          },
          "business": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiApplicationBusinessUpdateParamsRequestBody"
              }
            ],
            "description": "Business details to update."
          },
          "controlling_officer": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiApplicationControllingOfficerUpdateParamsRequestBody"
              }
            ],
            "description": "The controlling officer details to update."
          },
          "financial_details": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiApplicationFinancialDetailsUpdateParamsRequestBody"
              }
            ],
            "description": "Financial details to update."
          },
          "manual_bank_account": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiApplicationManualBankAccountUpdateParamsRequestBody"
              }
            ],
            "description": "Manual bank account to add for underwriting."
          },
          "open_ramp_checking_account": {
            "description": "Whether to apply for a Ramp checking account.",
            "type": "boolean"
          },
          "ownership_acknowledgement": {
            "description": "Ownership acknowledgement required when beneficial owners are supplied.",
            "enum": [
              "CONFIRM_ALL_MAJOR_OWNERS_ENTERED",
              "CONFIRM_NO_INDIVIDUAL_OWNS_25_PCT"
            ],
            "type": "string",
            "x-enum-descriptions": {
              "CONFIRM_ALL_MAJOR_OWNERS_ENTERED": "Applicant confirms all individuals who own 25% or more of the business have been provided",
              "CONFIRM_NO_INDIVIDUAL_OWNS_25_PCT": "Applicant confirms no individual owns 25% or more of the business"
            }
          }
        },
        "type": "object"
      },
      "ApiApplicationValidationIssue": {
        "properties": {
          "code": {
            "description": "Machine-readable validation issue code.",
            "type": "string",
            "x-enum-descriptions": {
              "ADDRESS_CITY_MISSING": "City is required",
              "ADDRESS_POSTAL_CODE_INVALID": "A valid postal code is required",
              "ADDRESS_STATE_MISSING": "State is required",
              "ADDRESS_STREET_INVALID": "A valid street address is required",
              "ADDRESS_STREET_MISSING": "Street address is required",
              "BUSINESS_DESCRIPTION_MISSING": "Business description is required",
              "BUSINESS_INDUSTRY_MISSING": "Customer-provided business industry is required",
              "BUSINESS_NAME_LEGAL_MISSING": "Legal business name is required",
              "BUSINESS_NAME_MISSING": "Business or DBA name is required",
              "BUSINESS_WEBSITE_MISSING": "Business website URL is required",
              "DATE_OF_INCORPORATION_MISSING": "Date of incorporation is required",
              "EIN_MISSING": "Employer Identification Number is required",
              "EMAIL_DOMAIN_MISMATCH": "Business website domain does not match the applicant email domain. Provide reason_for_email_and_domain_mismatch or update the website/email to resolve.",
              "ENTITY_TYPE_MISSING": "Entity type is required",
              "ESTIMATED_MONTHLY_AP_SPEND_MISSING": "Estimated monthly AP spend amount is required",
              "ESTIMATED_MONTHLY_SPEND_MISSING": "Estimated monthly card spend amount is required",
              "OFFICE_PHONE_INVALID": "A valid office phone number is required",
              "OWNERSHIP_ACKNOWLEDGEMENT_MISSING": "Ownership acknowledgement is required",
              "PERSON_FIELD_MISSING": "One or more required fields are missing on a person (controlling officer or beneficial owner)",
              "STATE_OF_INCORPORATION_MISSING": "State of incorporation is required"
            },
            "x-extensible-enum": [
              "ADDRESS_CITY_MISSING",
              "ADDRESS_POSTAL_CODE_INVALID",
              "ADDRESS_STATE_MISSING",
              "ADDRESS_STREET_INVALID",
              "ADDRESS_STREET_MISSING",
              "BUSINESS_DESCRIPTION_MISSING",
              "BUSINESS_INDUSTRY_MISSING",
              "BUSINESS_NAME_LEGAL_MISSING",
              "BUSINESS_NAME_MISSING",
              "BUSINESS_WEBSITE_MISSING",
              "DATE_OF_INCORPORATION_MISSING",
              "EIN_MISSING",
              "EMAIL_DOMAIN_MISMATCH",
              "ENTITY_TYPE_MISSING",
              "ESTIMATED_MONTHLY_AP_SPEND_MISSING",
              "ESTIMATED_MONTHLY_SPEND_MISSING",
              "OFFICE_PHONE_INVALID",
              "OWNERSHIP_ACKNOWLEDGEMENT_MISSING",
              "PERSON_FIELD_MISSING",
              "STATE_OF_INCORPORATION_MISSING"
            ]
          },
          "field_name": {
            "description": "Developer API field path associated with the issue, when applicable.",
            "nullable": true,
            "type": "string"
          },
          "message": {
            "description": "Human-readable explanation of the validation issue.",
            "type": "string"
          }
        },
        "required": [
          "code",
          "field_name",
          "message"
        ],
        "type": "object"
      },
      "ApiBankAccountBeneficiaryAddressCreateRequestBody": {
        "properties": {
          "address_line_1": {
            "description": "Primary beneficiary address line.",
            "minLength": 1,
            "type": "string"
          },
          "address_line_2": {
            "description": "Secondary beneficiary address line.",
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "city": {
            "description": "Beneficiary city.",
            "minLength": 1,
            "type": "string"
          },
          "country": {
            "description": "Two-letter ISO 3166-1 beneficiary country code.",
            "enum": [
              "AD",
              "AE",
              "AF",
              "AG",
              "AI",
              "AL",
              "AM",
              "AO",
              "AQ",
              "AR",
              "AS",
              "AT",
              "AU",
              "AW",
              "AX",
              "AZ",
              "BA",
              "BB",
              "BD",
              "BE",
              "BF",
              "BG",
              "BH",
              "BI",
              "BJ",
              "BL",
              "BM",
              "BN",
              "BO",
              "BQ",
              "BR",
              "BS",
              "BT",
              "BV",
              "BW",
              "BY",
              "BZ",
              "CA",
              "CC",
              "CD",
              "CF",
              "CG",
              "CH",
              "CI",
              "CK",
              "CL",
              "CM",
              "CN",
              "CO",
              "CR",
              "CU",
              "CV",
              "CW",
              "CX",
              "CY",
              "CZ",
              "DE",
              "DJ",
              "DK",
              "DM",
              "DO",
              "DZ",
              "EC",
              "EE",
              "EG",
              "EH",
              "ER",
              "ES",
              "ET",
              "FI",
              "FJ",
              "FK",
              "FM",
              "FO",
              "FR",
              "GA",
              "GB",
              "GD",
              "GE",
              "GF",
              "GG",
              "GH",
              "GI",
              "GL",
              "GM",
              "GN",
              "GP",
              "GQ",
              "GR",
              "GS",
              "GT",
              "GU",
              "GW",
              "GY",
              "HK",
              "HM",
              "HN",
              "HR",
              "HT",
              "HU",
              "ID",
              "IE",
              "IL",
              "IM",
              "IN",
              "IO",
              "IQ",
              "IR",
              "IS",
              "IT",
              "JE",
              "JM",
              "JO",
              "JP",
              "KE",
              "KG",
              "KH",
              "KI",
              "KM",
              "KN",
              "KP",
              "KR",
              "KW",
              "KY",
              "KZ",
              "LA",
              "LB",
              "LC",
              "LI",
              "LK",
              "LR",
              "LS",
              "LT",
              "LU",
              "LV",
              "LY",
              "MA",
              "MC",
              "MD",
              "ME",
              "MF",
              "MG",
              "MH",
              "MK",
              "ML",
              "MM",
              "MN",
              "MO",
              "MP",
              "MQ",
              "MR",
              "MS",
              "MT",
              "MU",
              "MV",
              "MW",
              "MX",
              "MY",
              "MZ",
              "NA",
              "NC",
              "NE",
              "NF",
              "NG",
              "NI",
              "NL",
              "NO",
              "NP",
              "NR",
              "NU",
              "NZ",
              "OM",
              "PA",
              "PE",
              "PF",
              "PG",
              "PH",
              "PK",
              "PL",
              "PM",
              "PN",
              "PR",
              "PS",
              "PT",
              "PW",
              "PY",
              "QA",
              "RE",
              "RO",
              "RS",
              "RU",
              "RW",
              "SA",
              "SB",
              "SC",
              "SD",
              "SE",
              "SG",
              "SH",
              "SI",
              "SJ",
              "SK",
              "SL",
              "SM",
              "SN",
              "SO",
              "SR",
              "SS",
              "ST",
              "SV",
              "SX",
              "SY",
              "SZ",
              "TC",
              "TD",
              "TF",
              "TG",
              "TH",
              "TJ",
              "TK",
              "TL",
              "TM",
              "TN",
              "TO",
              "TR",
              "TT",
              "TV",
              "TW",
              "TZ",
              "UA",
              "UG",
              "UM",
              "US",
              "UY",
              "UZ",
              "VA",
              "VC",
              "VE",
              "VG",
              "VI",
              "VN",
              "VU",
              "WF",
              "WS",
              "YE",
              "YT",
              "ZA",
              "ZM",
              "ZW"
            ],
            "type": "string",
            "x-enum-descriptions": {
              "AD": "Andorra",
              "AE": "United Arab Emirates",
              "AF": "Afghanistan",
              "AG": "Antigua and Barbuda",
              "AI": "Anguilla",
              "AL": "Albania",
              "AM": "Armenia",
              "AO": "Angola",
              "AQ": "Antarctica",
              "AR": "Argentina",
              "AS": "American Samoa",
              "AT": "Austria",
              "AU": "Australia",
              "AW": "Aruba",
              "AX": "\u00c5land Islands",
              "AZ": "Azerbaijan",
              "BA": "Bosnia and Herzegovina",
              "BB": "Barbados",
              "BD": "Bangladesh",
              "BE": "Belgium",
              "BF": "Burkina Faso",
              "BG": "Bulgaria",
              "BH": "Bahrain",
              "BI": "Burundi",
              "BJ": "Benin",
              "BL": "Saint Barth\u00e9lemy",
              "BM": "Bermuda",
              "BN": "Brunei Darussalam",
              "BO": "Bolivia, Plurinational State of",
              "BQ": "Bonaire, Sint Eustatius and Saba",
              "BR": "Brazil",
              "BS": "Bahamas",
              "BT": "Bhutan",
              "BV": "Bouvet Island",
              "BW": "Botswana",
              "BY": "Belarus",
              "BZ": "Belize",
              "CA": "Canada",
              "CC": "Cocos (Keeling) Islands",
              "CD": "Congo, The Democratic Republic of the",
              "CF": "Central African Republic",
              "CG": "Congo",
              "CH": "Switzerland",
              "CI": "C\u00f4te d'Ivoire",
              "CK": "Cook Islands",
              "CL": "Chile",
              "CM": "Cameroon",
              "CN": "China",
              "CO": "Colombia",
              "CR": "Costa Rica",
              "CU": "Cuba",
              "CV": "Cabo Verde",
              "CW": "Cura\u00e7ao",
              "CX": "Christmas Island",
              "CY": "Cyprus",
              "CZ": "Czechia",
              "DE": "Germany",
              "DJ": "Djibouti",
              "DK": "Denmark",
              "DM": "Dominica",
              "DO": "Dominican Republic",
              "DZ": "Algeria",
              "EC": "Ecuador",
              "EE": "Estonia",
              "EG": "Egypt",
              "EH": "Western Sahara",
              "ER": "Eritrea",
              "ES": "Spain",
              "ET": "Ethiopia",
              "FI": "Finland",
              "FJ": "Fiji",
              "FK": "Falkland Islands (Malvinas)",
              "FM": "Micronesia, Federated States of",
              "FO": "Faroe Islands",
              "FR": "France",
              "GA": "Gabon",
              "GB": "United Kingdom",
              "GD": "Grenada",
              "GE": "Georgia",
              "GF": "French Guiana",
              "GG": "Guernsey",
              "GH": "Ghana",
              "GI": "Gibraltar",
              "GL": "Greenland",
              "GM": "Gambia",
              "GN": "Guinea",
              "GP": "Guadeloupe",
              "GQ": "Equatorial Guinea",
              "GR": "Greece",
              "GS": "South Georgia and the South Sandwich Islands",
              "GT": "Guatemala",
              "GU": "Guam",
              "GW": "Guinea-Bissau",
              "GY": "Guyana",
              "HK": "Hong Kong",
              "HM": "Heard Island and McDonald Islands",
              "HN": "Honduras",
              "HR": "Croatia",
              "HT": "Haiti",
              "HU": "Hungary",
              "ID": "Indonesia",
              "IE": "Ireland",
              "IL": "Israel",
              "IM": "Isle of Man",
              "IN": "India",
              "IO": "British Indian Ocean Territory",
              "IQ": "Iraq",
              "IR": "Iran, Islamic Republic of",
              "IS": "Iceland",
              "IT": "Italy",
              "JE": "Jersey",
              "JM": "Jamaica",
              "JO": "Jordan",
              "JP": "Japan",
              "KE": "Kenya",
              "KG": "Kyrgyzstan",
              "KH": "Cambodia",
              "KI": "Kiribati",
              "KM": "Comoros",
              "KN": "Saint Kitts and Nevis",
              "KP": "Korea, Democratic People's Republic of",
              "KR": "Korea, Republic of",
              "KW": "Kuwait",
              "KY": "Cayman Islands",
              "KZ": "Kazakhstan",
              "LA": "Lao People's Democratic Republic",
              "LB": "Lebanon",
              "LC": "Saint Lucia",
              "LI": "Liechtenstein",
              "LK": "Sri Lanka",
              "LR": "Liberia",
              "LS": "Lesotho",
              "LT": "Lithuania",
              "LU": "Luxembourg",
              "LV": "Latvia",
              "LY": "Libya",
              "MA": "Morocco",
              "MC": "Monaco",
              "MD": "Moldova, Republic of",
              "ME": "Montenegro",
              "MF": "Saint Martin (French part)",
              "MG": "Madagascar",
              "MH": "Marshall Islands",
              "MK": "North Macedonia",
              "ML": "Mali",
              "MM": "Myanmar",
              "MN": "Mongolia",
              "MO": "Macao",
              "MP": "Northern Mariana Islands",
              "MQ": "Martinique",
              "MR": "Mauritania",
              "MS": "Montserrat",
              "MT": "Malta",
              "MU": "Mauritius",
              "MV": "Maldives",
              "MW": "Malawi",
              "MX": "Mexico",
              "MY": "Malaysia",
              "MZ": "Mozambique",
              "NA": "Namibia",
              "NC": "New Caledonia",
              "NE": "Niger",
              "NF": "Norfolk Island",
              "NG": "Nigeria",
              "NI": "Nicaragua",
              "NL": "Netherlands",
              "NO": "Norway",
              "NP": "Nepal",
              "NR": "Nauru",
              "NU": "Niue",
              "NZ": "New Zealand",
              "OM": "Oman",
              "PA": "Panama",
              "PE": "Peru",
              "PF": "French Polynesia",
              "PG": "Papua New Guinea",
              "PH": "Philippines",
              "PK": "Pakistan",
              "PL": "Poland",
              "PM": "Saint Pierre and Miquelon",
              "PN": "Pitcairn",
              "PR": "Puerto Rico",
              "PS": "Palestine, State of",
              "PT": "Portugal",
              "PW": "Palau",
              "PY": "Paraguay",
              "QA": "Qatar",
              "RE": "R\u00e9union",
              "RO": "Romania",
              "RS": "Serbia",
              "RU": "Russian Federation",
              "RW": "Rwanda",
              "SA": "Saudi Arabia",
              "SB": "Solomon Islands",
              "SC": "Seychelles",
              "SD": "Sudan",
              "SE": "Sweden",
              "SG": "Singapore",
              "SH": "Saint Helena, Ascension and Tristan da Cunha",
              "SI": "Slovenia",
              "SJ": "Svalbard and Jan Mayen",
              "SK": "Slovakia",
              "SL": "Sierra Leone",
              "SM": "San Marino",
              "SN": "Senegal",
              "SO": "Somalia",
              "SR": "Suriname",
              "SS": "South Sudan",
              "ST": "Sao Tome and Principe",
              "SV": "El Salvador",
              "SX": "Sint Maarten (Dutch part)",
              "SY": "Syrian Arab Republic",
              "SZ": "Eswatini",
              "TC": "Turks and Caicos Islands",
              "TD": "Chad",
              "TF": "French Southern Territories",
              "TG": "Togo",
              "TH": "Thailand",
              "TJ": "Tajikistan",
              "TK": "Tokelau",
              "TL": "Timor-Leste",
              "TM": "Turkmenistan",
              "TN": "Tunisia",
              "TO": "Tonga",
              "TR": "T\u00fcrkiye",
              "TT": "Trinidad and Tobago",
              "TV": "Tuvalu",
              "TW": "Taiwan, Province of China",
              "TZ": "Tanzania, United Republic of",
              "UA": "Ukraine",
              "UG": "Uganda",
              "UM": "United States Minor Outlying Islands",
              "US": "United States",
              "UY": "Uruguay",
              "UZ": "Uzbekistan",
              "VA": "Holy See (Vatican City State)",
              "VC": "Saint Vincent and the Grenadines",
              "VE": "Venezuela, Bolivarian Republic of",
              "VG": "Virgin Islands, British",
              "VI": "Virgin Islands, U.S.",
              "VN": "Viet Nam",
              "VU": "Vanuatu",
              "WF": "Wallis and Futuna",
              "WS": "Samoa",
              "YE": "Yemen",
              "YT": "Mayotte",
              "ZA": "South Africa",
              "ZM": "Zambia",
              "ZW": "Zimbabwe"
            }
          },
          "postal_code": {
            "description": "Beneficiary postal code.",
            "minLength": 1,
            "type": "string"
          },
          "state": {
            "description": "Beneficiary state or region.",
            "minLength": 1,
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "address_line_1",
          "city",
          "country",
          "postal_code"
        ],
        "type": "object"
      },
      "ApiBankAccountCreateRequestBody": {
        "example": {
          "account_name": "Operating account",
          "account_number": "123456789",
          "account_subtype": "checking",
          "routing_number": "123456780",
          "wire_details": {
            "beneficiary_address": {
              "address_line_1": "28 West 23rd Street",
              "city": "New York",
              "country": "US",
              "postal_code": "10010",
              "state": "NY"
            },
            "beneficiary_name": "Acme, Inc.",
            "routing_number": "021000021"
          }
        },
        "properties": {
          "account_name": {
            "description": "Optional display name for the bank account.",
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "account_number": {
            "description": "Bank account number.",
            "type": "string"
          },
          "account_subtype": {
            "description": "Bank account subtype.",
            "enum": [
              "checking",
              "savings"
            ],
            "type": "string",
            "x-enum-descriptions": {
              "checking": "Checking account.",
              "savings": "Savings account."
            }
          },
          "routing_number": {
            "description": "ABA routing number used for ACH transfers.",
            "type": "string"
          },
          "wire_details": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiBankAccountWireDetailsCreateRequestBody"
              }
            ],
            "default": null,
            "description": "Optional wire-transfer details for the account.",
            "nullable": true
          }
        },
        "required": [
          "account_number",
          "account_subtype",
          "routing_number"
        ],
        "type": "object"
      },
      "ApiBankAccountResource": {
        "properties": {
          "account_name": {
            "description": "Name of the bank account",
            "type": "string"
          },
          "account_number_last_four": {
            "description": "Last four digits of the account number",
            "type": "string"
          },
          "account_subtype": {
            "description": "Bank account subtype",
            "type": "string"
          },
          "connection_provider": {
            "description": "Bank account connection provider.",
            "enum": [
              "finicity",
              "manual",
              "plaid",
              "ramp_brokerage",
              "ramp_wallet",
              "teller"
            ],
            "type": "string",
            "x-enum-descriptions": {
              "finicity": "Bank account was connected through Finicity",
              "manual": "Bank account was connected using manually provided account details",
              "plaid": "Bank account was connected through Plaid",
              "ramp_brokerage": "Bank account is a Ramp brokerage account",
              "ramp_wallet": "Bank account is a Ramp checking account",
              "teller": "Bank account was connected through Teller"
            }
          },
          "financial_institution_name": {
            "description": "Name of the associated financial institution",
            "nullable": true,
            "type": "string"
          },
          "has_ach_details": {
            "description": "Whether Ramp has ACH routing and account numbers for the bank account. External accounts without ACH details cannot fund USD payments. Ramp checking accounts (`connection_provider` of `ramp_wallet`) can fund payments even when this is false.",
            "type": "boolean"
          },
          "id": {
            "description": "Unique identifier of the bank account",
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "account_name",
          "account_number_last_four",
          "account_subtype",
          "connection_provider",
          "financial_institution_name",
          "has_ach_details",
          "id"
        ],
        "type": "object",
        "x-resource-name": "bank_accounts"
      },
      "ApiBankAccountWireDetailsCreateRequestBody": {
        "properties": {
          "beneficiary_address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiBankAccountBeneficiaryAddressCreateRequestBody"
              }
            ],
            "default": null,
            "description": "Beneficiary address. When omitted, Ramp uses the business's verified address.",
            "nullable": true
          },
          "beneficiary_name": {
            "description": "Name of the bank account beneficiary.",
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "bic": {
            "description": "Optional ISO 9362 Business Identifier Code (BIC), also known as a SWIFT code.",
            "nullable": true,
            "type": "string"
          },
          "routing_number": {
            "description": "ABA routing number used for wire transfers.",
            "type": "string"
          }
        },
        "required": [
          "routing_number"
        ],
        "type": "object"
      },
      "ApiFollowupListResource": {
        "example": {
          "followups": [
            {
              "accepted_document_types": [
                "Balance Sheet"
              ],
              "actor": "AGENT",
              "applicant_action": null,
              "deep_link_url": "https://app.ramp.com/application/example/followups",
              "description": null,
              "id": "123e4567-e89b-12d3-a456-426614174000",
              "is_complete": false,
              "is_required": true,
              "prompt": "Provide balance sheets for Acme Plumbing LLC",
              "reason": "FINANCIAL_BALANCE_SHEET_NEEDED",
              "selected_document_type": "Balance Sheet",
              "status": "PENDING",
              "type": "DOCUMENT"
            }
          ],
          "is_submission_ready": false,
          "submission_due_date": null
        },
        "properties": {
          "followups": {
            "description": "Customer-pending follow-up items.",
            "items": {
              "$ref": "#/components/schemas/ApiFollowupResource"
            },
            "type": "array"
          },
          "is_submission_ready": {
            "description": "Whether all pending follow-ups are complete and ready to submit.",
            "type": "boolean"
          },
          "submission_due_date": {
            "default": null,
            "description": "When the follow-up package is due, if any.",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "followups",
          "is_submission_ready",
          "submission_due_date"
        ],
        "type": "object"
      },
      "ApiFollowupResource": {
        "example": {
          "followups": [
            {
              "accepted_document_types": [
                "Balance Sheet"
              ],
              "actor": "AGENT",
              "applicant_action": null,
              "deep_link_url": "https://app.ramp.com/application/example/followups",
              "description": null,
              "id": "123e4567-e89b-12d3-a456-426614174000",
              "is_complete": false,
              "is_required": true,
              "prompt": "Provide balance sheets for Acme Plumbing LLC",
              "reason": "FINANCIAL_BALANCE_SHEET_NEEDED",
              "selected_document_type": "Balance Sheet",
              "status": "PENDING",
              "type": "DOCUMENT"
            }
          ],
          "is_submission_ready": false,
          "submission_due_date": null
        },
        "properties": {
          "accepted_document_types": {
            "description": "For document follow-ups, the configured document type options. This list is not exhaustive; a bespoke document type may also be selected.",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "actor": {
            "description": "Party that must be able to resolve this follow-up. An AGENT follow-up may also provide a Ramp deep link as an optional applicant fallback.",
            "enum": [
              "AGENT",
              "APPLICANT",
              "RAMP"
            ],
            "type": "string",
            "x-enum-descriptions": {
              "AGENT": "The API client can take the next action; a Ramp link may also be available for applicant takeover",
              "APPLICANT": "The applicant must take the next action",
              "RAMP": "Ramp must take the next action"
            }
          },
          "applicant_action": {
            "description": "Applicant-owned action required to resolve this follow-up.",
            "enum": [
              "COMPLETE_FOLLOWUP_ACTION",
              "COMPLETE_IDENTITY_VERIFICATION",
              "LINK_BANK_ACCOUNT",
              "REVIEW_AND_SUBMIT",
              "VERIFY_EMAIL_OR_PHONE"
            ],
            "nullable": true,
            "type": "string",
            "x-enum-descriptions": {
              "COMPLETE_FOLLOWUP_ACTION": "Applicant must complete an unsupported follow-up action",
              "COMPLETE_IDENTITY_VERIFICATION": "Applicant must complete identity verification",
              "LINK_BANK_ACCOUNT": "Applicant must link an additional bank account",
              "REVIEW_AND_SUBMIT": "Applicant must review and submit the application",
              "VERIFY_EMAIL_OR_PHONE": "Applicant must verify email or phone in Ramp"
            }
          },
          "deep_link_url": {
            "default": null,
            "description": "Ramp URL where the applicant can complete or take over this follow-up, if available.",
            "nullable": true,
            "type": "string"
          },
          "description": {
            "default": null,
            "description": "Additional context explaining the request.",
            "nullable": true,
            "type": "string"
          },
          "id": {
            "description": "Unique identifier of the follow-up item.",
            "format": "uuid",
            "type": "string"
          },
          "is_complete": {
            "description": "Whether the current response satisfies the request.",
            "type": "boolean"
          },
          "is_required": {
            "description": "Whether the follow-up must be completed before submission.",
            "type": "boolean"
          },
          "prompt": {
            "description": "Human-readable description of the request.",
            "type": "string"
          },
          "reason": {
            "description": "Reason the follow-up was requested.",
            "enum": [
              "ADHOC_TEXT_INQUERY",
              "BANK_ACCOUNT_LINK_REQUEST",
              "BANK_ACCOUNT_MANUAL_CONNECTION_MISMATCH_LAST4",
              "BANK_ACCOUNT_MANUAL_CONNECTION_MISSING_STATEMENTS",
              "BANK_ACCOUNT_MANUAL_CONNECTION_SHARED_STATEMENT_BALANCE_MISMATCH",
              "BESPOKE_DOCUMENT_REQUEST",
              "FINANCIAL_BALANCE_SHEET_NEEDED",
              "FINANCIAL_CREDIT_CARD_STATEMENT_NEEDED",
              "FINANCIAL_DEBT_SCHEDULE_NEEDED",
              "FINANCIAL_LINE_OF_CREDIT_STATEMENT_NEEDED",
              "FINANCIAL_PROFIT_AND_LOSS_STATEMENT_NEEDED",
              "FINANCIAL_PROOF_OF_FUNDING_NEEDED",
              "KYB_ADDRESS_VERIFICATION",
              "KYB_BUSINESS_NAME_CHANGE_VERIFICATION",
              "KYB_BUSINESS_NAME_VERIFICATION",
              "KYB_BUSINESS_OWNERSHIP_VERIFICATION",
              "KYB_CANADA_BENEFICIAL_OWNERS_VERIFICATION",
              "KYB_CANADA_BUSINESS_ADDRESS_VERIFICATION",
              "KYB_CANADA_BUSINESS_ID_VERIFICATION",
              "KYB_CANADA_BUSINESS_NAME_VERIFICATION",
              "KYB_FEIN_VERIFICATION",
              "KYB_MEXICO_BUSINESS_ADDRESS_VERIFICATION",
              "KYB_PHYSICAL_ADDRESS_VERIFICATION",
              "KYB_RFC_VERIFICATION",
              "KYC_ADDRESS_VERIFICATION",
              "KYC_CANADA_AUTHORIZED_SIGNER_VERIFICATION",
              "KYC_CANADA_BENEFICIAL_OWNER_VERIFICATION",
              "KYC_CANADA_DIRECTOR_VERIFICATION",
              "KYC_CANADA_KYC_ADDRESS_VERIFICATION",
              "KYC_CANADA_NAME_DOB_VERIFICATION",
              "KYC_ID_VERIFICATION",
              "KYC_LETTER_OF_AUTHORIZATION",
              "KYC_NAME_DOB_VERIFICATION",
              "KYC_NO_BUSINESS_TIE_AND_FRAUD_MODEL_BLOCKED",
              "KYC_PASSPORT_VERIFICATION",
              "KYC_SSN_FULL_9_VERIFICATION",
              "KYC_SSN_VERIFICATION",
              "OWNERSHIP_VERIFICATION",
              "YC_ACCEPTANCE_LETTER_NEEDED"
            ],
            "type": "string"
          },
          "selected_document_type": {
            "default": null,
            "description": "For document follow-ups, the currently selected document type.",
            "nullable": true,
            "type": "string"
          },
          "status": {
            "description": "Current status of the follow-up item.",
            "enum": [
              "PENDING",
              "REVISION_REQUESTED"
            ],
            "type": "string",
            "x-enum-descriptions": {
              "PENDING": "Follow-up is awaiting an initial response",
              "REVISION_REQUESTED": "Ramp requested changes to a previously submitted response"
            }
          },
          "type": {
            "description": "How this follow-up is satisfied.",
            "enum": [
              "ACTION",
              "DOCUMENT",
              "TEXT"
            ],
            "type": "string",
            "x-enum-descriptions": {
              "ACTION": "Follow-up is satisfied by completing an action",
              "DOCUMENT": "Follow-up is satisfied by uploading one or more documents",
              "TEXT": "Follow-up is satisfied by providing a text response"
            }
          }
        },
        "required": [
          "accepted_document_types",
          "actor",
          "applicant_action",
          "deep_link_url",
          "description",
          "id",
          "is_complete",
          "is_required",
          "prompt",
          "reason",
          "selected_document_type",
          "status",
          "type"
        ],
        "type": "object"
      },
      "ApiFollowupUpdateParamsRequestBody": {
        "example": {
          "selected_document_type": "Balance Sheet"
        },
        "properties": {
          "no_more_accounts_to_link": {
            "description": "For a bank-linking follow-up, confirms there are no more accounts to link.",
            "type": "boolean"
          },
          "response_text": {
            "description": "Text response for a text follow-up.",
            "type": "string"
          },
          "selected_document_type": {
            "description": "Document type to select for a document follow-up. The applicant uploads files separately in Ramp.",
            "type": "string"
          }
        },
        "type": "object"
      },
      "ApiKeyNormalizedStatus": {
        "enum": [
          "active",
          "expired",
          "locked",
          "terminated"
        ],
        "title": "ApiKeyNormalizedStatus",
        "type": "string"
      },
      "ApiMerchantLocation": {
        "properties": {
          "city": {
            "nullable": true,
            "type": "string"
          },
          "country": {
            "nullable": true,
            "type": "string"
          },
          "postal_code": {
            "nullable": true,
            "type": "string"
          },
          "state": {
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "city",
          "country",
          "postal_code",
          "state"
        ],
        "type": "object"
      },
      "ApiRole": {
        "properties": {
          "base_role": {
            "description": "System role this custom role is based on.",
            "type": "string"
          },
          "description": {
            "description": "Description of the custom role.",
            "nullable": true,
            "type": "string"
          },
          "id": {
            "description": "Unique identifier of the custom role.",
            "format": "uuid",
            "type": "string"
          },
          "name": {
            "description": "Display name of the custom role.",
            "type": "string"
          },
          "product_capabilities": {
            "description": "Product capabilities enabled for the custom role.",
            "items": {
              "$ref": "#/components/schemas/ApiRoleProductCapability"
            },
            "type": "array"
          }
        },
        "required": [
          "base_role",
          "description",
          "id",
          "name",
          "product_capabilities"
        ],
        "type": "object",
        "x-resource-name": "roles"
      },
      "ApiRoleProductCapability": {
        "properties": {
          "access": {
            "description": "Access level granted for the product capability, or null when the capability does not use access levels.",
            "nullable": true,
            "type": "string"
          },
          "description": {
            "description": "Description of the product capability.",
            "type": "string"
          },
          "name": {
            "description": "Name of the product capability.",
            "type": "string"
          }
        },
        "required": [
          "access",
          "description",
          "name"
        ],
        "type": "object"
      },
      "ApiRolesList": {
        "example": {
          "data": [
            {
              "base_role": "CUSTOM",
              "description": "Can review expenses across the business.",
              "id": "9abffcf0-dd7d-42f0-b806-ce0502ab6496",
              "name": "Expense reviewer",
              "product_capabilities": [
                {
                  "access": "global",
                  "description": "View transactions and reimbursements",
                  "name": "EXPENSES_VIEW_EXPENSES"
                }
              ]
            }
          ]
        },
        "properties": {
          "data": {
            "description": "Custom roles for the business.",
            "items": {
              "$ref": "#/components/schemas/ApiRole"
            },
            "type": "array"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "ApiSignedAmount": {
        "properties": {
          "currency": {
            "description": "The currency of the amount in ISO 4217 format (e.g. USD).",
            "enum": [
              "AED",
              "AFN",
              "ALL",
              "AMD",
              "ANG",
              "AOA",
              "ARS",
              "AUD",
              "AWG",
              "AZN",
              "BAM",
              "BBD",
              "BDT",
              "BGN",
              "BHD",
              "BIF",
              "BMD",
              "BND",
              "BOB",
              "BOV",
              "BRL",
              "BSD",
              "BTN",
              "BWP",
              "BYN",
              "BZD",
              "CAD",
              "CDF",
              "CHE",
              "CHF",
              "CHW",
              "CLF",
              "CLP",
              "CNH",
              "CNY",
              "COP",
              "COU",
              "CRC",
              "CUC",
              "CUP",
              "CVE",
              "CZK",
              "DJF",
              "DKK",
              "DOP",
              "DZD",
              "EGP",
              "ERN",
              "ETB",
              "EUR",
              "EURC",
              "FJD",
              "FKP",
              "GBP",
              "GEL",
              "GHS",
              "GIP",
              "GMD",
              "GNF",
              "GTQ",
              "GYD",
              "HKD",
              "HNL",
              "HRK",
              "HTG",
              "HUF",
              "IDR",
              "ILS",
              "INR",
              "IQD",
              "IRR",
              "ISK",
              "JMD",
              "JOD",
              "JPY",
              "KES",
              "KGS",
              "KHR",
              "KMF",
              "KPW",
              "KRW",
              "KWD",
              "KYD",
              "KZT",
              "LAK",
              "LBP",
              "LKR",
              "LRD",
              "LSL",
              "LYD",
              "MAD",
              "MDL",
              "MGA",
              "MKD",
              "MMK",
              "MNT",
              "MOP",
              "MRU",
              "MUR",
              "MVR",
              "MWK",
              "MXN",
              "MXV",
              "MYR",
              "MZN",
              "NAD",
              "NGN",
              "NIO",
              "NOK",
              "NPR",
              "NZD",
              "OMR",
              "OPEN_USD",
              "PAB",
              "PEN",
              "PGK",
              "PHP",
              "PKR",
              "PLN",
              "PYG",
              "QAR",
              "RON",
              "RSD",
              "RUB",
              "RWF",
              "SAR",
              "SBD",
              "SCR",
              "SDG",
              "SEK",
              "SGD",
              "SHP",
              "SLE",
              "SLL",
              "SOS",
              "SRD",
              "SSP",
              "STN",
              "SVC",
              "SYP",
              "SZL",
              "THB",
              "TJS",
              "TMT",
              "TND",
              "TOP",
              "TRY",
              "TTD",
              "TWD",
              "TZS",
              "UAH",
              "UGX",
              "USD",
              "USDB",
              "USDC",
              "USDG",
              "USDT",
              "USN",
              "UYI",
              "UYU",
              "UYW",
              "UZS",
              "VED",
              "VES",
              "VND",
              "VUV",
              "WST",
              "XAD",
              "XAF",
              "XAG",
              "XAU",
              "XBA",
              "XBB",
              "XBC",
              "XBD",
              "XCD",
              "XCG",
              "XDR",
              "XOF",
              "XPD",
              "XPF",
              "XPT",
              "XSU",
              "XTS",
              "XUA",
              "XXX",
              "YER",
              "ZAR",
              "ZMW",
              "ZWG",
              "ZWL"
            ],
            "type": "string",
            "x-enum-descriptions": {
              "AED": "UAE Dirham",
              "AFN": "Afghani",
              "ALL": "Lek",
              "AMD": "Armenian Dram",
              "ANG": "Netherlands Antillean Guilder",
              "AOA": "Kwanza",
              "ARS": "Argentine Peso",
              "AUD": "Australian Dollar",
              "AWG": "Aruban Florin",
              "AZN": "Azerbaijan Manat",
              "BAM": "Convertible Mark",
              "BBD": "Barbados Dollar",
              "BDT": "Taka",
              "BGN": "Bulgarian Lev",
              "BHD": "Bahraini Dinar",
              "BIF": "Burundi Franc",
              "BMD": "Bermudian Dollar",
              "BND": "Brunei Dollar",
              "BOB": "Boliviano",
              "BOV": "Mvdol",
              "BRL": "Brazilian Real",
              "BSD": "Bahamian Dollar",
              "BTN": "Ngultrum",
              "BWP": "Pula",
              "BYN": "Belarusian Ruble",
              "BZD": "Belize Dollar",
              "CAD": "Canadian Dollar",
              "CDF": "Congolese Franc",
              "CHE": "WIR Euro",
              "CHF": "Swiss Franc",
              "CHW": "WIR Franc",
              "CLF": "Unidad de Fomento",
              "CLP": "Chilean Peso",
              "CNH": "CNH",
              "CNY": "Yuan Renminbi",
              "COP": "Colombian Peso",
              "COU": "Unidad de Valor Real",
              "CRC": "Costa Rican Colon",
              "CUC": "Peso Convertible",
              "CUP": "Cuban Peso",
              "CVE": "Cabo Verde Escudo",
              "CZK": "Czech Koruna",
              "DJF": "Djibouti Franc",
              "DKK": "Danish Krone",
              "DOP": "Dominican Peso",
              "DZD": "Algerian Dinar",
              "EGP": "Egyptian Pound",
              "ERN": "Nakfa",
              "ETB": "Ethiopian Birr",
              "EUR": "Euro",
              "EURC": "Euro Coin",
              "FJD": "Fiji Dollar",
              "FKP": "Falkland Islands Pound",
              "GBP": "Pound Sterling",
              "GEL": "Lari",
              "GHS": "Ghana Cedi",
              "GIP": "Gibraltar Pound",
              "GMD": "Dalasi",
              "GNF": "Guinean Franc",
              "GTQ": "Quetzal",
              "GYD": "Guyana Dollar",
              "HKD": "Hong Kong Dollar",
              "HNL": "Lempira",
              "HRK": "Croatian Kuna",
              "HTG": "Gourde",
              "HUF": "Forint",
              "IDR": "Rupiah",
              "ILS": "New Israeli Sheqel",
              "INR": "Indian Rupee",
              "IQD": "Iraqi Dinar",
              "IRR": "Iranian Rial",
              "ISK": "Iceland Krona",
              "JMD": "Jamaican Dollar",
              "JOD": "Jordanian Dinar",
              "JPY": "Yen",
              "KES": "Kenyan Shilling",
              "KGS": "Som",
              "KHR": "Riel",
              "KMF": "Comorian Franc",
              "KPW": "North Korean Won",
              "KRW": "Won",
              "KWD": "Kuwaiti Dinar",
              "KYD": "Cayman Islands Dollar",
              "KZT": "Tenge",
              "LAK": "Lao Kip",
              "LBP": "Lebanese Pound",
              "LKR": "Sri Lanka Rupee",
              "LRD": "Liberian Dollar",
              "LSL": "Loti",
              "LYD": "Libyan Dinar",
              "MAD": "Moroccan Dirham",
              "MDL": "Moldovan Leu",
              "MGA": "Malagasy Ariary",
              "MKD": "Denar",
              "MMK": "Kyat",
              "MNT": "Tugrik",
              "MOP": "Pataca",
              "MRU": "Ouguiya",
              "MUR": "Mauritius Rupee",
              "MVR": "Rufiyaa",
              "MWK": "Malawi Kwacha",
              "MXN": "Mexican Peso",
              "MXV": "Mexican Unidad de Inversion (UDI)",
              "MYR": "Malaysian Ringgit",
              "MZN": "Mozambique Metical",
              "NAD": "Namibia Dollar",
              "NGN": "Naira",
              "NIO": "Cordoba Oro",
              "NOK": "Norwegian Krone",
              "NPR": "Nepalese Rupee",
              "NZD": "New Zealand Dollar",
              "OMR": "Rial Omani",
              "OPEN_USD": "OpenUSD",
              "PAB": "Balboa",
              "PEN": "Sol",
              "PGK": "Kina",
              "PHP": "Philippine Peso",
              "PKR": "Pakistan Rupee",
              "PLN": "Zloty",
              "PYG": "Guarani",
              "QAR": "Qatari Rial",
              "RON": "Romanian Leu",
              "RSD": "Serbian Dinar",
              "RUB": "Russian Ruble",
              "RWF": "Rwanda Franc",
              "SAR": "Saudi Riyal",
              "SBD": "Solomon Islands Dollar",
              "SCR": "Seychelles Rupee",
              "SDG": "Sudanese Pound",
              "SEK": "Swedish Krona",
              "SGD": "Singapore Dollar",
              "SHP": "Saint Helena Pound",
              "SLE": "Leone",
              "SLL": "Leone",
              "SOS": "Somali Shilling",
              "SRD": "Surinam Dollar",
              "SSP": "South Sudanese Pound",
              "STN": "Dobra",
              "SVC": "El Salvador Colon",
              "SYP": "Syrian Pound",
              "SZL": "Lilangeni",
              "THB": "Baht",
              "TJS": "Somoni",
              "TMT": "Turkmenistan New Manat",
              "TND": "Tunisian Dinar",
              "TOP": "Pa\u2019anga",
              "TRY": "Turkish Lira",
              "TTD": "Trinidad and Tobago Dollar",
              "TWD": "New Taiwan Dollar",
              "TZS": "Tanzanian Shilling",
              "UAH": "Hryvnia",
              "UGX": "Uganda Shilling",
              "USD": "US Dollar",
              "USDB": "USDB",
              "USDC": "USDC",
              "USDG": "Global Dollar",
              "USDT": "USDT",
              "USN": "US Dollar (Next day)",
              "UYI": "Uruguay Peso en Unidades Indexadas (UI)",
              "UYU": "Peso Uruguayo",
              "UYW": "Unidad Previsional",
              "UZS": "Uzbekistan Sum",
              "VED": "Bol\u00edvar Soberano",
              "VES": "Bol\u00edvar Soberano",
              "VND": "Dong",
              "VUV": "Vatu",
              "WST": "Tala",
              "XAD": "Arab Accounting Dinar",
              "XAF": "CFA Franc BEAC",
              "XAG": "Silver",
              "XAU": "Gold",
              "XBA": "Bond Markets Unit European Composite Unit (EURCO)",
              "XBB": "Bond Markets Unit European Monetary Unit (E.M.U.-6)",
              "XBC": "Bond Markets Unit European Unit of Account 9 (E.U.A.-9)",
              "XBD": "Bond Markets Unit European Unit of Account 17 (E.U.A.-17)",
              "XCD": "East Caribbean Dollar",
              "XCG": "Caribbean Guilder",
              "XDR": "SDR (Special Drawing Right)",
              "XOF": "CFA Franc BCEAO",
              "XPD": "Palladium",
              "XPF": "CFP Franc",
              "XPT": "Platinum",
              "XSU": "Sucre",
              "XTS": "Codes specifically reserved for testing purposes",
              "XUA": "ADB Unit of Account",
              "XXX": "The codes assigned for transactions where no currency is involved",
              "YER": "Yemeni Rial",
              "ZAR": "Rand",
              "ZMW": "Zambian Kwacha",
              "ZWG": "Zimbabwe Gold",
              "ZWL": "Zimbabwe Dollar"
            }
          },
          "value": {
            "description": "The amount in the smallest denomination of the currency (e.g. cents for USD). May be negative for refunds or credits.",
            "type": "integer"
          }
        },
        "required": [
          "currency",
          "value"
        ],
        "type": "object"
      },
      "ApiSourcingUploadDocumentInputRequestBody": {
        "properties": {
          "file": {
            "$ref": "#/components/schemas/UploadedFileRequestBody"
          }
        },
        "required": [
          "file"
        ],
        "title": "ApiSourcingUploadDocumentInput",
        "type": "object"
      },
      "ApiSourcingUploadDocumentResultJsonMode": {
        "properties": {
          "file_name": {
            "description": "Stored filename of the uploaded document",
            "title": "File Name",
            "type": "string"
          },
          "ramp_document_id": {
            "description": "UUID of the created RampDocument",
            "title": "Ramp Document Id",
            "type": "string"
          }
        },
        "required": [
          "file_name",
          "ramp_document_id"
        ],
        "title": "ApiSourcingUploadDocumentResult",
        "type": "object"
      },
      "ApiStatementItem": {
        "properties": {
          "cleared_at": {
            "description": "Time when transaction was cleared. Only present for transactions and may be null if not cleared.",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "created_at": {
            "description": "For transactions: time when card was swiped. For transfers/cashbacks: creation time.",
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "description": "Unique identifier for the statement line item.",
            "format": "uuid",
            "type": "string"
          },
          "type": {
            "description": "Type of statement line item (CARD_TRANSACTION, TRANSFER_PAYMENT, or CASHBACK).",
            "enum": [
              "CARD_TRANSACTION",
              "CASHBACK",
              "TRANSFER_PAYMENT"
            ],
            "type": "string"
          }
        },
        "required": [
          "created_at"
        ],
        "type": "object"
      },
      "ApiTransactionAccountingCategoryInfo": {
        "properties": {
          "external_id": {
            "description": "External ID of accounting field; It should uniquely identify an accounting field on the ERP.",
            "type": "string"
          },
          "id": {
            "description": "ID that uniquely identifies an accounting field within Ramp",
            "format": "uuid",
            "type": "string",
            "x-relationship": {
              "inverse_field_name": null,
              "reference_field_name": "ramp_id",
              "target_resource": "accounting_fields",
              "type": "many-to-many"
            }
          },
          "name": {
            "description": "Name of accounting field",
            "type": "string"
          },
          "type": {
            "description": "Accounting field type",
            "enum": [
              "AMORTIZATION_TEMPLATE",
              "BILLABLE",
              "COST_CENTER",
              "CUSTOMERS_JOBS",
              "DEFERRAL_CODE",
              "EXPENSE_ENTITY",
              "GL_ACCOUNT",
              "INVENTORY_ITEM",
              "JOURNAL",
              "MERCHANT",
              "NON_ERP",
              "OTHER",
              "PAYROLL_PROVIDER",
              "PROJECT",
              "REPORTING_TAG",
              "SALES_TAX_CODE",
              "SUBSIDIARY",
              "TAX_CODE",
              "UNIT_OF_MEASURE"
            ],
            "type": "string",
            "x-enum-descriptions": {
              "SALES_TAX_CODE": "A sales tax code from the accounting provider."
            }
          }
        },
        "type": "object"
      },
      "ApiTransactionAccountingFieldSelection": {
        "properties": {
          "category_info": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiTransactionAccountingCategoryInfo"
              }
            ],
            "description": "Information about the accounting category (or accounting field)."
          },
          "display_name": {
            "description": "Customer-set display name for the accounting field option in Ramp. When the customer renames an option inside Ramp, this returns the new label while `name` continues to return the ERP-source name. May be null if no Ramp-side override is set.",
            "nullable": true,
            "type": "string"
          },
          "external_code": {
            "description": "External code of accounting field option; Code field displayed on the ERP.",
            "type": "string"
          },
          "external_id": {
            "description": "External ID of accounting field option; It should uniquely identify an accounting field option on the ERP.",
            "type": "string"
          },
          "id": {
            "description": "ID that uniquely identifies an accounting field option within Ramp",
            "format": "uuid",
            "type": "string",
            "x-relationship": {
              "inverse_field_name": null,
              "reference_field_name": "ramp_id",
              "target_resource": "custom_field_options",
              "type": "many-to-many"
            }
          },
          "name": {
            "description": "Name of accounting field option",
            "type": "string"
          },
          "provider_name": {
            "description": "Name of accounting field provider",
            "readOnly": true,
            "type": "string"
          },
          "source": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiAccountingFieldSelectionSource"
              }
            ],
            "description": "Describes the source of the accounting coding selection."
          },
          "type": {
            "description": "Accounting field type",
            "enum": [
              "AMORTIZATION_TEMPLATE",
              "BILLABLE",
              "COST_CENTER",
              "CUSTOMERS_JOBS",
              "DEFERRAL_CODE",
              "EXPENSE_ENTITY",
              "GL_ACCOUNT",
              "INVENTORY_ITEM",
              "JOURNAL",
              "MERCHANT",
              "NON_ERP",
              "OTHER",
              "PAYROLL_PROVIDER",
              "PROJECT",
              "REPORTING_TAG",
              "SALES_TAX_CODE",
              "SUBSIDIARY",
              "TAX_CODE",
              "UNIT_OF_MEASURE"
            ],
            "type": "string",
            "x-enum-descriptions": {
              "SALES_TAX_CODE": "A sales tax code from the accounting provider."
            }
          }
        },
        "required": [
          "display_name",
          "provider_name"
        ],
        "type": "object"
      },
      "ApiTransactionAttendee": {
        "properties": {
          "name": {
            "description": "Full name of the attendee",
            "type": "string"
          },
          "user_id": {
            "description": "User ID of the attendee, if linked to a Ramp user. Missing if the attendee is not a Ramp user",
            "format": "uuid",
            "nullable": true,
            "type": "string",
            "x-relationship": {
              "inverse_field_name": null,
              "reference_field_name": "id",
              "target_resource": "users",
              "type": "many-to-one"
            }
          }
        },
        "required": [
          "name",
          "user_id"
        ],
        "type": "object"
      },
      "ApiTransactionCardHolder": {
        "properties": {
          "department_id": {
            "description": "ID of the card holder's department.",
            "format": "uuid",
            "type": "string",
            "x-relationship": {
              "inverse_field_name": null,
              "reference_field_name": "id",
              "target_resource": "departments",
              "type": "many-to-one"
            }
          },
          "department_name": {
            "description": "Name of the card holder's deparment.",
            "type": "string"
          },
          "employee_id": {
            "description": "User-defined employee ID of the card holder.",
            "type": "string"
          },
          "first_name": {
            "description": "Card holder's first name.",
            "type": "string"
          },
          "last_name": {
            "description": "Card holder's last name.",
            "type": "string"
          },
          "location_id": {
            "description": "ID of the card holder's location.",
            "format": "uuid",
            "type": "string",
            "x-relationship": {
              "inverse_field_name": null,
              "reference_field_name": "id",
              "target_resource": "locations",
              "type": "many-to-one"
            }
          },
          "location_name": {
            "description": "Name of the card holder's location.",
            "type": "string"
          },
          "user_id": {
            "description": "Card holder's ID.",
            "format": "uuid",
            "type": "string",
            "x-relationship": {
              "inverse_field_name": null,
              "reference_field_name": "id",
              "target_resource": "users",
              "type": "many-to-one"
            }
          }
        },
        "type": "object"
      },
      "ApiTransactionDeclineDetails": {
        "example": {
          "amount": 120.34,
          "declined_amount": {
            "currency": "USD",
            "value": 12034
          },
          "reason": "AUTHORIZER_CARD_LIMIT"
        },
        "properties": {
          "amount": {
            "deprecated": true,
            "description": "Declined amount, denominated in the transaction's settlement currency (the transaction's `currency_code`).",
            "type": "number"
          },
          "declined_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiSignedAmount"
              }
            ],
            "description": "Declined amount with its currency. The currency is the transaction's settlement currency (matches the transaction's `currency_code`). The value is signed: declined refunds/credits can be negative. Null when the transaction has no valid settlement currency recorded; the bare `amount` field always carries the raw value.",
            "nullable": true
          },
          "reason": {
            "enum": [
              "AUTHORIZER",
              "AUTHORIZER_AP_CARD_VELOCITY_LIMIT",
              "AUTHORIZER_BLOCKED_COUNTRY",
              "AUTHORIZER_BUSINESS_LIMIT",
              "AUTHORIZER_BUSINESS_SUSPENDED",
              "AUTHORIZER_BUSINESS_VENDOR_BLACKLIST",
              "AUTHORIZER_CARD_AUTO_LOCK_DATE",
              "AUTHORIZER_CARD_CATEGORY_BLACKLIST",
              "AUTHORIZER_CARD_CATEGORY_WHITELIST",
              "AUTHORIZER_CARD_LIMIT",
              "AUTHORIZER_CARD_MCC_BLACKLIST",
              "AUTHORIZER_CARD_MISSING_POLICY_ITEMS",
              "AUTHORIZER_CARD_NOT_ACTIVATED",
              "AUTHORIZER_CARD_NOT_FOUND",
              "AUTHORIZER_CARD_PARTIALLY_ACTIVATED",
              "AUTHORIZER_CARD_START_DATE",
              "AUTHORIZER_CARD_SUSPENDED",
              "AUTHORIZER_CARD_TASK_SANCTION",
              "AUTHORIZER_CARD_TOTAL_ACTIVATION_REQUIRED",
              "AUTHORIZER_CARD_VENDOR_BLACKLIST",
              "AUTHORIZER_CARD_VENDOR_WHITELIST",
              "AUTHORIZER_COMMANDO_MODE",
              "AUTHORIZER_FRAUD",
              "AUTHORIZER_FREEZE_TRANSACTIONS_RISK",
              "AUTHORIZER_GLOBAL_MCC_BLACKLIST",
              "AUTHORIZER_MEMBER_LIMIT",
              "AUTHORIZER_NON_AP_CARD_VELOCITY_LIMIT",
              "AUTHORIZER_OOB_BLOCKED_MERCHANT",
              "AUTHORIZER_OOB_DAILY_BUSINESS_BALANCE",
              "AUTHORIZER_OOB_DAILY_CARD_SPEND",
              "AUTHORIZER_RAMP_AUTHORIZATION_METHODS",
              "AUTHORIZER_RAMP_TRANSACTION_AMOUNT_LIMIT",
              "AUTHORIZER_RAMP_VENDOR_RESTRICTIONS",
              "AUTHORIZER_RATE_LIMITED",
              "AUTHORIZER_SPEND_ALLOCATION_ARCHIVED_FUNDS",
              "AUTHORIZER_SPEND_ALLOCATION_MEMBER_SUSPENDED",
              "AUTHORIZER_SPEND_ALLOCATION_SUSPENDED",
              "AUTHORIZER_TRANSACTION_AMOUNT_LIMIT",
              "AUTHORIZER_UNAUTHORIZED_USER",
              "AUTHORIZER_UNDER_TRANSACTION_AMOUNT_LIMIT",
              "AUTHORIZER_USER_LIMIT",
              "AUTHORIZER_USER_SUSPENDED",
              "BLOCKED_COUNTRY",
              "CARD_EXPIRED",
              "CARD_LOST_OR_STOLEN",
              "CARD_TERMINATED",
              "CHIP_FAILURE",
              "FORBIDDEN_CATEGORY",
              "INSECURE_AUTHORIZATION_METHOD",
              "INSUFFICIENT_FUNDS",
              "INVALID_PIN",
              "MISSING_CVV",
              "MISSING_EXPIRATION",
              "MOBILE_WALLET_FAILURE",
              "MOBILE_WALLET_TOKEN_NOT_FOUND",
              "MOBILE_WALLET_TOKEN_TERMINATED",
              "NETWORK_DECLINE_ACCOUNT_VERIFICATION",
              "NETWORK_DECLINE_ADVICE",
              "NETWORK_DECLINE_ADVICE_ACQUIRER_ISSUE",
              "NETWORK_DECLINE_ADVICE_ADDITIONAL_AUTHENTICATION_REQUIRED",
              "NETWORK_DECLINE_ADVICE_FORCED_STIP_BY_ISSUER",
              "NETWORK_DECLINE_ADVICE_ISSUER_LOGGED_OFF",
              "NETWORK_DECLINE_ADVICE_ISSUER_TIMEOUT",
              "NETWORK_DECLINE_ADVICE_ISSUER_UNAVAILABLE",
              "NETWORK_DECLINE_ADVICE_PIN_ERROR",
              "NETWORK_DECLINE_ADVICE_RECURRING_PAYMENT",
              "NETWORK_DECLINE_ADVICE_SELECTIVE_ACCEPTANCE_SERVICE",
              "NETWORK_DECLINE_ADVICE_SUSPECTED_FRAUD_TRANSACTION",
              "NETWORK_DECLINE_ADVICE_TOKEN_PROVISIONING_SERVICE",
              "NETWORK_DECLINE_ADVICE_VISA_PAYMENT_CONTROLS_RULE",
              "NOT_ACTIVE",
              "NOT_ALLOWED",
              "NO_AUTO_ROUTED_LIMITS_AVAILABLE",
              "NO_LINKED_SPEND_ALLOCATION",
              "OFAC_VERIFICATION_NEEDED",
              "OPEN_TO_BUY_LIMIT",
              "OTHER",
              "PIN_BLOCKED",
              "PIN_TRY_LIMIT_EXCEEDED",
              "PROCESSOR_CAP",
              "QUASI_CASH",
              "ROUTED_TO_TERMINATED_SPEND_ALLOCATION",
              "STRIPE_WEBHOOK_TIMEOUT",
              "SUSPECTED_BIN_ATTACK",
              "SUSPECTED_FRAUD",
              "THREE_D_SECURE_REQUIRED",
              "UPSTREAM_VERIFICATION_FAILED",
              "USER_BLOCKED",
              "USER_TERMINATED",
              "WRONG_ADDRESS",
              "WRONG_CVV",
              "WRONG_EXPIRATION",
              "WRONG_POSTAL_CODE"
            ],
            "type": "string",
            "x-enum-descriptions": {
              "AUTHORIZER": "Transaction declined by Ramp",
              "AUTHORIZER_AP_CARD_VELOCITY_LIMIT": "Transaction limit exceeded",
              "AUTHORIZER_BLOCKED_COUNTRY": "Merchant country blocked by company",
              "AUTHORIZER_BUSINESS_LIMIT": "Business spending limit exceeded",
              "AUTHORIZER_BUSINESS_SUSPENDED": "Business account is suspended",
              "AUTHORIZER_BUSINESS_VENDOR_BLACKLIST": "Merchant blocked by company policy",
              "AUTHORIZER_CARD_AUTO_LOCK_DATE": "Card has been auto-locked",
              "AUTHORIZER_CARD_CATEGORY_BLACKLIST": "Merchant category blocked for this card",
              "AUTHORIZER_CARD_CATEGORY_WHITELIST": "Merchant category not allowed for this card",
              "AUTHORIZER_CARD_LIMIT": "Card spending limit exceeded",
              "AUTHORIZER_CARD_MCC_BLACKLIST": "Merchant category blocked for this card",
              "AUTHORIZER_CARD_MISSING_POLICY_ITEMS": "Card locked due to missing required items",
              "AUTHORIZER_CARD_NOT_ACTIVATED": "Card is not activated",
              "AUTHORIZER_CARD_NOT_FOUND": "Card not yet set up for purchases",
              "AUTHORIZER_CARD_PARTIALLY_ACTIVATED": "Card requires additional activation",
              "AUTHORIZER_CARD_START_DATE": "Card spend eligibility has not started",
              "AUTHORIZER_CARD_SUSPENDED": "Card is locked",
              "AUTHORIZER_CARD_TASK_SANCTION": "Card locked due to overdue tasks",
              "AUTHORIZER_CARD_TOTAL_ACTIVATION_REQUIRED": "Card requires delivery confirmation",
              "AUTHORIZER_CARD_VENDOR_BLACKLIST": "Merchant blocked for this card",
              "AUTHORIZER_CARD_VENDOR_WHITELIST": "Merchant not allowed for this card",
              "AUTHORIZER_COMMANDO_MODE": "Temporary processing error",
              "AUTHORIZER_FRAUD": "Transaction flagged for fraud review",
              "AUTHORIZER_FREEZE_TRANSACTIONS_RISK": "Account temporarily frozen",
              "AUTHORIZER_GLOBAL_MCC_BLACKLIST": "Merchant category not supported",
              "AUTHORIZER_MEMBER_LIMIT": "Member spending limit exceeded",
              "AUTHORIZER_NON_AP_CARD_VELOCITY_LIMIT": "Transaction limit exceeded",
              "AUTHORIZER_OOB_BLOCKED_MERCHANT": "Merchant blocked",
              "AUTHORIZER_OOB_DAILY_BUSINESS_BALANCE": "Daily business balance limit exceeded",
              "AUTHORIZER_OOB_DAILY_CARD_SPEND": "Daily card spending limit exceeded",
              "AUTHORIZER_RAMP_AUTHORIZATION_METHODS": "Authorization method not allowed",
              "AUTHORIZER_RAMP_TRANSACTION_AMOUNT_LIMIT": "Transaction amount didn't match limit",
              "AUTHORIZER_RAMP_VENDOR_RESTRICTIONS": "Merchant restricted by company policy",
              "AUTHORIZER_RATE_LIMITED": "Transaction declined",
              "AUTHORIZER_SPEND_ALLOCATION_ARCHIVED_FUNDS": "Funds are currently archived",
              "AUTHORIZER_SPEND_ALLOCATION_MEMBER_SUSPENDED": "Member access to spending limit is locked",
              "AUTHORIZER_SPEND_ALLOCATION_SUSPENDED": "Spending limit is suspended",
              "AUTHORIZER_TRANSACTION_AMOUNT_LIMIT": "Transaction amount exceeded the per-transaction limit",
              "AUTHORIZER_UNAUTHORIZED_USER": "User account is no longer active",
              "AUTHORIZER_UNDER_TRANSACTION_AMOUNT_LIMIT": "Transaction amount fell below the per-transaction minimum",
              "AUTHORIZER_USER_LIMIT": "User spending limit exceeded",
              "AUTHORIZER_USER_SUSPENDED": "User account is locked",
              "BLOCKED_COUNTRY": "Transaction country not supported",
              "CARD_EXPIRED": "Card has expired",
              "CARD_LOST_OR_STOLEN": "Card reported as lost or stolen",
              "CARD_TERMINATED": "Card has been terminated",
              "CHIP_FAILURE": "Card chip verification failed",
              "FORBIDDEN_CATEGORY": "Merchant category not allowed",
              "INSECURE_AUTHORIZATION_METHOD": "Insecure authorization method used",
              "INSUFFICIENT_FUNDS": "Insufficient funds available",
              "INVALID_PIN": "Invalid PIN entered",
              "MISSING_CVV": "CVV is required",
              "MISSING_EXPIRATION": "Expiration date is required",
              "MOBILE_WALLET_FAILURE": "Mobile wallet processing error",
              "MOBILE_WALLET_TOKEN_NOT_FOUND": "Mobile wallet token not found",
              "MOBILE_WALLET_TOKEN_TERMINATED": "Mobile wallet token has been terminated",
              "NETWORK_DECLINE_ACCOUNT_VERIFICATION": "Account verification required",
              "NETWORK_DECLINE_ADVICE": "Transaction declined by network",
              "NETWORK_DECLINE_ADVICE_ACQUIRER_ISSUE": "Network processing error",
              "NETWORK_DECLINE_ADVICE_ADDITIONAL_AUTHENTICATION_REQUIRED": "Additional authentication required",
              "NETWORK_DECLINE_ADVICE_FORCED_STIP_BY_ISSUER": "Transaction declined by network",
              "NETWORK_DECLINE_ADVICE_ISSUER_LOGGED_OFF": "Network temporarily unavailable",
              "NETWORK_DECLINE_ADVICE_ISSUER_TIMEOUT": "Network timeout occurred",
              "NETWORK_DECLINE_ADVICE_ISSUER_UNAVAILABLE": "Network temporarily unavailable",
              "NETWORK_DECLINE_ADVICE_PIN_ERROR": "PIN verification error",
              "NETWORK_DECLINE_ADVICE_RECURRING_PAYMENT": "Recurring payment declined",
              "NETWORK_DECLINE_ADVICE_SELECTIVE_ACCEPTANCE_SERVICE": "Transaction not accepted",
              "NETWORK_DECLINE_ADVICE_SUSPECTED_FRAUD_TRANSACTION": "Transaction flagged for suspected fraud",
              "NETWORK_DECLINE_ADVICE_TOKEN_PROVISIONING_SERVICE": "Token provisioning error",
              "NETWORK_DECLINE_ADVICE_VISA_PAYMENT_CONTROLS_RULE": "Transaction blocked by payment controls",
              "NOT_ACTIVE": "Card is not active",
              "NOT_ALLOWED": "Transaction not allowed",
              "NO_AUTO_ROUTED_LIMITS_AVAILABLE": "No eligible spending limit available",
              "NO_LINKED_SPEND_ALLOCATION": "No spending limit linked to this card",
              "OFAC_VERIFICATION_NEEDED": "Account verification required",
              "OPEN_TO_BUY_LIMIT": "Available business balance exceeded",
              "OTHER": "Transaction declined",
              "PIN_BLOCKED": "PIN has been blocked",
              "PIN_TRY_LIMIT_EXCEEDED": "PIN attempt limit exceeded",
              "PROCESSOR_CAP": "Transaction amount exceeds network limit",
              "QUASI_CASH": "Cash-equivalent transactions not supported",
              "ROUTED_TO_TERMINATED_SPEND_ALLOCATION": "Spending limit has been terminated",
              "STRIPE_WEBHOOK_TIMEOUT": "Temporary processing error",
              "SUSPECTED_BIN_ATTACK": "Transaction declined for security reasons",
              "SUSPECTED_FRAUD": "Transaction flagged for suspected fraud",
              "THREE_D_SECURE_REQUIRED": "3D Secure authentication required",
              "UPSTREAM_VERIFICATION_FAILED": "Transaction declined",
              "USER_BLOCKED": "User account is blocked",
              "USER_TERMINATED": "User account has been terminated",
              "WRONG_ADDRESS": "Incorrect billing address",
              "WRONG_CVV": "Incorrect CVV entered",
              "WRONG_EXPIRATION": "Incorrect expiration date entered",
              "WRONG_POSTAL_CODE": "Incorrect postal code entered"
            }
          }
        },
        "required": [
          "declined_amount"
        ],
        "type": "object"
      },
      "ApiTransactionDispute": {
        "properties": {
          "created_at": {
            "description": "Time at which the dispute is created, presented in ISO8601 format.",
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "description": "Uniquely identifies a transaction dispute.",
            "format": "uuid",
            "type": "string"
          },
          "memo": {
            "description": "Free form text regarding the dispute.",
            "type": "string"
          },
          "type": {
            "description": "The dispute type; It could be one of the following values: RESOLVED_BY_RAMP, CANCELLED_BY_CUSTOMER, CANCELLED_BY_RAMP, CREATED_MERCHANT_ERROR and CREATED_UNRECOGNIZED_CHARGE.",
            "type": "string"
          }
        },
        "type": "object"
      },
      "ApiTransactionLineItem": {
        "properties": {
          "accounting_field_selections": {
            "description": "List of accounting field options selected to code the line item.",
            "items": {
              "$ref": "#/components/schemas/ApiTransactionAccountingFieldSelection"
            },
            "type": "array"
          },
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CurrencyAmount"
              }
            ],
            "description": "Amount of the line item, denominated in the currency that the transaction was settled in.",
            "nullable": true
          },
          "converted_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CurrencyAmount"
              }
            ],
            "description": "Amount of the split line item, converted to the currency of the card on which the transaction occurred.",
            "nullable": true
          },
          "id": {
            "description": "Stable Ramp identifier for a persisted split line. Null for generated lines.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "memo": {
            "description": "Memo associated with the line item.",
            "type": "string"
          }
        },
        "required": [
          "amount",
          "converted_amount"
        ],
        "type": "object"
      },
      "ApiTransactionPolicyViolation": {
        "properties": {
          "created_at": {
            "description": "Time at which the policy violation is created, presented in ISO8601 format.",
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "description": "Uniquely identifies a policy violation.",
            "format": "uuid",
            "type": "string"
          },
          "memo": {
            "description": "Free form text regarding the policy violation.",
            "type": "string"
          },
          "type": {
            "description": "Type of the policy violation.",
            "type": "string"
          }
        },
        "type": "object"
      },
      "ApiTransactionPurchaseAutoRental": {
        "properties": {
          "check_out": {
            "type": "string"
          },
          "days": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "ApiTransactionPurchaseData": {
        "properties": {
          "auto_rental": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiTransactionPurchaseAutoRental"
              }
            ],
            "description": "Auto rental purchase data provided by the merchant",
            "nullable": true
          },
          "flight": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiTransactionPurchaseFlightData"
              }
            ],
            "description": "Flight purchase data provided by the merchant",
            "nullable": true
          },
          "lodging": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiTransactionPurchaseLodging"
              }
            ],
            "description": "Lodging purchase data provided by the merchant",
            "nullable": true
          },
          "receipt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiTransactionPurchaseReceipt"
              }
            ],
            "description": "Receipt purchase data provided by the merchant",
            "nullable": true
          },
          "reference": {
            "description": "Purchase data reference ID provided by the merchant",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "auto_rental",
          "flight",
          "lodging",
          "receipt",
          "reference"
        ],
        "type": "object"
      },
      "ApiTransactionPurchaseFlightData": {
        "properties": {
          "departure_date": {
            "nullable": true,
            "type": "string"
          },
          "passenger_name": {
            "type": "string"
          },
          "segments": {
            "items": {
              "$ref": "#/components/schemas/ApiTransactionPurchaseFlightSegment"
            },
            "nullable": true,
            "type": "array"
          }
        },
        "required": [
          "departure_date",
          "segments"
        ],
        "type": "object"
      },
      "ApiTransactionPurchaseFlightSegment": {
        "properties": {
          "arrival_airport_code": {
            "type": "string"
          },
          "carrier": {
            "type": "string"
          },
          "departure_airport_code": {
            "type": "string"
          },
          "flight_number": {
            "type": "string"
          },
          "service_class": {
            "type": "string"
          },
          "stopover_allowed": {
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "ApiTransactionPurchaseLodging": {
        "properties": {
          "check_in": {
            "type": "string"
          },
          "nights": {
            "nullable": true,
            "type": "integer"
          }
        },
        "required": [
          "nights"
        ],
        "type": "object"
      },
      "ApiTransactionPurchaseReceipt": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/ApiTransactionPurchaseReceiptLineItem"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "ApiTransactionPurchaseReceiptLineItem": {
        "properties": {
          "commodity_code": {
            "nullable": true,
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "discount": {
            "nullable": true,
            "type": "number"
          },
          "quantity": {
            "type": "number"
          },
          "tax": {
            "nullable": true,
            "type": "number"
          },
          "total": {
            "type": "number"
          },
          "unit_cost": {
            "type": "number"
          }
        },
        "required": [
          "commodity_code",
          "discount",
          "tax"
        ],
        "type": "object"
      },
      "ApiTransactionsAgentUpdateRequestBody": {
        "properties": {
          "line_items": {
            "description": "List of line items for the split. Required: send an empty array to unsplit (remove all line items); null is not accepted.",
            "items": {
              "$ref": "#/components/schemas/ApiAccountingSplitLineItemRequestBody"
            },
            "type": "array"
          }
        },
        "required": [
          "line_items"
        ],
        "type": "object"
      },
      "ApiTransactionsUpdateRequestBody": {
        "example": {
          "line_items": [
            {
              "accounting_field_selections": [
                {
                  "field_external_id": "200",
                  "field_option_external_id": "1001"
                }
              ],
              "amount": 4000,
              "memo": "Case-67890"
            },
            {
              "accounting_field_selections": [
                {
                  "field_id": "8ad1e4a8-9f0f-4b6e-9a4e-3b4b4b2c1d10",
                  "field_option_id": "2f0c8d2e-5a1b-4c3d-8e9f-0a1b2c3d4e5f"
                }
              ],
              "amount": 6000,
              "memo": "Case-12345"
            }
          ]
        },
        "properties": {
          "fund_id": {
            "description": "For non-agent API clients only; not supported by CLI/MCP split calls. Move a refund back to the fund of its original purchase. Only a refund linked to its original purchase can change funds, and this must be that purchase's fund. Cannot be combined with line_items. Omit to leave the fund unchanged.",
            "format": "uuid",
            "type": "string",
            "x-relationship": {
              "inverse_field_name": null,
              "reference_field_name": "id",
              "target_resource": "funds",
              "type": "many-to-one"
            }
          },
          "line_items": {
            "description": "List of line items for the split. Send an empty array to unsplit (remove all line items). Omit to leave splits unchanged.",
            "items": {
              "$ref": "#/components/schemas/ApiAccountingSplitLineItemRequestBody"
            },
            "nullable": true,
            "type": "array"
          }
        },
        "type": "object"
      },
      "ApiVendorHoldParamsRequestBody": {
        "example": {
          "reason": "Awaiting additional review"
        },
        "properties": {
          "reason": {
            "default": null,
            "description": "Optional reason for placing the vendor on hold.",
            "nullable": true,
            "title": "Reason",
            "type": "string"
          }
        },
        "title": "ApiVendorHoldParams",
        "type": "object"
      },
      "ApplicableTravelerLoyaltyProgram": {
        "properties": {
          "display_name": {
            "description": "Display name of the loyalty program, such as United MileagePlus.",
            "title": "Display Name",
            "type": "string"
          },
          "logo": {
            "default": null,
            "description": "Logo URL for the loyalty program, when available.",
            "nullable": true,
            "title": "Logo",
            "type": "string"
          },
          "loyalty_number": {
            "description": "Saved loyalty number that will be submitted if confirmed.",
            "title": "Loyalty Number",
            "type": "string"
          },
          "loyalty_program_id": {
            "description": "Booking platform loyalty program ID that will be submitted if confirmed.",
            "title": "Loyalty Program Id",
            "type": "string"
          }
        },
        "required": [
          "display_name",
          "loyalty_number",
          "loyalty_program_id"
        ],
        "title": "ApplicableTravelerLoyaltyProgram",
        "type": "object"
      },
      "ApplicationDetailsInfo": {
        "properties": {
          "applicant_first_name": {
            "default": null,
            "description": "First name of the application's applicant.",
            "nullable": true,
            "title": "Applicant First Name",
            "type": "string"
          },
          "applicant_last_name": {
            "default": null,
            "description": "Last name of the application's applicant.",
            "nullable": true,
            "title": "Applicant Last Name",
            "type": "string"
          },
          "business_name": {
            "default": null,
            "description": "Name of the business: its DBA name when set, otherwise its legal name; null until provided.",
            "nullable": true,
            "title": "Business Name",
            "type": "string"
          },
          "current_step": {
            "default": null,
            "description": "Most recently saved application step, for example \"Filled business information\"; null until the first step is saved.",
            "nullable": true,
            "title": "Current Step",
            "type": "string"
          },
          "date_of_incorporation": {
            "default": null,
            "description": "Date of incorporation as YYYY-MM-DD; null until provided.",
            "nullable": true,
            "title": "Date Of Incorporation",
            "type": "string"
          },
          "entity_type": {
            "default": null,
            "description": "Legal entity type, for example \"LLC\"; null until provided.",
            "nullable": true,
            "title": "Entity Type",
            "type": "string"
          },
          "estimated_monthly_spend": {
            "default": null,
            "description": "Self-reported monthly spend range, for example \"FA_MONTHLY_SPEND_BETWEEN_10000_50000\"; null until provided.",
            "nullable": true,
            "title": "Estimated Monthly Spend",
            "type": "string"
          },
          "pages": {
            "description": "Pages of the application form with their completion status.",
            "items": {
              "$ref": "#/components/schemas/PageInfo"
            },
            "title": "Pages",
            "type": "array"
          },
          "state_of_incorporation": {
            "default": null,
            "description": "State of incorporation, for example \"DE\"; null until provided.",
            "nullable": true,
            "title": "State Of Incorporation",
            "type": "string"
          },
          "status": {
            "description": "Application stage. \"Pending\": still being filled out, not submitted. \"Submitted\", \"DOCUMENTS_SUBMITTED\", \"ALLOY_COMPLETE\", \"KYC Approved\", \"OPS_REVIEW\": under review by Ramp. \"DOCUMENTS_REQUIRED\": Ramp is waiting on requested follow-up items. \"Admin Approved\": approved. \"Rejected\", \"Withdrawn\", \"DELETED\": closed.",
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "status"
        ],
        "title": "ApplicationDetailsInfo",
        "type": "object"
      },
      "ApplicationStatusInfo": {
        "properties": {
          "applicant_id": {
            "description": "UUID of the user recorded as the application's applicant.",
            "title": "Applicant Id",
            "type": "string"
          },
          "application_id": {
            "description": "UUID of the financing application.",
            "title": "Application Id",
            "type": "string"
          },
          "current_step": {
            "default": null,
            "description": "Most recently saved application step, for example \"Filled business information\"; null until the first step is saved.",
            "nullable": true,
            "title": "Current Step",
            "type": "string"
          },
          "status": {
            "description": "Application stage. \"Pending\": still being filled out, not submitted. \"Submitted\", \"DOCUMENTS_SUBMITTED\", \"ALLOY_COMPLETE\", \"KYC Approved\", \"OPS_REVIEW\": under review by Ramp. \"DOCUMENTS_REQUIRED\": Ramp is waiting on requested follow-up items. \"Admin Approved\": approved. \"Rejected\", \"Withdrawn\", \"DELETED\": closed.",
            "title": "Status",
            "type": "string"
          },
          "underwriting_country": {
            "description": "Two-letter code of the country the application is underwritten in, for example \"US\".",
            "title": "Underwriting Country",
            "type": "string"
          }
        },
        "required": [
          "applicant_id",
          "application_id",
          "status",
          "underwriting_country"
        ],
        "title": "ApplicationStatusInfo",
        "type": "object"
      },
      "AppliedAirlineCreditV1": {
        "description": "A flight credit that paid for part or all of a booked flight.",
        "properties": {
          "airline_iata_code": {
            "default": null,
            "description": "IATA code of the issuing airline, e.g. 'UA'",
            "nullable": true,
            "title": "Airline Iata Code",
            "type": "string"
          },
          "airline_name": {
            "default": null,
            "description": "Airline that issued the credit; null when unknown",
            "nullable": true,
            "title": "Airline Name",
            "type": "string"
          },
          "amount": {
            "description": "Original credit value as a decimal string, e.g. '250.00'; the airline may apply less.",
            "title": "Amount",
            "type": "string"
          },
          "amount_applied": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MoneyAmountSchema"
              }
            ],
            "description": "Total credit value redeemed on this booking, including redemption_fee; the part that paid the fare is this minus redemption_fee"
          },
          "credit_id": {
            "description": "Ramp's id for this credit",
            "title": "Credit Id",
            "type": "string"
          },
          "credit_still_redeemable": {
            "description": "True when the credit itself is still usable as Ramp last synced it from the provider (not spent, invalidated, or expired), which can mean a remaining balance. Ramp does not store the remaining amount.",
            "title": "Credit Still Redeemable",
            "type": "boolean"
          },
          "currency": {
            "description": "ISO 4217 currency code of amount, e.g. 'USD'",
            "title": "Currency",
            "type": "string"
          },
          "redemption_fee": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MoneyAmountSchema"
              }
            ],
            "default": null,
            "description": "Airline fee for redeeming the credit on this booking; null when there was none",
            "nullable": true
          }
        },
        "required": [
          "amount",
          "amount_applied",
          "credit_id",
          "credit_still_redeemable",
          "currency"
        ],
        "title": "AppliedAirlineCreditV1",
        "type": "object"
      },
      "AppliedDateFilter": {
        "description": "The transaction-time window a search actually applied, in UTC.",
        "properties": {
          "basis": {
            "description": "The window filters on transaction time, not accounting date.",
            "enum": [
              "transaction_time"
            ],
            "title": "Basis",
            "type": "string"
          },
          "end_at": {
            "description": "Exclusive UTC end of the applied window, or null when unbounded.",
            "format": "date-time",
            "nullable": true,
            "title": "End At",
            "type": "string"
          },
          "start_at": {
            "description": "Inclusive UTC start of the applied window, or null when unbounded.",
            "format": "date-time",
            "nullable": true,
            "title": "Start At",
            "type": "string"
          },
          "timezone": {
            "description": "IANA time zone used to read the request: UTC when start_at/end_at have an offset, otherwise the acting user's Ramp profile time zone.",
            "title": "Timezone",
            "type": "string"
          }
        },
        "required": [
          "basis",
          "end_at",
          "start_at",
          "timezone"
        ],
        "title": "AppliedDateFilter",
        "type": "object"
      },
      "ApprovalChainAssignedEntity": {
        "properties": {
          "assigned_user_full_name": {
            "default": null,
            "nullable": true,
            "title": "Assigned User Full Name",
            "type": "string"
          },
          "assigned_user_id": {
            "default": null,
            "nullable": true,
            "title": "Assigned User Id",
            "type": "string"
          },
          "entity_full_name": {
            "default": null,
            "nullable": true,
            "title": "Entity Full Name",
            "type": "string"
          },
          "notes": {
            "default": null,
            "nullable": true,
            "title": "Notes",
            "type": "string"
          }
        },
        "title": "ApprovalChainAssignedEntity",
        "type": "object"
      },
      "ApprovalChainEvent": {
        "properties": {
          "assigned_entities": {
            "items": {
              "$ref": "#/components/schemas/ApprovalChainAssignedEntity"
            },
            "title": "Assigned Entities",
            "type": "array"
          },
          "displayed_event_text": {
            "title": "Displayed Event Text",
            "type": "string"
          },
          "event_type": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ApprovalStepType"
              },
              {
                "$ref": "#/components/schemas/DisplayApprovalStepType"
              }
            ],
            "title": "Event Type"
          },
          "is_current_step": {
            "default": false,
            "title": "Is Current Step",
            "type": "boolean"
          },
          "status": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ApprovalStepStatus"
              },
              {
                "$ref": "#/components/schemas/DisplayApprovalStepStatus"
              }
            ],
            "title": "Status"
          },
          "step_date": {
            "default": null,
            "nullable": true,
            "title": "Step Date",
            "type": "string"
          }
        },
        "required": [
          "displayed_event_text",
          "event_type",
          "status"
        ],
        "title": "ApprovalChainEvent",
        "type": "object"
      },
      "ApprovalEntityType": {
        "enum": [
          "BILL",
          "BOOKING_REQUEST",
          "REIMBURSEMENT",
          "SPEND_REQUEST",
          "TRANSACTION",
          "UNIFIED_REQUEST"
        ],
        "title": "ApprovalEntityType",
        "type": "string"
      },
      "ApprovalEntityTypeRequestBody": {
        "enum": [
          "BILL",
          "BOOKING_REQUEST",
          "REIMBURSEMENT",
          "SPEND_REQUEST",
          "TRANSACTION",
          "UNIFIED_REQUEST"
        ],
        "title": "ApprovalEntityType",
        "type": "string"
      },
      "ApprovalMode": {
        "enum": [
          "every_payment",
          "none"
        ],
        "title": "ApprovalMode",
        "type": "string"
      },
      "ApprovalModeRequestBody": {
        "enum": [
          "every_payment",
          "none"
        ],
        "title": "ApprovalMode",
        "type": "string"
      },
      "ApprovalStepInfo": {
        "properties": {
          "action_date": {
            "default": null,
            "nullable": true,
            "title": "Action Date",
            "type": "string"
          },
          "assignees": {
            "items": {
              "type": "string"
            },
            "title": "Assignees",
            "type": "array"
          },
          "displayed_text": {
            "title": "Displayed Text",
            "type": "string"
          },
          "is_current_step": {
            "title": "Is Current Step",
            "type": "boolean"
          },
          "notes": {
            "default": null,
            "nullable": true,
            "title": "Notes",
            "type": "string"
          },
          "status": {
            "title": "Status",
            "type": "string"
          },
          "step_order": {
            "title": "Step Order",
            "type": "integer"
          }
        },
        "required": [
          "displayed_text",
          "is_current_step",
          "status",
          "step_order"
        ],
        "title": "ApprovalStepInfo",
        "type": "object"
      },
      "ApprovalStepStatus": {
        "enum": [
          "ADMIN_APPROVED",
          "ADMIN_REJECTED",
          "APPROVED",
          "COMPLETED",
          "MANUALLY_SKIPPED",
          "PENDING",
          "REJECTED",
          "SKIPPED",
          "TERMINATED"
        ],
        "title": "ApprovalStepStatus",
        "type": "string"
      },
      "ApprovalStepType": {
        "enum": [
          "NOTIFY",
          "REQUIRE",
          "REQUIRE_ALL",
          "ROUND_ROBIN"
        ],
        "title": "ApprovalStepType",
        "type": "string",
        "x-enum-descriptions": {
          "ROUND_ROBIN": "Randomly assigns approval to one person from the selected users and groups."
        }
      },
      "ApprovalWorkflowStatus": {
        "properties": {
          "is_last_step_for_user": {
            "title": "Is Last Step For User",
            "type": "boolean"
          },
          "needs_user_action": {
            "title": "Needs User Action",
            "type": "boolean"
          },
          "overall_status": {
            "title": "Overall Status",
            "type": "string"
          },
          "steps": {
            "items": {
              "$ref": "#/components/schemas/ApprovalStepInfo"
            },
            "title": "Steps",
            "type": "array"
          }
        },
        "required": [
          "is_last_step_for_user",
          "needs_user_action",
          "overall_status"
        ],
        "title": "ApprovalWorkflowStatus",
        "type": "object"
      },
      "ApproveOrRejectBillRequestBody": {
        "description": "Approve or reject a submitted bill that is pending approval. The authenticated user must be the next required approver on the bill's approval chain. Rejection is additionally allowed for bill-pay admins as an override, even when they are not the next approver. Find bills awaiting the authenticated user's approval with get-bills-for-approval. Some bills require step-up verification that agents cannot complete; in that case the error includes a redirect_url that the human user must open in a browser to finish the action there. Approving advances the bill's approval chain, exactly as approving in the Ramp web app does: depending on the business's payment-release settings, a bill that becomes fully approved with payment details and a payment date already set may proceed to payment automatically. After an approval, the response reports the bill's resulting payment state: whether any of its payments has been initiated (payment_initiated \u2014 this includes earlier partial payments; a chain-completing approval may have just added one) and the earliest such payment date (payment_date) \u2014 so you can inform the user. This tool never schedules payments or edits payment details; payment scheduling and release are managed in the Ramp web app \u2014 hand the user the bill_url returned on success.",
        "properties": {
          "action_type": {
            "enum": [
              "APPROVE",
              "REJECT"
            ],
            "title": "Action Type",
            "type": "string"
          },
          "bill_id": {
            "description": "The UUID of the bill to approve or reject.",
            "title": "Bill Id",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "reason": {
            "default": null,
            "nullable": true,
            "title": "Reason",
            "type": "string"
          }
        },
        "required": [
          "action_type",
          "bill_id",
          "rationale"
        ],
        "title": "ApproveOrRejectBill",
        "type": "object"
      },
      "ApproveOrRejectReimbursementRequestBody": {
        "description": "Approve or reject an employee reimbursement request for an out-of-pocket expense.\n\nUse this tool when the user wants to approve or reject a reimbursement.\nReimbursements are employee-submitted requests for reimbursement of out-of-pocket expenses.\nCommon usage patterns: \"approve this reimbursement\", \"reject the expense\", \"yes, reimburse them\", \"no, don't reimburse this\".\nThis tool is specifically for employee reimbursements and is NOT for approving/rejecting card transactions\nor unified requests (spend allocations, purchase orders).",
        "properties": {
          "action": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReimbursementActionRequestBody"
              }
            ],
            "description": "The action to take on the reimbursement: approve or reject."
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "reimbursement_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "description": "The ID of the reimbursement to approve or reject."
          },
          "thoughts": {
            "default": null,
            "description": "Deprecated and ignored; omit it.",
            "nullable": true,
            "title": "Thoughts",
            "type": "string"
          },
          "user_reason": {
            "default": null,
            "description": "Optional notes from the user explaining their approval or rejection decision. This will be recorded in the approval history and may be visible to other approvers and the reimbursement submitter. Use this when the user provides context like 'approve it because...' or 'reject because...'.",
            "nullable": true,
            "title": "User Reason",
            "type": "string"
          }
        },
        "required": [
          "action",
          "rationale",
          "reimbursement_id"
        ],
        "title": "ApproveOrRejectReimbursement",
        "type": "object"
      },
      "ApproveOrRejectRequestRequestBody": {
        "description": "Approve or reject a pending unified request for spend allocation (fund), purchase order, or procurement approval.\n\nUse this tool when a user wants to approve or reject a specific request they have identified or referenced.\nCommon usage patterns: \"approve this request\", \"reject this request\", \"accept the request\", \"deny this\",\n\"authorize this\", \"yes approve it\", \"decline this request\".\nThis tool is specifically for unified requests (spend allocations, purchase orders, procurement approvals)\nand is NOT for approving expenses like corporate card transactions or reimbursements.\nThe user must have proper approval authority for the request.\nAdmin approval overrides are not available through this tool; use the app instead.",
        "properties": {
          "action": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RequestActionRequestBody"
              }
            ],
            "description": "The action to perform: APPROVE or REJECT. ADMIN_APPROVE is unsupported; use the app for admin approval."
          },
          "approval_instance_uuid": {
            "default": null,
            "description": "Retained for compatibility. Admin approval is unsupported regardless of this step UUID; do not request a step selection.",
            "nullable": true,
            "title": "Approval Instance Uuid",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "reason": {
            "default": null,
            "description": "Optional notes from the user explaining their approval or rejection decision. Recorded in the approval history and may be visible to other approvers and the requester. Use this when the user provides context like 'approve it because...' or 'reject because...'.",
            "nullable": true,
            "title": "Reason",
            "type": "string"
          },
          "thoughts": {
            "default": null,
            "description": "Deprecated and ignored; omit it.",
            "nullable": true,
            "title": "Thoughts",
            "type": "string"
          },
          "unified_request_id": {
            "description": "The unified request ID to act upon",
            "nullable": true,
            "title": "Unified Request Id",
            "type": "string"
          },
          "user_confirmed_admin_approval": {
            "default": false,
            "description": "Retained for compatibility. Admin approval is unsupported regardless of this value; do not request confirmation.",
            "title": "User Confirmed Admin Approval",
            "type": "boolean"
          }
        },
        "required": [
          "action",
          "rationale",
          "unified_request_id"
        ],
        "title": "ApproveOrRejectRequest",
        "type": "object"
      },
      "ApproveOrRejectTransactionRequestBody": {
        "description": "Approve or reject a transaction awaiting your review.\n\nUse this tool when the user wants to approve a transaction, send it back for\nrevisions, or require the cardholder to repay the full amount. The acting user\nmust be an assigned approver on the current approval step to approve a pending\nchain. Admin overrides are manual-only on the transaction page, even when the\nUI shows an enabled Approve action; a reason does not make them agent-executable.\nFull repayment is always the full amount; the cardholder chooses how to repay.\n\nRejecting always needs a `user_reason`. Approving also needs one when the\ntransaction is flagged for a policy violation, is missing a receipt, memo, or\nother items, was sent back to the cardholder, was marked accidental, or has a\nrequested or failed repayment. The reason must be the user's own words, passed\nverbatim: ask the user for it (once for a whole batch) and never write one yourself.\nApproving an already approved transaction succeeds with `already_applied` set.",
        "properties": {
          "action": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TransactionActionRequestBody"
              }
            ],
            "description": "Action to perform: APPROVE, REJECT_AND_REQUEST_CHANGES (send back to cardholder with requested revisions), or REJECT_AND_REQUEST_FULL_REPAYMENT (require employee repayment)."
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "thoughts": {
            "default": null,
            "description": "Deprecated and ignored; omit it.",
            "nullable": true,
            "title": "Thoughts",
            "type": "string"
          },
          "transaction_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "description": "The transaction to act on"
          },
          "user_reason": {
            "default": null,
            "description": "The user's own explanation for the decision, passed verbatim. Required for REJECT_AND_REQUEST_CHANGES and REJECT_AND_REQUEST_FULL_REPAYMENT. Required for APPROVE when the transaction is flagged for a policy violation, is missing a receipt, memo, or other items, was sent back, was marked accidental, or has a requested or failed repayment. Never write, paraphrase, or infer a reason: ask the user, once for a batch.",
            "nullable": true,
            "title": "User Reason",
            "type": "string"
          }
        },
        "required": [
          "action",
          "rationale",
          "transaction_id"
        ],
        "title": "ApproveOrRejectTransaction",
        "type": "object"
      },
      "ApproverAssignment": {
        "properties": {
          "delegate_for": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UserRef"
              }
            ],
            "default": null,
            "nullable": true
          },
          "group": {
            "allOf": [
              {
                "$ref": "#/components/schemas/GroupRef"
              }
            ],
            "default": null,
            "nullable": true
          },
          "kind": {
            "$ref": "#/components/schemas/AssignmentKind"
          },
          "relative_to_user": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UserRef"
              }
            ],
            "default": null,
            "nullable": true
          }
        },
        "required": [
          "kind"
        ],
        "title": "ApproverAssignment",
        "type": "object"
      },
      "ArchiveSpendAllocationOutput": {
        "properties": {
          "message": {
            "description": "Result message",
            "title": "Message",
            "type": "string"
          },
          "success": {
            "description": "Whether the archive operation succeeded",
            "title": "Success",
            "type": "boolean"
          }
        },
        "required": [
          "message",
          "success"
        ],
        "title": "ArchiveSpendAllocationOutput",
        "type": "object"
      },
      "ArchiveSpendAllocationToolRequestBody": {
        "description": "Archive a fund to prevent spend and hide it from users. Use when an admin asks to\nterminate, cancel, deactivate, shut off, close, delete, or remove funds or their\nvendor/virtual cards. Locks the fund's cards and stops spend; reversible.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "spend_allocation_uuid": {
            "description": "The UUID of the spend allocation to archive",
            "title": "Spend Allocation Uuid",
            "type": "string"
          }
        },
        "required": [
          "rationale",
          "spend_allocation_uuid"
        ],
        "title": "ArchiveSpendAllocationTool",
        "type": "object"
      },
      "AskRampContinueRequestRequestBody": {
        "additionalProperties": false,
        "properties": {
          "input_request_id": {
            "default": null,
            "description": "Must exactly match the active input_request.request_id returned by AskRamp.",
            "minLength": 1,
            "nullable": true,
            "title": "Input Request Id",
            "type": "string"
          },
          "response": {
            "maxLength": 20000,
            "minLength": 1,
            "title": "Response",
            "type": "string"
          },
          "wait_seconds": {
            "default": 55,
            "maximum": 55,
            "minimum": 0,
            "title": "Wait Seconds",
            "type": "integer"
          }
        },
        "required": [
          "response"
        ],
        "title": "AskRampContinueRequest",
        "type": "object"
      },
      "AskRampExternalError": {
        "additionalProperties": false,
        "properties": {
          "code": {
            "$ref": "#/components/schemas/AskRampExternalErrorCode"
          },
          "message": {
            "title": "Message",
            "type": "string"
          }
        },
        "required": [
          "code",
          "message"
        ],
        "title": "AskRampExternalError",
        "type": "object"
      },
      "AskRampExternalErrorCode": {
        "enum": [
          "failed_precondition",
          "internal",
          "invalid_argument",
          "not_found",
          "permission_denied"
        ],
        "title": "AskRampExternalErrorCode",
        "type": "string"
      },
      "AskRampExternalResult": {
        "additionalProperties": false,
        "properties": {
          "answer": {
            "default": null,
            "nullable": true,
            "title": "Answer",
            "type": "string"
          },
          "error": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AskRampExternalError"
              }
            ],
            "default": null,
            "nullable": true
          },
          "input_request": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AskRampInputRequest"
              }
            ],
            "default": null,
            "nullable": true
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "poll_after_ms": {
            "default": null,
            "nullable": true,
            "title": "Poll After Ms",
            "type": "integer"
          },
          "session_id": {
            "format": "uuid",
            "title": "Session Id",
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/AskRampExternalStatus"
          },
          "steps": {
            "description": "Ordered names of the tools AskRamp has called in this session so far, with consecutive repeats collapsed. Present for every status.",
            "items": {
              "type": "string"
            },
            "title": "Steps",
            "type": "array"
          }
        },
        "required": [
          "message",
          "session_id",
          "status",
          "steps"
        ],
        "title": "AskRampExternalResult",
        "type": "object"
      },
      "AskRampExternalStatus": {
        "enum": [
          "completed",
          "failed",
          "input_required",
          "working"
        ],
        "title": "AskRampExternalStatus",
        "type": "string"
      },
      "AskRampGetRequestRequestBody": {
        "additionalProperties": false,
        "properties": {
          "wait_seconds": {
            "default": 55,
            "maximum": 55,
            "minimum": 0,
            "title": "Wait Seconds",
            "type": "integer"
          }
        },
        "title": "AskRampGetRequest",
        "type": "object"
      },
      "AskRampInputRequest": {
        "additionalProperties": false,
        "properties": {
          "prompt": {
            "title": "Prompt",
            "type": "string"
          },
          "request_id": {
            "title": "Request Id",
            "type": "string"
          }
        },
        "required": [
          "prompt",
          "request_id"
        ],
        "title": "AskRampInputRequest",
        "type": "object"
      },
      "AskRampStartRequestRequestBody": {
        "additionalProperties": false,
        "properties": {
          "question": {
            "maxLength": 20000,
            "minLength": 1,
            "title": "Question",
            "type": "string"
          },
          "wait_seconds": {
            "default": 55,
            "maximum": 55,
            "minimum": 0,
            "title": "Wait Seconds",
            "type": "integer"
          }
        },
        "required": [
          "question"
        ],
        "title": "AskRampStartRequest",
        "type": "object"
      },
      "AssignmentKind": {
        "enum": [
          "DELEGATE",
          "GROUP",
          "INDIVIDUAL",
          "RELATIVE"
        ],
        "title": "AssignmentKind",
        "type": "string"
      },
      "AsyncJobStatus": {
        "enum": [
          "COMPLETE",
          "FAILED",
          "IN_PROGRESS",
          "PENDING",
          "RETRYING"
        ],
        "title": "AsyncJobStatus",
        "type": "string"
      },
      "AtlasPnrFlightSegmentStatus": {
        "enum": [
          "cancelled",
          "confirmed",
          "no_show",
          "pending",
          "schedule_changed",
          "unknown",
          "waitlisted"
        ],
        "title": "AtlasPnrFlightSegmentStatus",
        "type": "string"
      },
      "AtlasPnrHotelStayStatus": {
        "enum": [
          "cancelled",
          "confirmed",
          "pending",
          "unknown"
        ],
        "title": "AtlasPnrHotelStayStatus",
        "type": "string"
      },
      "AtlasTicketType": {
        "enum": [
          "multi_ticket",
          "single_ticket"
        ],
        "title": "AtlasTicketType",
        "type": "string"
      },
      "AttachReceiptSuccess": {
        "properties": {
          "receipt_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "description": "UUID of the receipt that was attached"
          },
          "transaction_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "description": "UUID of the transaction the receipt was attached to"
          }
        },
        "required": [
          "receipt_uuid",
          "transaction_uuid"
        ],
        "title": "AttachReceiptSuccess",
        "type": "object"
      },
      "AttachReceiptToReimbursementRequestBody": {
        "description": "Attach an existing receipt to one of the user's draft reimbursements, instead of creating a new reimbursement. The draft must not already have a receipt, and the receipt must not be attached to a transaction or another reimbursement. Returns the receipt and reimbursement UUIDs.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "receipt_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "description": "UUID of the receipt to attach. This should come from a previously created receipt."
          },
          "reimbursement_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "description": "UUID of the draft reimbursement to attach the receipt to."
          }
        },
        "required": [
          "rationale",
          "receipt_uuid",
          "reimbursement_uuid"
        ],
        "title": "AttachReceiptToReimbursement",
        "type": "object"
      },
      "AttachReceiptToReimbursementSuccess": {
        "properties": {
          "receipt_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "description": "UUID of the receipt that was attached"
          },
          "reimbursement_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "description": "UUID of the reimbursement the receipt was attached to"
          }
        },
        "required": [
          "receipt_uuid",
          "reimbursement_uuid"
        ],
        "title": "AttachReceiptToReimbursementSuccess",
        "type": "object"
      },
      "AttachReceiptToTransactionRequestBody": {
        "description": "Attach an existing receipt (by receipt_uuid) to a card transaction. Use it for receipts automatic matching left unmatched, or when the user wants a receipt on a specific charge, including moving it off the wrong one. Not a routine step after uploading a new receipt. Confirm the pairing with the user first; if the receipt is on another card transaction, say it will be moved. Fails if the receipt is on a reimbursement or the transaction is declined. Safe to retry.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "receipt_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "description": "UUID of the receipt to attach, e.g. from CreateReceipt or a receipt listing. Not the upload file_id or internal receipt_id."
          },
          "transaction_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "description": "UUID of the transaction to attach the receipt to."
          }
        },
        "required": [
          "rationale",
          "receipt_uuid",
          "transaction_uuid"
        ],
        "title": "AttachReceiptToTransaction",
        "type": "object"
      },
      "AttachVendorDocumentRequestBody": {
        "description": "Attach a vendor document from base64-encoded file content.\n\nUse this for external callers such as CLI or MCP that have raw file content\nand want to attach a document directly to a vendor profile using Ramp's\nexisting vendor document upload flow.",
        "properties": {
          "content_type": {
            "description": "MIME type of the file, for example \"application/pdf\".",
            "title": "Content Type",
            "type": "string"
          },
          "document_category": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayeeDocumentCategoryRequestBody"
              }
            ],
            "description": "Document category to store on the vendor document."
          },
          "file_content_base64": {
            "description": "Base64-encoded file content for the vendor document.",
            "title": "File Content Base64",
            "type": "string"
          },
          "filename": {
            "description": "Original filename with extension, for example \"contract.pdf\".",
            "title": "Filename",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "vendor_uuid": {
            "default": null,
            "description": "UUID of the vendor/payee to attach the document to. If omitted, the document is uploaded into the matching flow.",
            "nullable": true,
            "title": "Vendor Uuid",
            "type": "string"
          }
        },
        "required": [
          "content_type",
          "document_category",
          "file_content_base64",
          "filename",
          "rationale"
        ],
        "title": "AttachVendorDocument",
        "type": "object"
      },
      "AttachVendorDocumentResult": {
        "properties": {
          "document_category": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayeeDocumentCategory"
              }
            ],
            "description": "Document category stored on the vendor document."
          },
          "document_url": {
            "default": null,
            "description": "Temporary download URL for the uploaded document, when available.",
            "nullable": true,
            "title": "Document Url",
            "type": "string"
          },
          "document_uuid": {
            "description": "UUID of the uploaded vendor document.",
            "title": "Document Uuid",
            "type": "string"
          },
          "original_filename": {
            "description": "Original filename stored on the document.",
            "title": "Original Filename",
            "type": "string"
          },
          "vendor_uuid": {
            "default": null,
            "description": "UUID of the vendor the document is attached to, if known.",
            "nullable": true,
            "title": "Vendor Uuid",
            "type": "string"
          }
        },
        "required": [
          "document_category",
          "document_uuid",
          "original_filename"
        ],
        "title": "AttachVendorDocumentResult",
        "type": "object"
      },
      "AttachedVendorDocument": {
        "properties": {
          "already_attached": {
            "description": "True when the same file was already attached to this vendor, so no new document was created.",
            "title": "Already Attached",
            "type": "boolean"
          },
          "document_uuid": {
            "description": "UUID of the vendor document.",
            "title": "Document Uuid",
            "type": "string"
          },
          "original_filename": {
            "description": "Original filename of the document.",
            "title": "Original Filename",
            "type": "string"
          }
        },
        "required": [
          "already_attached",
          "document_uuid",
          "original_filename"
        ],
        "title": "AttachedVendorDocument",
        "type": "object"
      },
      "AttachmentInfo": {
        "properties": {
          "document_id": {
            "title": "Document Id",
            "type": "string"
          },
          "download_url": {
            "default": null,
            "description": "Short-lived (1 hour) download URL for the file's latest version. Null when the acting user cannot read this document.",
            "nullable": true,
            "title": "Download Url",
            "type": "string"
          },
          "field_id": {
            "default": null,
            "description": "Intake form field the file answers; null for request uploads and approval-workflow form files.",
            "nullable": true,
            "title": "Field Id",
            "type": "string"
          },
          "field_label": {
            "default": null,
            "description": "Label of field_id, when set.",
            "nullable": true,
            "title": "Field Label",
            "type": "string"
          },
          "filename": {
            "title": "Filename",
            "type": "string"
          },
          "source": {
            "description": "request: uploaded to the request's or its purchase order's documents. form_field: uploaded as an answer to an intake or approval-workflow form field.",
            "enum": [
              "form_field",
              "request"
            ],
            "title": "Source",
            "type": "string"
          },
          "uploaded_at": {
            "title": "Uploaded At",
            "type": "string"
          }
        },
        "required": [
          "document_id",
          "filename",
          "source",
          "uploaded_at"
        ],
        "title": "AttachmentInfo",
        "type": "object"
      },
      "AttendeeFieldState": {
        "properties": {
          "attendee_user_uuids": {
            "description": "Saved Ramp attendee UUIDs. Include these with the saved guest names and managed IDs when replacing attendees.",
            "items": {
              "$ref": "#/components/schemas/EntityUUIDStr"
            },
            "title": "Attendee User Uuids",
            "type": "array"
          },
          "description": {
            "title": "Description",
            "type": "string"
          },
          "external_attendee_ids": {
            "description": "Saved managed external attendee UUIDs. Include every ID to keep when replacing attendees; resubmission requires external_attendee_ids_enabled.",
            "items": {
              "$ref": "#/components/schemas/EntityUUIDStr"
            },
            "title": "External Attendee Ids",
            "type": "array"
          },
          "external_attendee_ids_enabled": {
            "default": false,
            "description": "Whether this business supports managed external attendee IDs. Name-only guests do not require this feature. Attendee edits are draft-only.",
            "title": "External Attendee Ids Enabled",
            "type": "boolean"
          },
          "fulfilled": {
            "title": "Fulfilled",
            "type": "boolean"
          },
          "non_ramp_attendees": {
            "description": "Saved name-only guests, exactly as entered. Include every name to keep when replacing attendees.",
            "items": {
              "type": "string"
            },
            "title": "Non Ramp Attendees",
            "type": "array"
          },
          "required": {
            "title": "Required",
            "type": "boolean"
          }
        },
        "required": [
          "description",
          "fulfilled",
          "required"
        ],
        "title": "AttendeeFieldState",
        "type": "object"
      },
      "AttendeeInfo": {
        "description": "An attendee on the transaction.",
        "properties": {
          "name": {
            "default": null,
            "description": "Display name of the attendee",
            "nullable": true,
            "title": "Name",
            "type": "string"
          },
          "user_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "description": "UUID of the Ramp user, if the attendee is a Ramp user",
            "nullable": true
          }
        },
        "title": "AttendeeInfo",
        "type": "object"
      },
      "AttendeeSelectionsRequestBody": {
        "description": "Attendee selection for a transaction. This is an upsert - provide the complete set of attendees.",
        "properties": {
          "attendee_uuids": {
            "default": null,
            "description": "UUIDs of Ramp user attendees. Must be valid UUIDs, never integer IDs. Obtainable via MatchUserToTransaction or GetOrgChart or calendar data.",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "title": "Attendee Uuids",
            "type": "array"
          },
          "external_attendee_ids": {
            "default": null,
            "description": "IDs of managed external attendees from transaction context. Use only when the tool context provides a Managed External Attendee ID.",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "title": "External Attendee Ids",
            "type": "array"
          },
          "include_self_as_attendee": {
            "default": true,
            "description": "Whether to automatically include the acting user as an attendee.",
            "title": "Include Self As Attendee",
            "type": "boolean"
          },
          "non_ramp_attendees": {
            "default": null,
            "description": "Free-text names of non-Ramp attendees. Last resort when MatchUserToTransaction cannot find a matching Ramp user.",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "title": "Non Ramp Attendees",
            "type": "array"
          }
        },
        "title": "AttendeeSelections",
        "type": "object"
      },
      "AttentionFeedActionMetadata": {
        "description": "Stable blocking effects and completion path for an attention-feed task.",
        "properties": {
          "agent_action": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AttentionFeedAgentAction"
              }
            ],
            "description": "Available agent action or a typed handoff/unsupported status."
          },
          "blocking_effects": {
            "description": "Possible task-type effects; not proof this item caused a lock.",
            "items": {
              "$ref": "#/components/schemas/AttentionFeedBlockingEffect"
            },
            "title": "Blocking Effects",
            "type": "array"
          }
        },
        "required": [
          "agent_action"
        ],
        "title": "AttentionFeedActionMetadata",
        "type": "object"
      },
      "AttentionFeedAgentAction": {
        "description": "The supported agent action for an attention-feed task.",
        "properties": {
          "required_inputs": {
            "description": "Inputs to copy from this item's context into the agent tool.",
            "items": {
              "$ref": "#/components/schemas/AttentionFeedAgentActionInput"
            },
            "title": "Required Inputs",
            "type": "array"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AttentionFeedAgentActionStatus"
              }
            ],
            "description": "Typed availability of an agent completion path."
          },
          "tool_name": {
            "default": null,
            "description": "Stable agent tool name when status is available.",
            "nullable": true,
            "title": "Tool Name",
            "type": "string"
          }
        },
        "required": [
          "status"
        ],
        "title": "AttentionFeedAgentAction",
        "type": "object"
      },
      "AttentionFeedAgentActionInput": {
        "description": "An input required by the task's agent action.",
        "properties": {
          "context_path": {
            "default": null,
            "description": "Dot path in this item's context when source is task_context.",
            "nullable": true,
            "title": "Context Path",
            "type": "string"
          },
          "description": {
            "default": null,
            "description": "Additional input guidance when a context path is insufficient.",
            "nullable": true,
            "title": "Description",
            "type": "string"
          },
          "name": {
            "description": "Input parameter expected by the agent tool.",
            "title": "Name",
            "type": "string"
          },
          "source": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AttentionFeedAgentActionInputSource"
              }
            ],
            "description": "Where the agent obtains this input."
          }
        },
        "required": [
          "name",
          "source"
        ],
        "title": "AttentionFeedAgentActionInput",
        "type": "object"
      },
      "AttentionFeedAgentActionInputSource": {
        "description": "Where an agent obtains a required action input.",
        "enum": [
          "task_context",
          "user_or_agent"
        ],
        "title": "AttentionFeedAgentActionInputSource",
        "type": "string"
      },
      "AttentionFeedAgentActionStatus": {
        "description": "Whether an attention-feed task can be completed by an agent.",
        "enum": [
          "available",
          "browser_handoff",
          "unsupported"
        ],
        "title": "AttentionFeedAgentActionStatus",
        "type": "string"
      },
      "AttentionFeedBlockingEffect": {
        "description": "A stable spending effect that can remain active while a task is overdue.",
        "enum": [
          "physical_card_locked"
        ],
        "title": "AttentionFeedBlockingEffect",
        "type": "string"
      },
      "AttentionFeedItem": {
        "description": "A single hydrated homepage task-feed item.",
        "properties": {
          "action_metadata": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AttentionFeedActionMetadata"
              }
            ],
            "default": null,
            "description": "Stable blocking effects and agent completion path, when task hydration succeeds.",
            "nullable": true
          },
          "context": {
            "default": null,
            "description": "LIST-hydrated task context for the agent to inspect.",
            "nullable": true,
            "title": "Context",
            "type": "object"
          },
          "error": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TaskFeedErrorInfo"
              }
            ],
            "default": null,
            "description": "Hydration error for this item, if it could not be loaded.",
            "nullable": true
          },
          "task_snapshot_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "description": "Task snapshot UUID."
          },
          "task_type": {
            "default": null,
            "description": "Task type identifier for this item, when hydration succeeds.",
            "nullable": true,
            "title": "Task Type",
            "type": "string"
          }
        },
        "required": [
          "task_snapshot_uuid"
        ],
        "title": "AttentionFeedItem",
        "type": "object"
      },
      "AttentionFeedSection": {
        "description": "A homepage task-feed section with compact hydrated items.",
        "properties": {
          "display_name": {
            "description": "Human-readable section name.",
            "title": "Display Name",
            "type": "string"
          },
          "error": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TaskFeedErrorInfo"
              }
            ],
            "default": null,
            "description": "Section-level load or hydration error, if one occurred.",
            "nullable": true
          },
          "items": {
            "description": "Hydrated task items for this section.",
            "items": {
              "$ref": "#/components/schemas/AttentionFeedItem"
            },
            "title": "Items",
            "type": "array"
          },
          "next_cursor": {
            "default": null,
            "description": "Opaque cursor for fetching more tasks in this section.",
            "nullable": true,
            "title": "Next Cursor",
            "type": "string"
          },
          "section_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TaskFeedSectionType"
              }
            ],
            "description": "Homepage section type."
          },
          "total_count": {
            "description": "Total number of outstanding tasks in this section.",
            "title": "Total Count",
            "type": "integer"
          }
        },
        "required": [
          "display_name",
          "section_type",
          "total_count"
        ],
        "title": "AttentionFeedSection",
        "type": "object"
      },
      "AttentionFeedSectionRequestRequestBody": {
        "description": "Pagination request for a specific homepage task-feed section.",
        "properties": {
          "cursor": {
            "default": null,
            "description": "Opaque pagination cursor copied from this section's next_cursor.",
            "nullable": true,
            "title": "Cursor",
            "type": "string"
          },
          "limit": {
            "default": 20,
            "description": "Number of tasks to return for this section. Use 0 for counts only.",
            "maximum": 100,
            "minimum": 0,
            "title": "Limit",
            "type": "integer"
          },
          "section_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TaskFeedSectionTypeRequestBody"
              }
            ],
            "description": "Section returned by a prior attention-feed response."
          }
        },
        "required": [
          "section_type"
        ],
        "title": "AttentionFeedSectionRequest",
        "type": "object"
      },
      "AuditLogAgentDetailsResource": {
        "properties": {
          "agent_name": {
            "description": "Name of the agent that executed the action",
            "type": "string"
          }
        },
        "required": [
          "agent_name"
        ],
        "type": "object"
      },
      "AuditLogEventResource": {
        "example": {
          "actor_details": {
            "actor_type": "ramp"
          },
          "actor_id": "c4e416c9-9239-42ac-a4ca-81ccef8c8053",
          "actor_type": "ramp",
          "additional_details": "Removed vendor owner",
          "event_details": {
            "references": [
              {
                "label": "Payee - Big Mouth Coffee Roasters",
                "resource_name": "Vendor / Merchant",
                "url": "/vendors/profile/bcf5d623-0429-4676-8750-e52e1f2e2d60/overview"
              }
            ]
          },
          "event_time": "2025-10-03T06:26:57+00:00",
          "event_type": "Edited vendor field",
          "id": "0199a8c0-b40a-7c1e-bb8e-e8f850c29947",
          "primary_reference": {
            "id": "bcf5d623-0429-4676-8750-e52e1f2e2d60",
            "label": "Payee - Big Mouth Coffee Roasters",
            "resource_name": "Vendor / Merchant",
            "url": "/vendors/profile/bcf5d623-0429-4676-8750-e52e1f2e2d60/overview"
          },
          "user_details": null
        },
        "properties": {
          "actor_details": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ActorDetailsResource"
              }
            ],
            "description": "Additional details of the actor"
          },
          "actor_id": {
            "description": "Unique identifier of the actor",
            "format": "uuid",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "actor_type": {
            "description": "The type of the actor that the audit log event is attributable to",
            "enum": [
              "policy_agent",
              "ramp",
              "spend_request_agent",
              "user"
            ],
            "type": "string",
            "x-enum-descriptions": {
              "spend_request_agent": "Spend Request Agent activity."
            }
          },
          "additional_details": {
            "description": "Additional details of the audit log event",
            "nullable": true,
            "type": "string"
          },
          "agent_details": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AuditLogAgentDetailsResource"
              }
            ],
            "description": "Agent that executed the action for the user",
            "nullable": true
          },
          "event_details": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EventDetailsResource"
              }
            ],
            "description": "Details of the audit log event"
          },
          "event_schema": {
            "description": "Machine-readable schema identifier, or null for unsupported events. Present only for clients on v_2026_11_13 or later with event-specific audit schemas enabled. Discover schemas with GET /audit-logs/event-schemas.",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "event_specific_details": {
            "additionalProperties": {},
            "description": "Details matching event_schema; missing or redacted fields are null. Null for unsupported events. Present only for clients on v_2026_11_13 or later with event-specific audit schemas enabled.",
            "nullable": true,
            "readOnly": true,
            "type": "object"
          },
          "event_time": {
            "description": "Timestamp of the audit log event",
            "format": "date-time",
            "type": "string"
          },
          "event_type": {
            "description": "Type of the audit log event",
            "enum": [
              "1099 additional spend imported",
              "ABK agent blocked on user",
              "ABK agent review requested",
              "ABK agent schedule failed",
              "ABK agent started",
              "ABK task instructions updated",
              "AI custom field config executed",
              "AI onboarding answers updated",
              "AI provider data re-sync requested",
              "AI savings opportunity found",
              "AI savings opportunity reminder sent",
              "AI savings opportunity updated",
              "AI spend anomaly review state changed",
              "AI spend spike alert settings changed",
              "AI spend spike setup completed",
              "AI spend weekly briefing started",
              "AI usage limits updated",
              "AP intake coworker setup completed",
              "Account closed",
              "Account details previewed",
              "Account details viewed",
              "Account document downloaded",
              "Account number deleted",
              "Account number generated",
              "Account number renamed",
              "Account opened",
              "Account renamed",
              "Accounting ai auto mark ready",
              "Accounting coding rules updated",
              "Accounting fields updated",
              "Accounting fixed asset changed",
              "Accounting fixed asset class changed",
              "Accounting lease changed",
              "Accounting provider access changed",
              "Accounting settings updated",
              "Accounting split templates updated",
              "Activated card",
              "Ad-hoc journal entry creation setting changed",
              "Added bill field",
              "Added card acceptance policy",
              "Added procurement field",
              "Added user to funds",
              "Added vendor field",
              "Admin changed email",
              "Admin changed phone",
              "Agent access request resolved",
              "Agent access requested",
              "Agent created",
              "Agent current version changed",
              "Agent permissions updated",
              "Agent session context updated",
              "Agent version created",
              "Agent version published",
              "Airline negotiated fare changed",
              "Alloy evaluation synchronized",
              "Amortization schedule updated",
              "Analysis archive status changed",
              "Analysis email requested",
              "Analysis internal feedback added",
              "Analysis renamed",
              "Analysis sharing changed",
              "Analysis started",
              "App Store app disconnected",
              "Applied agent suggestion",
              "Approval authority changed",
              "Approval carried over to a new booking request",
              "Approval chain updated",
              "Approval policy set as default",
              "Approval projection repaired",
              "Approval step added",
              "Approval step approved",
              "Approval step rejected",
              "Approval step skipped",
              "Approval step terminated",
              "Approval steps skipped",
              "Approved Ramp Card edit request with modifications",
              "Approved Ramp Card edit request",
              "Approved Ramp Card request with modifications",
              "Approved Ramp Card request",
              "Approved by manager",
              "Approved card edit request with modifications",
              "Approved card edit request",
              "Approved funds edit request with modifications",
              "Approved funds edit request",
              "Approved individual reused",
              "Approved new card request with modifications",
              "Approved new card request",
              "Approved procurement change request",
              "Approved request for new funds with modifications",
              "Approved request for new funds",
              "Ascenda credit redeemed",
              "Assistant card details access changed",
              "Attendee split",
              "Authorization letter downloaded",
              "Automatic investment transfer canceled",
              "Automatic rule management actions reviewed",
              "Automation deleted",
              "Bank account ACH details viewed",
              "Bank account balance export requested",
              "Bank account entity owner changed",
              "Bank account sensitive details viewed",
              "Bank account updated",
              "Bank letter downloaded",
              "Bank statement deleted",
              "Bank transaction export requested",
              "Bill Pay policy files retained",
              "Bill Pay setup progress updated",
              "Bill approvals regenerated",
              "Bill created by AP coworker",
              "Bill linked to PO",
              "Bill linked to contract",
              "Bill linked",
              "Bill pay AP coworker questions answered",
              "Bill pay accepted PDR bank account ownership match",
              "Bill pay accepted sync for bank account from vendor network",
              "Bill pay accepted sync for vendor card acceptance policy from vendor network",
              "Bill pay accepted sync for vendor check mailing address from vendor network",
              "Bill pay accepted sync for vendor information from vendor network",
              "Bill pay accepted sync for vendor tax info from vendor network",
              "Bill pay accounting manual user action",
              "Bill pay accounting sync triggered",
              "Bill pay accrual synced",
              "Bill pay approval policy updated",
              "Bill pay automatic card payment no longer eligible",
              "Bill pay automatic card payment",
              "Bill pay bank account updated",
              "Bill pay batch payment initiated",
              "Bill pay business vendor unlinked from vendor network",
              "Bill pay card delivery",
              "Bill pay check address update",
              "Bill pay check tracking update",
              "Bill pay deleted bill",
              "Bill pay delivered payment",
              "Bill pay dismissed fraud alert",
              "Bill pay edited payee address",
              "Bill pay edited payment method",
              "Bill pay initiated payment refund",
              "Bill pay mailed check payment",
              "Bill pay marked as paid",
              "Bill pay marked as unpaid",
              "Bill pay matched transaction to bill",
              "Bill pay matched transfer to bill",
              "Bill pay payment failed",
              "Bill pay payment posted",
              "Bill pay payment reversal failed",
              "Bill pay payment reversal posted",
              "Bill pay payment reversal succeeded",
              "Bill pay recurrence info changed for recurring series",
              "Bill pay rejected PDR bank account ownership match",
              "Bill pay rejected sync for bank account from vendor network",
              "Bill pay rejected sync for vendor card acceptance policy from vendor network",
              "Bill pay rejected sync for vendor check mailing address from vendor network",
              "Bill pay rejected sync for vendor information from vendor network",
              "Bill pay rejected sync for vendor tax info from vendor network",
              "Bill pay retried payment",
              "Bill pay returned funds",
              "Bill pay submission policy updated",
              "Bill pay unmatched transfer from bill",
              "Bill unlinked from PO",
              "Bill unlinked from contract",
              "Bill unlinked",
              "Billing bank account updated",
              "Billing charge posted",
              "Billing config updated",
              "Billing fee calculated",
              "Billing group primary business changed",
              "Billing refund planned",
              "Billing schedule invoice recipients updated",
              "Billing schedule invoice template updated",
              "Blank canvas workflow execution updated",
              "Blank canvas workflow pause status updated",
              "Booking action by travel agency",
              "Booking fields changed",
              "Booking request approval policy updated",
              "Booking request canceled: fare sold out",
              "Booking request marked as failed",
              "Bookkeeping agent browser control changed",
              "Bookkeeping agent response stopped",
              "Briefing subscription created",
              "Brokerage order updated",
              "Browser agent visited site",
              "Browser login changed",
              "Browser policy changed",
              "Business bank account added",
              "Business bank account changed",
              "Business bank account removed",
              "Business communication preferences changed",
              "Cancel revision request",
              "Canceled physical card request",
              "Cancelled by customer",
              "Cancelled by ramp",
              "Card branding changed",
              "Card delivered",
              "Card limits by default changed",
              "Card offer accepted",
              "Card offer declined",
              "Card payment initiated (audit)",
              "Card payment initiated",
              "Card transaction accrual selections updated",
              "Cash Manager settings updated",
              "Cash agent recommendation updated",
              "Cash app rerun started",
              "Cash application agent action",
              "Cash flow category proposal accepted",
              "Cash manager recommendation reviewed",
              "Cashback redeemed",
              "Catalog CSV import submitted",
              "Catalog spend program reassigned",
              "Catalog spreadsheet draft saved",
              "Cellular ledger balance adjusted",
              "Change order workflow restarted due to change order request modification",
              "Changed bank account on bill",
              "Changed card holder",
              "Changed funds user",
              "Check PDF downloaded",
              "Check stop payment placed",
              "Check stop payment removed",
              "Checking Account terms accepted",
              "Checklist task groups changed",
              "Close task restored",
              "Close tasks self-assigned",
              "Combined contracts with this contract",
              "Communication sent",
              "Complete revision",
              "Compliance flag updated",
              "Compliance information synchronized",
              "Contract economics changed",
              "Contract family refresh requested",
              "Contract linked to card transaction",
              "Contract term transitioned",
              "Contract unlinked from card transaction",
              "Counterparty created",
              "Counterparty details changed",
              "Counterparty details configuration changed",
              "Counterparty details configuration created",
              "Counterparty details deleted",
              "Created accounting split line item",
              "Created card",
              "Created catalog items",
              "Created fund from purchase order",
              "Created merchant error",
              "Created unrecognized charge",
              "Created",
              "Custom connector updated",
              "Customer created via dashboard",
              "Customer payment deleted",
              "Debit settings updated",
              "Default card limits changed",
              "Default product access updated",
              "Deleted bill field",
              "Deleted card acceptance policy",
              "Deleted procurement field",
              "Deleted request draft",
              "Deleted vendor field",
              "Deleted",
              "Demoted co-owner to member",
              "Detached funds from spend program",
              "Developer API client deleted",
              "Developer API client secret rotated",
              "Direct Bank account list updated",
              "Direct Bank connection added",
              "Direct Bank credentials activated",
              "Direct Bank credentials saved",
              "Dismissed agent suggestion",
              "DocuSign IAM Workflow updated",
              "Document labeled",
              "Document updated",
              "Docusign envelope updated",
              "Domain DNS verification removed",
              "Dormant funds automation changed",
              "Draft invite monthly limits changed",
              "Draft provenance recorded",
              "Draft vendor changed by AP coworker",
              "Draft vendor created",
              "Draft vendor deleted",
              "Draft vendor published",
              "Duplicate payment review confirmed",
              "Earn account opened",
              "Edited bill field",
              "Edited card acceptance policy",
              "Edited contract tracking setting",
              "Edited custom field",
              "Edited procurement field",
              "Edited spend allocation request",
              "Edited spend intent",
              "Edited tin",
              "Edited vendor field",
              "Edited wallet automation",
              "Email updated",
              "Emailed purchase order",
              "Employee handbook signatures requested",
              "Employee handbook unpublished",
              "Employee policy signed",
              "Entity created",
              "Entity deleted",
              "Exception given from dispute resolution",
              "Exception given from repayment",
              "Exception request approved",
              "Exception request cancelled",
              "Exception request denied",
              "Exception requested",
              "Expense accounting fields updated",
              "Expense fixed asset changed",
              "External agent credential rotated",
              "External agent key created",
              "External agent key revoked",
              "External agent key updated",
              "External agent wallet execution changed",
              "External ticket created asana",
              "External ticket created jira",
              "External ticket created linear",
              "External ticket created zendesk",
              "Fixture users deactivated",
              "Flex fee redeemed",
              "Flexible limits default changed",
              "Flight change outcome settled",
              "Flight change receipt regenerated",
              "Forecast chat updated",
              "Forecast custom input added",
              "Forecast custom input deleted",
              "Forecast custom input updated",
              "Forecast settings updated",
              "Forecast status updated",
              "Fraud Omni investigation started",
              "Fund limit change submitted",
              "Fund utilization alert settings changed",
              "Funds activated from reissued virtual card",
              "Funds attached to invite",
              "Generated renewal brief for contract",
              "Glass sales meeting booked",
              "Glass trial conversion updated",
              "Glass waitlist answers updated",
              "Governed change applied",
              "Governed change became stale",
              "Governed change rejected",
              "Governed change submitted for review",
              "Governed changes turned off",
              "Governed changes turned on",
              "HRIS integration setting updated",
              "IP allowlist updated",
              "Identity locked",
              "Identity unlocked",
              "Impersonation Disabled",
              "Impersonation Enabled",
              "Impersonation upgraded to read-write",
              "Incentive offer enrolled",
              "Initiated digital wallet provisioning (audit)",
              "Internal bank transfer link changed",
              "Internal impersonation upgraded to read-write",
              "International payment initiated",
              "Investment Account closed",
              "Investment Account created",
              "Investment Account opened",
              "Investment Account renamed",
              "Investment Account terms accepted",
              "Investment Account updated",
              "Invoice payment page requested",
              "Ironclad settings updated",
              "Ironclad workflow updated",
              "Issued Ramp Card",
              "Issued funds",
              "Issuing compliance information changed",
              "Item receipt accounting sync",
              "Journal entry batch retry requested",
              "Journal entry marked as already posted",
              "Large transfer initiated",
              "Left funds",
              "Legal agreement accepted",
              "Legal entity updated",
              "Linked funds to spend program",
              "Locked Ramp Card",
              "Locked access to funds",
              "Locked card",
              "Login methods updated",
              "Managed portfolio transfer updated",
              "Manager updated",
              "Manual redemption redeemed",
              "Mark as accidental",
              "Marketplace plugin changed",
              "Mass payout initiated",
              "Matched purchase order to transaction",
              "Matched transaction to purchase order",
              "Memo updated",
              "Merged vendors",
              "Name updated hris",
              "Name updated",
              "New vendor approval policy updated",
              "New virtual card issued for currency migration",
              "Nightly bank sync setting changed",
              "Notification sent due to change order request modification",
              "Notification sent due to purchase order request modification",
              "Outlook Calendar setup updated",
              "Partner billing disconnected",
              "Partner console created",
              "Passkey created",
              "Passkey deleted",
              "Passkey removal request denied",
              "Password reset required",
              "Password reset user",
              "Password updated user",
              "Payback cancelled",
              "Payback payment failed",
              "Payback payment manually paid",
              "Payback payment retried",
              "Payback payment succeeded",
              "Payback request approved by user",
              "Payback request cancelled by manager",
              "Payback request rejected by user",
              "Payback requested by manager",
              "Payback triggered by user",
              "Payee linked to accounting",
              "Payment run action",
              "Payment run updated",
              "Payment to new counterparty",
              "Payment updated",
              "Payout details request redirected",
              "Phone change request reviewed",
              "Phone change request superseded",
              "Phone change requested",
              "Phone updated",
              "Plan created",
              "Plan deleted",
              "Plan edited",
              "Plan settings updated",
              "Plugin demo sandbox created",
              "Plugin demo sandbox requested",
              "Points exchange redeemed",
              "Policy agent suggestion feedback submitted",
              "Post spend approval policy updated",
              "Preferred name updated",
              "Preview mode entered",
              "Procurement  unmatched purchase order from transaction",
              "Procurement  unmatched transaction from purchase order",
              "Procurement agent run completed",
              "Procurement change request approval policy updated",
              "Procurement send global form",
              "Procurement submit global form response",
              "Procurement vendor onboarding submitted",
              "Procurement vendor onboarding triggered",
              "Product access granted",
              "Product access revoked",
              "Product billing settings override",
              "Program entity restrictions changed",
              "Promoted member to co-owner",
              "Purchase order accounting sync created vendor",
              "Purchase order accounting sync failed",
              "Purchase order accounting sync success",
              "Purchase order accrual lines updated",
              "Purchase order accrual synced",
              "Purchase order delivery acknowledged",
              "Purchase order marked as synced",
              "Purchase orders marked as synced",
              "Question created",
              "Question deleted",
              "Question updated",
              "RFX clarification answered",
              "RFX clarification question submitted",
              "RFX close date changed",
              "RFX closed",
              "RFX collaborator added",
              "RFX collaborator removed",
              "RFX created",
              "RFX graded",
              "RFX publish approval rejected",
              "RFX published",
              "RFX response deadline changed",
              "RFX response redacted",
              "RFX response submitted",
              "RFX returned to draft",
              "RFX submitted for publish approval",
              "RFX vendor accepted",
              "RFX vendor added",
              "RFX vendor contact changed",
              "RFX vendor declined",
              "RFX vendor removed",
              "Ramp Card limit change submitted",
              "Ramp Card limit changed",
              "Receipt created",
              "Receipt deleted",
              "Receipt downloaded for transfer",
              "Receipt matched",
              "Receipt reprocessed",
              "Recurring task approvers updated",
              "Recurring task instructions changed",
              "Refund cleared",
              "Refund paid",
              "Reimbursement approval withdrawn",
              "Reimbursement bank account updated",
              "Reimbursement field changed",
              "Reimbursement from user",
              "Reimbursement manual payment recorded",
              "Reimbursement marked as unsynced",
              "Reimbursement policy agent suggestion feedback submitted",
              "Reimbursement submitted",
              "Reimbursement to user",
              "Reimbursements disabled",
              "Reimbursements enabled",
              "Reissued card",
              "Rejected Ramp Card edit request",
              "Rejected Ramp Card request",
              "Rejected card edit request",
              "Rejected funds edit request",
              "Rejected new card request",
              "Rejected procurement change request",
              "Rejected request for new funds",
              "Reminded to approve items",
              "Reminded to upload missing items",
              "Removed Ramp Card limit",
              "Removed user from funds",
              "Repayment accounting sync success",
              "Report reset to default",
              "Request revision",
              "Requested Ramp Card",
              "Requested an edit to these funds",
              "Requested an edit to this Ramp Card",
              "Requested new card",
              "Requested new funds",
              "Reset offline card PIN",
              "Resolved by ramp",
              "Restored Ramp Card",
              "Review needed",
              "Reviewed by ramp",
              "Role updated",
              "Router API key status changed",
              "Router person limit unlocked",
              "Router savings opportunity found",
              "Router savings opportunity reminder sent",
              "Router savings opportunity updated",
              "Router spend limit changed",
              "SFTP Authentication Failed",
              "SFTP Authentication IP and Username Matched",
              "SFTP Configuration Changed",
              "SFTP Export Changed",
              "SFTP Export Run Started",
              "SFTP Import Changed",
              "SSO certificate updated",
              "SSO domain DNS verification challenge created",
              "SSO domain DNS verification changed",
              "SSO domain-sharing request resolved",
              "SSO provider created",
              "SSO provider deleted",
              "SSO provider domains updated",
              "SaaS fee redeemed",
              "Sales tax filing email sent",
              "Sales tax filing inbox changed",
              "Sales tax refund claim form saved",
              "Sandbox agent session activity",
              "Sandbox business names updated",
              "Sandbox seeding activity",
              "Separation of duties disabled",
              "Separation of duties enabled",
              "Set member limit on shared fund",
              "Shortfall coverage updated",
              "Smart OCR provenance recorded",
              "Snowflake connection configuration changed",
              "Snowflake connection created",
              "Snowflake connection removed",
              "Snowflake connection scope changed",
              "Sourcing event created",
              "Sourcing event status changed",
              "Spend allocation change request approval policy updated",
              "Spend approved",
              "Spend export queued",
              "Spend outcome recorded",
              "Spend rejected",
              "Spend request approval policy updated",
              "Spend settings updated",
              "Stack chat sharing changed",
              "Stack connector updated",
              "Status updated by intake agent",
              "Status updated",
              "Strict MFA setting updated",
              "Submission policy updated",
              "Submitted procurement change request",
              "Subscription changed",
              "Subscription created",
              "Subscription entitlements changed",
              "Subscription grandfathered",
              "Subscription pricing application skipped",
              "Subscription pricing applied",
              "Subscription renewed",
              "Subscription terminated",
              "Subscription trial transitioned",
              "Synced draft policy from workflow",
              "System role created",
              "Tango gift card redeemed",
              "Teammate invited to take over a payment details request",
              "Teammate reminded about a payment details request",
              "Temporarily unlocked Ramp Card",
              "Temporarily unlocked access to funds",
              "Terminated card",
              "Terminated funds",
              "Test invoice email requested",
              "Test",
              "Third party risk management vendor review updated",
              "Third-party checks updated",
              "This contract was combined with another contract",
              "Ticket approvers updated",
              "Ticket assignee updated",
              "Ticket status updated",
              "Totp authenticator created",
              "Totp authenticator deleted",
              "Totp authenticator updated",
              "Training cancellation submitted",
              "Training registration submitted",
              "Transaction added to trip",
              "Transaction approval policy updated",
              "Transaction approval regeneration requested",
              "Transaction cleared",
              "Transaction entity changed",
              "Transaction fraud label deleted",
              "Transaction fraud status changed",
              "Transaction linked to contract",
              "Transaction marked as unsynced",
              "Transaction memory message queued",
              "Transaction missing item reminder event",
              "Transaction paid",
              "Transaction receipt updated",
              "Transaction removed from trip",
              "Transaction submission policy exemption event",
              "Transaction tax expense category updated",
              "Transaction unlinked from contract",
              "Transfer created",
              "Transfer initiated",
              "Transferred ownership of funds",
              "Travel agent signs changed",
              "Travel booking manually matched to transaction",
              "Travel funds request answered",
              "Travel integration connected",
              "Travel integration settings updated",
              "Travel policy selection updated",
              "Trip changed",
              "Trip question answered",
              "Unarchived funds",
              "Undid marking transaction as accidental",
              "Unlocked Ramp Card",
              "Unlocked access to funds",
              "Unlocked card temporarily",
              "Unlocked card",
              "Unmark as accidental",
              "Updated Ramp Card limit",
              "Updated card program",
              "Updated card",
              "Updated funds",
              "Updated policy to include Guest",
              "Updated spend program",
              "Updated workflow to include Guest",
              "Usage deleted",
              "Usage logged",
              "Usage replaced",
              "User accepted invite",
              "User assigned by external firm",
              "User assigned through external firm merge",
              "User created",
              "User custom field employee editing updated",
              "User deactivated",
              "User deleted",
              "User invited",
              "User locked",
              "User logged out of all sessions",
              "User logged out",
              "User login",
              "User merchant allowlist updated",
              "User previewed",
              "User reactivated",
              "User undeleted",
              "User unlocked",
              "Vendor Network connection migrated",
              "Vendor Network updates enabled",
              "Vendor added to group",
              "Vendor awarded",
              "Vendor credit action",
              "Vendor edit approval policy updated",
              "Vendor hold released",
              "Vendor imported from erp",
              "Vendor management  vendor added to managed list",
              "Vendor management  vendor removed from managed list",
              "Vendor management agreement deleted document",
              "Vendor management agreement deleted",
              "Vendor management agreement linked document",
              "Vendor management agreement linked purchase order",
              "Vendor management agreement notification type switched",
              "Vendor management agreement reminder sent",
              "Vendor management agreement status changed",
              "Vendor management agreement unlinked document",
              "Vendor management agreement unlinked purchase order",
              "Vendor management agreement uploaded document",
              "Vendor management edited agreement field",
              "Vendor management expansion request status changed",
              "Vendor management vendor network invite sent",
              "Vendor memory file setting updated",
              "Vendor parent set",
              "Vendor parent unset",
              "Vendor payment approval policy updated",
              "Vendor placed on hold",
              "Vendor portal merge suggestion declined",
              "Vendor portal merged",
              "Vendor portal purchase order invoice updated",
              "Vendor portal unmerged",
              "Vendor portal user walkthrough completed",
              "Vendor profile access created",
              "Vendor profile access denied",
              "Vendor profile access edited",
              "Vendor profile access email sent",
              "Vendor profile access requested",
              "Vendor profile access revoked",
              "Vendor profile all documents downloaded",
              "Vendor profile document downloaded",
              "Vendor removed from group",
              "Vendor sync failure",
              "Viewed sensitive card details",
              "Violation from manager",
              "Violation from rule",
              "Violation from user",
              "Virtual card reissued",
              "Virtual-card-only requirement changed",
              "Voided check downloaded",
              "WBX approval approved",
              "WBX approval attachment added",
              "WBX approval attachment removed",
              "WBX approval fields updated",
              "WBX approval opened",
              "WBX approval rejected",
              "WBX approver approved",
              "WBX approver rejected",
              "WBX policy created",
              "WBX policy deleted",
              "WBX policy draft discarded",
              "WBX policy draft published",
              "WBX policy draft started",
              "WBX policy renamed",
              "WBX policy workflow generated from draft",
              "WBX request admin approved entire workflow",
              "WBX request archived",
              "WBX request attachment added",
              "WBX request attachment removed",
              "WBX request created",
              "WBX request deleted",
              "WBX request fields updated",
              "WBX request submitted",
              "Wallet redeemed",
              "Wizard task assignment changed",
              "Workflow restarted due to purchase order request modification",
              "Workflow updated",
              "iMessage invitation consent granted",
              "iMessage invitation consent revoked"
            ],
            "readOnly": true,
            "type": "string",
            "x-enum-descriptions": {
              "1099 additional spend imported": "Additional spend was replaced from a CSV file.",
              "ABK task instructions updated": "A user or Ramp saved a new version of a recurring task's instructions.",
              "AI onboarding answers updated": "AI onboarding answers or product interest were updated.",
              "AI provider data re-sync requested": "Ramp started re-syncing historical usage and cost data from an AI provider.",
              "AI savings opportunity found": "Ramp found a new AI spend savings opportunity.",
              "AI savings opportunity reminder sent": "An admin reminded someone about an AI spend savings opportunity.",
              "AI savings opportunity updated": "An AI spend savings opportunity was dismissed or committed to.",
              "AI spend anomaly review state changed": "An AI spend anomaly was resolved or reopened.",
              "AI spend spike alert settings changed": "Company-wide AI spend spike alert switches were changed.",
              "AI spend spike setup completed": "The spend spike alert setup guide step was completed.",
              "AI spend weekly briefing started": "Ramp started a weekly AI spend briefing.",
              "AI usage limits updated": "AI usage limits were updated.",
              "AP intake coworker setup completed": "A user completed AP intake coworker setup.",
              "Account closed": "A treasury account was closed.",
              "Account details previewed": "The redacted account & routing numbers were viewed for a treasury account.",
              "Account details viewed": "The unredacted account & routing numbers were viewed for a treasury account.",
              "Account document downloaded": "A monthly statement or 1099 was downloaded for a treasury account.",
              "Account number deleted": "A virtual account number was deleted for a treasury account.",
              "Account number generated": "A new virtual account number was generated for a treasury account.",
              "Account number renamed": "A virtual account number was renamed for a treasury account.",
              "Account renamed": "A treasury account was renamed.",
              "Accounting fixed asset changed": "A fixed asset was created, updated, productionized, or deleted.",
              "Accounting fixed asset class changed": "A fixed asset class was created, updated, productionized, or deleted.",
              "Accounting lease changed": "A lease was created, updated, productionized, or deleted.",
              "Accounting settings updated": "An accounting account or cash mapping was changed.",
              "Ad-hoc journal entry creation setting changed": "Ad-hoc journal entry creation was enabled or disabled for the business.",
              "Agent session context updated": "The browser updated the page context a user's agent session reads.",
              "Airline negotiated fare changed": "An airline negotiated fare contract was added, edited, or removed.",
              "Alloy evaluation synchronized": "An operator synchronized an Alloy evaluation into compliance data.",
              "Amortization schedule updated": "An amortization schedule was updated.",
              "Analysis archive status changed": "An analysis was archived or restored.",
              "Analysis email requested": "An analysis was shared and email was requested.",
              "Analysis internal feedback added": "Ramp left internal feedback on an analysis.",
              "Analysis renamed": "An analysis was renamed.",
              "Analysis sharing changed": "Access to an analysis was granted or revoked.",
              "Analysis started": "An analysis was started.",
              "App Store app disconnected": "An App Store app was disconnected.",
              "Applied agent suggestion": "A user applied request updates that an agent suggested.",
              "Approval authority changed": "A group approval limit was added, changed, or removed.",
              "Approval carried over to a new booking request": "A replacement for a sold-out flight booking request was approved on the original request's approval.",
              "Approval policy set as default": "An approval policy was set as the default for its spend type.",
              "Approval projection repaired": "An internal operator restored pending approvers from the existing approval runtime.",
              "Approval steps skipped": "An internal operator skipped a user's remaining approval steps without a replacement approver.",
              "Approved Ramp Card edit request": "A Ramp Card edit request was approved.",
              "Approved Ramp Card edit request with modifications": "A Ramp Card edit request was approved with modifications.",
              "Approved Ramp Card request": "A Ramp Card request was approved.",
              "Approved Ramp Card request with modifications": "A Ramp Card request was approved with modifications.",
              "Approved individual reused": "An approved individual's KYC was added to another legal entity's KYB.",
              "Assistant card details access changed": "Assistants were blocked or unblocked from viewing card details for the business.",
              "Authorization letter downloaded": "An authorization letter was downloaded for a treasury account.",
              "Automatic investment transfer canceled": "An automatic post-settlement investment transfer was canceled.",
              "Automatic rule management actions reviewed": "Automatic accounting rule management actions were reviewed.",
              "Automation deleted": "A treasury automation policy was deleted.",
              "Bank account ACH details viewed": "ACH account and routing details were viewed for a business bank account.",
              "Bank account balance export requested": "A bank account balance export was requested.",
              "Bank account entity owner changed": "The legal entity owner of a business bank account was changed.",
              "Bank account sensitive details viewed": "Sensitive details were viewed for a business bank account.",
              "Bank letter downloaded": "A bank letter was downloaded for a treasury account.",
              "Bank statement deleted": "An internal operator deleted a manually submitted bank statement.",
              "Bank transaction export requested": "A bank transaction export was requested.",
              "Bill Pay policy files retained": "Files were retained for Bill Pay policy edit review.",
              "Bill Pay setup progress updated": "Bill Pay setup progress was updated.",
              "Bill approvals regenerated": "An internal operator replaced a bill's approval chain using current policy.",
              "Bill created by AP coworker": "A bill was automatically created by the AP coworker agent.",
              "Bill pay accepted PDR bank account ownership match": "ACH payment details submitted through a payee details request were approved.",
              "Bill pay accrual synced": "A bill accrual was synced.",
              "Bill pay marked as unpaid": "A bill was marked as unpaid.",
              "Bill pay matched transfer to bill": "A transfer was matched to a bill.",
              "Bill pay payment reversal failed": "A bill payment reversal failed.",
              "Bill pay payment reversal posted": "A bill payment reversal was posted.",
              "Bill pay payment reversal succeeded": "A bill payment reversal succeeded.",
              "Bill pay rejected PDR bank account ownership match": "ACH payment details submitted through a payee details request were rejected.",
              "Bill pay submission policy updated": "A bill pay submission policy was updated.",
              "Bill pay unmatched transfer from bill": "A transfer was unmatched from a bill.",
              "Billing bank account updated": "The bank account that pays an entity's Ramp subscription fees was changed.",
              "Billing charge posted": "A billing charge was posted.",
              "Billing fee calculated": "A billing fee plan was executed.",
              "Billing group primary business changed": "A billing group's primary business was changed.",
              "Billing refund planned": "A billing refund plan was executed.",
              "Billing schedule invoice recipients updated": "The contact or CC emails that receive a billing schedule's invoices changed.",
              "Billing schedule invoice template updated": "The invoice template used for a billing schedule's invoices changed.",
              "Booking action by travel agency": "A travel management company agent completed a booking action for this business through the Advisor Console.",
              "Booking fields changed": "A booking field travelers answer at checkout was added, edited, deleted, reordered, or locked for travel management company reporting.",
              "Booking request canceled: fare sold out": "Ramp canceled an approved flight booking request because its fare sold out before booking.",
              "Booking request marked as failed": "Ramp support marked a stuck travel booking request as failed.",
              "Bookkeeping agent browser control changed": "A user handed a bookkeeping agent browser to manual control or back to the agent.",
              "Bookkeeping agent response stopped": "A user stopped generation of a bookkeeping agent response.",
              "Briefing subscription created": "A briefing subscription was created.",
              "Browser agent visited site": "A browser agent opened a website for a user.",
              "Browser login changed": "A browser agent login was added, changed, or removed.",
              "Browser policy changed": "A company's browser policy was changed.",
              "Business communication preferences changed": "Communication preferences for a business event were changed.",
              "Canceled physical card request": "An unfulfilled physical card request was canceled.",
              "Card branding changed": "A Ramp operator changed physical card branding.",
              "Card limits by default changed": "The business was opted in to or out of card limits by default.",
              "Card offer accepted": "A user accepted a card offer.",
              "Card offer declined": "A user declined a card offer.",
              "Card transaction accrual selections updated": "Card transactions were manually included in or excluded from an accrual report.",
              "Cash Manager settings updated": "Cash Manager settings updated for a treasury account.",
              "Cash app rerun started": "Ramp reran cash app on recent deposits that had no payment or suggestion.",
              "Cash application agent action": "An accounts receivable payment or payment application was created by the cash application agent.",
              "Cash flow category proposal accepted": "A pending cash flow category proposal was accepted for creation and historical tagging.",
              "Cash manager recommendation reviewed": "A cash manager recommendation was approved or rejected.",
              "Catalog CSV import submitted": "A catalog CSV import was submitted.",
              "Catalog spend program reassigned": "A catalog was assigned to a different spend program.",
              "Catalog spreadsheet draft saved": "A catalog spreadsheet draft was saved.",
              "Cellular ledger balance adjusted": "An internal operator adjusted a Payments Cellular account balance.",
              "Check PDF downloaded": "A check PDF was downloaded for a check withdrawal.",
              "Check stop payment placed": "A stop payment was placed on a check number for a virtual account number.",
              "Check stop payment removed": "A stop payment was removed from a check number for a virtual account number.",
              "Checklist task groups changed": "Checklist task groups and recurring task group defaults were changed.",
              "Close task restored": "A deleted close task and its recoverable configuration were restored.",
              "Close tasks self-assigned": "A user assigned close checklist tasks to themselves during Stack onboarding.",
              "Compliance flag updated": "A compliance flag was updated.",
              "Compliance information synchronized": "An operator synchronized compliance information.",
              "Contract economics changed": "Subscription contract economics changed.",
              "Contract family refresh requested": "A contract family refresh was requested.",
              "Contract linked to card transaction": "A contract was linked to a card transaction.",
              "Contract term transitioned": "A billing contract term transitioned.",
              "Contract unlinked from card transaction": "A contract was unlinked from a card transaction.",
              "Counterparty details configuration changed": "A global counterparty details configuration was replaced.",
              "Counterparty details configuration created": "A global counterparty details configuration was created.",
              "Counterparty details deleted": "A counterparty's payment details were deleted.",
              "Created catalog items": "Catalog items were created.",
              "Custom connector updated": "A Stack custom connector was updated or deleted.",
              "Customer created via dashboard": "A Ramp customer was created via the dashboard.",
              "Customer payment deleted": "A customer payment and its invoice applications were deleted.",
              "Debit settings updated": "Debit settings were updated for a virtual account number.",
              "Default card limits changed": "Shared default card limit rules were replaced.",
              "Default product access updated": "The business's default product access was updated.",
              "Deleted request draft": "A request draft was deleted.",
              "Developer API client deleted": "A Developer API client was deleted.",
              "Developer API client secret rotated": "A Developer API client's secret was rotated.",
              "Direct Bank account list updated": "Ramp hid the accounts the bank no longer lists on a Direct Bank connection, or showed accounts the bank lists again.",
              "Direct Bank connection added": "A Direct Bank connection was added.",
              "Direct Bank credentials activated": "Credentials for a Direct Bank connection were activated.",
              "Direct Bank credentials saved": "Credentials for a Direct Bank connection were saved but not activated because the bank rejected them.",
              "Dismissed agent suggestion": "A user dismissed request updates that an agent suggested.",
              "DocuSign IAM Workflow updated": "A DocuSign workflow launched from a request started or made progress.",
              "Domain DNS verification removed": "A domain's DNS verification attempt was removed.",
              "Dormant funds automation changed": "Dormant fund automation settings were changed.",
              "Draft invite monthly limits changed": "Monthly limits staged on draft invites were set, changed, or cleared.",
              "Draft provenance recorded": "A draft payee or entity change was recorded.",
              "Draft vendor changed by AP coworker": "The AP intake coworker created or updated a draft vendor.",
              "Duplicate payment review confirmed": "A user confirmed matching invoice evidence as an intentional separate payment. Confirmation did not send payment.",
              "Earn account opened": "An Earn account was opened.",
              "Edited spend allocation request": "A spend allocation request was edited.",
              "Employee handbook signatures requested": "An admin asked employees to sign the employee handbook, replacing any earlier signature request.",
              "Employee handbook unpublished": "An admin unpublished the employee handbook, closing any open signature request.",
              "Employee policy signed": "An employee signed their policy document or handbook.",
              "Entity created": "A legal entity was created.",
              "Entity deleted": "A legal entity was deleted.",
              "Expense accounting fields updated": "A user changed the expense-level accounting fields of a card transaction or reimbursement.",
              "Expense fixed asset changed": "A fixed asset on an expense line was impaired or disposed.",
              "External agent credential rotated": "A standalone agent credential was rotated.",
              "External agent key created": "An agent key was created.",
              "External agent key revoked": "An agent key was revoked.",
              "External agent key updated": "An agent key was updated.",
              "External agent wallet execution changed": "A standalone agent wallet was disabled or re-enabled.",
              "Fixture users deactivated": "Fixture generation users were deactivated.",
              "Flex fee redeemed": "Points were redeemed to pay down a Ramp Flex installment fee.",
              "Flight change outcome settled": "Ramp support settled a flight change whose outcome was unconfirmed.",
              "Flight change receipt regenerated": "A flight change charge's generated receipt was replaced with a regenerated receipt.",
              "Forecast chat updated": "A forecast chat was created, sent a message, or stopped.",
              "Forecast custom input added": "A forecast custom input was added.",
              "Forecast custom input deleted": "A forecast custom input was deleted.",
              "Forecast custom input updated": "A forecast custom input was updated.",
              "Forecast settings updated": "Forecast settings were updated for a treasury account.",
              "Forecast status updated": "A cash forecast configuration was paused or resumed.",
              "Fraud Omni investigation started": "A Fraud Omni operator investigation was started for a Zendesk ticket.",
              "Fund limit change submitted": "A fund's limit was changed or a limit change was requested.",
              "Fund utilization alert settings changed": "Fund utilization alert settings were changed",
              "Funds attached to invite": "Funds were attached to a user's invite. The funds will be issued when the user accepts the invite.",
              "Glass sales meeting booked": "A Glass sales meeting was booked from the Glass waitlist signup.",
              "Glass trial conversion updated": "Users were moved to Free or back to Pro for when the Glass trial converts.",
              "Glass waitlist answers updated": "Answers to the Glass waitlist questions were updated.",
              "Governed change applied": "A governed change was applied after approval.",
              "Governed change became stale": "A governed change became stale without being applied.",
              "Governed change rejected": "A governed change was rejected during review.",
              "Governed change submitted for review": "A governed change was submitted for review.",
              "Governed changes turned off": "Meta-approvals were disabled for a governed subject after review.",
              "Governed changes turned on": "Meta-approvals were enabled for a governed subject.",
              "IP allowlist updated": "The business IP allowlist was updated.",
              "Identity locked": "An identity lock was created or rerun.",
              "Identity unlocked": "An identity lock was removed or rerun.",
              "Impersonation Disabled": "Impersonation by authorized Ramp actors was disabled for the business.",
              "Impersonation Enabled": "Impersonation by authorized Ramp actors was enabled for the business.",
              "Impersonation upgraded to read-write": "An impersonation session was upgraded to read-write.",
              "Incentive offer enrolled": "The business was enrolled in an incentive offer.",
              "Initiated digital wallet provisioning (audit)": "Digital wallet provisioning was initiated for a card.",
              "Internal bank transfer link changed": "A user linked or unlinked the two bank transactions representing an internal transfer.",
              "Internal impersonation upgraded to read-write": "An internal impersonation session was upgraded to read-write.",
              "Investment Account closed": "Investment account closed",
              "Investment Account created": "Investment account created before provider setup",
              "Investment Account opened": "Investment account opened",
              "Investment Account renamed": "Investment account renamed.",
              "Investment Account terms accepted": "Investment account terms were agreed to.",
              "Investment Account updated": "Investment Account updated.",
              "Invoice payment page requested": "A payment page was requested for an invoice without emailing the customer.",
              "Ironclad settings updated": "Settings for the Ironclad integration were updated.",
              "Issued Ramp Card": "A cardholder's Ramp Card was issued.",
              "Issuing compliance information changed": "An internal compliance editor created or updated issuing KYC or KYB information.",
              "Journal entry batch retry requested": "A retry was requested for an accounting journal entry batch.",
              "Journal entry marked as already posted": "A journal entry was marked as already posted.",
              "Left funds": "A member left a shared fund.",
              "Legal agreement accepted": "A user accepted a legal agreement for a card offer.",
              "Legal entity updated": "A business legal entity was updated.",
              "Locked Ramp Card": "Access to a cardholder's Ramp Card was locked.",
              "Login methods updated": "The login methods allowed for business roles were updated.",
              "Manual redemption redeemed": "A manual cashback redemption was recorded against the business's rewards balance (e.g. when ops fulfills a customer redemption out-of-band by issuing Ramp incentive cards).",
              "Marketplace plugin changed": "A Plugin Marketplace plugin was changed.",
              "New vendor approval policy updated": "A new vendor approval policy was updated.",
              "Nightly bank sync setting changed": "Nightly bank sync was enabled or disabled for the business.",
              "Outlook Calendar setup updated": "A user updated Outlook Calendar organization setup or settings.",
              "Partner billing disconnected": "Partner billing was disconnected.",
              "Partner console created": "An internal operator created a partner console from a Salesforce Partner Account.",
              "Passkey created": "A passkey was created for a user.",
              "Passkey deleted": "A passkey was deleted for a user.",
              "Passkey removal request denied": "An admin denied a user's passkey removal request.",
              "Payout details request redirected": "An admin redirected the firm's payout details request to themselves.",
              "Phone change request reviewed": "An admin approved or denied a phone change request.",
              "Phone change request superseded": "A newer phone change request replaced a pending request.",
              "Phone change requested": "A user requested an administrator's help changing their phone number.",
              "Plan created": "A financial plan was created.",
              "Plan deleted": "A financial plan and its sub plans were deleted.",
              "Plan edited": "The name, settings, dimensions, lines, or planned amounts of a financial plan were edited.",
              "Plan settings updated": "The date range, counted spend sources, or rule priority of a financial plan changed.",
              "Plugin demo sandbox created": "Ramp created a plugin demo sandbox.",
              "Plugin demo sandbox requested": "A plugin demo sandbox was requested.",
              "Preferred name updated": "A user's preferred first name was set, changed, or cleared.",
              "Preview mode entered": "An internal preview impersonation session was started.",
              "Product access granted": "A user was granted access to a product.",
              "Product access revoked": "A user's access to a product was revoked.",
              "Product billing settings override": "A product's billing overrides were changed.",
              "Program entity restrictions changed": "A program's allowed legal entities changed.",
              "Purchase order accrual lines updated": "Purchase order lines were manually included in or excluded from an accrual report.",
              "Purchase order accrual synced": "A purchase order accrual was synced.",
              "Purchase order delivery acknowledged": "A vendor acknowledged a purchase order delivery.",
              "Purchase order marked as synced": "A user marked a purchase order that failed to sync as synced, because they entered it in the accounting provider by hand.",
              "Purchase orders marked as synced": "A user marked one or more purchase orders that failed to sync as synced.",
              "Ramp Card limit change submitted": "A Ramp Card limit was changed or a limit change was requested.",
              "Ramp Card limit changed": "A cardholder's Ramp Card limit was set, changed, or restored. Use 'Removed Ramp Card limit' for removals.",
              "Receipt downloaded for transfer": "A receipt was downloaded for a wallet transfer.",
              "Receipt reprocessed": "An existing receipt's file was reprocessed.",
              "Recurring task approvers updated": "A recurring task's approval defaults and unstarted occurrences were updated.",
              "Recurring task instructions changed": "A user saved or restored, or Ramp's agent edited, the instructions for a recurring Stack task.",
              "Reimbursement approval withdrawn": "An approved reimbursement was returned to pending for re-approval.",
              "Reimbursement manual payment recorded": "A payment made outside Ramp was recorded for a reimbursement so it can sync to accounting.",
              "Reimbursement marked as unsynced": "A reimbursement was marked as unsynced in Ramp.",
              "Rejected Ramp Card edit request": "A Ramp Card edit request was rejected.",
              "Rejected Ramp Card request": "A Ramp Card request was rejected.",
              "Removed Ramp Card limit": "A cardholder's Ramp Card limit was removed.",
              "Repayment accounting sync success": "A repayment was successfully synced to the accounting provider.",
              "Report reset to default": "A report was reset to its default version.",
              "Requested Ramp Card": "A Ramp Card was requested.",
              "Requested an edit to this Ramp Card": "An edit to a Ramp Card was requested.",
              "Reset offline card PIN": "An offline card PIN reset was accepted by the issuer; chip synchronization is pending.",
              "Restored Ramp Card": "A cardholder's Ramp Card was restored.",
              "Router API key status changed": "A Router API key was locked, unlocked, or terminated from AI Spend.",
              "Router person limit unlocked": "A person's locked Router limit was unlocked from AI Spend.",
              "Router savings opportunity found": "Ramp found a new Router savings opportunity.",
              "Router savings opportunity reminder sent": "An admin reminded someone about a Router savings opportunity.",
              "Router savings opportunity updated": "A Router savings opportunity was dismissed or committed to.",
              "Router spend limit changed": "A Router API key or person spend limit was set, changed, or removed.",
              "SFTP Export Changed": "An SFTP export was created, changed, or deleted.",
              "SFTP Export Run Started": "A user started a run of an SFTP export.",
              "SFTP Import Changed": "An SFTP import was created or changed.",
              "SSO certificate updated": "An SSO provider certificate was updated.",
              "SSO domain DNS verification challenge created": "A domain's DNS verification challenge was created.",
              "SSO domain DNS verification changed": "A domain's DNS verification status changed.",
              "SSO domain-sharing request resolved": "An SSO domain-sharing request was approved or denied.",
              "SSO provider created": "An SSO provider was created.",
              "SSO provider deleted": "An SSO provider was deleted.",
              "SSO provider domains updated": "Domains were added to or removed from an SSO provider.",
              "Sales tax filing email sent": "A sales tax refund request email was sent, or its send was recorded.",
              "Sales tax filing inbox changed": "An inbox was turned on for sales tax filing.",
              "Sales tax refund claim form saved": "The values entered in a sales tax refund claim form were saved.",
              "Sandbox agent session activity": "Sandbox agent session activity was recorded.",
              "Sandbox business names updated": "Sandbox business names were updated.",
              "Sandbox seeding activity": "Sandbox seeding activity was recorded.",
              "Shortfall coverage updated": "Shortfall coverage updated.",
              "Smart OCR provenance recorded": "Smart OCR callback evidence was recorded.",
              "Snowflake connection configuration changed": "A Snowflake connection's credentials or configuration were changed.",
              "Snowflake connection created": "A Snowflake connection was created.",
              "Snowflake connection removed": "A Snowflake connection was removed.",
              "Snowflake connection scope changed": "The schemas or tables available to a Snowflake connection were changed.",
              "Spend export queued": "A cardholder or cards and funds CSV export was queued.",
              "Spend settings updated": "A scalar setting on the spend settings page was changed.",
              "Stack chat sharing changed": "A user shared a Stack chat, changed someone's access to it, or removed someone from it.",
              "Stack connector updated": "A Stack connector was set up or disconnected.",
              "Status updated by intake agent": "Status of an accounts receivable customer was updated by the intake agent.",
              "Strict MFA setting updated": "A business strict MFA setting was updated.",
              "Submission policy updated": "A submission policy was updated.",
              "Subscription changed": "A billing subscription changed.",
              "Subscription created": "A billing subscription was created.",
              "Subscription entitlements changed": "Subscription entitlements were changed.",
              "Subscription grandfathered": "A retained subscription entitlement was recorded.",
              "Subscription pricing application skipped": "Subscription pricing was not eligible for application.",
              "Subscription pricing applied": "Subscription pricing was applied.",
              "Subscription renewed": "A subscription term was renewed.",
              "Subscription terminated": "A subscription termination plan was executed.",
              "Subscription trial transitioned": "A billing subscription trial transitioned.",
              "Synced draft policy from workflow": "A policy draft was updated to reflect edits made to its underlying workflow.",
              "System role created": "A system role was made available in the business.",
              "Teammate invited to take over a payment details request": "A vendor invited someone to its portal to take over a payment details request.",
              "Teammate reminded about a payment details request": "A vendor emailed a payment details request to a portal teammate.",
              "Temporarily unlocked Ramp Card": "Access to a cardholder's Ramp Card was temporarily unlocked.",
              "Test invoice email requested": "A test invoice email was requested. This does not confirm delivery.",
              "Third-party checks updated": "Third-party checks were allowed or blocked for a virtual account number.",
              "Ticket approvers updated": "A ticket's approvers were updated.",
              "Training cancellation submitted": "A user submitted a cancellation for a Ramp training workshop.",
              "Training registration submitted": "A user submitted a registration for a Ramp training workshop.",
              "Transaction added to trip": "A transaction was added to a trip.",
              "Transaction approval regeneration requested": "An internal operator requested regeneration of transaction approval chains.",
              "Transaction fraud label deleted": "A transaction fraud label was deleted by a Ramp operator.",
              "Transaction fraud status changed": "A transaction fraud status was changed by a Ramp operator.",
              "Transaction linked to contract": "A card transaction was linked to a contract.",
              "Transaction marked as unsynced": "A card transaction was marked as unsynced in Ramp.",
              "Transaction memory message queued": "A user queued a transaction memory request for processing.",
              "Transaction removed from trip": "A transaction was removed from a trip.",
              "Transaction tax expense category updated": "A user set the tax expense category on a card transaction.",
              "Transaction unlinked from contract": "A card transaction was unlinked from a contract.",
              "Transfer created": "A payment transfer was created.",
              "Transfer initiated": "A transfer was initiated for a treasury account.",
              "Travel agent signs changed": "A travel agency's agent signs were set, changed, or removed.",
              "Travel booking manually matched to transaction": "A travel booking was manually matched to a card transaction.",
              "Travel funds request answered": "A traveler covered or declined a request for more funds for their booking.",
              "Travel integration connected": "A travel management company integration was connected.",
              "Travel integration settings updated": "Receipt attachment or trip creation settings were updated for a travel integration.",
              "Trip question answered": "A user answered a trip confirmation question.",
              "Unarchived funds": "Funds were unarchived.",
              "Unlocked Ramp Card": "Access to a cardholder's Ramp Card was unlocked.",
              "Updated Ramp Card limit": "A cardholder's Ramp Card limit amount or frequency was updated, including scheduled resets.",
              "Updated policy to include Guest": "A policy was updated to include the Guest role.",
              "Updated workflow to include Guest": "A workflow or subflow was updated to include the Guest role.",
              "Usage deleted": "A usage record on a usage-based billing schedule line was deleted.",
              "Usage logged": "Usage was logged on a usage-based billing schedule line.",
              "Usage replaced": "A usage record on a usage-based billing schedule line was replaced.",
              "User custom field employee editing updated": "Whether employees can edit their own value for a user custom field was updated.",
              "User logged out": "A user logged out.",
              "User logged out of all sessions": "A user logged out of all sessions.",
              "User merchant allowlist updated": "A user merchant allowlist was updated by a Ramp operator.",
              "Vendor Network connection migrated": "A vendor's Vendor Network connection was updated.",
              "Vendor edit approval policy updated": "A vendor edit approval policy was updated.",
              "Vendor hold released": "A vendor hold was released.",
              "Vendor management agreement reminder sent": "A user sent a manual contract reminder.",
              "Vendor management vendor network invite sent": "A Ramp Vendor Network invite was sent to a vendor.",
              "Vendor memory file setting updated": "A vendor's memory file setting was changed.",
              "Vendor parent set": "A parent vendor was set on a vendor.",
              "Vendor parent unset": "A vendor's parent vendor was removed.",
              "Vendor placed on hold": "A vendor was placed on hold.",
              "Vendor portal merge suggestion declined": "A vendor said a suggested vendor portal isn't theirs.",
              "Vendor portal merged": "A vendor combined two vendor portals.",
              "Vendor portal purchase order invoice updated": "A vendor changed a vendor portal invoice created from a purchase order.",
              "Vendor portal unmerged": "Ramp split a company out of a vendor portal into a new portal.",
              "Vendor portal user walkthrough completed": "Ramp completed a user's vendor portal walkthrough.",
              "Virtual-card-only requirement changed": "The virtual-card-only requirement on shared funds was changed",
              "Voided check downloaded": "A voided check was downloaded for a treasury account.",
              "WBX request admin approved entire workflow": "An admin approved the entire workflow-backed policy request, skipping all remaining approval steps.",
              "Wizard task assignment changed": "Wizard task responsibility was assigned, reassigned, or cleared.",
              "Workflow updated": "A workflow was updated.",
              "iMessage invitation consent granted": "Consent to receive an iMessage invitation was granted.",
              "iMessage invitation consent revoked": "Consent to receive an iMessage invitation was revoked."
            }
          },
          "id": {
            "description": "Unique identifier for the audit log event",
            "format": "uuid",
            "type": "string",
            "x-relationship": {
              "inverse_field_name": null,
              "reference_field_name": "id",
              "target_resource": "audit_log_events",
              "type": "many-to-one"
            }
          },
          "primary_reference": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PrimaryEntityReferenceResource"
              }
            ],
            "description": "Metadata of the primary object referenced by the audit log event",
            "nullable": true
          },
          "user_details": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AuditLogUserDetailsResource"
              }
            ],
            "description": "User details of the audit log event. Usually the same as actor details if present unless an agent acts on behalf of a user.",
            "nullable": true
          }
        },
        "required": [
          "actor_details",
          "actor_id",
          "actor_type",
          "additional_details",
          "agent_details",
          "event_details",
          "event_time",
          "event_type",
          "id",
          "primary_reference",
          "user_details"
        ],
        "type": "object",
        "x-resource-name": "audit_log_events"
      },
      "AuditLogPolicyAgentDetailsResource": {
        "properties": {
          "actor_type": {
            "description": "Type of the actor that the audit log event is attributable to",
            "enum": [
              "policy_agent",
              "ramp",
              "spend_request_agent",
              "user"
            ],
            "type": "string",
            "x-enum-descriptions": {
              "spend_request_agent": "Spend Request Agent activity."
            }
          }
        },
        "required": [
          "actor_type"
        ],
        "type": "object"
      },
      "AuditLogRampActorDetailsResource": {
        "properties": {
          "actor_type": {
            "description": "Type of the actor that the audit log event is attributable to",
            "enum": [
              "policy_agent",
              "ramp",
              "spend_request_agent",
              "user"
            ],
            "type": "string",
            "x-enum-descriptions": {
              "spend_request_agent": "Spend Request Agent activity."
            }
          }
        },
        "required": [
          "actor_type"
        ],
        "type": "object"
      },
      "AuditLogSpendRequestAgentDetailsResource": {
        "properties": {
          "actor_type": {
            "default": "spend_request_agent",
            "description": "Type of the actor that the audit log event is attributable to"
          }
        },
        "required": [
          "actor_type"
        ],
        "type": "object"
      },
      "AuditLogUserDetailsResource": {
        "properties": {
          "actor_type": {
            "description": "Type of the actor that the audit log event is attributable to",
            "enum": [
              "policy_agent",
              "ramp",
              "spend_request_agent",
              "user"
            ],
            "type": "string",
            "x-enum-descriptions": {
              "spend_request_agent": "Spend Request Agent activity."
            }
          },
          "email": {
            "description": "Current email address of the user, or null if unavailable.",
            "format": "email",
            "nullable": true,
            "type": "string"
          },
          "id": {
            "description": "Unique identifier of the user",
            "format": "uuid",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          }
        },
        "required": [
          "actor_type",
          "email",
          "id"
        ],
        "type": "object"
      },
      "AuthorizedBusinessInfo": {
        "description": "Represents a business that the advisor console user is authorized to access.",
        "properties": {
          "authorization_uuid": {
            "description": "UUID of the authorization",
            "title": "Authorization Uuid",
            "type": "string"
          },
          "business_dba_name": {
            "default": null,
            "description": "DBA (doing business as) name",
            "nullable": true,
            "title": "Business Dba Name",
            "type": "string"
          },
          "business_display_name": {
            "description": "Display name of the business",
            "title": "Business Display Name",
            "type": "string"
          },
          "business_legal_name": {
            "default": null,
            "description": "Legal name of the business",
            "nullable": true,
            "title": "Business Legal Name",
            "type": "string"
          },
          "business_uuid": {
            "description": "UUID of the business",
            "title": "Business Uuid",
            "type": "string"
          },
          "created_at": {
            "description": "When the authorization was created",
            "title": "Created At",
            "type": "string"
          },
          "erp_provider_type": {
            "default": null,
            "description": "ERP provider type connected to the business (e.g. quickbooks, xero, netsuite_rest)",
            "nullable": true,
            "title": "Erp Provider Type",
            "type": "string"
          },
          "num_assigned_users": {
            "default": null,
            "description": "Number of external firm users assigned to this business",
            "nullable": true,
            "title": "Num Assigned Users",
            "type": "integer"
          }
        },
        "required": [
          "authorization_uuid",
          "business_display_name",
          "business_uuid",
          "created_at"
        ],
        "title": "AuthorizedBusinessInfo",
        "type": "object"
      },
      "AwardSourcingEventOutput": {
        "properties": {
          "awarded": {
            "description": "True when the award was created immediately (no approval policy)",
            "title": "Awarded",
            "type": "boolean"
          },
          "message": {
            "description": "Human-readable result of the award request",
            "title": "Message",
            "type": "string"
          },
          "sourcing_event_id": {
            "description": "UUID of the sourcing event",
            "title": "Sourcing Event Id",
            "type": "string"
          },
          "status": {
            "description": "Event status after the call: DECIDED when awarded directly, or ACTIVE while an award approval workflow is pending",
            "title": "Status",
            "type": "string"
          },
          "submitted_for_approval": {
            "description": "True when an award approval policy routed the award into an approval workflow instead of awarding immediately",
            "title": "Submitted For Approval",
            "type": "boolean"
          }
        },
        "required": [
          "awarded",
          "message",
          "sourcing_event_id",
          "status",
          "submitted_for_approval"
        ],
        "title": "AwardSourcingEventOutput",
        "type": "object"
      },
      "AwardSourcingEventRequestBody": {
        "description": "Award the winning vendor for a sourcing event, deciding the event and\nclosing its current RFX.\n\nPrerequisites: grading must be complete on the current RFX, the event must\nnot already be awarded or pending award approval, and the payee must be an\nactive invited vendor on the RFX. When the business configures an award\napproval policy, the award routes through that approval workflow instead\nof awarding immediately (``submitted_for_approval`` is True and nothing is\ndecided yet). After a direct award, use\nCreateDraftSpendRequestFromSourcingEvent to hand off into procurement.",
        "properties": {
          "payee_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UUIDStrRequestBody"
              }
            ],
            "description": "UUID of the winning vendor (payee) to award"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "sourcing_event_id": {
            "description": "UUID of the sourcing event to award",
            "format": "uuid",
            "title": "Sourcing Event Id",
            "type": "string"
          }
        },
        "required": [
          "payee_uuid",
          "rationale",
          "sourcing_event_id"
        ],
        "title": "AwardSourcingEvent",
        "type": "object"
      },
      "BadgeStatus": {
        "enum": [
          "ERROR",
          "INFO",
          "SUCCESS",
          "WARNING"
        ],
        "title": "BadgeStatus",
        "type": "string"
      },
      "BillAccountingFieldCoding": {
        "description": "An accounting field coding on a bill.",
        "properties": {
          "category_name": {
            "title": "Category Name",
            "type": "string"
          },
          "line_item_description": {
            "default": null,
            "nullable": true,
            "title": "Line Item Description",
            "type": "string"
          },
          "option_name": {
            "title": "Option Name",
            "type": "string"
          },
          "source": {
            "$ref": "#/components/schemas/BillAccountingFieldSource"
          }
        },
        "required": [
          "category_name",
          "option_name",
          "source"
        ],
        "title": "BillAccountingFieldCoding",
        "type": "object"
      },
      "BillAccountingFieldSource": {
        "enum": [
          "AUTOCODED",
          "MANUAL"
        ],
        "title": "BillAccountingFieldSource",
        "type": "string"
      },
      "BillActionResult": {
        "properties": {
          "action": {
            "title": "Action",
            "type": "string"
          },
          "bill_id": {
            "title": "Bill Id",
            "type": "string"
          },
          "bill_url": {
            "default": null,
            "nullable": true,
            "title": "Bill Url",
            "type": "string"
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "payment_date": {
            "default": null,
            "description": "The earliest payment date among the bill's initiated payments (including earlier partial payments), as an ISO date (YYYY-MM-DD). Only set when payment_initiated is true.",
            "nullable": true,
            "title": "Payment Date",
            "type": "string"
          },
          "payment_initiated": {
            "default": null,
            "description": "After a successful approval, whether any payment on this bill has been initiated \u2014 including earlier partial payments, not only a payment this approval may have just triggered. Ramp initiates payment automatically when an approval completes the bill's approval chain, the business has no payment-release approvals pending, and the payment date and payment details are already set. Payments made through Ramp's payments platform (e.g. ACH, check, wire, and international transfers) are reflected; card and vendor-credit payments may not be. None when the action was a rejection.",
            "nullable": true,
            "title": "Payment Initiated",
            "type": "boolean"
          }
        },
        "required": [
          "action",
          "bill_id",
          "message"
        ],
        "title": "BillActionResult",
        "type": "object"
      },
      "BillApproverReminderFailure": {
        "properties": {
          "bill_uuid": {
            "title": "Bill Uuid",
            "type": "string"
          },
          "reason": {
            "$ref": "#/components/schemas/BillApproverReminderFailureReason"
          }
        },
        "required": [
          "bill_uuid",
          "reason"
        ],
        "title": "BillApproverReminderFailure",
        "type": "object"
      },
      "BillApproverReminderFailureReason": {
        "enum": [
          "Bill has no approval chain.",
          "Bill is not pending approval.",
          "Maximum number of approval reminders has been reached for this bill.",
          "No user found in context.",
          "One or more bills were not found or you do not have access to them."
        ],
        "title": "BillApproverReminderFailureReason",
        "type": "string"
      },
      "BillApproverReminderResult": {
        "properties": {
          "failed_bills": {
            "items": {
              "$ref": "#/components/schemas/BillApproverReminderFailure"
            },
            "title": "Failed Bills",
            "type": "array"
          },
          "reminded_bill_uuids": {
            "items": {
              "type": "string"
            },
            "title": "Reminded Bill Uuids",
            "type": "array"
          }
        },
        "required": [
          "failed_bills",
          "reminded_bill_uuids"
        ],
        "title": "BillApproverReminderResult",
        "type": "object"
      },
      "BillCodingSource": {
        "description": "The source of a TCO selection for a bill or line item.\n\nThis value may be used in the frontend to make it clear where tracking\ncategory options are coming from.",
        "enum": [
          "AUTOCODING",
          "ERP_IMPORT",
          "PAYEE_DEFAULT",
          "PURCHASE_ORDER",
          "RESCAN",
          "SMART_OCR",
          "SMART_OCR_OVERRIDE",
          "UNKNOWN",
          "USER"
        ],
        "title": "BillCodingSource",
        "type": "string"
      },
      "BillComment": {
        "properties": {
          "author_email": {
            "nullable": true,
            "title": "Author Email",
            "type": "string"
          },
          "author_name": {
            "nullable": true,
            "title": "Author Name",
            "type": "string"
          },
          "comment_id": {
            "title": "Comment Id",
            "type": "string"
          },
          "created_at": {
            "title": "Created At",
            "type": "string"
          },
          "is_from_ramp": {
            "description": "True if posted by Ramp system rather than a user",
            "title": "Is From Ramp",
            "type": "boolean"
          },
          "message": {
            "title": "Message",
            "type": "string"
          }
        },
        "required": [
          "author_email",
          "author_name",
          "comment_id",
          "created_at",
          "is_from_ramp",
          "message"
        ],
        "title": "BillComment",
        "type": "object"
      },
      "BillCommentsResult": {
        "properties": {
          "bill_id": {
            "title": "Bill Id",
            "type": "string"
          },
          "comments": {
            "items": {
              "$ref": "#/components/schemas/BillComment"
            },
            "title": "Comments",
            "type": "array"
          },
          "total_comments": {
            "title": "Total Comments",
            "type": "integer"
          }
        },
        "required": [
          "bill_id",
          "comments",
          "total_comments"
        ],
        "title": "BillCommentsResult",
        "type": "object"
      },
      "BillCreationStatus": {
        "enum": [
          "CREATED",
          "PENDING"
        ],
        "title": "BillCreationStatus",
        "type": "string"
      },
      "BillCurrencyAmount": {
        "properties": {
          "amount": {
            "title": "Amount",
            "type": "number"
          },
          "currency": {
            "title": "Currency",
            "type": "string"
          }
        },
        "required": [
          "amount",
          "currency"
        ],
        "title": "BillCurrencyAmount",
        "type": "object"
      },
      "BillDateFilterType": {
        "enum": [
          "accounting_date",
          "due_at",
          "issued_at",
          "paid_at"
        ],
        "title": "BillDateFilterType",
        "type": "string"
      },
      "BillDetails": {
        "description": "Detailed bill information.",
        "properties": {
          "accounting_field_codings": {
            "items": {
              "$ref": "#/components/schemas/BillAccountingFieldCoding"
            },
            "title": "Accounting Field Codings",
            "type": "array"
          },
          "accrual_display_reason": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AccrualDisplayReason"
              }
            ],
            "nullable": true
          },
          "accrual_display_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AccrualDisplayStatus"
              }
            ],
            "nullable": true
          },
          "amount": {
            "title": "Amount",
            "type": "number"
          },
          "approval_status": {
            "title": "Approval Status",
            "type": "string"
          },
          "automatic_mapping_reason": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MappingReason"
              }
            ],
            "nullable": true
          },
          "bill_url": {
            "default": null,
            "description": "Deep link URL to view this bill in the Ramp web app.",
            "nullable": true,
            "title": "Bill Url",
            "type": "string"
          },
          "created_date": {
            "format": "date-time",
            "nullable": true,
            "title": "Created Date",
            "type": "string"
          },
          "currency": {
            "title": "Currency",
            "type": "string"
          },
          "description": {
            "nullable": true,
            "title": "Description",
            "type": "string"
          },
          "due_date": {
            "format": "date",
            "nullable": true,
            "title": "Due Date",
            "type": "string"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "invoice_date": {
            "format": "date",
            "nullable": true,
            "title": "Invoice Date",
            "type": "string"
          },
          "invoice_number": {
            "nullable": true,
            "title": "Invoice Number",
            "type": "string"
          },
          "line_items": {
            "items": {
              "$ref": "#/components/schemas/BillLineItemDetails"
            },
            "title": "Line Items",
            "type": "array"
          },
          "line_items_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BillLineItemsStatus"
              }
            ],
            "description": "Whether line_items was omitted, included from both source collections, partially converted, or unavailable in the source response. Only included with an empty list establishes an empty collection. Inclusion does not guarantee that individual line-item amounts or other fields are available."
          },
          "memo": {
            "nullable": true,
            "title": "Memo",
            "type": "string"
          },
          "payment_date": {
            "format": "date",
            "nullable": true,
            "title": "Payment Date",
            "type": "string"
          },
          "payment_method": {
            "nullable": true,
            "title": "Payment Method",
            "type": "string"
          },
          "payment_status": {
            "title": "Payment Status",
            "type": "string"
          },
          "summary": {
            "title": "Summary",
            "type": "string"
          },
          "sync_status": {
            "default": null,
            "nullable": true,
            "title": "Sync Status",
            "type": "string"
          },
          "sync_status_code": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BillSyncStatus"
              }
            ],
            "default": null,
            "nullable": true
          },
          "vendor_id": {
            "title": "Vendor Id",
            "type": "string"
          },
          "vendor_name": {
            "title": "Vendor Name",
            "type": "string"
          }
        },
        "required": [
          "accrual_display_reason",
          "accrual_display_status",
          "amount",
          "approval_status",
          "automatic_mapping_reason",
          "created_date",
          "currency",
          "description",
          "due_date",
          "id",
          "invoice_date",
          "invoice_number",
          "line_items_status",
          "memo",
          "payment_date",
          "payment_method",
          "payment_status",
          "summary",
          "vendor_id",
          "vendor_name"
        ],
        "title": "BillDetails",
        "type": "object"
      },
      "BillDocumentType": {
        "description": "Bill-scoped classification for additional (non-invoice) documents.\n\nThese options appear in a UI dropdown. If this enum grows beyond roughly 10\noptions, consider improving the selection UX.",
        "enum": [
          "CONDITIONAL_LIEN_WAIVER",
          "UNCONDITIONAL_LIEN_WAIVER"
        ],
        "title": "BillDocumentType",
        "type": "string"
      },
      "BillDocumentTypeRequestBody": {
        "description": "Bill-scoped classification for additional (non-invoice) documents.\n\nThese options appear in a UI dropdown. If this enum grows beyond roughly 10\noptions, consider improving the selection UX.",
        "enum": [
          "CONDITIONAL_LIEN_WAIVER",
          "UNCONDITIONAL_LIEN_WAIVER"
        ],
        "title": "BillDocumentType",
        "type": "string"
      },
      "BillHistoryEvent": {
        "properties": {
          "approval_chain_events": {
            "default": null,
            "items": {
              "$ref": "#/components/schemas/ApprovalChainEvent"
            },
            "nullable": true,
            "title": "Approval Chain Events",
            "type": "array"
          },
          "date": {
            "title": "Date",
            "type": "string"
          },
          "displayed_event_text": {
            "title": "Displayed Event Text",
            "type": "string"
          },
          "event_order": {
            "title": "Event Order",
            "type": "integer"
          },
          "event_type": {
            "title": "Event Type",
            "type": "string"
          }
        },
        "required": [
          "date",
          "displayed_event_text",
          "event_order",
          "event_type"
        ],
        "title": "BillHistoryEvent",
        "type": "object"
      },
      "BillHistoryResult": {
        "properties": {
          "bill_id": {
            "title": "Bill Id",
            "type": "string"
          },
          "events": {
            "items": {
              "$ref": "#/components/schemas/BillHistoryEvent"
            },
            "title": "Events",
            "type": "array"
          },
          "summary": {
            "title": "Summary",
            "type": "string"
          }
        },
        "required": [
          "bill_id",
          "events",
          "summary"
        ],
        "title": "BillHistoryResult",
        "type": "object"
      },
      "BillInfo": {
        "description": "Basic bill information for search results and status queries.",
        "properties": {
          "amount": {
            "title": "Amount",
            "type": "number"
          },
          "approval_status": {
            "description": "Approval status of the bill. Null when not included in the result, as in bill search results; the bill details lookup returns it for a specific bill.",
            "nullable": true,
            "title": "Approval Status",
            "type": "string"
          },
          "bill_url": {
            "default": null,
            "description": "Deep link URL to view this bill in the Ramp web app.",
            "nullable": true,
            "title": "Bill Url",
            "type": "string"
          },
          "can_view_payment_details": {
            "default": null,
            "description": "Point-in-time availability of this bill's payment-detail lookup for the acting user. False means unavailable, not that the bill or payment is missing; null means access was not established. True is not an authorization grant: details are authorized again when requested.",
            "nullable": true,
            "title": "Can View Payment Details",
            "type": "boolean"
          },
          "created_date": {
            "default": null,
            "description": "When the bill was created in Ramp.",
            "format": "date-time",
            "nullable": true,
            "title": "Created Date",
            "type": "string"
          },
          "currency": {
            "title": "Currency",
            "type": "string"
          },
          "due_date": {
            "format": "date",
            "nullable": true,
            "title": "Due Date",
            "type": "string"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "invoice_date": {
            "default": null,
            "format": "date",
            "nullable": true,
            "title": "Invoice Date",
            "type": "string"
          },
          "invoice_number": {
            "nullable": true,
            "title": "Invoice Number",
            "type": "string"
          },
          "is_draft": {
            "default": false,
            "description": "Whether this bill is an unsubmitted draft. When true, use GetDraftBillDetails only; do not call GetBillDetails, GetBillHistory, or GetBillStatus. When false, the bill is submitted.",
            "title": "Is Draft",
            "type": "boolean"
          },
          "is_past_due": {
            "default": false,
            "description": "True only for unpaid/open bills whose due date is before today's date.",
            "title": "Is Past Due",
            "type": "boolean"
          },
          "memo": {
            "nullable": true,
            "title": "Memo",
            "type": "string"
          },
          "paid_date": {
            "default": null,
            "description": "When the bill was marked paid, if available.",
            "format": "date",
            "nullable": true,
            "title": "Paid Date",
            "type": "string"
          },
          "payment_date": {
            "default": null,
            "description": "Displayed payment date for the bill, typically the scheduled or sent date. Null when not included in the result, as in bill search results; the bill details lookup returns it for a specific bill.",
            "format": "date",
            "nullable": true,
            "title": "Payment Date",
            "type": "string"
          },
          "payment_date_range_end": {
            "default": null,
            "description": "Latest displayed payment date when the bill has multiple payment dates.",
            "format": "date",
            "nullable": true,
            "title": "Payment Date Range End",
            "type": "string"
          },
          "payment_method": {
            "default": null,
            "nullable": true,
            "title": "Payment Method",
            "type": "string"
          },
          "payment_status": {
            "description": "Payment status of the bill. Null when not included in the result, as in bill search results; the bill details lookup returns it for a specific bill.",
            "nullable": true,
            "title": "Payment Status",
            "type": "string"
          },
          "status_summary": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BillStatusSummary"
              }
            ],
            "default": null,
            "description": "Canonical lifecycle state for this bill.",
            "nullable": true
          },
          "vendor_id": {
            "default": null,
            "description": "UUID of the bill's vendor (payee), or null when the bill has no vendor yet.",
            "nullable": true,
            "title": "Vendor Id",
            "type": "string"
          },
          "vendor_name": {
            "title": "Vendor Name",
            "type": "string"
          }
        },
        "required": [
          "amount",
          "approval_status",
          "currency",
          "due_date",
          "id",
          "invoice_number",
          "memo",
          "payment_status",
          "vendor_name"
        ],
        "title": "BillInfo",
        "type": "object"
      },
      "BillInvoiceInfo": {
        "description": "Information about a single bill invoice attachment.",
        "properties": {
          "id": {
            "title": "Id",
            "type": "string"
          },
          "invoice_url": {
            "title": "Invoice Url",
            "type": "string"
          },
          "original_filename": {
            "nullable": true,
            "title": "Original Filename",
            "type": "string"
          },
          "type": {
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "id",
          "invoice_url",
          "original_filename",
          "type"
        ],
        "title": "BillInvoiceInfo",
        "type": "object"
      },
      "BillInvoiceUploadLinkOutput": {
        "properties": {
          "expires_at": {
            "description": "When the link stops working.",
            "format": "date-time",
            "title": "Expires At",
            "type": "string"
          },
          "instructions": {
            "description": "How to upload the file.",
            "title": "Instructions",
            "type": "string"
          },
          "upload_url": {
            "description": "One-time URL that accepts the invoice file with POST.",
            "title": "Upload Url",
            "type": "string"
          }
        },
        "required": [
          "expires_at",
          "instructions",
          "upload_url"
        ],
        "title": "BillInvoiceUploadLinkOutput",
        "type": "object"
      },
      "BillInvoicesResult": {
        "description": "All invoice attachments for a bill.",
        "properties": {
          "bill_id": {
            "title": "Bill Id",
            "type": "string"
          },
          "invoices": {
            "items": {
              "$ref": "#/components/schemas/BillInvoiceInfo"
            },
            "title": "Invoices",
            "type": "array"
          },
          "total_count": {
            "title": "Total Count",
            "type": "integer"
          }
        },
        "required": [
          "bill_id",
          "invoices",
          "total_count"
        ],
        "title": "BillInvoicesResult",
        "type": "object"
      },
      "BillLineAccountingField": {
        "description": "An accounting field selection on one bill line item.",
        "properties": {
          "category": {
            "description": "Accounting field name, e.g. \"GL Account\".",
            "title": "Category",
            "type": "string"
          },
          "option": {
            "description": "Selected option name.",
            "title": "Option",
            "type": "string"
          },
          "option_code": {
            "default": null,
            "description": "Selected option's ERP code, when it has one.",
            "nullable": true,
            "title": "Option Code",
            "type": "string"
          },
          "option_id": {
            "description": "Selected option UUID.",
            "nullable": true,
            "title": "Option Id",
            "type": "string"
          }
        },
        "required": [
          "category",
          "option",
          "option_id"
        ],
        "title": "BillLineAccountingField",
        "type": "object"
      },
      "BillLineItemDetails": {
        "description": "A submitted bill line item visible on the bill.",
        "properties": {
          "accounting_fields": {
            "description": "Accounting field selections coded on this line item.",
            "items": {
              "$ref": "#/components/schemas/BillLineAccountingField"
            },
            "title": "Accounting Fields",
            "type": "array"
          },
          "amount": {
            "nullable": true,
            "title": "Amount",
            "type": "number"
          },
          "description": {
            "nullable": true,
            "title": "Description",
            "type": "string"
          },
          "index": {
            "nullable": true,
            "title": "Index",
            "type": "integer"
          },
          "line_item_id": {
            "nullable": true,
            "title": "Line Item Id",
            "type": "string"
          },
          "line_item_type": {
            "title": "Line Item Type",
            "type": "string"
          },
          "quantity": {
            "nullable": true,
            "title": "Quantity",
            "type": "number"
          },
          "stable_id": {
            "nullable": true,
            "title": "Stable Id",
            "type": "string"
          },
          "unit": {
            "nullable": true,
            "title": "Unit",
            "type": "string"
          },
          "unit_price": {
            "nullable": true,
            "title": "Unit Price",
            "type": "number"
          }
        },
        "required": [
          "amount",
          "description",
          "index",
          "line_item_id",
          "line_item_type",
          "quantity",
          "stable_id",
          "unit",
          "unit_price"
        ],
        "title": "BillLineItemDetails",
        "type": "object"
      },
      "BillLineItemsStatus": {
        "enum": [
          "included",
          "omitted",
          "partial",
          "unavailable"
        ],
        "title": "BillLineItemsStatus",
        "type": "string"
      },
      "BillPayAttachmentType": {
        "enum": [
          "EMAIL",
          "FILE",
          "INVOICE"
        ],
        "title": "BillPayAttachmentType",
        "type": "string",
        "x-enum-descriptions": {
          "EMAIL": "An email associated with the bill.",
          "FILE": "A supporting file attached to the bill.",
          "INVOICE": "The invoice document for the bill."
        }
      },
      "BillPayAttachmentTypeRequestBody": {
        "enum": [
          "EMAIL",
          "FILE",
          "INVOICE"
        ],
        "title": "BillPayAttachmentType",
        "type": "string",
        "x-enum-descriptions": {
          "EMAIL": "An email associated with the bill.",
          "FILE": "A supporting file attached to the bill.",
          "INVOICE": "The invoice document for the bill."
        }
      },
      "BillPayVendorPaymentSpeed": {
        "enum": [
          "EXPEDITED",
          "STANDARD"
        ],
        "title": "BillPayVendorPaymentSpeed",
        "type": "string"
      },
      "BillPayVendorPaymentSpeedRequestBody": {
        "enum": [
          "EXPEDITED",
          "STANDARD"
        ],
        "title": "BillPayVendorPaymentSpeed",
        "type": "string"
      },
      "BillPaymentMethod": {
        "enum": [
          "ACH",
          "AUTOMATIC_CARD_PAYMENT",
          "CARD",
          "CHECK",
          "CRYPTO_WALLET_TRANSFER",
          "DIRECT_DEBIT",
          "DOMESTIC_WIRE",
          "EARLY_PAYMENT_DISCOUNT",
          "FED_NOW",
          "INTERNATIONAL",
          "LOCAL_BANK_TRANSFER",
          "ONE_TIME_CARD",
          "ONE_TIME_CARD_DELIVERY",
          "PAID_MANUALLY",
          "RTP",
          "SWIFT",
          "UNSPECIFIED",
          "VENDOR_CREDIT"
        ],
        "title": "BillPaymentMethod",
        "type": "string",
        "x-enum-descriptions": {
          "ACH": "A US ACH bank transfer.",
          "AUTOMATIC_CARD_PAYMENT": "A card payment that Ramp automatically initiates for the bill.",
          "CARD": "A payment made with an existing Ramp card.",
          "CHECK": "A paper check payment mailed to the vendor.",
          "CRYPTO_WALLET_TRANSFER": "A transfer to a cryptocurrency wallet.",
          "DIRECT_DEBIT": "A direct debit from a Ramp account.",
          "DOMESTIC_WIRE": "A US domestic wire transfer.",
          "EARLY_PAYMENT_DISCOUNT": "A noncash contribution from an early payment discount.",
          "FED_NOW": "An instant FedNow bank transfer.",
          "INTERNATIONAL": "An international bank transfer.",
          "LOCAL_BANK_TRANSFER": "A local bank transfer in a non-USD currency.",
          "ONE_TIME_CARD": "A single-use card payment where the business user pays the vendor directly.",
          "ONE_TIME_CARD_DELIVERY": "A single-use card payment where Ramp sends card details to the vendor contact.",
          "PAID_MANUALLY": "A payment recorded as paid outside of Ramp.",
          "RTP": "A real-time payment bank transfer.",
          "SWIFT": "An international USD-denominated SWIFT bank transfer.",
          "UNSPECIFIED": "No payment method has been selected.",
          "VENDOR_CREDIT": "A payment satisfied with vendor credit."
        }
      },
      "BillPaymentMethodRequestBody": {
        "enum": [
          "ACH",
          "AUTOMATIC_CARD_PAYMENT",
          "CARD",
          "CHECK",
          "CRYPTO_WALLET_TRANSFER",
          "DIRECT_DEBIT",
          "DOMESTIC_WIRE",
          "EARLY_PAYMENT_DISCOUNT",
          "FED_NOW",
          "INTERNATIONAL",
          "LOCAL_BANK_TRANSFER",
          "ONE_TIME_CARD",
          "ONE_TIME_CARD_DELIVERY",
          "PAID_MANUALLY",
          "RTP",
          "SWIFT",
          "UNSPECIFIED",
          "VENDOR_CREDIT"
        ],
        "title": "BillPaymentMethod",
        "type": "string",
        "x-enum-descriptions": {
          "ACH": "A US ACH bank transfer.",
          "AUTOMATIC_CARD_PAYMENT": "A card payment that Ramp automatically initiates for the bill.",
          "CARD": "A payment made with an existing Ramp card.",
          "CHECK": "A paper check payment mailed to the vendor.",
          "CRYPTO_WALLET_TRANSFER": "A transfer to a cryptocurrency wallet.",
          "DIRECT_DEBIT": "A direct debit from a Ramp account.",
          "DOMESTIC_WIRE": "A US domestic wire transfer.",
          "EARLY_PAYMENT_DISCOUNT": "A noncash contribution from an early payment discount.",
          "FED_NOW": "An instant FedNow bank transfer.",
          "INTERNATIONAL": "An international bank transfer.",
          "LOCAL_BANK_TRANSFER": "A local bank transfer in a non-USD currency.",
          "ONE_TIME_CARD": "A single-use card payment where the business user pays the vendor directly.",
          "ONE_TIME_CARD_DELIVERY": "A single-use card payment where Ramp sends card details to the vendor contact.",
          "PAID_MANUALLY": "A payment recorded as paid outside of Ramp.",
          "RTP": "A real-time payment bank transfer.",
          "SWIFT": "An international USD-denominated SWIFT bank transfer.",
          "UNSPECIFIED": "No payment method has been selected.",
          "VENDOR_CREDIT": "A payment satisfied with vendor credit."
        }
      },
      "BillSearchResult": {
        "description": "Search results for bills.",
        "properties": {
          "bills": {
            "items": {
              "$ref": "#/components/schemas/BillInfo"
            },
            "title": "Bills",
            "type": "array"
          },
          "next_page_cursor": {
            "default": null,
            "nullable": true,
            "title": "Next Page Cursor",
            "type": "string"
          },
          "summary": {
            "title": "Summary",
            "type": "string"
          },
          "total_found": {
            "title": "Total Found",
            "type": "integer"
          }
        },
        "required": [
          "bills",
          "summary",
          "total_found"
        ],
        "title": "BillSearchResult",
        "type": "object"
      },
      "BillStatus": {
        "description": "Bill status information.",
        "properties": {
          "amount": {
            "title": "Amount",
            "type": "number"
          },
          "approval_status": {
            "title": "Approval Status",
            "type": "string"
          },
          "currency": {
            "title": "Currency",
            "type": "string"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "invoice_number": {
            "nullable": true,
            "title": "Invoice Number",
            "type": "string"
          },
          "next_action_required": {
            "nullable": true,
            "title": "Next Action Required",
            "type": "string"
          },
          "payment_status": {
            "title": "Payment Status",
            "type": "string"
          },
          "summary": {
            "title": "Summary",
            "type": "string"
          },
          "vendor_name": {
            "title": "Vendor Name",
            "type": "string"
          }
        },
        "required": [
          "amount",
          "approval_status",
          "currency",
          "id",
          "invoice_number",
          "next_action_required",
          "payment_status",
          "summary",
          "vendor_name"
        ],
        "title": "BillStatus",
        "type": "object"
      },
      "BillStatusSummary": {
        "description": "Short summary of a bill or draft bill's status",
        "enum": [
          "APPROVAL_PENDING",
          "APPROVAL_REJECTED",
          "ARCHIVED",
          "AWAITING_PAYMENT",
          "AWAITING_RELEASE",
          "BLOCKED",
          "DRAFT_MISSING_INFO",
          "DRAFT_PARSING",
          "DRAFT_QUEUED",
          "DRAFT_READY",
          "HELD_BY_PROVIDER",
          "ON_HOLD",
          "PAYMENT_COMPLETED",
          "PAYMENT_DETAILS_MISSING",
          "PAYMENT_ERROR",
          "PAYMENT_NOT_INSTRUCTED",
          "PAYMENT_PROCESSING",
          "PAYMENT_READY",
          "PAYMENT_SCHEDULED",
          "PENDING_VENDOR_APPROVAL",
          "TRANSACTION_PENDING",
          "WAITING_FOR_TRANSACTION_MATCH",
          "WAITING_FOR_TRANSFER_MATCH",
          "WAITING_FOR_VENDOR"
        ],
        "title": "BillStatusSummary",
        "type": "string",
        "x-enum-descriptions": {
          "APPROVAL_PENDING": "The bill is waiting for one or more approvals.",
          "APPROVAL_REJECTED": "The bill was rejected in the approval flow.",
          "ARCHIVED": "The bill has been archived.",
          "AWAITING_PAYMENT": "The bill is waiting for the business to send push-payment funding.",
          "AWAITING_RELEASE": "The bill is waiting for payment release.",
          "BLOCKED": "The bill is blocked from payment initiation or approval.",
          "DRAFT_MISSING_INFO": "The draft bill is missing required information.",
          "DRAFT_PARSING": "The draft bill is being parsed (e.g., via OCR).",
          "DRAFT_QUEUED": "The draft bill is queued for automatic conversion to a bill upon vendor approval.",
          "DRAFT_READY": "The draft bill is ready to be submitted as a bill.",
          "HELD_BY_PROVIDER": "The bill payment is held by the payment provider.",
          "ON_HOLD": "The bill has been placed on hold.",
          "PAYMENT_COMPLETED": "The bill has been paid.",
          "PAYMENT_DETAILS_MISSING": "The bill is missing required payment details.",
          "PAYMENT_ERROR": "The bill payment failed.",
          "PAYMENT_NOT_INSTRUCTED": "The bill uses Ramp payments but has not been scheduled yet.",
          "PAYMENT_PROCESSING": "The bill payment has been initiated and is processing.",
          "PAYMENT_READY": "The bill is ready for payment.",
          "PAYMENT_SCHEDULED": "The bill payment is scheduled.",
          "PENDING_VENDOR_APPROVAL": "The bill is waiting for a vendor edit to be approved.",
          "TRANSACTION_PENDING": "The card has a pending transaction matching the payment amount that will match upon clearing.",
          "WAITING_FOR_TRANSACTION_MATCH": "The bill is paid by card and is waiting for a matching card transaction.",
          "WAITING_FOR_TRANSFER_MATCH": "The bill is paid by direct debit and is waiting for a matching wallet transfer.",
          "WAITING_FOR_VENDOR": "The bill is waiting on required vendor information."
        }
      },
      "BillStatusSummaryRequestBody": {
        "description": "Short summary of a bill or draft bill's status",
        "enum": [
          "APPROVAL_PENDING",
          "APPROVAL_REJECTED",
          "ARCHIVED",
          "AWAITING_PAYMENT",
          "AWAITING_RELEASE",
          "BLOCKED",
          "DRAFT_MISSING_INFO",
          "DRAFT_PARSING",
          "DRAFT_QUEUED",
          "DRAFT_READY",
          "HELD_BY_PROVIDER",
          "ON_HOLD",
          "PAYMENT_COMPLETED",
          "PAYMENT_DETAILS_MISSING",
          "PAYMENT_ERROR",
          "PAYMENT_NOT_INSTRUCTED",
          "PAYMENT_PROCESSING",
          "PAYMENT_READY",
          "PAYMENT_SCHEDULED",
          "PENDING_VENDOR_APPROVAL",
          "TRANSACTION_PENDING",
          "WAITING_FOR_TRANSACTION_MATCH",
          "WAITING_FOR_TRANSFER_MATCH",
          "WAITING_FOR_VENDOR"
        ],
        "title": "BillStatusSummary",
        "type": "string",
        "x-enum-descriptions": {
          "APPROVAL_PENDING": "The bill is waiting for one or more approvals.",
          "APPROVAL_REJECTED": "The bill was rejected in the approval flow.",
          "ARCHIVED": "The bill has been archived.",
          "AWAITING_PAYMENT": "The bill is waiting for the business to send push-payment funding.",
          "AWAITING_RELEASE": "The bill is waiting for payment release.",
          "BLOCKED": "The bill is blocked from payment initiation or approval.",
          "DRAFT_MISSING_INFO": "The draft bill is missing required information.",
          "DRAFT_PARSING": "The draft bill is being parsed (e.g., via OCR).",
          "DRAFT_QUEUED": "The draft bill is queued for automatic conversion to a bill upon vendor approval.",
          "DRAFT_READY": "The draft bill is ready to be submitted as a bill.",
          "HELD_BY_PROVIDER": "The bill payment is held by the payment provider.",
          "ON_HOLD": "The bill has been placed on hold.",
          "PAYMENT_COMPLETED": "The bill has been paid.",
          "PAYMENT_DETAILS_MISSING": "The bill is missing required payment details.",
          "PAYMENT_ERROR": "The bill payment failed.",
          "PAYMENT_NOT_INSTRUCTED": "The bill uses Ramp payments but has not been scheduled yet.",
          "PAYMENT_PROCESSING": "The bill payment has been initiated and is processing.",
          "PAYMENT_READY": "The bill is ready for payment.",
          "PAYMENT_SCHEDULED": "The bill payment is scheduled.",
          "PENDING_VENDOR_APPROVAL": "The bill is waiting for a vendor edit to be approved.",
          "TRANSACTION_PENDING": "The card has a pending transaction matching the payment amount that will match upon clearing.",
          "WAITING_FOR_TRANSACTION_MATCH": "The bill is paid by card and is waiting for a matching card transaction.",
          "WAITING_FOR_TRANSFER_MATCH": "The bill is paid by direct debit and is waiting for a matching wallet transfer.",
          "WAITING_FOR_VENDOR": "The bill is waiting on required vendor information."
        }
      },
      "BillSyncStatus": {
        "description": "This enum represents the sync status of a bill with the ERP system.\nA bill can be in one of the following states:\n- NOT_SYNCED: The bill has not been synced with the ERP system.\n- BILL_SYNCED: The bill has been synced with the ERP system but its payment has not\n- FULLY_SYNCED: The bill and its associated bill payment has been synced\nA bill's payment cannot be synced without the bill being synced.",
        "enum": [
          "BILL_SYNCED",
          "FULLY_SYNCED",
          "NOT_SYNCED"
        ],
        "title": "BillSyncStatus",
        "type": "string"
      },
      "BillingAddress": {
        "properties": {
          "city": {
            "title": "City",
            "type": "string"
          },
          "country": {
            "title": "Country",
            "type": "string"
          },
          "line1": {
            "title": "Line1",
            "type": "string"
          },
          "line2": {
            "default": null,
            "nullable": true,
            "title": "Line2",
            "type": "string"
          },
          "postal_code": {
            "title": "Postal Code",
            "type": "string"
          },
          "state": {
            "default": null,
            "nullable": true,
            "title": "State",
            "type": "string"
          }
        },
        "required": [
          "city",
          "country",
          "line1",
          "postal_code"
        ],
        "title": "BillingAddress",
        "type": "object"
      },
      "BlankCanvasApprovalChainDetailsOutput": {
        "properties": {
          "details": {
            "$ref": "#/components/schemas/LocalizedBlankCanvasApprovalChainDetails"
          },
          "viewer": {
            "$ref": "#/components/schemas/WorkflowsDebuggerViewerContext"
          }
        },
        "required": [
          "details",
          "viewer"
        ],
        "title": "BlankCanvasApprovalChainDetailsOutput",
        "type": "object"
      },
      "BlanketParentPurchaseOrderInfo": {
        "properties": {
          "purchase_order_id": {
            "title": "Purchase Order Id",
            "type": "string"
          },
          "purchase_order_number": {
            "default": null,
            "nullable": true,
            "title": "Purchase Order Number",
            "type": "string"
          }
        },
        "required": [
          "purchase_order_id"
        ],
        "title": "BlanketParentPurchaseOrderInfo",
        "type": "object"
      },
      "BlanketPurchaseOrderBalancesInfo": {
        "description": "A blanket PO's balances from its approved release POs, in its currency.",
        "properties": {
          "available_amount": {
            "description": "The blanket PO total minus used_amount: what new release POs can still order. Negative when release POs spend past the total.",
            "title": "Available Amount",
            "type": "number"
          },
          "spent_amount": {
            "description": "Billed plus paid and pending card spend on approved release POs.",
            "title": "Spent Amount",
            "type": "number"
          },
          "used_amount": {
            "description": "What approved release POs hold against the blanket PO: an open release PO holds the larger of its total and its spend; a closed one holds its spend.",
            "title": "Used Amount",
            "type": "number"
          }
        },
        "required": [
          "available_amount",
          "spent_amount",
          "used_amount"
        ],
        "title": "BlanketPurchaseOrderBalancesInfo",
        "type": "object"
      },
      "BlanketPurchaseOrderLineInfo": {
        "properties": {
          "released_quantity": {
            "description": "The quantity approved release POs hold against this line.",
            "title": "Released Quantity",
            "type": "number"
          },
          "remaining_quantity": {
            "description": "The quantity still open to new release POs. Unlike the line's top-level remaining_quantity, this does not depend on billing.",
            "title": "Remaining Quantity",
            "type": "number"
          }
        },
        "required": [
          "released_quantity",
          "remaining_quantity"
        ],
        "title": "BlanketPurchaseOrderLineInfo",
        "type": "object"
      },
      "BlanketPurchaseOrderReleaseLineRequestBody": {
        "properties": {
          "blanket_purchase_order_line_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UUIDStrRequestBody"
              }
            ],
            "description": "UUID of a line on the blanket PO to draw from."
          },
          "quantity": {
            "description": "Quantity to release from this line, in the line's unit. Must be more than 0 and at most what the line has left.",
            "oneOf": [
              {
                "exclusiveMinimum": true,
                "minimum": 0.0,
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "title": "Quantity"
          }
        },
        "required": [
          "blanket_purchase_order_line_uuid",
          "quantity"
        ],
        "title": "BlanketPurchaseOrderReleaseLine",
        "type": "object"
      },
      "BlanketReleasePurchaseOrderInfo": {
        "properties": {
          "amount": {
            "default": "0",
            "title": "Amount",
            "type": "number"
          },
          "currency": {
            "default": null,
            "nullable": true,
            "title": "Currency",
            "type": "string"
          },
          "purchase_order_id": {
            "title": "Purchase Order Id",
            "type": "string"
          },
          "purchase_order_number": {
            "default": null,
            "description": "Null until the release PO is approved.",
            "nullable": true,
            "title": "Purchase Order Number",
            "type": "string"
          },
          "request_name": {
            "default": null,
            "nullable": true,
            "title": "Request Name",
            "type": "string"
          },
          "request_status": {
            "default": null,
            "nullable": true,
            "title": "Request Status",
            "type": "string"
          },
          "status": {
            "default": null,
            "nullable": true,
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "purchase_order_id"
        ],
        "title": "BlanketReleasePurchaseOrderInfo",
        "type": "object"
      },
      "BlockedOptionsV1": {
        "description": "Options in a result that the company's booking rules block.\n\nBlocked options are left out, or listed after every bookable one, while\nanything the rules allow was found; otherwise the result shows them,\neach marked ``is_blocked``.",
        "properties": {
          "blocked_count": {
            "description": "How many options (flights, fares, hotels, or room rates) this result found that a booking rule blocks booking. They are left out, or listed last and marked is_blocked.",
            "minimum": 1,
            "title": "Blocked Count",
            "type": "integer"
          },
          "message": {
            "description": "Summary of what can't be booked and why, safe to show the user verbatim.",
            "title": "Message",
            "type": "string"
          },
          "only_blocked_results": {
            "default": false,
            "description": "True when every option this result shows is blocked, each marked is_blocked: nothing the rules allow was found. None of them can be booked.",
            "title": "Only Blocked Results",
            "type": "boolean"
          },
          "reasons": {
            "description": "Distinct customer-facing reasons from the matching booking rules, safe to show the user verbatim.",
            "items": {
              "type": "string"
            },
            "title": "Reasons",
            "type": "array"
          }
        },
        "required": [
          "blocked_count",
          "message"
        ],
        "title": "BlockedOptionsV1",
        "type": "object"
      },
      "BoardType": {
        "enum": [
          "ALL_INCLUSIVE",
          "BREAKFAST",
          "NONE"
        ],
        "title": "BoardType",
        "type": "string"
      },
      "BoardTypeRequestBody": {
        "enum": [
          "ALL_INCLUSIVE",
          "BREAKFAST",
          "NONE"
        ],
        "title": "BoardType",
        "type": "string"
      },
      "BookingApprovalDetails": {
        "description": "Current approval state for a booking request.",
        "properties": {
          "display_status": {
            "default": null,
            "description": "Ready-to-display approval message. Use this verbatim and do not describe a soft-approved booking as blocked on approval.",
            "nullable": true,
            "title": "Display Status",
            "type": "string"
          },
          "pending_approval_summary": {
            "default": null,
            "description": "Ready-to-display pending status. Use this verbatim.",
            "nullable": true,
            "title": "Pending Approval Summary",
            "type": "string"
          },
          "requested_at": {
            "description": "When the booking request was submitted for approval.",
            "format": "date-time",
            "title": "Requested At",
            "type": "string"
          },
          "status": {
            "description": "Canonical approval-chain status.",
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "requested_at",
          "status"
        ],
        "title": "BookingApprovalDetails",
        "type": "object"
      },
      "BookingCancellationDetailsForAgent": {
        "description": "Qualitative cancellation options and routing, without refund or fee amounts.",
        "properties": {
          "cancellable_flight_leg_indexes": {
            "description": "0-based legs, in itinerary order, that can be cancelled on their own while keeping the rest of the booking. Empty when no flight can be cancelled separately.",
            "items": {
              "type": "integer"
            },
            "title": "Cancellable Flight Leg Indexes",
            "type": "array"
          },
          "flight_leg_index": {
            "default": null,
            "description": "0-based flight leg these options cover on its own; null when they cover the entire booking",
            "nullable": true,
            "title": "Flight Leg Index",
            "type": "integer"
          },
          "rendered_response": {
            "default": "",
            "description": "Markdown explanation of current cancellation options, with an available action link or support offer. Contains no refund, credit, or fee amounts.",
            "title": "Rendered Response",
            "type": "string"
          },
          "requires_quote_reconfirmation": {
            "default": false,
            "description": "The latest whole-flight cancellation request was rejected because its quote changed, and current eligibility permits a fresh in-chat preview and confirmation. The web cancellation action remains unavailable. No cancellation has been performed.",
            "title": "Requires Quote Reconfirmation",
            "type": "boolean"
          },
          "self_serve_action": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BookingSelfServeAction"
              }
            ],
            "default": null,
            "description": "Available web cancellation action, or None when cancellation is unavailable on the web. No cancellation has been performed.",
            "nullable": true
          },
          "support": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BookingSupportRouting"
              }
            ],
            "default": null,
            "description": "Booking-specific support routing; no support contact was made.",
            "nullable": true
          }
        },
        "title": "BookingCancellationDetailsForAgent",
        "type": "object"
      },
      "BookingCancellationDetailsRequestBody": {
        "description": "Check cancellation options for an existing flight, hotel, or car reservation.\n\nReturns a qualitative cancellation message, an available self-service link,\nand booking-specific support routing. ``requires_quote_reconfirmation`` marks\na flight cancellation whose changed quote needs fresh in-chat review and\nconfirmation, even though web cancellation is unavailable. It does not return\nrefund, credit, or fee amounts, cancel a reservation, withdraw a request, or\ncontact support.\nRequires a reservation visible to the acting user; an unfulfilled booking\nrequest returns a failed-precondition error. For a flight booking whose\nflights are ticketed separately, it lists the legs that can be cancelled on\ntheir own, and ``flight_leg_index`` checks cancelling just one of them.",
        "properties": {
          "booking_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UUIDStrRequestBody"
              }
            ],
            "description": "Parent or sub-booking UUID, or a booking-request UUID linked to an existing reservation. A processing request is valid only when it already has a reservation."
          },
          "flight_leg_index": {
            "default": null,
            "description": "For a flight booking, the 0-based leg in itinerary order to check cancelling on its own while keeping the rest of the booking. Omit for the entire booking, hotels, and cars.",
            "minimum": 0,
            "nullable": true,
            "title": "Flight Leg Index",
            "type": "integer"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "booking_id",
          "rationale"
        ],
        "title": "BookingCancellationDetails",
        "type": "object"
      },
      "BookingCancellationState": {
        "enum": [
          "ACTION_REQUIRED",
          "FAILED",
          "PENDING",
          "PROCESSING",
          "SUCCESS"
        ],
        "title": "BookingCancellationState",
        "type": "string"
      },
      "BookingCardFundV1": {
        "description": "Server-resolved booking fund line for the booking review card.\n\nResolution precedence: explicitly selected fund > recommended fund > the\nlone eligible fund; the card carries no fund when none resolves.",
        "properties": {
          "available_balance_display": {
            "default": null,
            "description": "Display-final available balance, e.g. '$1,500.00'; null when the traveler cannot view the balance.",
            "nullable": true,
            "title": "Available Balance Display",
            "type": "string"
          },
          "fund_name": {
            "description": "Display name of the resolved fund.",
            "title": "Fund Name",
            "type": "string"
          }
        },
        "required": [
          "fund_name"
        ],
        "title": "BookingCardFundV1",
        "type": "object"
      },
      "BookingCardLoyaltyProgramV1": {
        "description": "One loyalty row of the booking review card.",
        "properties": {
          "display_name": {
            "description": "Display name of the loyalty program, e.g. 'Hilton Honors'.",
            "title": "Display Name",
            "type": "string"
          },
          "logo_url": {
            "default": null,
            "description": "Provider-hosted loyalty program logo URL; null when none.",
            "nullable": true,
            "title": "Logo Url",
            "type": "string"
          }
        },
        "required": [
          "display_name"
        ],
        "title": "BookingCardLoyaltyProgramV1",
        "type": "object"
      },
      "BookingModificationDetailsForAgent": {
        "description": "Modifiability of a booking plus agent-only self-serve and support routing.\n\nEchoes the supplied typed identifier so concurrent results can be matched.\n\nFor modification questions, the rendered text explains eligibility and\navailable self-service. Retrieving these details never modifies the booking.",
        "properties": {
          "booking_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "description": "Parent booking UUID, when the request named the booking by it.",
            "nullable": true
          },
          "booking_request_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "description": "Booking request UUID, when the request named the booking by it.",
            "nullable": true
          },
          "flight_booking_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "description": "Flight booking UUID, when the request named the booking by it.",
            "nullable": true
          },
          "hotel_room_booking_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "description": "Hotel room booking UUID, when the request named the booking by it.",
            "nullable": true
          },
          "modifiability": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ModifiabilityState"
              }
            ],
            "description": "Whether the booking can be modified"
          },
          "rendered_response": {
            "default": "",
            "description": "Markdown explanation of current change options, with any available action link or support offer. No booking was changed.",
            "title": "Rendered Response",
            "type": "string"
          },
          "self_serve_action": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BookingSelfServeAction"
              }
            ],
            "default": null,
            "description": "Available web action: in-place modification, cancel-and-rebook, or cancellation. For a car rental, cancel_and_rebook means a replacement can be booked here while the web link only cancels; the same holds for a flight requested with flight_leg_index that can be cancelled on its own, keeping the rest of the booking. cancel means the replacement must be booked in Ramp. None when no self-service action is available.",
            "nullable": true
          },
          "support": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BookingSupportRouting"
              }
            ],
            "default": null,
            "description": "Booking-specific support routing, not an override of fare restrictions. No support contact was made.",
            "nullable": true
          }
        },
        "required": [
          "modifiability"
        ],
        "title": "BookingModificationDetailsForAgent",
        "type": "object"
      },
      "BookingModificationDetailsRequestBody": {
        "description": "Check change options for an existing flight, hotel, or car reservation.\n\nSupply exactly one booking identifier; omit or leave the others null.\nReturns current modifiability, an available self-service action, a rendered\nexplanation, and booking-specific support routing. Echoes the supplied\nidentifier to match results to bookings. Requires a reservation visible to\nthe acting user. It does not modify, cancel, rebook, or contact support.",
        "properties": {
          "booking_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "Parent reservation UUID, including a car rental's booking UUID.",
            "nullable": true
          },
          "booking_request_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "Booking-request UUID linked to an existing reservation.",
            "nullable": true
          },
          "flight_booking_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "Flight sub-booking UUID, not the parent reservation UUID.",
            "nullable": true
          },
          "flight_leg_index": {
            "default": null,
            "description": "For a multi-leg flight booking, the 0-based leg the traveler wants to change, in the returned itinerary order. Omit for hotels, cars, and single-leg flights.",
            "minimum": 0,
            "nullable": true,
            "title": "Flight Leg Index",
            "type": "integer"
          },
          "hotel_room_booking_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "Hotel room sub-booking UUID, not the parent reservation UUID.",
            "nullable": true
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "BookingModificationDetails",
        "type": "object"
      },
      "BookingOutcome": {
        "enum": [
          "cancelled",
          "failed",
          "fulfilled",
          "pending_approval",
          "processing",
          "rejected"
        ],
        "title": "BookingOutcome",
        "type": "string"
      },
      "BookingProviderStatus": {
        "description": "Supplemental evidence, never a replacement for Ramp's booking lifecycle.",
        "properties": {
          "availability": {
            "description": "Whether stored provider evidence was matched to this exact stay or every booked flight segment.",
            "enum": [
              "available",
              "unavailable",
              "unsupported"
            ],
            "title": "Availability",
            "type": "string"
          },
          "flight_segments": {
            "default": null,
            "description": "Reservation status for every matched booked flight segment, in itinerary order. Null for hotels or when the full booked itinerary cannot be matched uniquely. This does not establish ticket validity.",
            "items": {
              "$ref": "#/components/schemas/FlightSegmentProviderStatus"
            },
            "nullable": true,
            "title": "Flight Segments",
            "type": "array"
          },
          "note": {
            "description": "Evidence limits or reason evidence is unavailable; preserve these limits in the answer.",
            "title": "Note",
            "type": "string"
          },
          "observed_at": {
            "default": null,
            "description": "Provider observation time. Null because Atlas's stored-state API does not expose it.",
            "format": "date-time",
            "nullable": true,
            "title": "Observed At",
            "type": "string"
          },
          "provider": {
            "default": null,
            "description": "Underlying provider of the Atlas hotel record. Null for flights; see flight_segments.",
            "enum": [
              "sabre",
              "spotnana"
            ],
            "nullable": true,
            "title": "Provider",
            "type": "string"
          },
          "retrieved_at": {
            "default": null,
            "description": "When Core retrieved Atlas's stored state, not when the provider observed it.",
            "format": "date-time",
            "nullable": true,
            "title": "Retrieved At",
            "type": "string"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AtlasPnrHotelStayStatus"
              }
            ],
            "default": null,
            "description": "Atlas's normalized status for the matched hotel stay. Null for flights; see flight_segments.",
            "nullable": true
          },
          "status_code": {
            "default": null,
            "description": "Raw hotel provider status code, e.g. Sabre HK; not a live check. Null for flights; see flight_segments.",
            "nullable": true,
            "title": "Status Code",
            "type": "string"
          }
        },
        "required": [
          "availability",
          "note"
        ],
        "title": "BookingProviderStatus",
        "type": "object"
      },
      "BookingRequestResult": {
        "description": "Simplified booking result for chat agent.",
        "properties": {
          "booking_request_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "description": "Booking request UUID"
          },
          "next_steps": {
            "description": "What happens next (approval workflow, confirmation, etc.)",
            "title": "Next Steps",
            "type": "string"
          },
          "outbound_date": {
            "default": null,
            "description": "Canonical outbound flight date string (e.g., 'Sun, Apr 5, 2026'). Use this exact string when showing the booked itinerary date to the user; do not infer or recompute the weekday.",
            "nullable": true,
            "title": "Outbound Date",
            "type": "string"
          },
          "outcome": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BookingOutcome"
              }
            ],
            "description": "Where the booking request stands: pending_approval (waiting for an approver); processing (approved or under soft review, booking not yet confirmed); fulfilled (booking confirmed); failed (the booking attempt errored, not an approver decision; a reservation or charge may still exist); rejected (an approver rejected it); cancelled (the request was cancelled)."
          },
          "refundability": {
            "default": null,
            "description": "Refund policy: REFUNDABLE, NON_REFUNDABLE, PARTIALLY_REFUNDABLE, or UNKNOWN. Use this to inform users about cancellation options.",
            "nullable": true,
            "title": "Refundability",
            "type": "string"
          },
          "return_date": {
            "default": null,
            "description": "Canonical return flight date string for round trips (e.g., 'Sun, Apr 12, 2026'). Use this exact string when showing the booked itinerary date to the user; do not infer or recompute the weekday.",
            "nullable": true,
            "title": "Return Date",
            "type": "string"
          },
          "soft_approval_window_end": {
            "default": null,
            "description": "Display-final deadline in the acting user's preferred timezone for when a secured soft-approved booking will be automatically approved unless rejected. Render verbatim. Null for hard approval and bookings without a pending soft review.",
            "nullable": true,
            "title": "Soft Approval Window End",
            "type": "string"
          },
          "status": {
            "description": "Legacy simplified status. rejected also covers failed and cancelled requests; use outcome to tell them apart.",
            "enum": [
              "approved",
              "booked",
              "pending_approval",
              "rejected"
            ],
            "title": "Status",
            "type": "string"
          },
          "total_amount": {
            "description": "Total booking amount",
            "title": "Total Amount",
            "type": "string"
          },
          "trip_follow_up": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TripFollowUp"
              }
            ],
            "default": null,
            "description": "Present only when the trip this booking joined has no flight (after a hotel booking) or no lodging (after a flight booking) yet. Null otherwise.",
            "nullable": true
          }
        },
        "required": [
          "booking_request_id",
          "next_steps",
          "outcome",
          "status",
          "total_amount"
        ],
        "title": "BookingRequestResult",
        "type": "object"
      },
      "BookingRequestStatus": {
        "enum": [
          "APPROVED",
          "CANCELLED",
          "ERROR",
          "FULFILLED",
          "INITIALIZED",
          "PROCESSING",
          "REJECTED",
          "REQUESTED",
          "SOFT_APPROVED"
        ],
        "title": "BookingRequestStatus",
        "type": "string"
      },
      "BookingSelfServeAction": {
        "description": "An available web action; absence means no self-service action was returned.",
        "properties": {
          "cta_label": {
            "description": "User-facing label for the action link.",
            "title": "Cta Label",
            "type": "string"
          },
          "deep_link_url": {
            "description": "Booking-specific Ramp web URL where the traveler can complete this action. Returning the link changes nothing.",
            "title": "Deep Link Url",
            "type": "string"
          },
          "kind": {
            "description": "Web action: cancel a booking, modify it in place, or cancel and book a replacement. Availability does not mean it was performed.",
            "enum": [
              "cancel",
              "cancel_and_rebook",
              "modify"
            ],
            "title": "Kind",
            "type": "string"
          }
        },
        "required": [
          "cta_label",
          "deep_link_url",
          "kind"
        ],
        "title": "BookingSelfServeAction",
        "type": "object"
      },
      "BookingServiceStatus": {
        "properties": {
          "is_down": {
            "title": "Is Down",
            "type": "boolean"
          },
          "message": {
            "default": null,
            "nullable": true,
            "title": "Message",
            "type": "string"
          },
          "note": {
            "default": null,
            "nullable": true,
            "title": "Note",
            "type": "string"
          }
        },
        "required": [
          "is_down"
        ],
        "title": "BookingServiceStatus",
        "type": "object"
      },
      "BookingServiceStatusResponse": {
        "properties": {
          "car_booking_status": {
            "$ref": "#/components/schemas/BookingServiceStatus"
          },
          "flight_booking_status": {
            "$ref": "#/components/schemas/BookingServiceStatus"
          },
          "hotel_booking_status": {
            "$ref": "#/components/schemas/BookingServiceStatus"
          }
        },
        "required": [
          "car_booking_status",
          "flight_booking_status",
          "hotel_booking_status"
        ],
        "title": "BookingServiceStatusResponse",
        "type": "object"
      },
      "BookingSupportRouting": {
        "description": "How to connect a traveler to the travel partner that manages their booking.\n\nThe chat/phone surface depends on the booking's inventory source and (for\nDuffel) the customer's subscription tier.",
        "properties": {
          "chat_deep_link_url": {
            "default": null,
            "description": "Booking-specific Ramp URL that opens the partner's chat. Sharing the URL does not start a chat or send the conversation to support.",
            "nullable": true,
            "title": "Chat Deep Link Url",
            "type": "string"
          },
          "in_chat_support_available": {
            "default": false,
            "description": "When true, the traveler can be connected to this support team directly in this conversation. When false, an in-chat connection is unavailable; other channels may still be supported.",
            "title": "In Chat Support Available",
            "type": "boolean"
          },
          "phone_handoff_available": {
            "default": false,
            "description": "When true, the travel support handoff can prepare phone support for this booking. When false, phone support through the handoff is unavailable; chat may still be supported.",
            "title": "Phone Handoff Available",
            "type": "boolean"
          },
          "phone_number": {
            "default": null,
            "description": "Support phone number, already formatted for display.",
            "nullable": true,
            "title": "Phone Number",
            "type": "string"
          },
          "requires_support_handoff": {
            "default": false,
            "description": "When true, connect phone or chat through the travel support handoff tool, and share only the phone number (and PIN, if any) it returns. When false, share the returned contact fields.",
            "title": "Requires Support Handoff",
            "type": "boolean"
          },
          "support_intro_message": {
            "description": "User-facing introduction identifying the booking's support partner.",
            "title": "Support Intro Message",
            "type": "string"
          },
          "support_team_name": {
            "description": "Name of Ramp's travel partner that manages this booking",
            "title": "Support Team Name",
            "type": "string"
          },
          "support_url": {
            "default": null,
            "description": "Booking link for contacting this partner in Ramp, outside this conversation. It does not establish a support connection.",
            "nullable": true,
            "title": "Support Url",
            "type": "string"
          }
        },
        "required": [
          "support_intro_message",
          "support_team_name"
        ],
        "title": "BookingSupportRouting",
        "type": "object"
      },
      "BookingType": {
        "enum": [
          "CAR",
          "FLIGHT",
          "HOTEL"
        ],
        "title": "BookingType",
        "type": "string"
      },
      "BookingUnavailableCancellationReason": {
        "enum": [
          "BOOKING_HAS_PASSED",
          "LEG_COUPON_NOT_OPEN",
          "LEG_NOT_ACTIVE",
          "LEG_NOT_INDEPENDENTLY_CANCELLABLE",
          "MODIFICATION_IN_PROGRESS",
          "NON_REFUNDABLE",
          "NO_RETAINED_LEGS",
          "PARTIAL_CANCELLATION_UNSUPPORTED",
          "PENDING_CANCELLATION",
          "PREVIOUS_CANCELLATION_FAILED",
          "REQUIRES_SUPPORT",
          "REQUIRES_TICKET_REISSUE",
          "SELF_SERVICE_UNAVAILABLE",
          "SPLIT_TICKET_PARTIAL_CANCELLATION_UNSUPPORTED",
          "SUCCESSFUL_CANCELLATION"
        ],
        "title": "BookingUnavailableCancellationReason",
        "type": "string"
      },
      "BookingsResult": {
        "description": "Confirmed, in-progress, and optionally unsuccessful travel bookings.",
        "properties": {
          "cars": {
            "description": "Car rental bookings: confirmed and pending/in-progress by default; unsuccessful unfulfilled requests are included only when include_failed=True. Ordered upcoming-first by soonest pickup, then past rentals most recent first. Use a car's id with BookingCancellationDetails / BookingModificationDetails to cancel or change it.",
            "items": {
              "$ref": "#/components/schemas/CarBookingInfo"
            },
            "title": "Cars",
            "type": "array"
          },
          "flights": {
            "description": "Flight bookings: confirmed and pending/in-progress by default; unsuccessful unfulfilled requests are included only when include_failed=True. Ordered upcoming-first by soonest departure (the first upcoming entry is the user's next flight), then past flights most recent first. Check the status field to distinguish: ticket statuses like CONFIRMED/CANCELLED are confirmed bookings; PENDING_APPROVAL/PROCESSING/FAILED/CANCELLED/REJECTED can describe unfulfilled requests. Unsuccessful requests do NOT prevent a new booking.",
            "items": {
              "$ref": "#/components/schemas/FlightBookingInfo"
            },
            "title": "Flights",
            "type": "array"
          },
          "hotels": {
            "description": "Hotel bookings: confirmed and pending/in-progress by default; unsuccessful unfulfilled requests are included only when include_failed=True. Ordered upcoming-first by soonest check-in, then past stays most recent first. Check the status field to distinguish. Unsuccessful requests do NOT prevent a new booking.",
            "items": {
              "$ref": "#/components/schemas/HotelBookingInfo"
            },
            "title": "Hotels",
            "type": "array"
          },
          "past_cars_excluded": {
            "default": 0,
            "description": "Number of past/completed car rentals that were hidden because include_past was False. If > 0, tell the user there are also N past car rentals and that you can show them if they ask.",
            "title": "Past Cars Excluded",
            "type": "integer"
          },
          "past_flights_excluded": {
            "default": 0,
            "description": "Number of past/completed flight bookings that were hidden because include_past was False. If > 0, tell the user there are also N past flights and that you can show them if they ask; do NOT cancel or modify based on these hidden past bookings.",
            "title": "Past Flights Excluded",
            "type": "integer"
          },
          "past_hotels_excluded": {
            "default": 0,
            "description": "Number of past/completed hotel bookings that were hidden because include_past was False. If > 0, tell the user there are also N past hotel stays and that you can show them if they ask.",
            "title": "Past Hotels Excluded",
            "type": "integer"
          },
          "results_truncated": {
            "default": false,
            "description": "Whether additional matching bookings were omitted by limit. When true, the returned lists are not exhaustive; ask the user to narrow the filters instead of claiming these are all matches.",
            "title": "Results Truncated",
            "type": "boolean"
          },
          "total_cars": {
            "default": 0,
            "description": "Total number of car rental entries",
            "title": "Total Cars",
            "type": "integer"
          },
          "total_flights": {
            "default": 0,
            "description": "Total number of flight entries",
            "title": "Total Flights",
            "type": "integer"
          },
          "total_hotels": {
            "default": 0,
            "description": "Total number of hotel entries",
            "title": "Total Hotels",
            "type": "integer"
          },
          "verification_incomplete": {
            "default": false,
            "deprecated": true,
            "description": "Deprecated compatibility alias for results_truncated.",
            "title": "Verification Incomplete",
            "type": "boolean"
          }
        },
        "title": "BookingsResult",
        "type": "object"
      },
      "BoolFieldState": {
        "properties": {
          "description": {
            "title": "Description",
            "type": "string"
          },
          "fulfilled": {
            "title": "Fulfilled",
            "type": "boolean"
          },
          "required": {
            "title": "Required",
            "type": "boolean"
          },
          "value": {
            "title": "Value",
            "type": "boolean"
          }
        },
        "required": [
          "description",
          "fulfilled",
          "required",
          "value"
        ],
        "title": "BoolFieldState",
        "type": "object"
      },
      "BreBCounterpartyDetails": {
        "additionalProperties": true,
        "description": "Bre-B (Colombia) deposit details.",
        "properties": {
          "account_name": {
            "description": "Name on the destination account.",
            "title": "Account Name",
            "type": "string"
          },
          "bank_mailing_address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UnvalidatedMailingAddress"
              }
            ],
            "description": "Mailing address of the destination bank.",
            "title": "Bank Mailing Address"
          },
          "bre_b_key": {
            "description": "Colombian Bre-B key identifying the destination account.",
            "title": "Bre B Key",
            "type": "string"
          },
          "currency": {
            "default": "COP",
            "description": "Currency of the destination account.",
            "enum": [
              "COP"
            ],
            "title": "Currency",
            "type": "string"
          },
          "mailing_address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UnvalidatedMailingAddress"
              }
            ],
            "default": null,
            "description": "Mailing address of the counterparty.",
            "nullable": true
          },
          "payment_method": {
            "default": "INTERNATIONAL",
            "description": "Payment method.",
            "enum": [
              "INTERNATIONAL"
            ],
            "title": "Payment Method",
            "type": "string"
          },
          "type": {
            "default": "bre_b",
            "description": "Counterparty details type.",
            "enum": [
              "bre_b"
            ],
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "bre_b_key"
        ],
        "title": "BreBCounterpartyDetails",
        "type": "object"
      },
      "BudgetAmountType": {
        "enum": [
          "actual",
          "committed"
        ],
        "title": "BudgetAmountType",
        "type": "string"
      },
      "BudgetAmountTypeRequestBody": {
        "enum": [
          "actual",
          "committed"
        ],
        "title": "BudgetAmountType",
        "type": "string"
      },
      "BudgetBusinessEntityCondition": {
        "additionalProperties": false,
        "description": "Match when the source's business entity is one of these UUIDs.\n\nA source without a business entity does not match.",
        "properties": {
          "type": {
            "default": "business_entity",
            "enum": [
              "business_entity"
            ],
            "title": "Type",
            "type": "string"
          },
          "value_ids": {
            "items": {
              "$ref": "#/components/schemas/UUIDStr"
            },
            "maxItems": 100,
            "minItems": 1,
            "title": "Value Ids",
            "type": "array"
          }
        },
        "required": [
          "value_ids"
        ],
        "title": "BudgetBusinessEntityCondition",
        "type": "object"
      },
      "BudgetContributionSource": {
        "description": "Logical sources; serialized values are part of persisted contribution hashes.",
        "enum": [
          "general_ledger",
          "purchase_order",
          "spend_event"
        ],
        "title": "BudgetContributionSource",
        "type": "string"
      },
      "BudgetDepartmentCondition": {
        "additionalProperties": false,
        "description": "Match when the source's Ramp department is one of these UUIDs.\n\nSpend events use their department; purchase orders use the owner's department.\nA source without a department does not match.",
        "properties": {
          "type": {
            "default": "department",
            "enum": [
              "department"
            ],
            "title": "Type",
            "type": "string"
          },
          "value_ids": {
            "items": {
              "$ref": "#/components/schemas/UUIDStr"
            },
            "maxItems": 100,
            "minItems": 1,
            "title": "Value Ids",
            "type": "array"
          }
        },
        "required": [
          "value_ids"
        ],
        "title": "BudgetDepartmentCondition",
        "type": "object"
      },
      "BudgetDimensionConditionExpression": {
        "additionalProperties": false,
        "description": "One AND rule; any matching rule selects its dimension value once.",
        "properties": {
          "conditions": {
            "items": {
              "discriminator": {
                "mapping": {
                  "business_entity": "#/components/schemas/BudgetBusinessEntityCondition",
                  "department": "#/components/schemas/BudgetDepartmentCondition",
                  "payee": "#/components/schemas/BudgetPayeeCondition",
                  "spend_allocation": "#/components/schemas/BudgetSpendAllocationCondition",
                  "spend_intent": "#/components/schemas/BudgetSpendIntentCondition",
                  "tracking_category": "#/components/schemas/BudgetTrackingCategoryCondition"
                },
                "propertyName": "type"
              },
              "oneOf": [
                {
                  "$ref": "#/components/schemas/BudgetBusinessEntityCondition"
                },
                {
                  "$ref": "#/components/schemas/BudgetDepartmentCondition"
                },
                {
                  "$ref": "#/components/schemas/BudgetPayeeCondition"
                },
                {
                  "$ref": "#/components/schemas/BudgetSpendAllocationCondition"
                },
                {
                  "$ref": "#/components/schemas/BudgetSpendIntentCondition"
                },
                {
                  "$ref": "#/components/schemas/BudgetTrackingCategoryCondition"
                }
              ]
            },
            "maxItems": 128,
            "minItems": 1,
            "title": "Conditions",
            "type": "array"
          },
          "schema_version": {
            "default": 1,
            "enum": [
              1
            ],
            "title": "Schema Version",
            "type": "integer"
          }
        },
        "required": [
          "conditions"
        ],
        "title": "BudgetDimensionConditionExpression",
        "type": "object"
      },
      "BudgetDimensionSourceType": {
        "description": "Source property a dimension is linked to; values are persisted and match condition types.",
        "enum": [
          "business_entity",
          "department",
          "tracking_category"
        ],
        "title": "BudgetDimensionSourceType",
        "type": "string"
      },
      "BudgetEntityCandidate": {
        "description": "A candidate budget row when an entity name matches more than one row.",
        "properties": {
          "label": {
            "description": "Full label for the row, e.g. 'Engineering / Software'",
            "title": "Label",
            "type": "string"
          },
          "remaining_amount": {
            "description": "Budget minus actual and committed spend for this row. Positive is the amount left to spend; negative is the amount over budget.",
            "nullable": true,
            "title": "Remaining Amount",
            "type": "number"
          },
          "row_number": {
            "description": "Row number to pass back as row_number to target this row",
            "title": "Row Number",
            "type": "integer"
          }
        },
        "required": [
          "label",
          "remaining_amount",
          "row_number"
        ],
        "title": "BudgetEntityCandidate",
        "type": "object"
      },
      "BudgetInfo": {
        "description": "Information about a budget.",
        "properties": {
          "budget_name": {
            "description": "Display name of the budget",
            "title": "Budget Name",
            "type": "string"
          },
          "budget_url": {
            "description": "Deep link URL to view the budget in the Ramp web app. Render this as the budget's link; do not build a link yourself.",
            "title": "Budget Url",
            "type": "string"
          },
          "is_active": {
            "description": "Whether the budget is currently active",
            "title": "Is Active",
            "type": "boolean"
          },
          "time_interval": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TimeInterval"
              }
            ],
            "description": "Time interval for the budget (e.g., MONTHLY, QUARTERLY, YEARLY)"
          }
        },
        "required": [
          "budget_name",
          "budget_url",
          "is_active",
          "time_interval"
        ],
        "title": "BudgetInfo",
        "type": "object"
      },
      "BudgetPayeeCondition": {
        "additionalProperties": false,
        "description": "Match when the source's payee (vendor or merchant) is one of these UUIDs.\n\nMerged payees match their surviving payee. A source without a payee does not match.",
        "properties": {
          "type": {
            "default": "payee",
            "enum": [
              "payee"
            ],
            "title": "Type",
            "type": "string"
          },
          "value_ids": {
            "items": {
              "$ref": "#/components/schemas/UUIDStr"
            },
            "maxItems": 100,
            "minItems": 1,
            "title": "Value Ids",
            "type": "array"
          }
        },
        "required": [
          "value_ids"
        ],
        "title": "BudgetPayeeCondition",
        "type": "object"
      },
      "BudgetPeriodScopeRequestBody": {
        "description": "Which time scope of the budget to report remaining amount for.",
        "enum": [
          "current",
          "full"
        ],
        "title": "BudgetPeriodScope",
        "type": "string"
      },
      "BudgetSourceItemSortByRequestBody": {
        "enum": [
          "amount",
          "budget_datetime",
          "budget_line",
          "payee",
          "source",
          "type"
        ],
        "title": "BudgetSourceItemSortBy",
        "type": "string"
      },
      "BudgetSpendAllocationCondition": {
        "additionalProperties": false,
        "description": "Match when the source's spend allocation (fund) is one of these UUIDs.\n\nA source without a spend allocation does not match.",
        "properties": {
          "type": {
            "default": "spend_allocation",
            "enum": [
              "spend_allocation"
            ],
            "title": "Type",
            "type": "string"
          },
          "value_ids": {
            "items": {
              "$ref": "#/components/schemas/UUIDStr"
            },
            "maxItems": 100,
            "minItems": 1,
            "title": "Value Ids",
            "type": "array"
          }
        },
        "required": [
          "value_ids"
        ],
        "title": "BudgetSpendAllocationCondition",
        "type": "object"
      },
      "BudgetSpendIntentCondition": {
        "additionalProperties": false,
        "description": "Match when the source's spend intent (program) is one of these UUIDs.\n\nA source without a spend intent does not match.",
        "properties": {
          "type": {
            "default": "spend_intent",
            "enum": [
              "spend_intent"
            ],
            "title": "Type",
            "type": "string"
          },
          "value_ids": {
            "items": {
              "$ref": "#/components/schemas/UUIDStr"
            },
            "maxItems": 100,
            "minItems": 1,
            "title": "Value Ids",
            "type": "array"
          }
        },
        "required": [
          "value_ids"
        ],
        "title": "BudgetSpendIntentCondition",
        "type": "object"
      },
      "BudgetTrackingCategoryCondition": {
        "additionalProperties": false,
        "description": "Match when the source's option in one accounting category is one of these.\n\nA source with no option selected in this category does not match.",
        "properties": {
          "category_id": {
            "$ref": "#/components/schemas/UUIDStr"
          },
          "type": {
            "default": "tracking_category",
            "enum": [
              "tracking_category"
            ],
            "title": "Type",
            "type": "string"
          },
          "value_ids": {
            "items": {
              "$ref": "#/components/schemas/UUIDStr"
            },
            "maxItems": 100,
            "minItems": 1,
            "title": "Value Ids",
            "type": "array"
          }
        },
        "required": [
          "category_id",
          "value_ids"
        ],
        "title": "BudgetTrackingCategoryCondition",
        "type": "object"
      },
      "BufferApplicationModeRequestBody": {
        "description": "How the business default buffer applies to allocations.\n\nALL_FUNDS \u2013 apply the business default buffer to every allocation\n    regardless of when it was created.\n\nFROM_ENABLED_DATE \u2013 only apply the business default buffer to\n    allocations created on or after ``buffer_product_enabled_at``.",
        "enum": [
          "all_funds",
          "from_enabled_date"
        ],
        "title": "BufferApplicationMode",
        "type": "string"
      },
      "BulkClosePurchaseOrdersRequestBody": {
        "description": "Close one or more purchase orders with a specified reason.\n\nUse after confirming the user wants the listed POs closed. Purchase orders\nmust not already be closed or archived. The user must have permission to\nclose every purchase order in the request.",
        "properties": {
          "close_reason": {
            "description": "Reason for closing these POs. This rationale is recorded on the closed purchase orders.",
            "minLength": 1,
            "title": "Close Reason",
            "type": "string"
          },
          "purchase_order_uuids": {
            "description": "UUIDs of the purchase orders to close",
            "items": {
              "type": "string"
            },
            "maxItems": 100,
            "minItems": 1,
            "title": "Purchase Order Uuids",
            "type": "array"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "close_reason",
          "purchase_order_uuids",
          "rationale"
        ],
        "title": "BulkClosePurchaseOrders",
        "type": "object"
      },
      "BulkClosePurchaseOrdersResult": {
        "properties": {
          "error": {
            "default": null,
            "nullable": true,
            "title": "Error",
            "type": "string"
          },
          "purchase_order_uuids": {
            "items": {
              "type": "string"
            },
            "title": "Purchase Order Uuids",
            "type": "array"
          },
          "success": {
            "title": "Success",
            "type": "boolean"
          }
        },
        "required": [
          "purchase_order_uuids",
          "success"
        ],
        "title": "BulkClosePurchaseOrdersResult",
        "type": "object"
      },
      "BulkReopenPurchaseOrdersRequestBody": {
        "description": "Reopen multiple closed purchase orders.\n\nUse only after confirming the user wants the listed POs reopened. This does\nnot archive or delete POs; reopening restores each PO to its computed active\nlifecycle status when allowed. The user must have permission to reopen every\npurchase order in the request.",
        "properties": {
          "purchase_order_uuids": {
            "description": "UUIDs of the purchase orders to reopen",
            "items": {
              "type": "string"
            },
            "maxItems": 100,
            "minItems": 1,
            "title": "Purchase Order Uuids",
            "type": "array"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "purchase_order_uuids",
          "rationale"
        ],
        "title": "BulkReopenPurchaseOrders",
        "type": "object"
      },
      "BulkReopenPurchaseOrdersResult": {
        "properties": {
          "error": {
            "default": null,
            "nullable": true,
            "title": "Error",
            "type": "string"
          },
          "purchase_order_uuids": {
            "items": {
              "type": "string"
            },
            "title": "Purchase Order Uuids",
            "type": "array"
          },
          "success": {
            "title": "Success",
            "type": "boolean"
          }
        },
        "required": [
          "purchase_order_uuids",
          "success"
        ],
        "title": "BulkReopenPurchaseOrdersResult",
        "type": "object"
      },
      "BulkUploadVendorDocumentsRequestBody": {
        "description": "Bulk upload vendor documents from base64-encoded file content.\n\nUse this for external callers such as CLI or MCP that want to upload\nmultiple vendor documents in one request while reusing Ramp's existing bulk\nvendor document upload flow.",
        "properties": {
          "document_category": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayeeDocumentCategoryRequestBody"
              }
            ],
            "default": null,
            "description": "Only set this when the user has said what kind of documents these are. When set together with vendor_uuid, every document is saved directly to that vendor with this category, skipping the review queue and vendor matching. Requires vendor_uuid. Tax forms (W-9, W-8, 1099 and other tax documents) are not allowed. Leave it out to send documents to the review queue.",
            "nullable": true
          },
          "documents": {
            "description": "Documents to upload in this batch.",
            "items": {
              "$ref": "#/components/schemas/VendorDocumentUploadPayloadRequestBody"
            },
            "minItems": 1,
            "title": "Documents",
            "type": "array"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "vendor_uuid": {
            "default": null,
            "description": "Optional UUID of the vendor/payee to attach all uploaded documents to. If omitted, documents are uploaded into the bulk triage flow.",
            "nullable": true,
            "title": "Vendor Uuid",
            "type": "string"
          }
        },
        "required": [
          "documents",
          "rationale"
        ],
        "title": "BulkUploadVendorDocuments",
        "type": "object"
      },
      "BulkUploadVendorDocumentsResult": {
        "properties": {
          "attached_documents": {
            "default": null,
            "description": "Documents saved directly to the vendor, when document_category was set.",
            "items": {
              "$ref": "#/components/schemas/AttachedVendorDocument"
            },
            "nullable": true,
            "title": "Attached Documents",
            "type": "array"
          },
          "batch_id": {
            "default": null,
            "description": "Identifier of the bulk upload batch. Not set when documents were saved directly to a vendor.",
            "nullable": true,
            "title": "Batch Id",
            "type": "string"
          },
          "document_count": {
            "description": "Number of documents accepted for upload.",
            "title": "Document Count",
            "type": "integer"
          },
          "upload_job_uuid": {
            "default": null,
            "description": "Async job UUID created for the bulk upload batch. Not set when documents were saved directly to a vendor.",
            "nullable": true,
            "title": "Upload Job Uuid",
            "type": "string"
          }
        },
        "required": [
          "document_count"
        ],
        "title": "BulkUploadVendorDocumentsResult",
        "type": "object"
      },
      "BusinessAccountInfo": {
        "properties": {
          "available_balance": {
            "title": "Available Balance",
            "type": "number"
          },
          "currency": {
            "title": "Currency",
            "type": "string"
          },
          "entity_uuid": {
            "title": "Entity Uuid",
            "type": "string"
          },
          "is_overdraft_enabled": {
            "title": "Is Overdraft Enabled",
            "type": "boolean"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "provider": {
            "title": "Provider",
            "type": "string"
          },
          "statement_balance": {
            "title": "Statement Balance",
            "type": "number"
          },
          "status": {
            "title": "Status",
            "type": "string"
          },
          "total_earnings": {
            "title": "Total Earnings",
            "type": "number"
          },
          "uuid": {
            "title": "Uuid",
            "type": "string"
          },
          "yield_rate": {
            "title": "Yield Rate",
            "type": "number"
          }
        },
        "required": [
          "available_balance",
          "currency",
          "entity_uuid",
          "is_overdraft_enabled",
          "name",
          "provider",
          "statement_balance",
          "status",
          "total_earnings",
          "uuid",
          "yield_rate"
        ],
        "title": "BusinessAccountInfo",
        "type": "object"
      },
      "BusinessEntityInfo": {
        "properties": {
          "business_entity_id": {
            "title": "Business Entity Id",
            "type": "string"
          },
          "entity_name": {
            "title": "Entity Name",
            "type": "string"
          },
          "is_primary": {
            "title": "Is Primary",
            "type": "boolean"
          },
          "registration_country_code": {
            "default": null,
            "nullable": true,
            "title": "Registration Country Code",
            "type": "string"
          }
        },
        "required": [
          "business_entity_id",
          "entity_name",
          "is_primary"
        ],
        "title": "BusinessEntityInfo",
        "type": "object"
      },
      "BusinessStatementDateResponse": {
        "description": "Statement close and payment schedule details for the current business.",
        "properties": {
          "billing_day_of_month": {
            "default": null,
            "description": "The configured statement close day of month for the business.",
            "nullable": true,
            "title": "Billing Day Of Month",
            "type": "integer"
          },
          "next_billing_date": {
            "default": null,
            "description": "The next statement close date for the business.",
            "format": "date-time",
            "nullable": true,
            "title": "Next Billing Date",
            "type": "string"
          },
          "next_payment_date": {
            "default": null,
            "description": "The actual next card payment due date or autopay debit date. This may be later than the next statement close date when the business has payment terms.",
            "format": "date-time",
            "nullable": true,
            "title": "Next Payment Date",
            "type": "string"
          }
        },
        "title": "BusinessStatementDateResponse",
        "type": "object"
      },
      "CADCounterpartyDetails": {
        "additionalProperties": true,
        "description": "Bank account details for Canadian dollar payments.",
        "properties": {
          "account_name": {
            "description": "Name on the destination account.",
            "title": "Account Name",
            "type": "string"
          },
          "account_number": {
            "description": "Destination bank account number.",
            "title": "Account Number",
            "type": "string"
          },
          "bank_mailing_address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UnvalidatedMailingAddress"
              }
            ],
            "description": "Mailing address of the destination bank.",
            "title": "Bank Mailing Address"
          },
          "currency": {
            "default": "CAD",
            "description": "Currency of the destination account.",
            "enum": [
              "CAD"
            ],
            "title": "Currency",
            "type": "string"
          },
          "institution_number": {
            "description": "Destination bank institution number.",
            "title": "Institution Number",
            "type": "string"
          },
          "mailing_address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UnvalidatedMailingAddress"
              }
            ],
            "default": null,
            "description": "Mailing address of the counterparty.",
            "nullable": true
          },
          "payment_method": {
            "default": "INTERNATIONAL",
            "description": "Payment method.",
            "enum": [
              "INTERNATIONAL"
            ],
            "title": "Payment Method",
            "type": "string"
          },
          "transit_number": {
            "description": "Destination bank transit number.",
            "title": "Transit Number",
            "type": "string"
          },
          "type": {
            "default": "cad",
            "description": "Counterparty details type.",
            "enum": [
              "cad"
            ],
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "account_number",
          "institution_number",
          "transit_number"
        ],
        "title": "CADCounterpartyDetails",
        "type": "object"
      },
      "CalculatedMeasure": {
        "additionalProperties": false,
        "description": "A measure computed from other selected measures, compiled in the same query.",
        "properties": {
          "display_name": {
            "default": null,
            "maxLength": 200,
            "minLength": 1,
            "nullable": true,
            "title": "Display Name",
            "type": "string"
          },
          "format": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CalculatedMeasureFormat"
              }
            ],
            "default": null,
            "description": "Display override: PERCENT or NUMBER for a ratio, CURRENCY or NUMBER for money. Omit to use the unit inferred from the formula.",
            "nullable": true
          },
          "formula": {
            "description": "Arithmetic over output names of selected measures or other calculations, e.g. 'paid_amount / total_amount'.",
            "maxLength": 1000,
            "minLength": 1,
            "title": "Formula",
            "type": "string"
          },
          "name": {
            "description": "Output name; shares one namespace with measures and dimensions and may be used in order_by, aggregate filters, and other formulas.",
            "maxLength": 200,
            "minLength": 1,
            "pattern": "^[a-z][a-z0-9_]*$",
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "formula",
          "name"
        ],
        "title": "CalculatedMeasure",
        "type": "object"
      },
      "CalculatedMeasureFormat": {
        "description": "Display override for a calculation; must fit its inferred unit.",
        "enum": [
          "CURRENCY",
          "NUMBER",
          "PERCENT"
        ],
        "title": "CalculatedMeasureFormat",
        "type": "string"
      },
      "CancelReimbursementPaymentRequestBody": {
        "description": "Request cancellation of an eligible reimbursement payment and reject the claim.\n\nDoes not delete the expense or establish recovery of settled funds. Payment\ncancellation/reversal may still be processing after the request succeeds.\nOn an uncertain result, reconcile payment and claim state before retrying.",
        "properties": {
          "notes": {
            "default": null,
            "nullable": true,
            "title": "Notes",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "reimbursement_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "description": "UUID of the reimbursement in the current business whose payment should be canceled.",
            "nullable": true
          }
        },
        "required": [
          "rationale",
          "reimbursement_uuid"
        ],
        "title": "CancelReimbursementPayment",
        "type": "object"
      },
      "CancelReimbursementPaymentSuccess": {
        "properties": {
          "reimbursement_uuid": {
            "$ref": "#/components/schemas/EntityUUIDStr"
          }
        },
        "required": [
          "reimbursement_uuid"
        ],
        "title": "CancelReimbursementPaymentSuccess",
        "type": "object"
      },
      "CandidateTripsResult": {
        "properties": {
          "trips": {
            "items": {
              "type": "object"
            },
            "title": "Trips",
            "type": "array"
          }
        },
        "title": "CandidateTripsResult",
        "type": "object"
      },
      "CanonicalPolicy": {
        "additionalProperties": false,
        "properties": {
          "approval_mode": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApprovalMode"
              }
            ],
            "default": "every_payment"
          },
          "approval_validity_seconds": {
            "default": 86400,
            "exclusiveMinimum": true,
            "minimum": 0,
            "title": "Approval Validity Seconds",
            "type": "integer"
          },
          "configurations": {
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/CardPolicyConfiguration"
                },
                {
                  "$ref": "#/components/schemas/PolicyConfiguration"
                }
              ]
            },
            "maxItems": 100,
            "minItems": 1,
            "title": "Configurations",
            "type": "array"
          },
          "constraints": {
            "$ref": "#/components/schemas/WalletConstraints"
          },
          "policy_version": {
            "format": "uuid",
            "title": "Policy Version",
            "type": "string"
          },
          "schema_version": {
            "maximum": 1,
            "minimum": 1,
            "title": "Schema Version",
            "type": "integer"
          }
        },
        "required": [
          "configurations",
          "constraints",
          "policy_version",
          "schema_version"
        ],
        "title": "CanonicalPolicy",
        "type": "object"
      },
      "CanonicalPolicyRequestBody": {
        "additionalProperties": false,
        "properties": {
          "approval_mode": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApprovalModeRequestBody"
              }
            ],
            "default": "every_payment"
          },
          "approval_validity_seconds": {
            "default": 86400,
            "exclusiveMinimum": true,
            "minimum": 0,
            "title": "Approval Validity Seconds",
            "type": "integer"
          },
          "configurations": {
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/CardPolicyConfigurationRequestBody"
                },
                {
                  "$ref": "#/components/schemas/PolicyConfigurationRequestBody"
                }
              ]
            },
            "maxItems": 100,
            "minItems": 1,
            "title": "Configurations",
            "type": "array"
          },
          "constraints": {
            "$ref": "#/components/schemas/WalletConstraintsRequestBody"
          },
          "policy_version": {
            "format": "uuid",
            "title": "Policy Version",
            "type": "string"
          },
          "schema_version": {
            "maximum": 1,
            "minimum": 1,
            "title": "Schema Version",
            "type": "integer"
          }
        },
        "required": [
          "configurations",
          "constraints",
          "policy_version",
          "schema_version"
        ],
        "title": "CanonicalPolicy",
        "type": "object"
      },
      "CarBookingDetailInfo": {
        "description": "Car rental booking with the rental company's confirmation number.",
        "properties": {
          "approval_display_status": {
            "default": null,
            "description": "Ready-to-display approval message.",
            "nullable": true,
            "title": "Approval Display Status",
            "type": "string"
          },
          "booked_at": {
            "default": null,
            "description": "When the booking was created",
            "format": "date-time",
            "nullable": true,
            "title": "Booked At",
            "type": "string"
          },
          "booked_for_someone_else": {
            "default": null,
            "description": "True when the person traveling is not the user these bookings were retrieved for: they arranged this booking for a colleague or guest, so its itinerary is not theirs. False when they are the traveler. Null when not reported.",
            "nullable": true,
            "title": "Booked For Someone Else",
            "type": "boolean"
          },
          "booking_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "description": "Confirmed car rental's parent booking UUID; pass it to GetBookingDetails as booking_id. Cars have no sub-booking UUID; use this typed ID when linking a persisted car rental, with company_name as the entity-link label.",
            "nullable": true
          },
          "booking_link": {
            "default": null,
            "description": "Pre-built markdown link for this car rental (e.g. '[Hertz in San Francisco](url)'). Use this link as-is when listing or referencing this car rental \u2014 do NOT build your own link from the id.",
            "nullable": true,
            "title": "Booking Link",
            "type": "string"
          },
          "booking_request_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "description": "Booking request UUID for an unfulfilled request; use it for request-status lookups. Use this typed ID when linking a pending, processing, failed, cancelled, or rejected request, with company_name as the entity-link label.",
            "nullable": true
          },
          "company_name": {
            "default": null,
            "description": "Car rental company (e.g., 'Avis', 'Hertz')",
            "nullable": true,
            "title": "Company Name",
            "type": "string"
          },
          "confirmation_number": {
            "default": null,
            "description": "Confirmation number issued by the rental company. Null for an unfulfilled request.",
            "nullable": true,
            "title": "Confirmation Number",
            "type": "string"
          },
          "dropoff_city": {
            "default": null,
            "description": "City where the car is returned",
            "nullable": true,
            "title": "Dropoff City",
            "type": "string"
          },
          "dropoff_datetime": {
            "default": null,
            "description": "Scheduled drop-off date/time in the drop-off counter's local time zone (ISO 8601 with UTC offset); show the local time as-is.",
            "format": "date-time",
            "nullable": true,
            "title": "Dropoff Datetime",
            "type": "string"
          },
          "error_message": {
            "default": null,
            "description": "Error message if the booking request failed (status=FAILED)",
            "nullable": true,
            "title": "Error Message",
            "type": "string"
          },
          "pickup_city": {
            "default": null,
            "description": "City where the car is picked up",
            "nullable": true,
            "title": "Pickup City",
            "type": "string"
          },
          "pickup_datetime": {
            "default": null,
            "description": "Scheduled pickup date/time in the pickup counter's local time zone (ISO 8601 with UTC offset); show the local time as-is.",
            "format": "date-time",
            "nullable": true,
            "title": "Pickup Datetime",
            "type": "string"
          },
          "status": {
            "default": null,
            "description": "Booking status. For confirmed bookings: e.g. CONFIRMED, CANCELLED. For unfulfilled requests: PENDING_APPROVAL, PROCESSING, FAILED, CANCELLED, or REJECTED.",
            "nullable": true,
            "title": "Status",
            "type": "string"
          },
          "trip_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "description": "ID of the associated trip (UUID or entity alias). To link to the trip, pass this ID to FindUrl as entity_uuid with entity_type='trip' and use the returned URL. Do not construct a URL from this ID.",
            "nullable": true
          },
          "trip_name": {
            "default": null,
            "description": "Name of the trip this booking is associated with",
            "nullable": true,
            "title": "Trip Name",
            "type": "string"
          }
        },
        "title": "CarBookingDetailInfo",
        "type": "object"
      },
      "CarBookingInfo": {
        "description": "Information about a car rental booking.",
        "properties": {
          "approval_display_status": {
            "default": null,
            "description": "Ready-to-display approval message.",
            "nullable": true,
            "title": "Approval Display Status",
            "type": "string"
          },
          "booked_at": {
            "default": null,
            "description": "When the booking was created",
            "format": "date-time",
            "nullable": true,
            "title": "Booked At",
            "type": "string"
          },
          "booked_for_someone_else": {
            "default": null,
            "description": "True when the person traveling is not the user these bookings were retrieved for: they arranged this booking for a colleague or guest, so its itinerary is not theirs. False when they are the traveler. Null when not reported.",
            "nullable": true,
            "title": "Booked For Someone Else",
            "type": "boolean"
          },
          "booking_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "description": "Confirmed car rental's parent booking UUID; pass it to GetBookingDetails as booking_id. Cars have no sub-booking UUID; use this typed ID when linking a persisted car rental, with company_name as the entity-link label.",
            "nullable": true
          },
          "booking_link": {
            "default": null,
            "description": "Pre-built markdown link for this car rental (e.g. '[Hertz in San Francisco](url)'). Use this link as-is when listing or referencing this car rental \u2014 do NOT build your own link from the id.",
            "nullable": true,
            "title": "Booking Link",
            "type": "string"
          },
          "booking_request_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "description": "Booking request UUID for an unfulfilled request; use it for request-status lookups. Use this typed ID when linking a pending, processing, failed, cancelled, or rejected request, with company_name as the entity-link label.",
            "nullable": true
          },
          "company_name": {
            "default": null,
            "description": "Car rental company (e.g., 'Avis', 'Hertz')",
            "nullable": true,
            "title": "Company Name",
            "type": "string"
          },
          "dropoff_city": {
            "default": null,
            "description": "City where the car is returned",
            "nullable": true,
            "title": "Dropoff City",
            "type": "string"
          },
          "dropoff_datetime": {
            "default": null,
            "description": "Scheduled drop-off date/time in the drop-off counter's local time zone (ISO 8601 with UTC offset); show the local time as-is.",
            "format": "date-time",
            "nullable": true,
            "title": "Dropoff Datetime",
            "type": "string"
          },
          "error_message": {
            "default": null,
            "description": "Error message if the booking request failed (status=FAILED)",
            "nullable": true,
            "title": "Error Message",
            "type": "string"
          },
          "pickup_city": {
            "default": null,
            "description": "City where the car is picked up",
            "nullable": true,
            "title": "Pickup City",
            "type": "string"
          },
          "pickup_datetime": {
            "default": null,
            "description": "Scheduled pickup date/time in the pickup counter's local time zone (ISO 8601 with UTC offset); show the local time as-is.",
            "format": "date-time",
            "nullable": true,
            "title": "Pickup Datetime",
            "type": "string"
          },
          "status": {
            "default": null,
            "description": "Booking status. For confirmed bookings: e.g. CONFIRMED, CANCELLED. For unfulfilled requests: PENDING_APPROVAL, PROCESSING, FAILED, CANCELLED, or REJECTED.",
            "nullable": true,
            "title": "Status",
            "type": "string"
          },
          "trip_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "description": "ID of the associated trip (UUID or entity alias). To link to the trip, pass this ID to FindUrl as entity_uuid with entity_type='trip' and use the returned URL. Do not construct a URL from this ID.",
            "nullable": true
          },
          "trip_name": {
            "default": null,
            "description": "Name of the trip this booking is associated with",
            "nullable": true,
            "title": "Trip Name",
            "type": "string"
          }
        },
        "title": "CarBookingInfo",
        "type": "object"
      },
      "CardActivationResult": {
        "properties": {
          "id": {
            "$ref": "#/components/schemas/EntityUUIDStr"
          },
          "last_four": {
            "title": "Last Four",
            "type": "string"
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "needs_confirmation": {
            "default": false,
            "title": "Needs Confirmation",
            "type": "boolean"
          },
          "next_step_url": {
            "default": null,
            "nullable": true,
            "title": "Next Step Url",
            "type": "string"
          },
          "situation": {
            "title": "Situation",
            "type": "string"
          },
          "success": {
            "title": "Success",
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "last_four",
          "message",
          "situation",
          "success"
        ],
        "title": "CardActivationResult",
        "type": "object"
      },
      "CardInfo": {
        "description": "Safe card context for a visible transaction.",
        "properties": {
          "card_state": {
            "default": null,
            "description": "Current card state",
            "nullable": true,
            "title": "Card State",
            "type": "string"
          },
          "card_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "description": "UUID of the card",
            "nullable": true
          },
          "display_name": {
            "default": null,
            "description": "Display name of the card",
            "nullable": true,
            "title": "Display Name",
            "type": "string"
          },
          "is_physical_card": {
            "default": null,
            "description": "Whether the card is a physical card",
            "nullable": true,
            "title": "Is Physical Card",
            "type": "boolean"
          },
          "last_four": {
            "default": null,
            "description": "Last four digits of the card",
            "nullable": true,
            "title": "Last Four",
            "type": "string"
          }
        },
        "title": "CardInfo",
        "type": "object"
      },
      "CardInfoList": {
        "properties": {
          "cards": {
            "items": {
              "$ref": "#/components/schemas/ListedCardInfo"
            },
            "title": "Cards",
            "type": "array"
          },
          "message": {
            "default": null,
            "description": "Set when no cards are returned; states the role and business profile the listing covered and how to proceed.",
            "nullable": true,
            "title": "Message",
            "type": "string"
          }
        },
        "required": [
          "cards"
        ],
        "title": "CardInfoList",
        "type": "object"
      },
      "CardLockInfo": {
        "description": "An active lock contributing to a card's effective blocked state.",
        "properties": {
          "lock_source": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CardLockSource"
              }
            ],
            "description": "The authoritative cause of the lock."
          },
          "lock_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CardLockType"
              }
            ],
            "description": "The entity boundary at which the lock is enforced."
          },
          "locked_by_name": {
            "default": null,
            "description": "For a CONTACT_ADMIN card or fund-member lock someone else at the company placed, that person's name: tell the user they locked it and that they, or an admin at the company, can unlock it. Null otherwise or when unknown.",
            "nullable": true,
            "title": "Locked By Name",
            "type": "string"
          },
          "placed_by": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CardLockPlacedBy"
              }
            ],
            "description": "Who placed the lock: RAMP (e.g. fraud or a company-wide freeze), COMPANY_POLICY (automatic, from the company's own settings), or COMPANY_USER (someone at the company)."
          },
          "remediation_action": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CardLockRemediationAction"
              }
            ],
            "description": "The next action to take to remediate this lock."
          }
        },
        "required": [
          "lock_source",
          "lock_type",
          "placed_by",
          "remediation_action"
        ],
        "title": "CardLockInfo",
        "type": "object"
      },
      "CardLockPlacedBy": {
        "description": "Who placed an effective card lock.",
        "enum": [
          "COMPANY_POLICY",
          "COMPANY_USER",
          "RAMP"
        ],
        "title": "CardLockPlacedBy",
        "type": "string"
      },
      "CardLockRemediationAction": {
        "description": "The next public tool or handoff that can remediate a card lock.",
        "enum": [
          "COMPLETE_MISSING_ITEMS",
          "CONTACT_ADMIN",
          "CONTACT_RAMP",
          "GET_ATTENTION_FEED",
          "LOCK_OR_UNLOCK_CARD",
          "UNLOCK_FRAUD_LOCKED_CARD"
        ],
        "title": "CardLockRemediationAction",
        "type": "string"
      },
      "CardLockResult": {
        "properties": {
          "action": {
            "title": "Action",
            "type": "string"
          },
          "id": {
            "$ref": "#/components/schemas/EntityUUIDStr"
          },
          "is_spendable": {
            "default": null,
            "description": "For unlocks, whether the card can authorize transactions now. False when other locks remain after the requested lock was removed.",
            "nullable": true,
            "title": "Is Spendable",
            "type": "boolean"
          },
          "last_four": {
            "title": "Last Four",
            "type": "string"
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "remaining_locks": {
            "description": "For unlocks, locks still blocking the card.",
            "items": {
              "$ref": "#/components/schemas/CardLockInfo"
            },
            "title": "Remaining Locks",
            "type": "array"
          },
          "success": {
            "title": "Success",
            "type": "boolean"
          }
        },
        "required": [
          "action",
          "id",
          "last_four",
          "message",
          "success"
        ],
        "title": "CardLockResult",
        "type": "object"
      },
      "CardLockSource": {
        "description": "The externally meaningful cause of an effective card lock.",
        "enum": [
          "ARCHIVED_FUNDS_LOCK",
          "FRAUD",
          "FREEZE_TRANSACTIONS",
          "MANUAL",
          "MISSING_ITEMS",
          "TASK_SANCTION",
          "TOTAL_ACTIVATION_REQUIRED"
        ],
        "title": "CardLockSource",
        "type": "string"
      },
      "CardLockType": {
        "description": "The entity boundary at which a card's effective lock is enforced.",
        "enum": [
          "BUSINESS",
          "CARD",
          "SPEND_ALLOCATION",
          "SPEND_ALLOCATION_MEMBER",
          "USER"
        ],
        "title": "CardLockType",
        "type": "string"
      },
      "CardMerchantCategoryAllowlist": {
        "additionalProperties": false,
        "description": "Allow Ramp merchants or merchant categories using union semantics.",
        "properties": {
          "allowed_category_codes": {
            "default": [],
            "description": "Use `id` values returned by the Ramp merchant-category lookup, not MCCs or accounting/tracking-category IDs.",
            "items": {
              "exclusiveMinimum": true,
              "minimum": 0,
              "type": "integer"
            },
            "title": "Allowed Category Codes",
            "type": "array"
          },
          "allowed_merchant_uuids": {
            "default": [],
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "title": "Allowed Merchant Uuids",
            "type": "array"
          },
          "mode": {
            "enum": [
              "allowlist"
            ],
            "title": "Mode",
            "type": "string"
          }
        },
        "required": [
          "mode"
        ],
        "title": "CardMerchantCategoryAllowlist",
        "type": "object"
      },
      "CardMerchantCategoryAllowlistRequestBody": {
        "additionalProperties": false,
        "description": "Allow Ramp merchants or merchant categories using union semantics.",
        "properties": {
          "allowed_category_codes": {
            "default": [],
            "description": "Use `id` values returned by the Ramp merchant-category lookup, not MCCs or accounting/tracking-category IDs.",
            "items": {
              "exclusiveMinimum": true,
              "minimum": 0,
              "type": "integer"
            },
            "title": "Allowed Category Codes",
            "type": "array"
          },
          "allowed_merchant_uuids": {
            "default": [],
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "title": "Allowed Merchant Uuids",
            "type": "array"
          },
          "mode": {
            "enum": [
              "allowlist"
            ],
            "title": "Mode",
            "type": "string"
          }
        },
        "required": [
          "mode"
        ],
        "title": "CardMerchantCategoryAllowlist",
        "type": "object"
      },
      "CardMerchantCategoryUnrestricted": {
        "additionalProperties": false,
        "description": "Explicitly allow any merchant or category.",
        "properties": {
          "mode": {
            "enum": [
              "unrestricted"
            ],
            "title": "Mode",
            "type": "string"
          }
        },
        "required": [
          "mode"
        ],
        "title": "CardMerchantCategoryUnrestricted",
        "type": "object"
      },
      "CardMerchantCategoryUnrestrictedRequestBody": {
        "additionalProperties": false,
        "description": "Explicitly allow any merchant or category.",
        "properties": {
          "mode": {
            "enum": [
              "unrestricted"
            ],
            "title": "Mode",
            "type": "string"
          }
        },
        "required": [
          "mode"
        ],
        "title": "CardMerchantCategoryUnrestricted",
        "type": "object"
      },
      "CardPolicyConfiguration": {
        "additionalProperties": false,
        "description": "Ramp merchant/category policy accepted only by card payments.",
        "properties": {
          "configuration_id": {
            "maxLength": 128,
            "minLength": 1,
            "title": "Configuration Id",
            "type": "string"
          },
          "merchant_category_policy": {
            "discriminator": {
              "mapping": {
                "allowlist": "#/components/schemas/CardMerchantCategoryAllowlist",
                "unrestricted": "#/components/schemas/CardMerchantCategoryUnrestricted"
              },
              "propertyName": "mode"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/CardMerchantCategoryAllowlist"
              },
              {
                "$ref": "#/components/schemas/CardMerchantCategoryUnrestricted"
              }
            ],
            "title": "Merchant Category Policy"
          },
          "method": {
            "enum": [
              "card"
            ],
            "title": "Method",
            "type": "string"
          }
        },
        "required": [
          "configuration_id",
          "merchant_category_policy",
          "method"
        ],
        "title": "CardPolicyConfiguration",
        "type": "object"
      },
      "CardPolicyConfigurationRequestBody": {
        "additionalProperties": false,
        "description": "Ramp merchant/category policy accepted only by card payments.",
        "properties": {
          "configuration_id": {
            "maxLength": 128,
            "minLength": 1,
            "title": "Configuration Id",
            "type": "string"
          },
          "merchant_category_policy": {
            "discriminator": {
              "mapping": {
                "allowlist": "#/components/schemas/CardMerchantCategoryAllowlistRequestBody",
                "unrestricted": "#/components/schemas/CardMerchantCategoryUnrestrictedRequestBody"
              },
              "propertyName": "mode"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/CardMerchantCategoryAllowlistRequestBody"
              },
              {
                "$ref": "#/components/schemas/CardMerchantCategoryUnrestrictedRequestBody"
              }
            ],
            "title": "Merchant Category Policy"
          },
          "method": {
            "enum": [
              "card"
            ],
            "title": "Method",
            "type": "string"
          }
        },
        "required": [
          "configuration_id",
          "merchant_category_policy",
          "method"
        ],
        "title": "CardPolicyConfiguration",
        "type": "object"
      },
      "CardState": {
        "enum": [
          "ACTIVE",
          "CHIP_LOCKED",
          "SUSPENDED",
          "TERMINATED",
          "UNACTIVATED"
        ],
        "title": "CardState",
        "type": "string",
        "x-enum-descriptions": {
          "ACTIVE": "The card is active and can be used for transactions.",
          "CHIP_LOCKED": "The card chip is locked after the PIN retry limit was exceeded.",
          "SUSPENDED": "The card is temporarily suspended and cannot be used for transactions.",
          "TERMINATED": "The card has been permanently terminated and cannot be used for transactions.",
          "UNACTIVATED": "The card has been issued but has not yet been activated."
        }
      },
      "CardStatementBalanceJsonMode": {
        "description": "Snapshot of a business's most recent card statement balance.",
        "properties": {
          "breakdowns": {
            "description": "Per-entity, per-currency balance sections. Multi-entity businesses have one section per entity per issuing currency.",
            "items": {
              "$ref": "#/components/schemas/StatementBalanceBreakdownJsonMode"
            },
            "title": "Breakdowns",
            "type": "array"
          },
          "due_date": {
            "default": null,
            "description": "The next payment due date \u2014 the earliest due date among sections that still have an outstanding balance. None when nothing is outstanding (fully paid) or the statement has no balance sections. For per-section due dates, see each breakdown's due_date.",
            "format": "date",
            "nullable": true,
            "title": "Due Date",
            "type": "string"
          },
          "is_charged_off": {
            "default": false,
            "description": "True when Ramp has charged off an unpaid card balance for this business. A charged-off balance is past normal statement payment and is handled by Ramp's collections process.",
            "title": "Is Charged Off",
            "type": "boolean"
          },
          "is_overdue": {
            "description": "True when the business has an active card delinquency \u2014 i.e. is past due (beyond the grace period) and likely receiving delinquency notices. This reflects the authoritative delinquency state, so it accounts for balances carried over from prior statements, not just this statement's due date. Note: when True, the overdue balance may be due on an earlier date than this statement's due_date.",
            "title": "Is Overdue",
            "type": "boolean"
          },
          "is_with_collections_agency": {
            "default": false,
            "description": "True when Ramp has placed this business's unpaid balance with a third-party collections agency.",
            "title": "Is With Collections Agency",
            "type": "boolean"
          },
          "statement_period_end": {
            "description": "End of the statement period (when the statement closed).",
            "format": "date-time",
            "title": "Statement Period End",
            "type": "string"
          },
          "statement_period_start": {
            "description": "Start of the statement period.",
            "format": "date-time",
            "title": "Statement Period Start",
            "type": "string"
          },
          "statement_uuid": {
            "description": "UUID of the statement these details are for.",
            "title": "Statement Uuid",
            "type": "string"
          },
          "summary": {
            "description": "Natural language summary suitable for showing the user.",
            "title": "Summary",
            "type": "string"
          }
        },
        "required": [
          "breakdowns",
          "is_overdue",
          "statement_period_end",
          "statement_period_start",
          "statement_uuid",
          "summary"
        ],
        "title": "CardStatementBalance",
        "type": "object"
      },
      "CardUnlockResult": {
        "properties": {
          "confirmation_required": {
            "default": false,
            "title": "Confirmation Required",
            "type": "boolean"
          },
          "fraud_transaction": {
            "additionalProperties": {
              "nullable": true,
              "oneOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "type": "number"
                },
                {
                  "type": "string"
                }
              ]
            },
            "default": null,
            "nullable": true,
            "title": "Fraud Transaction",
            "type": "object"
          },
          "id": {
            "$ref": "#/components/schemas/EntityUUIDStr"
          },
          "last_four": {
            "title": "Last Four",
            "type": "string"
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "redirect_url": {
            "default": null,
            "nullable": true,
            "title": "Redirect Url",
            "type": "string"
          },
          "success": {
            "title": "Success",
            "type": "boolean"
          },
          "verification_required": {
            "default": false,
            "title": "Verification Required",
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "last_four",
          "message",
          "success"
        ],
        "title": "CardUnlockResult",
        "type": "object"
      },
      "CatalogCoveringMeasureSchema": {
        "properties": {
          "agg": {
            "discriminator": {
              "mapping": {
                "AVG": "#/components/schemas/PlainAggregation",
                "MAX": "#/components/schemas/PlainAggregation",
                "MEDIAN_NUMERIC": "#/components/schemas/PlainAggregation",
                "MIN": "#/components/schemas/PlainAggregation",
                "QUANTILE_NUMERIC": "#/components/schemas/QuantileAggregation",
                "SUM": "#/components/schemas/PlainAggregation"
              },
              "propertyName": "type"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/PlainAggregation"
              },
              {
                "$ref": "#/components/schemas/QuantileAggregation"
              }
            ],
            "title": "Agg"
          },
          "measure": {
            "title": "Measure",
            "type": "string"
          }
        },
        "required": [
          "agg",
          "measure"
        ],
        "title": "CatalogCoveringMeasureSchema",
        "type": "object"
      },
      "CatalogDatasetDetail": {
        "properties": {
          "ap_operations": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApOperationsMetricContract"
              }
            ],
            "default": null,
            "nullable": true
          },
          "data_source": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DataSource"
              }
            ],
            "description": "Backing Reporting data source used for raw-column metadata and execution."
          },
          "default_report": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SemanticReportState"
              }
            ],
            "default": null,
            "nullable": true
          },
          "description": {
            "title": "Description",
            "type": "string"
          },
          "display_name": {
            "default": null,
            "nullable": true,
            "title": "Display Name",
            "type": "string"
          },
          "execution_kind": {
            "default": "sql",
            "enum": [
              "ap_operations_metric",
              "financial_statement",
              "sql"
            ],
            "title": "Execution Kind",
            "type": "string"
          },
          "field_groups": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CatalogFieldGroupSchema"
            },
            "title": "Field Groups",
            "type": "array"
          },
          "fields": {
            "items": {
              "$ref": "#/components/schemas/CatalogFieldSchema"
            },
            "title": "Fields",
            "type": "array"
          },
          "financial_statement": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FinancialStatementContract"
              }
            ],
            "default": null,
            "nullable": true
          },
          "grain": {
            "title": "Grain",
            "type": "string"
          },
          "joins": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CatalogJoinSchema"
            },
            "title": "Joins",
            "type": "array"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "relationships": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CatalogRelationshipSchema"
            },
            "title": "Relationships",
            "type": "array"
          },
          "rows_columns": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CatalogRowsColumnSchema"
            },
            "title": "Rows Columns",
            "type": "array"
          },
          "sample_questions": {
            "default": [],
            "items": {
              "type": "string"
            },
            "title": "Sample Questions",
            "type": "array"
          },
          "short_description": {
            "default": null,
            "nullable": true,
            "title": "Short Description",
            "type": "string"
          },
          "supported_query_settings": {
            "default": [],
            "items": {
              "type": "string"
            },
            "title": "Supported Query Settings",
            "type": "array"
          },
          "supports_export": {
            "default": true,
            "title": "Supports Export",
            "type": "boolean"
          },
          "supports_query_options": {
            "default": true,
            "title": "Supports Query Options",
            "type": "boolean"
          },
          "supports_rows": {
            "default": false,
            "title": "Supports Rows",
            "type": "boolean"
          },
          "supports_saved_reports": {
            "default": true,
            "title": "Supports Saved Reports",
            "type": "boolean"
          },
          "supports_widgets": {
            "default": true,
            "title": "Supports Widgets",
            "type": "boolean"
          },
          "synonyms": {
            "default": [],
            "items": {
              "type": "string"
            },
            "title": "Synonyms",
            "type": "array"
          }
        },
        "required": [
          "ap_operations",
          "data_source",
          "default_report",
          "description",
          "display_name",
          "execution_kind",
          "field_groups",
          "fields",
          "financial_statement",
          "grain",
          "joins",
          "name",
          "relationships",
          "rows_columns",
          "sample_questions",
          "short_description",
          "supported_query_settings",
          "supports_export",
          "supports_query_options",
          "supports_rows",
          "supports_saved_reports",
          "supports_widgets",
          "synonyms"
        ],
        "title": "CatalogDatasetDetail",
        "type": "object"
      },
      "CatalogDatasetSummary": {
        "properties": {
          "ap_operations": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApOperationsMetricContract"
              }
            ],
            "default": null,
            "nullable": true
          },
          "default_report": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SemanticReportState"
              }
            ],
            "default": null,
            "nullable": true
          },
          "description": {
            "title": "Description",
            "type": "string"
          },
          "display_name": {
            "default": null,
            "nullable": true,
            "title": "Display Name",
            "type": "string"
          },
          "execution_kind": {
            "default": "sql",
            "enum": [
              "ap_operations_metric",
              "financial_statement",
              "sql"
            ],
            "title": "Execution Kind",
            "type": "string"
          },
          "field_count": {
            "title": "Field Count",
            "type": "integer"
          },
          "financial_statement": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FinancialStatementContract"
              }
            ],
            "default": null,
            "nullable": true
          },
          "grain": {
            "title": "Grain",
            "type": "string"
          },
          "joins_to": {
            "default": [],
            "items": {
              "type": "string"
            },
            "title": "Joins To",
            "type": "array"
          },
          "measure_count": {
            "title": "Measure Count",
            "type": "integer"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "short_description": {
            "default": null,
            "nullable": true,
            "title": "Short Description",
            "type": "string"
          },
          "supported_query_settings": {
            "default": [],
            "items": {
              "type": "string"
            },
            "title": "Supported Query Settings",
            "type": "array"
          },
          "supports_query_options": {
            "default": true,
            "title": "Supports Query Options",
            "type": "boolean"
          },
          "supports_saved_reports": {
            "default": true,
            "title": "Supports Saved Reports",
            "type": "boolean"
          },
          "synonyms": {
            "default": [],
            "items": {
              "type": "string"
            },
            "title": "Synonyms",
            "type": "array"
          }
        },
        "required": [
          "ap_operations",
          "default_report",
          "description",
          "display_name",
          "execution_kind",
          "field_count",
          "financial_statement",
          "grain",
          "joins_to",
          "measure_count",
          "name",
          "short_description",
          "supported_query_settings",
          "supports_query_options",
          "supports_saved_reports",
          "synonyms"
        ],
        "title": "CatalogDatasetSummary",
        "type": "object"
      },
      "CatalogFieldGroupSchema": {
        "properties": {
          "key": {
            "$ref": "#/components/schemas/FieldGroup"
          },
          "label": {
            "title": "Label",
            "type": "string"
          }
        },
        "required": [
          "key",
          "label"
        ],
        "title": "CatalogFieldGroupSchema",
        "type": "object"
      },
      "CatalogFieldSchema": {
        "properties": {
          "accounting_applicability": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AccountingFieldApplicability"
              }
            ],
            "default": null,
            "nullable": true
          },
          "agg": {
            "default": null,
            "nullable": true,
            "title": "Agg",
            "type": "string"
          },
          "aggregations": {
            "default": [],
            "items": {
              "enum": [
                "AVG",
                "MAX",
                "MEDIAN_NUMERIC",
                "MIN",
                "QUANTILE_NUMERIC",
                "SUM"
              ],
              "type": "string"
            },
            "title": "Aggregations",
            "type": "array"
          },
          "covered_by": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CatalogCoveringMeasureSchema"
            },
            "title": "Covered By",
            "type": "array"
          },
          "description": {
            "title": "Description",
            "type": "string"
          },
          "display_name": {
            "default": null,
            "nullable": true,
            "title": "Display Name",
            "type": "string"
          },
          "distinct_filter_values": {
            "default": false,
            "title": "Distinct Filter Values",
            "type": "boolean"
          },
          "entity": {
            "default": null,
            "nullable": true,
            "title": "Entity",
            "type": "string"
          },
          "enum_values": {
            "default": [],
            "items": {
              "type": "string"
            },
            "title": "Enum Values",
            "type": "array"
          },
          "filter_value_kind": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FilterValueKind"
              }
            ],
            "default": null,
            "nullable": true
          },
          "filterable": {
            "default": false,
            "title": "Filterable",
            "type": "boolean"
          },
          "follows_report_time_zone": {
            "default": false,
            "title": "Follows Report Time Zone",
            "type": "boolean"
          },
          "group": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FieldGroup"
              }
            ],
            "default": null,
            "nullable": true
          },
          "groupable": {
            "default": true,
            "title": "Groupable",
            "type": "boolean"
          },
          "is_default_time_dimension": {
            "default": false,
            "title": "Is Default Time Dimension",
            "type": "boolean"
          },
          "kind": {
            "title": "Kind",
            "type": "string"
          },
          "max_time_range_days": {
            "default": null,
            "nullable": true,
            "title": "Max Time Range Days",
            "type": "integer"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "raw_column": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReportingDataTableColumn"
              }
            ],
            "default": null,
            "nullable": true
          },
          "required_any_dimensions": {
            "default": [],
            "items": {
              "type": "string"
            },
            "title": "Required Any Dimensions",
            "type": "array"
          },
          "required_filters": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CatalogRequiredFilterSchema"
            },
            "title": "Required Filters",
            "type": "array"
          },
          "requires_split_line_items": {
            "default": false,
            "title": "Requires Split Line Items",
            "type": "boolean"
          },
          "requires_time_range_end": {
            "default": false,
            "title": "Requires Time Range End",
            "type": "boolean"
          },
          "requires_time_range_start": {
            "default": false,
            "title": "Requires Time Range Start",
            "type": "boolean"
          },
          "rows_column": {
            "default": null,
            "discriminator": {
              "mapping": {
                "raw": "#/components/schemas/CatalogRawRowsColumnReference",
                "related": "#/components/schemas/CatalogRelatedRowsColumnReference"
              },
              "propertyName": "kind"
            },
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/CatalogRawRowsColumnReference"
              },
              {
                "$ref": "#/components/schemas/CatalogRelatedRowsColumnReference"
              }
            ],
            "title": "Rows Column"
          },
          "scoped_by": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CatalogFieldScopeSchema"
              }
            ],
            "default": null,
            "nullable": true
          },
          "search_tag_category": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SearchTagCategory"
              }
            ],
            "default": null,
            "nullable": true
          },
          "searchable": {
            "default": false,
            "title": "Searchable",
            "type": "boolean"
          },
          "short_description": {
            "default": null,
            "nullable": true,
            "title": "Short Description",
            "type": "string"
          },
          "supported_filter_ops": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/FilterOp"
            },
            "title": "Supported Filter Ops",
            "type": "array"
          },
          "supports_query_aware_filter_values": {
            "title": "Supports Query Aware Filter Values",
            "type": "boolean"
          },
          "synonyms": {
            "default": [],
            "items": {
              "type": "string"
            },
            "title": "Synonyms",
            "type": "array"
          },
          "unit": {
            "default": null,
            "enum": [
              "count",
              "money",
              "number",
              "percent"
            ],
            "nullable": true,
            "title": "Unit",
            "type": "string"
          }
        },
        "required": [
          "accounting_applicability",
          "agg",
          "aggregations",
          "covered_by",
          "description",
          "display_name",
          "distinct_filter_values",
          "entity",
          "enum_values",
          "filter_value_kind",
          "filterable",
          "follows_report_time_zone",
          "group",
          "groupable",
          "is_default_time_dimension",
          "kind",
          "max_time_range_days",
          "name",
          "raw_column",
          "required_any_dimensions",
          "required_filters",
          "requires_split_line_items",
          "requires_time_range_end",
          "requires_time_range_start",
          "rows_column",
          "scoped_by",
          "search_tag_category",
          "searchable",
          "short_description",
          "supported_filter_ops",
          "supports_query_aware_filter_values",
          "synonyms"
        ],
        "title": "CatalogFieldSchema",
        "type": "object"
      },
      "CatalogFieldScopeSchema": {
        "properties": {
          "field": {
            "title": "Field",
            "type": "string"
          },
          "values": {
            "items": {
              "type": "string"
            },
            "title": "Values",
            "type": "array"
          }
        },
        "required": [
          "field",
          "values"
        ],
        "title": "CatalogFieldScopeSchema",
        "type": "object"
      },
      "CatalogJoinSchema": {
        "properties": {
          "cardinality": {
            "$ref": "#/components/schemas/JoinCardinality"
          },
          "description": {
            "default": "",
            "title": "Description",
            "type": "string"
          },
          "fields": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CatalogFieldSchema"
            },
            "title": "Fields",
            "type": "array"
          },
          "group_label": {
            "default": null,
            "nullable": true,
            "title": "Group Label",
            "type": "string"
          },
          "on": {
            "items": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "title": "On",
            "type": "array"
          },
          "to": {
            "title": "To",
            "type": "string"
          }
        },
        "required": [
          "cardinality",
          "description",
          "fields",
          "group_label",
          "on",
          "to"
        ],
        "title": "CatalogJoinSchema",
        "type": "object"
      },
      "CatalogRawRowsColumnReference": {
        "properties": {
          "column": {
            "$ref": "#/components/schemas/ReportingDataTableColumn"
          },
          "kind": {
            "default": "raw",
            "enum": [
              "raw"
            ],
            "title": "Kind",
            "type": "string"
          }
        },
        "required": [
          "column",
          "kind"
        ],
        "title": "CatalogRawRowsColumnReference",
        "type": "object"
      },
      "CatalogRelatedRowsColumnReference": {
        "properties": {
          "column": {
            "$ref": "#/components/schemas/RelatedRowsColumn"
          },
          "kind": {
            "default": "related",
            "enum": [
              "related"
            ],
            "title": "Kind",
            "type": "string"
          }
        },
        "required": [
          "column",
          "kind"
        ],
        "title": "CatalogRelatedRowsColumnReference",
        "type": "object"
      },
      "CatalogRelationshipSchema": {
        "properties": {
          "description": {
            "title": "Description",
            "type": "string"
          },
          "fields": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CatalogFieldSchema"
            },
            "title": "Fields",
            "type": "array"
          },
          "group_label": {
            "default": null,
            "nullable": true,
            "title": "Group Label",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "to": {
            "title": "To",
            "type": "string"
          }
        },
        "required": [
          "description",
          "fields",
          "group_label",
          "name",
          "to"
        ],
        "title": "CatalogRelationshipSchema",
        "type": "object"
      },
      "CatalogRequiredFilterSchema": {
        "properties": {
          "any_of": {
            "items": {
              "$ref": "#/components/schemas/FilterClause"
            },
            "title": "Any Of",
            "type": "array"
          },
          "field": {
            "title": "Field",
            "type": "string"
          }
        },
        "required": [
          "any_of",
          "field"
        ],
        "title": "CatalogRequiredFilterSchema",
        "type": "object"
      },
      "CatalogRowsColumnSchema": {
        "properties": {
          "column_key": {
            "$ref": "#/components/schemas/ReportingDataTableColumnKey"
          },
          "group": {
            "$ref": "#/components/schemas/FieldGroup"
          },
          "short_description": {
            "title": "Short Description",
            "type": "string"
          }
        },
        "required": [
          "column_key",
          "group",
          "short_description"
        ],
        "title": "CatalogRowsColumnSchema",
        "type": "object"
      },
      "CatalogSearchMatch": {
        "properties": {
          "ap_operations": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApOperationsMetricContract"
              }
            ],
            "default": null,
            "nullable": true
          },
          "dataset": {
            "title": "Dataset",
            "type": "string"
          },
          "description": {
            "title": "Description",
            "type": "string"
          },
          "execution_kind": {
            "default": "sql",
            "enum": [
              "ap_operations_metric",
              "financial_statement",
              "sql"
            ],
            "title": "Execution Kind",
            "type": "string"
          },
          "financial_statement": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FinancialStatementContract"
              }
            ],
            "default": null,
            "nullable": true
          },
          "grain": {
            "title": "Grain",
            "type": "string"
          },
          "joins_to": {
            "default": [],
            "items": {
              "type": "string"
            },
            "title": "Joins To",
            "type": "array"
          },
          "matching_fields": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CatalogFieldSchema"
            },
            "title": "Matching Fields",
            "type": "array"
          },
          "score": {
            "title": "Score",
            "type": "number"
          }
        },
        "required": [
          "ap_operations",
          "dataset",
          "description",
          "execution_kind",
          "financial_statement",
          "grain",
          "joins_to",
          "matching_fields",
          "score"
        ],
        "title": "CatalogSearchMatch",
        "type": "object"
      },
      "CategoryRestrictionActionRequestBody": {
        "enum": [
          "add_to_blacklist",
          "add_to_whitelist",
          "remove_from_blacklist",
          "remove_from_whitelist"
        ],
        "title": "CategoryRestrictionAction",
        "type": "string"
      },
      "ChangeVendorOwnershipRequestBody": {
        "description": "Add a co-owner, replace one vendor owner, or remove one, preserving all other\nowners. Requires an active, editable vendor; a new owner must be an active,\nnon-guest user in the business. The only owner cannot be removed.\nCall only after an explicit yes to the exact plain-text confirmation, without\nbuttons or suggested replies; a yes with another request is not confirmation.\n\nReturns recorded and proposed owners: applied, pending approval with approvers,\nor already applied (no write). Matching pending changes do not restart approval.\nConflicting pending edits must be approved, rejected, or cancelled in Ramp first.",
        "properties": {
          "new_owner_uuid": {
            "default": null,
            "description": "UUID of the Ramp user who becomes an owner. add and replace only.",
            "format": "uuid",
            "nullable": true,
            "title": "New Owner Uuid",
            "type": "string"
          },
          "operation": {
            "description": "add adds new_owner_uuid; replace swaps replace_owner_uuid for new_owner_uuid; remove removes remove_owner_uuid. Other owners are kept.",
            "enum": [
              "add",
              "remove",
              "replace"
            ],
            "title": "Operation",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "reason": {
            "default": null,
            "description": "The user's or suggestion's stated reason for the new owner. Omit when none was given or for remove.",
            "maxLength": 500,
            "nullable": true,
            "title": "Reason",
            "type": "string"
          },
          "remove_owner_uuid": {
            "default": null,
            "description": "UUID of the owner being removed. remove only.",
            "format": "uuid",
            "nullable": true,
            "title": "Remove Owner Uuid",
            "type": "string"
          },
          "replace_owner_uuid": {
            "default": null,
            "description": "UUID of the owner being replaced. replace only.",
            "format": "uuid",
            "nullable": true,
            "title": "Replace Owner Uuid",
            "type": "string"
          },
          "vendor_uuid": {
            "description": "UUID of the vendor in Ramp.",
            "format": "uuid",
            "title": "Vendor Uuid",
            "type": "string"
          }
        },
        "required": [
          "operation",
          "rationale",
          "vendor_uuid"
        ],
        "title": "ChangeVendorOwnership",
        "type": "object"
      },
      "ChangeVendorOwnershipResult": {
        "properties": {
          "approvers": {
            "default": null,
            "description": "Who must approve next; pending_approval only.",
            "items": {
              "$ref": "#/components/schemas/VendorOwnerApproverRef"
            },
            "nullable": true,
            "title": "Approvers",
            "type": "array"
          },
          "current_owners": {
            "description": "Recorded owners after this call.",
            "items": {
              "$ref": "#/components/schemas/VendorOwnerRef"
            },
            "title": "Current Owners",
            "type": "array"
          },
          "operation": {
            "enum": [
              "add",
              "remove",
              "replace"
            ],
            "title": "Operation",
            "type": "string"
          },
          "outcome": {
            "description": "applied, pending_approval (record unchanged until approved), or already_applied (nothing written).",
            "enum": [
              "already_applied",
              "applied",
              "pending_approval"
            ],
            "title": "Outcome",
            "type": "string"
          },
          "owners_after": {
            "description": "Owners once the change is in effect; differs from current_owners only when pending_approval.",
            "items": {
              "$ref": "#/components/schemas/VendorOwnerRef"
            },
            "title": "Owners After",
            "type": "array"
          },
          "proposal_uuid": {
            "default": null,
            "description": "UUID of the pending vendor edit; pending_approval only.",
            "nullable": true,
            "title": "Proposal Uuid",
            "type": "string"
          },
          "vendor_name": {
            "description": "Name of the vendor in Ramp.",
            "title": "Vendor Name",
            "type": "string"
          },
          "vendor_uuid": {
            "description": "UUID of the vendor in Ramp.",
            "title": "Vendor Uuid",
            "type": "string"
          }
        },
        "required": [
          "current_owners",
          "operation",
          "outcome",
          "owners_after",
          "vendor_name",
          "vendor_uuid"
        ],
        "title": "ChangeVendorOwnershipResult",
        "type": "object"
      },
      "ClientAddress": {
        "properties": {
          "apt_suite": {
            "description": "Apartment, suite, or unit.",
            "nullable": true,
            "title": "Apt Suite",
            "type": "string"
          },
          "city": {
            "description": "City.",
            "nullable": true,
            "title": "City",
            "type": "string"
          },
          "postal_code": {
            "description": "ZIP or postal code.",
            "nullable": true,
            "title": "Postal Code",
            "type": "string"
          },
          "state": {
            "description": "Two-letter state code.",
            "nullable": true,
            "title": "State",
            "type": "string"
          },
          "street_address": {
            "description": "Street address.",
            "nullable": true,
            "title": "Street Address",
            "type": "string"
          }
        },
        "required": [
          "apt_suite",
          "city",
          "postal_code",
          "state",
          "street_address"
        ],
        "title": "ClientAddress",
        "type": "object"
      },
      "ClientBeneficialOwnerInputRequestBody": {
        "additionalProperties": false,
        "properties": {
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ClientPersonAddressInputRequestBody"
              }
            ],
            "default": null,
            "description": "Residential address. PO boxes and mail-forwarding addresses are not accepted.",
            "nullable": true
          },
          "birth_date": {
            "default": null,
            "description": "Date of birth (YYYY-MM-DD).",
            "format": "date",
            "nullable": true,
            "title": "Birth Date",
            "type": "string"
          },
          "email": {
            "description": "Email address, which identifies the owner on the application: an existing owner with this email is updated, otherwise a new owner is added.",
            "format": "email",
            "title": "Email",
            "type": "string"
          },
          "first_name": {
            "default": null,
            "description": "First name.",
            "minLength": 1,
            "nullable": true,
            "title": "First Name",
            "type": "string"
          },
          "last_name": {
            "default": null,
            "description": "Last name.",
            "minLength": 1,
            "nullable": true,
            "title": "Last Name",
            "type": "string"
          },
          "passport_last_4": {
            "default": null,
            "description": "Last 4 characters of the passport number, for a person without a Social Security number.",
            "nullable": true,
            "title": "Passport Last 4",
            "type": "string"
          },
          "phone": {
            "default": null,
            "description": "Phone number in E.164 format, for example \"+14155550124\".",
            "nullable": true,
            "title": "Phone",
            "type": "string"
          },
          "ssn_last_4": {
            "default": null,
            "description": "Last 4 digits of the Social Security number, for example \"1234\".",
            "nullable": true,
            "title": "Ssn Last 4",
            "type": "string"
          }
        },
        "required": [
          "email"
        ],
        "title": "ClientBeneficialOwnerInput",
        "type": "object"
      },
      "ClientBusiness": {
        "properties": {
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ClientAddress"
              }
            ],
            "description": "Principal place of business.",
            "nullable": true
          },
          "business_description": {
            "description": "Description.",
            "nullable": true,
            "title": "Business Description",
            "type": "string"
          },
          "business_name_dba": {
            "description": "Doing-business-as name.",
            "nullable": true,
            "title": "Business Name Dba",
            "type": "string"
          },
          "business_name_legal": {
            "description": "Legal name.",
            "nullable": true,
            "title": "Business Name Legal",
            "type": "string"
          },
          "business_website": {
            "description": "Website.",
            "nullable": true,
            "title": "Business Website",
            "type": "string"
          },
          "incorporation": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ClientIncorporation"
              }
            ],
            "description": "Incorporation details.",
            "nullable": true
          },
          "phone": {
            "description": "Office phone number in E.164 format.",
            "nullable": true,
            "title": "Phone",
            "type": "string"
          }
        },
        "required": [
          "address",
          "business_description",
          "business_name_dba",
          "business_name_legal",
          "business_website",
          "incorporation",
          "phone"
        ],
        "title": "ClientBusiness",
        "type": "object"
      },
      "ClientBusinessAddressInputRequestBody": {
        "additionalProperties": false,
        "properties": {
          "apt_suite": {
            "default": null,
            "description": "Apartment, suite, or unit, for example \"Suite 500\".",
            "nullable": true,
            "title": "Apt Suite",
            "type": "string"
          },
          "city": {
            "default": null,
            "description": "City.",
            "nullable": true,
            "title": "City",
            "type": "string"
          },
          "postal_code": {
            "default": null,
            "description": "ZIP code, for example \"94105\".",
            "nullable": true,
            "title": "Postal Code",
            "type": "string"
          },
          "state": {
            "default": null,
            "description": "Two-letter US state code, for example \"CA\".",
            "nullable": true,
            "title": "State",
            "type": "string"
          },
          "street_address": {
            "default": null,
            "description": "Street address, for example \"123 Market St\".",
            "nullable": true,
            "title": "Street Address",
            "type": "string"
          }
        },
        "title": "ClientBusinessAddressInput",
        "type": "object"
      },
      "ClientBusinessInputRequestBody": {
        "additionalProperties": false,
        "properties": {
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ClientBusinessAddressInputRequestBody"
              }
            ],
            "default": null,
            "description": "Principal place of business.",
            "nullable": true
          },
          "business_description": {
            "default": null,
            "description": "Short description of what the business does.",
            "maxLength": 250,
            "minLength": 1,
            "nullable": true,
            "title": "Business Description",
            "type": "string"
          },
          "business_name_dba": {
            "default": null,
            "description": "Doing-business-as name, if the business uses one.",
            "minLength": 1,
            "nullable": true,
            "title": "Business Name Dba",
            "type": "string"
          },
          "business_name_legal": {
            "default": null,
            "description": "Legal name of the business, for example \"Acme Plumbing LLC\".",
            "minLength": 1,
            "nullable": true,
            "title": "Business Name Legal",
            "type": "string"
          },
          "business_website": {
            "default": null,
            "description": "Business website, for example \"https://acmeplumbing.com\".",
            "minLength": 1,
            "nullable": true,
            "title": "Business Website",
            "type": "string"
          },
          "incorporation": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ClientIncorporationInputRequestBody"
              }
            ],
            "default": null,
            "description": "Incorporation details.",
            "nullable": true
          },
          "phone": {
            "default": null,
            "description": "Office phone number in E.164 format, for example \"+14155550123\".",
            "nullable": true,
            "title": "Phone",
            "type": "string"
          },
          "reason_for_email_and_domain_mismatch": {
            "default": null,
            "description": "Why the business website's domain differs from the applicant's email domain. Only needed when the domains differ.",
            "minLength": 1,
            "nullable": true,
            "title": "Reason For Email And Domain Mismatch",
            "type": "string"
          }
        },
        "title": "ClientBusinessInput",
        "type": "object"
      },
      "ClientControllingOfficer": {
        "properties": {
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ClientPersonAddress"
              }
            ],
            "description": "Residential address.",
            "nullable": true
          },
          "birth_date_provided": {
            "description": "Whether a date of birth is on file. It is not returned.",
            "title": "Birth Date Provided",
            "type": "boolean"
          },
          "email": {
            "description": "Email address.",
            "nullable": true,
            "title": "Email",
            "type": "string"
          },
          "first_name": {
            "description": "First name.",
            "nullable": true,
            "title": "First Name",
            "type": "string"
          },
          "is_beneficial_owner": {
            "description": "Whether the officer owns 25% or more of the business.",
            "title": "Is Beneficial Owner",
            "type": "boolean"
          },
          "last_name": {
            "description": "Last name.",
            "nullable": true,
            "title": "Last Name",
            "type": "string"
          },
          "passport_last_4_provided": {
            "description": "Whether passport last 4 characters are on file. They are not returned.",
            "title": "Passport Last 4 Provided",
            "type": "boolean"
          },
          "phone": {
            "description": "Phone number in E.164 format.",
            "nullable": true,
            "title": "Phone",
            "type": "string"
          },
          "ssn_last_4_provided": {
            "description": "Whether SSN last 4 digits are on file. They are not returned.",
            "title": "Ssn Last 4 Provided",
            "type": "boolean"
          },
          "title": {
            "description": "Job title.",
            "nullable": true,
            "title": "Title",
            "type": "string"
          }
        },
        "required": [
          "address",
          "birth_date_provided",
          "email",
          "first_name",
          "is_beneficial_owner",
          "last_name",
          "passport_last_4_provided",
          "phone",
          "ssn_last_4_provided",
          "title"
        ],
        "title": "ClientControllingOfficer",
        "type": "object"
      },
      "ClientControllingOfficerInputRequestBody": {
        "additionalProperties": false,
        "properties": {
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ClientPersonAddressInputRequestBody"
              }
            ],
            "default": null,
            "description": "Residential address. PO boxes and mail-forwarding addresses are not accepted.",
            "nullable": true
          },
          "birth_date": {
            "default": null,
            "description": "Date of birth (YYYY-MM-DD).",
            "format": "date",
            "nullable": true,
            "title": "Birth Date",
            "type": "string"
          },
          "email": {
            "default": null,
            "description": "Email address.",
            "format": "email",
            "nullable": true,
            "title": "Email",
            "type": "string"
          },
          "first_name": {
            "default": null,
            "description": "First name.",
            "minLength": 1,
            "nullable": true,
            "title": "First Name",
            "type": "string"
          },
          "is_beneficial_owner": {
            "default": null,
            "description": "Whether the controlling officer owns 25% or more of the business.",
            "nullable": true,
            "title": "Is Beneficial Owner",
            "type": "boolean"
          },
          "last_name": {
            "default": null,
            "description": "Last name.",
            "minLength": 1,
            "nullable": true,
            "title": "Last Name",
            "type": "string"
          },
          "passport_last_4": {
            "default": null,
            "description": "Last 4 characters of the passport number, for a person without a Social Security number.",
            "nullable": true,
            "title": "Passport Last 4",
            "type": "string"
          },
          "phone": {
            "default": null,
            "description": "Phone number in E.164 format, for example \"+14155550124\".",
            "nullable": true,
            "title": "Phone",
            "type": "string"
          },
          "ssn_last_4": {
            "default": null,
            "description": "Last 4 digits of the Social Security number, for example \"1234\".",
            "nullable": true,
            "title": "Ssn Last 4",
            "type": "string"
          },
          "title": {
            "default": null,
            "description": "Job title, for example \"CEO\" or \"Managing Member\".",
            "minLength": 1,
            "nullable": true,
            "title": "Title",
            "type": "string"
          }
        },
        "title": "ClientControllingOfficerInput",
        "type": "object"
      },
      "ClientFinancialDetails": {
        "properties": {
          "estimated_monthly_ap_spend_amount": {
            "description": "Expected monthly bill payments in whole US dollars (USD).",
            "nullable": true,
            "title": "Estimated Monthly Ap Spend Amount",
            "type": "integer"
          },
          "estimated_monthly_spend_amount": {
            "description": "Expected monthly card spend in whole US dollars (USD).",
            "nullable": true,
            "title": "Estimated Monthly Spend Amount",
            "type": "integer"
          }
        },
        "required": [
          "estimated_monthly_ap_spend_amount",
          "estimated_monthly_spend_amount"
        ],
        "title": "ClientFinancialDetails",
        "type": "object"
      },
      "ClientFinancialDetailsInputRequestBody": {
        "additionalProperties": false,
        "properties": {
          "estimated_monthly_ap_spend_amount": {
            "default": null,
            "description": "Expected monthly bill payments (accounts payable) in whole US dollars (USD).",
            "minimum": 0,
            "nullable": true,
            "title": "Estimated Monthly Ap Spend Amount",
            "type": "integer"
          },
          "estimated_monthly_spend_amount": {
            "default": null,
            "description": "Expected monthly card spend in whole US dollars (USD), for example 50000.",
            "minimum": 0,
            "nullable": true,
            "title": "Estimated Monthly Spend Amount",
            "type": "integer"
          }
        },
        "title": "ClientFinancialDetailsInput",
        "type": "object"
      },
      "ClientFinancingApplicationCreated": {
        "description": "A new client business and its assisted financing application.",
        "properties": {
          "ap_only": {
            "description": "Whether the application is for Bill Pay only rather than the full Ramp suite.",
            "title": "Ap Only",
            "type": "boolean"
          },
          "business_name_legal": {
            "description": "Legal name of the client business.",
            "title": "Business Name Legal",
            "type": "string"
          },
          "client_business_uuid": {
            "description": "UUID of the new client business. Your firm is assigned to it, so it can be used to act on the client business when your firm has client data access through Ramp MCP.",
            "title": "Client Business Uuid",
            "type": "string"
          },
          "financing_application_uuid": {
            "description": "UUID of the new financing application.",
            "title": "Financing Application Uuid",
            "type": "string"
          },
          "firm_roles": {
            "description": "Roles your firm holds in the client business in addition to Owner.",
            "items": {
              "enum": [
                "AI_TOKEN_SPEND_ADMIN",
                "AP_CLERK",
                "AR_CLERK",
                "AUDITOR",
                "BUSINESS_ADMIN",
                "BUSINESS_BOOKKEEPER",
                "FINANCE_ADMIN",
                "IT_ADMIN"
              ],
              "type": "string"
            },
            "title": "Firm Roles",
            "type": "array"
          },
          "message": {
            "description": "What this request did to the application.",
            "title": "Message",
            "type": "string"
          }
        },
        "required": [
          "ap_only",
          "business_name_legal",
          "client_business_uuid",
          "financing_application_uuid",
          "firm_roles",
          "message"
        ],
        "title": "ClientFinancingApplicationCreated",
        "type": "object"
      },
      "ClientFinancingApplicationUpdated": {
        "description": "The client's financing application after the update.",
        "properties": {
          "beneficial_owners": {
            "description": "Beneficial owners other than the controlling officer.",
            "items": {
              "$ref": "#/components/schemas/ClientPerson"
            },
            "title": "Beneficial Owners",
            "type": "array"
          },
          "business": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ClientBusiness"
              }
            ],
            "description": "Business details saved on the application; null if none yet.",
            "nullable": true
          },
          "controlling_officer": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ClientControllingOfficer"
              }
            ],
            "description": "The controlling officer; null until one is entered.",
            "nullable": true
          },
          "financial_details": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ClientFinancialDetails"
              }
            ],
            "description": "Expected spend saved on the application; null if none yet.",
            "nullable": true
          },
          "financing_application_uuid": {
            "description": "UUID of the financing application.",
            "title": "Financing Application Uuid",
            "type": "string"
          },
          "message": {
            "description": "What was saved and the application's state.",
            "title": "Message",
            "type": "string"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiApplicationStatus"
              }
            ],
            "description": "STARTED: still being prepared, not submitted. IN_REVIEW: submitted and under Ramp review, still open to changes. FOLLOW_UPS_REQUIRED: in review with follow-up items open."
          }
        },
        "required": [
          "beneficial_owners",
          "business",
          "controlling_officer",
          "financial_details",
          "financing_application_uuid",
          "message",
          "status"
        ],
        "title": "ClientFinancingApplicationUpdated",
        "type": "object"
      },
      "ClientIncorporation": {
        "properties": {
          "date_of_incorporation": {
            "description": "Date of incorporation (YYYY-MM-DD).",
            "nullable": true,
            "title": "Date Of Incorporation",
            "type": "string"
          },
          "ein_provided": {
            "description": "Whether an EIN is on the application. The EIN itself is not returned.",
            "title": "Ein Provided",
            "type": "boolean"
          },
          "entity_type": {
            "description": "Legal entity type.",
            "nullable": true,
            "title": "Entity Type",
            "type": "string"
          },
          "state_of_incorporation": {
            "description": "Two-letter code of the state of incorporation.",
            "nullable": true,
            "title": "State Of Incorporation",
            "type": "string"
          }
        },
        "required": [
          "date_of_incorporation",
          "ein_provided",
          "entity_type",
          "state_of_incorporation"
        ],
        "title": "ClientIncorporation",
        "type": "object"
      },
      "ClientIncorporationInputRequestBody": {
        "additionalProperties": false,
        "properties": {
          "date_of_incorporation": {
            "default": null,
            "description": "Date the business was incorporated (YYYY-MM-DD).",
            "format": "date",
            "nullable": true,
            "title": "Date Of Incorporation",
            "type": "string"
          },
          "ein_number": {
            "default": null,
            "description": "Employer Identification Number: 9 digits, with or without the dash, for example \"12-3456789\".",
            "nullable": true,
            "title": "Ein Number",
            "type": "string"
          },
          "entity_type": {
            "default": null,
            "description": "Legal entity type of the business.",
            "enum": [
              "COOPERATIVE",
              "CORPORATION",
              "LLC",
              "NON_PROFIT_CORPORATION",
              "OTHER",
              "PARTNERSHIP",
              "SOLE_PROPRIETORSHIP"
            ],
            "nullable": true,
            "title": "Entity Type",
            "type": "string"
          },
          "state_of_incorporation": {
            "default": null,
            "description": "Two-letter code of the US state of incorporation, for example \"DE\".",
            "nullable": true,
            "title": "State Of Incorporation",
            "type": "string"
          }
        },
        "title": "ClientIncorporationInput",
        "type": "object"
      },
      "ClientPerson": {
        "properties": {
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ClientPersonAddress"
              }
            ],
            "description": "Residential address.",
            "nullable": true
          },
          "birth_date_provided": {
            "description": "Whether a date of birth is on file. It is not returned.",
            "title": "Birth Date Provided",
            "type": "boolean"
          },
          "email": {
            "description": "Email address.",
            "nullable": true,
            "title": "Email",
            "type": "string"
          },
          "first_name": {
            "description": "First name.",
            "nullable": true,
            "title": "First Name",
            "type": "string"
          },
          "last_name": {
            "description": "Last name.",
            "nullable": true,
            "title": "Last Name",
            "type": "string"
          },
          "passport_last_4_provided": {
            "description": "Whether passport last 4 characters are on file. They are not returned.",
            "title": "Passport Last 4 Provided",
            "type": "boolean"
          },
          "phone": {
            "description": "Phone number in E.164 format.",
            "nullable": true,
            "title": "Phone",
            "type": "string"
          },
          "ssn_last_4_provided": {
            "description": "Whether SSN last 4 digits are on file. They are not returned.",
            "title": "Ssn Last 4 Provided",
            "type": "boolean"
          }
        },
        "required": [
          "address",
          "birth_date_provided",
          "email",
          "first_name",
          "last_name",
          "passport_last_4_provided",
          "phone",
          "ssn_last_4_provided"
        ],
        "title": "ClientPerson",
        "type": "object"
      },
      "ClientPersonAddress": {
        "properties": {
          "apt_suite": {
            "description": "Apartment, suite, or unit.",
            "nullable": true,
            "title": "Apt Suite",
            "type": "string"
          },
          "city": {
            "description": "City.",
            "nullable": true,
            "title": "City",
            "type": "string"
          },
          "country": {
            "description": "Two-letter country code.",
            "nullable": true,
            "title": "Country",
            "type": "string"
          },
          "postal_code": {
            "description": "ZIP or postal code.",
            "nullable": true,
            "title": "Postal Code",
            "type": "string"
          },
          "state": {
            "description": "Two-letter state code.",
            "nullable": true,
            "title": "State",
            "type": "string"
          },
          "street_address": {
            "description": "Street address.",
            "nullable": true,
            "title": "Street Address",
            "type": "string"
          }
        },
        "required": [
          "apt_suite",
          "city",
          "country",
          "postal_code",
          "state",
          "street_address"
        ],
        "title": "ClientPersonAddress",
        "type": "object"
      },
      "ClientPersonAddressInputRequestBody": {
        "additionalProperties": false,
        "properties": {
          "apt_suite": {
            "default": null,
            "description": "Apartment, suite, or unit, for example \"Suite 500\".",
            "nullable": true,
            "title": "Apt Suite",
            "type": "string"
          },
          "city": {
            "default": null,
            "description": "City.",
            "nullable": true,
            "title": "City",
            "type": "string"
          },
          "country": {
            "default": null,
            "description": "Two-letter country code of the residence, for example \"US\".",
            "nullable": true,
            "title": "Country",
            "type": "string"
          },
          "postal_code": {
            "default": null,
            "description": "ZIP code, for example \"94105\".",
            "nullable": true,
            "title": "Postal Code",
            "type": "string"
          },
          "state": {
            "default": null,
            "description": "Two-letter US state code, for example \"CA\".",
            "nullable": true,
            "title": "State",
            "type": "string"
          },
          "street_address": {
            "default": null,
            "description": "Street address, for example \"123 Market St\".",
            "nullable": true,
            "title": "Street Address",
            "type": "string"
          }
        },
        "title": "ClientPersonAddressInput",
        "type": "object"
      },
      "ClientReviewInviteSent": {
        "description": "An invite for the client to review its firm-prepared financing application.",
        "properties": {
          "expires_at": {
            "description": "When the invite expires, as an ISO 8601 timestamp in UTC.",
            "title": "Expires At",
            "type": "string"
          },
          "invite_uuid": {
            "description": "UUID of the invite.",
            "title": "Invite Uuid",
            "type": "string"
          },
          "invitee_email": {
            "description": "Email address the invite was sent to.",
            "title": "Invitee Email",
            "type": "string"
          },
          "message": {
            "description": "Current state of the invite and application.",
            "title": "Message",
            "type": "string"
          },
          "partner_setup_enabled": {
            "description": "Whether the client joins as Admin while your firm stays Owner (true), or joins as Owner and your firm gives up Owner when the client accepts (false). Partner setup requires your firm to hold Owner, so this can be false even when partner setup was requested.",
            "title": "Partner Setup Enabled",
            "type": "boolean"
          }
        },
        "required": [
          "expires_at",
          "invite_uuid",
          "invitee_email",
          "message",
          "partner_setup_enabled"
        ],
        "title": "ClientReviewInviteSent",
        "type": "object"
      },
      "CloseSourcingEventOutput": {
        "properties": {
          "message": {
            "description": "Human-readable result of the close request",
            "title": "Message",
            "type": "string"
          },
          "sourcing_event_id": {
            "description": "UUID of the sourcing event",
            "title": "Sourcing Event Id",
            "type": "string"
          },
          "status": {
            "description": "Event status after the call; CLOSED on success",
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "message",
          "sourcing_event_id",
          "status"
        ],
        "title": "CloseSourcingEventOutput",
        "type": "object"
      },
      "CloseSourcingEventRequestBody": {
        "description": "Close (archive) a sourcing event without awarding a vendor.\n\nClosing cascades to every non-terminal child RFX: each is transitioned to\nCLOSED, which blocks further vendor submissions and grading and voids any\noutstanding e-sign envelopes. Closed events are hidden from default list\nviews and become read-only. Use AwardSourcingEvent instead when a winning\nvendor should be selected.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "sourcing_event_id": {
            "description": "UUID of the sourcing event to close",
            "format": "uuid",
            "title": "Sourcing Event Id",
            "type": "string"
          }
        },
        "required": [
          "rationale",
          "sourcing_event_id"
        ],
        "title": "CloseSourcingEvent",
        "type": "object"
      },
      "ColumnIdAndSimpleContentsRequestBody": {
        "properties": {
          "column_id": {
            "title": "Column Id",
            "type": "string"
          },
          "contents": {
            "nullable": true,
            "oneOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "title": "Contents"
          }
        },
        "required": [
          "column_id",
          "contents"
        ],
        "title": "ColumnIdAndSimpleContents",
        "type": "object"
      },
      "CommentContext": {
        "properties": {
          "author_name": {
            "title": "Author Name",
            "type": "string"
          },
          "created_at": {
            "title": "Created At",
            "type": "string"
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "source": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CommentSourceEnum"
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "author_name",
          "created_at",
          "message",
          "source"
        ],
        "title": "CommentContext",
        "type": "object"
      },
      "CommentDeleted": {
        "description": "Successful comment deletion response.",
        "properties": {
          "comment_uuid": {
            "description": "UUID of the deleted comment",
            "title": "Comment Uuid",
            "type": "string"
          },
          "message": {
            "default": "Tell the user that their comment has been deleted.",
            "description": "Instruction to inform the user",
            "title": "Message",
            "type": "string"
          }
        },
        "required": [
          "comment_uuid"
        ],
        "title": "CommentDeleted",
        "type": "object"
      },
      "CommentEdited": {
        "description": "Successful comment edit response.",
        "properties": {
          "comment_uuid": {
            "description": "UUID of the edited comment",
            "title": "Comment Uuid",
            "type": "string"
          },
          "message": {
            "default": "Tell the user that their comment has been updated.",
            "description": "Instruction to inform the user",
            "title": "Message",
            "type": "string"
          }
        },
        "required": [
          "comment_uuid"
        ],
        "title": "CommentEdited",
        "type": "object"
      },
      "CommentInfo": {
        "properties": {
          "author": {
            "title": "Author",
            "type": "string"
          },
          "comment_uuid": {
            "description": "UUID of the comment",
            "title": "Comment Uuid",
            "type": "string"
          },
          "created_at": {
            "title": "Created At",
            "type": "string"
          },
          "is_own_comment": {
            "description": "True when the acting user wrote this comment and can edit or delete it",
            "title": "Is Own Comment",
            "type": "boolean"
          },
          "text": {
            "title": "Text",
            "type": "string"
          }
        },
        "required": [
          "author",
          "comment_uuid",
          "created_at",
          "is_own_comment",
          "text"
        ],
        "title": "CommentInfo",
        "type": "object"
      },
      "CommentMessageFormatRequestBody": {
        "description": "Format of the comment message content.",
        "enum": [
          "MARKDOWN",
          "PLAIN_TEXT"
        ],
        "title": "CommentMessageFormat",
        "type": "string"
      },
      "CommentPosted": {
        "description": "Successful comment post response.",
        "properties": {
          "comment_uuid": {
            "description": "UUID of the posted comment",
            "title": "Comment Uuid",
            "type": "string"
          },
          "message": {
            "default": "Tell the user that their comment has been successfully posted to the comment thread.",
            "description": "Instruction to inform the user",
            "title": "Message",
            "type": "string"
          },
          "object_url": {
            "description": "URL to view the full comment thread on the object",
            "title": "Object Url",
            "type": "string"
          }
        },
        "required": [
          "comment_uuid",
          "object_url"
        ],
        "title": "CommentPosted",
        "type": "object"
      },
      "CommentSourceEnum": {
        "enum": [
          "api",
          "chat_slack",
          "chat_teams",
          "dynamic_email",
          "ironclad",
          "mobile",
          "ramp",
          "slack_agent",
          "slack_message_sync",
          "web"
        ],
        "title": "CommentSourceEnum",
        "type": "string"
      },
      "CommentThreadContext": {
        "properties": {
          "comments": {
            "items": {
              "$ref": "#/components/schemas/CommentContext"
            },
            "title": "Comments",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "comments",
          "count"
        ],
        "title": "CommentThreadContext",
        "type": "object"
      },
      "CompanyAddress": {
        "description": "The company's registered address: street address, no coordinates.",
        "properties": {
          "address1": {
            "description": "Street address line 1",
            "nullable": true,
            "title": "Address1",
            "type": "string"
          },
          "address2": {
            "description": "Street address line 2",
            "nullable": true,
            "title": "Address2",
            "type": "string"
          },
          "city": {
            "description": "City",
            "nullable": true,
            "title": "City",
            "type": "string"
          },
          "country": {
            "description": "Country",
            "nullable": true,
            "title": "Country",
            "type": "string"
          },
          "postal_code": {
            "description": "Postal/ZIP code",
            "nullable": true,
            "title": "Postal Code",
            "type": "string"
          },
          "state": {
            "description": "State or province",
            "nullable": true,
            "title": "State",
            "type": "string"
          }
        },
        "required": [
          "address1",
          "address2",
          "city",
          "country",
          "postal_code",
          "state"
        ],
        "title": "CompanyAddress",
        "type": "object"
      },
      "CompleteTransactionRevisionRequestBody": {
        "description": "Complete a revision-requested transaction as its cardholder.\n\nUse this after the cardholder has addressed the requested changes and explicitly\nasks to mark the transaction revision complete. The completion refreshes the\ncorresponding task and starts Task Platform's sanction-lifting workflow.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "reason": {
            "description": "The cardholder's reason for completing the revision. Pass the user's own words; do not invent a reason.",
            "minLength": 1,
            "title": "Reason",
            "type": "string"
          },
          "transaction_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UUIDStrRequestBody"
              }
            ],
            "description": "UUID of the revision-requested transaction to complete."
          }
        },
        "required": [
          "rationale",
          "reason",
          "transaction_uuid"
        ],
        "title": "CompleteTransactionRevision",
        "type": "object"
      },
      "CompleteTransactionRevisionResult": {
        "properties": {
          "message": {
            "description": "Human-readable completion and next-step guidance.",
            "title": "Message",
            "type": "string"
          },
          "sanction_lift_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TransactionRevisionSanctionLiftStatus"
              }
            ],
            "description": "Whether Task Platform sanction lifting still requires verification."
          },
          "task_completion_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TransactionRevisionTaskCompletionStatus"
              }
            ],
            "description": "Completion status of the revision-requested task."
          },
          "transaction_revision_state": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RevisionRequestState"
              }
            ],
            "description": "Current revision state of the transaction."
          },
          "transaction_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UUIDStr"
              }
            ],
            "description": "UUID of the transaction whose requested revision was completed."
          }
        },
        "required": [
          "message",
          "sanction_lift_status",
          "task_completion_status",
          "transaction_revision_state",
          "transaction_uuid"
        ],
        "title": "CompleteTransactionRevisionResult",
        "type": "object"
      },
      "ConnectivityAirport": {
        "properties": {
          "iata_code": {
            "title": "Iata Code",
            "type": "string"
          }
        },
        "required": [
          "iata_code"
        ],
        "title": "ConnectivityAirport",
        "type": "object"
      },
      "ConnectivityArrival": {
        "properties": {
          "airport": {
            "$ref": "#/components/schemas/ConnectivityAirport"
          }
        },
        "required": [
          "airport"
        ],
        "title": "ConnectivityArrival",
        "type": "object"
      },
      "ConnectivityCarrier": {
        "properties": {
          "iata_code": {
            "title": "Iata Code",
            "type": "string"
          }
        },
        "required": [
          "iata_code"
        ],
        "title": "ConnectivityCarrier",
        "type": "object"
      },
      "ConnectivityDeparture": {
        "properties": {
          "airport": {
            "$ref": "#/components/schemas/ConnectivityAirport"
          },
          "time": {
            "format": "date-time",
            "title": "Time",
            "type": "string"
          }
        },
        "required": [
          "airport",
          "time"
        ],
        "title": "ConnectivityDeparture",
        "type": "object"
      },
      "ConnectivityTechnicalStop": {
        "properties": {
          "airport": {
            "$ref": "#/components/schemas/ConnectivityAirport"
          }
        },
        "required": [
          "airport"
        ],
        "title": "ConnectivityTechnicalStop",
        "type": "object"
      },
      "ContractOwnerSummary": {
        "properties": {
          "email": {
            "description": "Email address",
            "title": "Email",
            "type": "string"
          },
          "full_name": {
            "description": "Full name of the contract owner",
            "title": "Full Name",
            "type": "string"
          },
          "id": {
            "description": "User UUID",
            "title": "Id",
            "type": "string"
          }
        },
        "required": [
          "email",
          "full_name",
          "id"
        ],
        "title": "ContractOwnerSummary",
        "type": "object"
      },
      "CountryCodeAlpha2RequestBody": {
        "enum": [
          "AD",
          "AE",
          "AF",
          "AG",
          "AI",
          "AL",
          "AM",
          "AO",
          "AQ",
          "AR",
          "AS",
          "AT",
          "AU",
          "AW",
          "AX",
          "AZ",
          "BA",
          "BB",
          "BD",
          "BE",
          "BF",
          "BG",
          "BH",
          "BI",
          "BJ",
          "BL",
          "BM",
          "BN",
          "BO",
          "BQ",
          "BR",
          "BS",
          "BT",
          "BV",
          "BW",
          "BY",
          "BZ",
          "CA",
          "CC",
          "CD",
          "CF",
          "CG",
          "CH",
          "CI",
          "CK",
          "CL",
          "CM",
          "CN",
          "CO",
          "CR",
          "CU",
          "CV",
          "CW",
          "CX",
          "CY",
          "CZ",
          "DE",
          "DJ",
          "DK",
          "DM",
          "DO",
          "DZ",
          "EC",
          "EE",
          "EG",
          "EH",
          "ER",
          "ES",
          "ET",
          "FI",
          "FJ",
          "FK",
          "FM",
          "FO",
          "FR",
          "GA",
          "GB",
          "GD",
          "GE",
          "GF",
          "GG",
          "GH",
          "GI",
          "GL",
          "GM",
          "GN",
          "GP",
          "GQ",
          "GR",
          "GS",
          "GT",
          "GU",
          "GW",
          "GY",
          "HK",
          "HM",
          "HN",
          "HR",
          "HT",
          "HU",
          "ID",
          "IE",
          "IL",
          "IM",
          "IN",
          "IO",
          "IQ",
          "IR",
          "IS",
          "IT",
          "JE",
          "JM",
          "JO",
          "JP",
          "KE",
          "KG",
          "KH",
          "KI",
          "KM",
          "KN",
          "KP",
          "KR",
          "KW",
          "KY",
          "KZ",
          "LA",
          "LB",
          "LC",
          "LI",
          "LK",
          "LR",
          "LS",
          "LT",
          "LU",
          "LV",
          "LY",
          "MA",
          "MC",
          "MD",
          "ME",
          "MF",
          "MG",
          "MH",
          "MK",
          "ML",
          "MM",
          "MN",
          "MO",
          "MP",
          "MQ",
          "MR",
          "MS",
          "MT",
          "MU",
          "MV",
          "MW",
          "MX",
          "MY",
          "MZ",
          "NA",
          "NC",
          "NE",
          "NF",
          "NG",
          "NI",
          "NL",
          "NO",
          "NP",
          "NR",
          "NU",
          "NZ",
          "OM",
          "PA",
          "PE",
          "PF",
          "PG",
          "PH",
          "PK",
          "PL",
          "PM",
          "PN",
          "PR",
          "PS",
          "PT",
          "PW",
          "PY",
          "QA",
          "RE",
          "RO",
          "RS",
          "RU",
          "RW",
          "SA",
          "SB",
          "SC",
          "SD",
          "SE",
          "SG",
          "SH",
          "SI",
          "SJ",
          "SK",
          "SL",
          "SM",
          "SN",
          "SO",
          "SR",
          "SS",
          "ST",
          "SV",
          "SX",
          "SY",
          "SZ",
          "TC",
          "TD",
          "TF",
          "TG",
          "TH",
          "TJ",
          "TK",
          "TL",
          "TM",
          "TN",
          "TO",
          "TR",
          "TT",
          "TV",
          "TW",
          "TZ",
          "UA",
          "UG",
          "UM",
          "US",
          "UY",
          "UZ",
          "VA",
          "VC",
          "VE",
          "VG",
          "VI",
          "VN",
          "VU",
          "WF",
          "WS",
          "YE",
          "YT",
          "ZA",
          "ZM",
          "ZW"
        ],
        "title": "CountryCodeAlpha2",
        "type": "string",
        "x-enum-descriptions": {
          "AD": "Andorra",
          "AE": "United Arab Emirates",
          "AF": "Afghanistan",
          "AG": "Antigua and Barbuda",
          "AI": "Anguilla",
          "AL": "Albania",
          "AM": "Armenia",
          "AO": "Angola",
          "AQ": "Antarctica",
          "AR": "Argentina",
          "AS": "American Samoa",
          "AT": "Austria",
          "AU": "Australia",
          "AW": "Aruba",
          "AX": "\u00c5land Islands",
          "AZ": "Azerbaijan",
          "BA": "Bosnia and Herzegovina",
          "BB": "Barbados",
          "BD": "Bangladesh",
          "BE": "Belgium",
          "BF": "Burkina Faso",
          "BG": "Bulgaria",
          "BH": "Bahrain",
          "BI": "Burundi",
          "BJ": "Benin",
          "BL": "Saint Barth\u00e9lemy",
          "BM": "Bermuda",
          "BN": "Brunei Darussalam",
          "BO": "Bolivia, Plurinational State of",
          "BQ": "Bonaire, Sint Eustatius and Saba",
          "BR": "Brazil",
          "BS": "Bahamas",
          "BT": "Bhutan",
          "BV": "Bouvet Island",
          "BW": "Botswana",
          "BY": "Belarus",
          "BZ": "Belize",
          "CA": "Canada",
          "CC": "Cocos (Keeling) Islands",
          "CD": "Congo, The Democratic Republic of the",
          "CF": "Central African Republic",
          "CG": "Congo",
          "CH": "Switzerland",
          "CI": "C\u00f4te d'Ivoire",
          "CK": "Cook Islands",
          "CL": "Chile",
          "CM": "Cameroon",
          "CN": "China",
          "CO": "Colombia",
          "CR": "Costa Rica",
          "CU": "Cuba",
          "CV": "Cabo Verde",
          "CW": "Cura\u00e7ao",
          "CX": "Christmas Island",
          "CY": "Cyprus",
          "CZ": "Czechia",
          "DE": "Germany",
          "DJ": "Djibouti",
          "DK": "Denmark",
          "DM": "Dominica",
          "DO": "Dominican Republic",
          "DZ": "Algeria",
          "EC": "Ecuador",
          "EE": "Estonia",
          "EG": "Egypt",
          "EH": "Western Sahara",
          "ER": "Eritrea",
          "ES": "Spain",
          "ET": "Ethiopia",
          "FI": "Finland",
          "FJ": "Fiji",
          "FK": "Falkland Islands (Malvinas)",
          "FM": "Micronesia, Federated States of",
          "FO": "Faroe Islands",
          "FR": "France",
          "GA": "Gabon",
          "GB": "United Kingdom",
          "GD": "Grenada",
          "GE": "Georgia",
          "GF": "French Guiana",
          "GG": "Guernsey",
          "GH": "Ghana",
          "GI": "Gibraltar",
          "GL": "Greenland",
          "GM": "Gambia",
          "GN": "Guinea",
          "GP": "Guadeloupe",
          "GQ": "Equatorial Guinea",
          "GR": "Greece",
          "GS": "South Georgia and the South Sandwich Islands",
          "GT": "Guatemala",
          "GU": "Guam",
          "GW": "Guinea-Bissau",
          "GY": "Guyana",
          "HK": "Hong Kong",
          "HM": "Heard Island and McDonald Islands",
          "HN": "Honduras",
          "HR": "Croatia",
          "HT": "Haiti",
          "HU": "Hungary",
          "ID": "Indonesia",
          "IE": "Ireland",
          "IL": "Israel",
          "IM": "Isle of Man",
          "IN": "India",
          "IO": "British Indian Ocean Territory",
          "IQ": "Iraq",
          "IR": "Iran, Islamic Republic of",
          "IS": "Iceland",
          "IT": "Italy",
          "JE": "Jersey",
          "JM": "Jamaica",
          "JO": "Jordan",
          "JP": "Japan",
          "KE": "Kenya",
          "KG": "Kyrgyzstan",
          "KH": "Cambodia",
          "KI": "Kiribati",
          "KM": "Comoros",
          "KN": "Saint Kitts and Nevis",
          "KP": "Korea, Democratic People's Republic of",
          "KR": "Korea, Republic of",
          "KW": "Kuwait",
          "KY": "Cayman Islands",
          "KZ": "Kazakhstan",
          "LA": "Lao People's Democratic Republic",
          "LB": "Lebanon",
          "LC": "Saint Lucia",
          "LI": "Liechtenstein",
          "LK": "Sri Lanka",
          "LR": "Liberia",
          "LS": "Lesotho",
          "LT": "Lithuania",
          "LU": "Luxembourg",
          "LV": "Latvia",
          "LY": "Libya",
          "MA": "Morocco",
          "MC": "Monaco",
          "MD": "Moldova, Republic of",
          "ME": "Montenegro",
          "MF": "Saint Martin (French part)",
          "MG": "Madagascar",
          "MH": "Marshall Islands",
          "MK": "North Macedonia",
          "ML": "Mali",
          "MM": "Myanmar",
          "MN": "Mongolia",
          "MO": "Macao",
          "MP": "Northern Mariana Islands",
          "MQ": "Martinique",
          "MR": "Mauritania",
          "MS": "Montserrat",
          "MT": "Malta",
          "MU": "Mauritius",
          "MV": "Maldives",
          "MW": "Malawi",
          "MX": "Mexico",
          "MY": "Malaysia",
          "MZ": "Mozambique",
          "NA": "Namibia",
          "NC": "New Caledonia",
          "NE": "Niger",
          "NF": "Norfolk Island",
          "NG": "Nigeria",
          "NI": "Nicaragua",
          "NL": "Netherlands",
          "NO": "Norway",
          "NP": "Nepal",
          "NR": "Nauru",
          "NU": "Niue",
          "NZ": "New Zealand",
          "OM": "Oman",
          "PA": "Panama",
          "PE": "Peru",
          "PF": "French Polynesia",
          "PG": "Papua New Guinea",
          "PH": "Philippines",
          "PK": "Pakistan",
          "PL": "Poland",
          "PM": "Saint Pierre and Miquelon",
          "PN": "Pitcairn",
          "PR": "Puerto Rico",
          "PS": "Palestine, State of",
          "PT": "Portugal",
          "PW": "Palau",
          "PY": "Paraguay",
          "QA": "Qatar",
          "RE": "R\u00e9union",
          "RO": "Romania",
          "RS": "Serbia",
          "RU": "Russian Federation",
          "RW": "Rwanda",
          "SA": "Saudi Arabia",
          "SB": "Solomon Islands",
          "SC": "Seychelles",
          "SD": "Sudan",
          "SE": "Sweden",
          "SG": "Singapore",
          "SH": "Saint Helena, Ascension and Tristan da Cunha",
          "SI": "Slovenia",
          "SJ": "Svalbard and Jan Mayen",
          "SK": "Slovakia",
          "SL": "Sierra Leone",
          "SM": "San Marino",
          "SN": "Senegal",
          "SO": "Somalia",
          "SR": "Suriname",
          "SS": "South Sudan",
          "ST": "Sao Tome and Principe",
          "SV": "El Salvador",
          "SX": "Sint Maarten (Dutch part)",
          "SY": "Syrian Arab Republic",
          "SZ": "Eswatini",
          "TC": "Turks and Caicos Islands",
          "TD": "Chad",
          "TF": "French Southern Territories",
          "TG": "Togo",
          "TH": "Thailand",
          "TJ": "Tajikistan",
          "TK": "Tokelau",
          "TL": "Timor-Leste",
          "TM": "Turkmenistan",
          "TN": "Tunisia",
          "TO": "Tonga",
          "TR": "T\u00fcrkiye",
          "TT": "Trinidad and Tobago",
          "TV": "Tuvalu",
          "TW": "Taiwan, Province of China",
          "TZ": "Tanzania, United Republic of",
          "UA": "Ukraine",
          "UG": "Uganda",
          "UM": "United States Minor Outlying Islands",
          "US": "United States",
          "UY": "Uruguay",
          "UZ": "Uzbekistan",
          "VA": "Holy See (Vatican City State)",
          "VC": "Saint Vincent and the Grenadines",
          "VE": "Venezuela, Bolivarian Republic of",
          "VG": "Virgin Islands, British",
          "VI": "Virgin Islands, U.S.",
          "VN": "Viet Nam",
          "VU": "Vanuatu",
          "WF": "Wallis and Futuna",
          "WS": "Samoa",
          "YE": "Yemen",
          "YT": "Mayotte",
          "ZA": "South Africa",
          "ZM": "Zambia",
          "ZW": "Zimbabwe"
        }
      },
      "CreateAgentBillLineItemRequestBody": {
        "additionalProperties": false,
        "description": "Expense line item.",
        "properties": {
          "amount": {
            "default": null,
            "nullable": true,
            "oneOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              }
            ]
          },
          "bill_line_item_tracking_category_selections": {
            "description": "Accounting field values. Include at most one selection per tracking category.",
            "items": {
              "$ref": "#/components/schemas/AgentTrackingCategorySelectionRequestBody"
            },
            "type": "array"
          },
          "index": {
            "default": null,
            "description": "Display order.",
            "nullable": true,
            "type": "integer"
          },
          "is_single_line_form": {
            "default": null,
            "description": "Collapsed form summary/coding row, not a billable line: its amount never contributes to the bill total. Preserve it alongside ordinary lines, not instead of them. For a new billable line, omit this field or set false. For an existing summary row, omission preserves true; explicitly set false to convert that row into a billable line.",
            "nullable": true,
            "type": "boolean"
          },
          "memo": {
            "default": null,
            "nullable": true,
            "type": "string"
          },
          "service_end_date": {
            "default": null,
            "format": "date",
            "nullable": true,
            "type": "string"
          },
          "service_start_date": {
            "default": null,
            "format": "date",
            "nullable": true,
            "type": "string"
          },
          "unit_price": {
            "default": null,
            "nullable": true,
            "oneOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              }
            ]
          },
          "unit_quantity": {
            "default": null,
            "nullable": true,
            "oneOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              }
            ]
          }
        },
        "title": "CreateAgentBillLineItem",
        "type": "object"
      },
      "CreateAgentDraftBillRequestBody": {
        "additionalProperties": false,
        "description": "Draft bill fields. Omitted fields are left empty.",
        "properties": {
          "accounting_sync_date": {
            "format": "date",
            "nullable": true,
            "type": "string"
          },
          "bill_due_at": {
            "format": "date",
            "nullable": true,
            "type": "string"
          },
          "bill_issued_at": {
            "format": "date",
            "nullable": true,
            "type": "string"
          },
          "bill_line_items": {
            "items": {
              "$ref": "#/components/schemas/CreateAgentBillLineItemRequestBody"
            },
            "nullable": true,
            "type": "array"
          },
          "bill_owner_user_uuids": {
            "description": "User UUIDs of the bill owners, whose managers can drive approval routing. Replaces all current owners; an empty list removes them. To add an owner, include the current owners from the draft's bill_owners. Omit to keep the current owners.",
            "items": {
              "$ref": "#/components/schemas/UUIDStrRequestBody"
            },
            "type": "array"
          },
          "bill_tracking_category_selections": {
            "description": "Accounting field values. Include at most one selection per tracking category.",
            "items": {
              "$ref": "#/components/schemas/AgentTrackingCategorySelectionRequestBody"
            },
            "nullable": true,
            "type": "array"
          },
          "business_vendor_contact_uuid": {
            "nullable": true,
            "type": "string"
          },
          "entity_uuid": {
            "nullable": true,
            "type": "string"
          },
          "invoice_currency": {
            "description": "3-letter ISO 4217 currency code.",
            "nullable": true,
            "type": "string"
          },
          "invoice_number": {
            "nullable": true,
            "type": "string"
          },
          "invoices": {
            "description": "Attached invoice documents.",
            "items": {
              "$ref": "#/components/schemas/AgentDraftBillInvoiceRequestBody"
            },
            "nullable": true,
            "type": "array"
          },
          "memo": {
            "description": "Bill description.",
            "nullable": true,
            "type": "string"
          },
          "payment_details": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AgentDraftBillPaymentDetailsRequestBody"
              }
            ],
            "nullable": true
          },
          "service_end_date": {
            "format": "date",
            "nullable": true,
            "type": "string"
          },
          "service_start_date": {
            "format": "date",
            "nullable": true,
            "type": "string"
          },
          "vendor_memo": {
            "description": "Vendor-facing memo or payment reference.",
            "nullable": true,
            "type": "string"
          }
        },
        "title": "CreateAgentDraftBill",
        "type": "object"
      },
      "CreateBlanketPurchaseOrderReleaseRequestBody": {
        "description": "Create a release PO against an approved blanket PO by drawing quantities from its lines.\n\nThe release PO is a new purchase order with its own PO number. It copies the\nblanket PO's vendor, entity, currency, line prices, and coding, and is submitted\nto the program's release PO approval workflow. It is returned as SUBMITTED, not\napproved, because approval runs in the background. Each quantity must fit what\nits line has left, and the release total must fit what the blanket PO has\navailable. Release POs still awaiting approval don't count against what's\nleft yet; approval checks the limits again. Retrying the same call returns\nthe same release PO instead of creating another.",
        "properties": {
          "blanket_purchase_order_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UUIDStrRequestBody"
              }
            ],
            "description": "UUID of the approved blanket PO to release from."
          },
          "end_date": {
            "default": null,
            "description": "Last day of the release PO, YYYY-MM-DD, on or after start_date. Required, with start_date, when the blanket PO has a start or end date, and must fall within the blanket PO's dates. Optional only for a blanket PO without dates.",
            "format": "date",
            "nullable": true,
            "title": "End Date",
            "type": "string"
          },
          "line_items": {
            "description": "Blanket PO lines to release and the quantity of each. List each line once; lines left out are not released.",
            "items": {
              "$ref": "#/components/schemas/BlanketPurchaseOrderReleaseLineRequestBody"
            },
            "minItems": 1,
            "title": "Line Items",
            "type": "array"
          },
          "name": {
            "description": "Name of the release PO.",
            "minLength": 1,
            "title": "Name",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "reason": {
            "default": null,
            "description": "Why the release PO is needed. Optional.",
            "nullable": true,
            "title": "Reason",
            "type": "string"
          },
          "start_date": {
            "default": null,
            "description": "First day of the release PO, YYYY-MM-DD. Required, with end_date, when the blanket PO has a start or end date, and must fall within the blanket PO's dates. Optional only for a blanket PO without dates.",
            "format": "date",
            "nullable": true,
            "title": "Start Date",
            "type": "string"
          }
        },
        "required": [
          "blanket_purchase_order_uuid",
          "line_items",
          "name",
          "rationale"
        ],
        "title": "CreateBlanketPurchaseOrderRelease",
        "type": "object"
      },
      "CreateBlanketPurchaseOrderReleaseResult": {
        "properties": {
          "purchase_order_number": {
            "description": "The release PO's own PO number, or null if it has none yet.",
            "nullable": true,
            "title": "Purchase Order Number",
            "type": "string"
          },
          "purchase_order_uuid": {
            "description": "UUID of the new release PO.",
            "title": "Purchase Order Uuid",
            "type": "string"
          },
          "request_status": {
            "description": "Status of the release PO's request. SUBMITTED right after creation: approval runs in the background, so the release PO is not approved yet.",
            "title": "Request Status",
            "type": "string"
          },
          "request_url": {
            "description": "Link to the release PO's request in Ramp.",
            "title": "Request Url",
            "type": "string"
          },
          "spend_request_uuid": {
            "description": "UUID of the release PO's request.",
            "title": "Spend Request Uuid",
            "type": "string"
          },
          "unified_request_id": {
            "description": "ID of the release PO's request in Ramp.",
            "title": "Unified Request Id",
            "type": "string"
          }
        },
        "required": [
          "purchase_order_number",
          "purchase_order_uuid",
          "request_status",
          "request_url",
          "spend_request_uuid",
          "unified_request_id"
        ],
        "title": "CreateBlanketPurchaseOrderReleaseResult",
        "type": "object"
      },
      "CreateClientFinancingApplicationRequestBody": {
        "description": "Create a new client business and a Ramp financing application that your accounting firm prepares on the client's behalf (an assisted application).\n\nUse this when an accounting firm wants to sign up a new client for Ramp. The firm is\nassigned to the new client business as Owner plus the requested roles, so the returned\nclient business UUID can be used to act on that business when your firm has client data\naccess through Ramp MCP. The client is not\ncontacted and nothing is submitted: the application stays in preparation by the firm\nuntil the client is invited to review it.\n\nBefore creating anything, the firm's existing clients are checked for a closely matching\nname; on a match, no client is created and the existing client's UUID is returned.\nRepeating a successful call therefore reports the client it created rather than\ncreating another one.",
        "properties": {
          "allow_possible_duplicate": {
            "default": false,
            "description": "Create the client even when your firm already has a client with a closely matching name. Set to true only after the user confirms the match is a different business.",
            "title": "Allow Possible Duplicate",
            "type": "boolean"
          },
          "ap_only": {
            "default": false,
            "description": "When true, the client applies for Bill Pay (accounts payable) only. When false, the client applies for the full Ramp suite, including cards.",
            "title": "Ap Only",
            "type": "boolean"
          },
          "business_email": {
            "default": null,
            "description": "Email for the client business, used to match a client your firm pre-registered and, when no website is given, to derive the website from a non-personal email domain. It is not stored as a contact for the client.",
            "nullable": true,
            "title": "Business Email",
            "type": "string"
          },
          "business_name_legal": {
            "description": "Legal name of the client business, for example \"Acme Holdings LLC\".",
            "minLength": 1,
            "title": "Business Name Legal",
            "type": "string"
          },
          "business_website": {
            "default": null,
            "description": "Client business website, for example \"acme.com\".",
            "nullable": true,
            "title": "Business Website",
            "type": "string"
          },
          "firm_roles": {
            "description": "Roles your firm's team holds in the client business in addition to Owner, which the firm holds while it prepares the application. Defaults to BUSINESS_ADMIN (Admin). Other values: FINANCE_ADMIN (Finance admin), BUSINESS_BOOKKEEPER (Accounting), AP_CLERK (Accounts payable), AR_CLERK (Accounts receivable), AI_TOKEN_SPEND_ADMIN (AI token spend admin), IT_ADMIN (IT admin), and AUDITOR (Auditor). AP_CLERK cannot be combined with BUSINESS_ADMIN.",
            "items": {
              "enum": [
                "AI_TOKEN_SPEND_ADMIN",
                "AP_CLERK",
                "AR_CLERK",
                "AUDITOR",
                "BUSINESS_ADMIN",
                "BUSINESS_BOOKKEEPER",
                "FINANCE_ADMIN",
                "IT_ADMIN"
              ],
              "type": "string"
            },
            "minItems": 1,
            "title": "Firm Roles",
            "type": "array"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "business_name_legal",
          "rationale"
        ],
        "title": "CreateClientFinancingApplication",
        "type": "object"
      },
      "CreateDepartmentOutput": {
        "description": "Response containing the newly created department.",
        "properties": {
          "already_existed": {
            "default": false,
            "description": "True when a department with this name already existed and was returned instead of creating a duplicate.",
            "title": "Already Existed",
            "type": "boolean"
          },
          "department_id": {
            "description": "UUID of the created department.",
            "title": "Department Id",
            "type": "string"
          },
          "department_name": {
            "title": "Department Name",
            "type": "string"
          },
          "message": {
            "title": "Message",
            "type": "string"
          }
        },
        "required": [
          "department_id",
          "department_name",
          "message"
        ],
        "title": "CreateDepartmentOutput",
        "type": "object"
      },
      "CreateDepartmentRequestBody": {
        "description": "Create a new department in the company.\n\nDepartment names are unique within the business (case-insensitive). If a\ndepartment with the requested name already exists, it is returned instead\nof creating a duplicate.",
        "properties": {
          "department_name": {
            "description": "Name of the department to create.",
            "title": "Department Name",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "department_name",
          "rationale"
        ],
        "title": "CreateDepartment",
        "type": "object"
      },
      "CreateDraftBillRequestBody": {
        "description": "Create an unsubmitted draft bill for an existing vendor that is visible to the caller and eligible for bill creation. Hidden manually created pending vendors are not eligible. Returns the draft UUID, initial version, and Ramp URL. This does not start approval, schedule, release, or initiate payment. Omitted fields remain empty, so the new draft may not yet be ready for submission.",
        "properties": {
          "draft_bill": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CreateAgentDraftBillRequestBody"
              }
            ],
            "description": "Draft bill fields to set at creation. Do not include vendor fields; vendor_uuid is the only vendor input."
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "type": "string"
          },
          "vendor_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UUIDStrRequestBody"
              }
            ],
            "description": "UUID of an existing vendor/payee that is visible to the caller and eligible for bill creation. Hidden manually created pending vendors are not eligible."
          }
        },
        "required": [
          "draft_bill",
          "rationale",
          "vendor_uuid"
        ],
        "title": "CreateDraftBill",
        "type": "object"
      },
      "CreateDraftBillResult": {
        "properties": {
          "bill_url": {
            "description": "Link to the draft bill in the Ramp web app.",
            "title": "Bill Url",
            "type": "string"
          },
          "draft_bill_id": {
            "description": "UUID of the newly created draft bill.",
            "title": "Draft Bill Id",
            "type": "string"
          },
          "has_submission_policy_violations": {
            "default": false,
            "description": "Whether submission policy violations prevent draft submission. These are separate from missing required fields.",
            "title": "Has Submission Policy Violations",
            "type": "boolean"
          },
          "is_ready_for_submission": {
            "description": "Whether the new draft is ready to submit. A false value means the draft must not be submitted until the missing fields are set.",
            "title": "Is Ready For Submission",
            "type": "boolean"
          },
          "message": {
            "description": "Human-readable summary of the creation outcome.",
            "title": "Message",
            "type": "string"
          },
          "missing_required_fields": {
            "default": [],
            "description": "Required draft fields that are missing or incomplete.",
            "items": {
              "type": "string"
            },
            "title": "Missing Required Fields",
            "type": "array"
          },
          "missing_requirements": {
            "default": [],
            "description": "Structured missing or incomplete requirements, each with a stable code and, for accounting fields, the specific tracking categories to set.",
            "items": {
              "$ref": "#/components/schemas/DraftBillMissingRequirement"
            },
            "title": "Missing Requirements",
            "type": "array"
          },
          "version": {
            "description": "Initial draft version for optimistic concurrency on later edits.",
            "title": "Version",
            "type": "string"
          }
        },
        "required": [
          "bill_url",
          "draft_bill_id",
          "is_ready_for_submission",
          "message",
          "version"
        ],
        "title": "CreateDraftBillResult",
        "type": "object"
      },
      "CreateDraftSpendRequestFromSourcingEventOutput": {
        "properties": {
          "message": {
            "description": "Human-readable result of the draft creation",
            "title": "Message",
            "type": "string"
          },
          "spend_request_name": {
            "description": "Display name of the draft spend request",
            "title": "Spend Request Name",
            "type": "string"
          },
          "spend_request_uuid": {
            "description": "UUID of the created draft spend request",
            "title": "Spend Request Uuid",
            "type": "string"
          },
          "unified_request_id": {
            "default": null,
            "description": "UUID of the unified request wrapping the draft, when available",
            "nullable": true,
            "title": "Unified Request Id",
            "type": "string"
          }
        },
        "required": [
          "message",
          "spend_request_name",
          "spend_request_uuid",
          "unified_request_id"
        ],
        "title": "CreateDraftSpendRequestFromSourcingEventOutput",
        "type": "object"
      },
      "CreateDraftSpendRequestFromSourcingEventRequestBody": {
        "description": "Hand off an awarded sourcing event into procurement intake by drafting a\nspend request pre-filled with the winning vendor's context.\n\nThe draft is prefilled from the sourcing conversation, event details, and\n(when ``rfx_id`` is passed) the awarded vendor's RFX responses. The user\nreviews and submits the draft in procurement. ``payee_uuid`` defaults to\nthe awarded vendor and ``spend_intent_uuid`` defaults to the backend's\nrecommended spend program when omitted. This call runs LLM extraction and\ncan take a while.",
        "properties": {
          "payee_uuid": {
            "default": null,
            "description": "Optional vendor (payee) UUID for the spend request. Defaults to the sourcing event's awarded vendor.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "rfx_id": {
            "default": null,
            "description": "Optional UUID of the awarded RFX whose vendor responses should enrich the draft prefill. Must belong to the sourcing event.",
            "format": "uuid",
            "nullable": true,
            "title": "Rfx Id",
            "type": "string"
          },
          "sourcing_event_id": {
            "description": "UUID of the sourcing event to draft a spend request from",
            "format": "uuid",
            "title": "Sourcing Event Id",
            "type": "string"
          },
          "spend_intent_uuid": {
            "default": null,
            "description": "Optional spend program UUID to draft under. Omit to let the backend pick the best-fit procurement spend program.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "rationale",
          "sourcing_event_id"
        ],
        "title": "CreateDraftSpendRequestFromSourcingEvent",
        "type": "object"
      },
      "CreateMileageReimbursementRequestBody": {
        "description": "Create the acting employee's mileage reimbursement draft from actual business-driving distance.\n\nThe company calculates the amount and currency for the trip date; no rate or amount\noverride is accepted. Requires enabled mileage, cleared OFAC checks and company permission\nto request reimbursements. Saves a draft only, never submits.\nSupply user-confirmed distance and start/end addresses; this does not map routes or\ntrack GPS. Not for estimates, per diem, or out-of-pocket purchases.\nReturns the saved claim, remaining requirements, validation errors, and a review link.\nA retry of the same logical call returns the same draft without changing it.",
        "properties": {
          "distance": {
            "description": "Actual business-driving distance supplied by the user, greater than zero; never infer it from addresses.",
            "oneOf": [
              {
                "exclusiveMinimum": true,
                "minimum": 0.0,
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "title": "Distance"
          },
          "distance_units": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DistanceUnitRequestBody"
              }
            ],
            "description": "Unit of the supplied distance: MILES or KILOMETERS."
          },
          "end_location": {
            "description": "User-supplied destination address or location name.",
            "minLength": 1,
            "pattern": "\\S",
            "title": "End Location",
            "type": "string"
          },
          "memo": {
            "description": "User-supplied business purpose for this drive.",
            "minLength": 1,
            "pattern": "\\S",
            "title": "Memo",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "start_location": {
            "description": "User-supplied starting address or location name, e.g. 123 Main St, Boston, MA.",
            "minLength": 1,
            "pattern": "\\S",
            "title": "Start Location",
            "type": "string"
          },
          "transaction_date": {
            "description": "Date the driving occurred, YYYY-MM-DD.",
            "format": "date",
            "title": "Transaction Date",
            "type": "string"
          },
          "vehicle_mileage_class": {
            "allOf": [
              {
                "$ref": "#/components/schemas/VehicleMileageClassRequestBody"
              }
            ],
            "default": null,
            "description": "Vehicle class when required by the mileage country; omit when not applicable.",
            "nullable": true
          }
        },
        "required": [
          "distance",
          "distance_units",
          "end_location",
          "memo",
          "rationale",
          "start_location",
          "transaction_date"
        ],
        "title": "CreateMileageReimbursement",
        "type": "object"
      },
      "CreatePayeeRequestBody": {
        "description": "Create a vendor with a contact email and country supplied by the user. US vendors also require a state abbreviation. Returns the vendor, bill-pay vendor, and contact UUIDs. Configured vendor approval policies apply, so creation does not guarantee approval. Explicit draft creation is not supported. Vendors matching an existing name or DBA are rejected, including pending creations and drafts visible to the vendor duplicate check.",
        "properties": {
          "contact": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayeeContactRequestBody"
              }
            ],
            "description": "Required primary vendor contact with an email explicitly provided by the user. Never infer or invent an email."
          },
          "country": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CountryCodeAlpha2RequestBody"
              }
            ],
            "description": "Required vendor country as an ISO 3166-1 alpha-2 code, explicitly provided by the user; never assume US."
          },
          "name": {
            "description": "Vendor name",
            "title": "Name",
            "type": "string"
          },
          "owner_user_uuids": {
            "default": null,
            "description": "UUIDs of users to set as vendor owners",
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "nullable": true,
            "title": "Owner User Uuids",
            "type": "array"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "state": {
            "default": null,
            "description": "Two-letter state abbreviation. Required when country is US. Omit for non-US vendors unless the user provides it.",
            "nullable": true,
            "title": "State",
            "type": "string"
          },
          "website": {
            "default": null,
            "description": "Vendor website URL, with an optional http:// or https:// prefix.",
            "maxLength": 500,
            "nullable": true,
            "title": "Website",
            "type": "string"
          }
        },
        "required": [
          "contact",
          "country",
          "name",
          "rationale"
        ],
        "title": "CreatePayee",
        "type": "object"
      },
      "CreatePayeeResult": {
        "properties": {
          "business_vendor_uuid": {
            "nullable": true,
            "title": "Business Vendor Uuid",
            "type": "string"
          },
          "payee_contact_uuid": {
            "nullable": true,
            "title": "Payee Contact Uuid",
            "type": "string"
          },
          "payee_uuid": {
            "title": "Payee Uuid",
            "type": "string"
          }
        },
        "required": [
          "business_vendor_uuid",
          "payee_contact_uuid",
          "payee_uuid"
        ],
        "title": "CreatePayeeResult",
        "type": "object"
      },
      "CreateRFXOutput": {
        "properties": {
          "name": {
            "description": "Name of the created RFX",
            "title": "Name",
            "type": "string"
          },
          "rfx_id": {
            "description": "UUID of the created RFX",
            "title": "Rfx Id",
            "type": "string"
          },
          "rfx_type": {
            "description": "Type of RFX: RFI, RFP, or RFQ",
            "title": "Rfx Type",
            "type": "string"
          },
          "sections_count": {
            "description": "Number of questionnaire sections",
            "title": "Sections Count",
            "type": "integer"
          },
          "sourcing_event_id": {
            "description": "UUID of the parent sourcing event",
            "title": "Sourcing Event Id",
            "type": "string"
          },
          "status": {
            "description": "Lifecycle status; always DRAFT on creation",
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "name",
          "rfx_id",
          "rfx_type",
          "sections_count",
          "sourcing_event_id",
          "status"
        ],
        "title": "CreateRFXOutput",
        "type": "object"
      },
      "CreateRFXRequestBody": {
        "description": "Create a DRAFT RFX questionnaire, optionally creating its parent sourcing\nevent in the same call.\n\nNothing is sent to vendors until the RFX is published. Use GetRFXDetail to\nreview the created questionnaire and InviteVendorsToRFX to add vendors\nbefore publishing.",
        "properties": {
          "close_date": {
            "default": null,
            "description": "RSVP deadline (YYYY-MM-DD) \u2014 the last date vendors can accept or reject the invitation. Must be in the future and on or before response_submission_deadline. Required before publishing.",
            "format": "date",
            "nullable": true,
            "title": "Close Date",
            "type": "string"
          },
          "description": {
            "default": null,
            "description": "Description of the RFX",
            "nullable": true,
            "title": "Description",
            "type": "string"
          },
          "name": {
            "description": "Name of the RFX",
            "title": "Name",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "response_submission_deadline": {
            "default": null,
            "description": "Deadline for vendors to submit their RFX response (YYYY-MM-DD). Must be in the future and on or after close_date. Required before publishing.",
            "format": "date",
            "nullable": true,
            "title": "Response Submission Deadline",
            "type": "string"
          },
          "rfx_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RFXTypeRequestBody"
              }
            ],
            "default": "RFP",
            "description": "Type of RFX: RFI (Request for Information), RFP (Request for Proposal), or RFQ (Request for Quotation)"
          },
          "sections": {
            "description": "Questionnaire sections, in the order shown to vendors",
            "items": {
              "$ref": "#/components/schemas/RFXSectionSpecRequestBody"
            },
            "minItems": 1,
            "title": "Sections",
            "type": "array"
          },
          "sourcing_event_id": {
            "default": null,
            "description": "UUID of an existing sourcing event to create the RFX under. Omit to create a new sourcing event for this RFX.",
            "format": "uuid",
            "nullable": true,
            "title": "Sourcing Event Id",
            "type": "string"
          },
          "sourcing_event_name": {
            "default": null,
            "description": "Name for the new sourcing event when sourcing_event_id is omitted. Defaults to the RFX name. Ignored when sourcing_event_id is set.",
            "nullable": true,
            "title": "Sourcing Event Name",
            "type": "string"
          }
        },
        "required": [
          "name",
          "rationale",
          "sections"
        ],
        "title": "CreateRFX",
        "type": "object"
      },
      "CreateReimbursementFromReceiptRequestBody": {
        "description": "Create a draft reimbursement from a receipt UUID. Pass amount/currency_code/transaction_date/merchant to skip OCR.",
        "properties": {
          "amount": {
            "default": null,
            "description": "Receipt total in major units of currency_code (e.g. \"18150.00\"), never minor units, currency symbols, or thousands separators. When set, bypasses OCR.",
            "nullable": true,
            "oneOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "title": "Amount"
          },
          "currency_code": {
            "default": null,
            "description": "ISO 4217 code (e.g. USD, EUR). Pass whenever the receipt or user names a currency; otherwise defaults to the user's currency and can mislabel foreign spend.",
            "nullable": true,
            "title": "Currency Code",
            "type": "string"
          },
          "merchant": {
            "default": null,
            "description": "Merchant name from the receipt.",
            "nullable": true,
            "title": "Merchant",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "receipt_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "description": "Real Ramp Receipt UUID (not a chat file_id). Must come from Ramp/context; no placeholders. If unknown, call list-unmatched-receipts to find receipts the user already sent in (e.g. by email to receipts@ramp.com); ask the user to upload a receipt only if none match."
          },
          "transaction_date": {
            "default": null,
            "description": "Receipt transaction date (YYYY-MM-DD).",
            "nullable": true,
            "title": "Transaction Date",
            "type": "string"
          }
        },
        "required": [
          "rationale",
          "receipt_uuid"
        ],
        "title": "CreateReimbursementFromReceipt",
        "type": "object"
      },
      "CreateSemanticReportRequestBody": {
        "description": "Create or update a saved Ramp report that refreshes when opened. Saves a validated semantic query with its chart or table configuration and returns the report and its report_url. Pass report_id to revise an existing report instead of creating a duplicate. Does not change dashboard placement.",
        "properties": {
          "chart_breakdown_field": {
            "default": null,
            "description": "Optional dimension that splits the chart into series. Use an exact dimension field selected by report_query, different from chart_dimension_field. Omit when no intentional breakdown is needed. Preview does not use this projection when rendering its total.",
            "nullable": true,
            "title": "Chart Breakdown Field",
            "type": "string"
          },
          "chart_dimension_field": {
            "default": null,
            "description": "Dimension plotted on the chart's primary axis. Use an exact dimension field selected by report_query. For trends, use the time dimension; for rankings, use the ranked category. Preview does not use this projection when rendering its total.",
            "nullable": true,
            "title": "Chart Dimension Field",
            "type": "string"
          },
          "chart_is_cumulative": {
            "default": false,
            "description": "Whether area chart values accumulate over time. Set true for a running total; the default renders per-period values. Ignored for other chart types.",
            "title": "Chart Is Cumulative",
            "type": "boolean"
          },
          "chart_is_grouped": {
            "default": false,
            "description": "Whether stacked_bar_chart series render as side-by-side grouped bars instead of stacked segments. Set true when comparing series independently; the default stacks them. Ignored for other chart types.",
            "title": "Chart Is Grouped",
            "type": "boolean"
          },
          "chart_measure_field": {
            "default": null,
            "description": "Measure emphasized by charts that only have room for one measure. Use an exact measure selected by report_query. For grouped bars, select multiple measures with compatible units, use stacked_bar_chart with chart_is_grouped=true and no chart_breakdown_field, and omit this field so every measure renders side by side, provided axis buckets times measures does not exceed 30. Preview renders this measure, or the query's first measure when omitted.",
            "nullable": true,
            "title": "Chart Measure Field",
            "type": "string"
          },
          "chart_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SemanticReportChartTypeRequestBody"
              }
            ],
            "default": null,
            "description": "Chart to render. Required when view_mode=chart; omit when view_mode=table. Choose a chart compatible with the validated query result shape. Use stacked_bar_chart for bar charts, then choose grouped or stacked layout with chart_is_grouped. Use preview with view_mode=chart to emphasize a selected measure. A query with dimensions can use preview only when its validated response includes totals. Use sankey_chart only when the user asks for a flow between two dimensions: the query needs two dimensions and keep few distinct values in each, because many nodes are unreadable. chart_dimension_field is the source and chart_breakdown_field is the target.",
            "nullable": true
          },
          "description": {
            "default": null,
            "description": "Optional one-sentence summary. When generating it, omit selected dates and time windows; 'monthly' is fine. Preserve explicitly user-supplied wording.",
            "maxLength": 2000,
            "nullable": true,
            "title": "Description",
            "type": "string"
          },
          "query_scope": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SemanticQueryScopeRequestBody"
              }
            ],
            "default": null,
            "description": "Result-set scope for the saved query. Complete queries use a 1,000-row cap and preserve max_groups per-dimension ranking; top_n is valid only when the user explicitly requested exactly N rows and report_query.limit equals N. Omit only for backward compatibility; omission preserves the query limit except for new ordinary category charts, which default to per-dimension ranking. Raw reports accept complete or omission only; their row pagination and export limits are separate from aggregate query limits.",
            "nullable": true
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "raw_table_columns": {
            "default": [],
            "description": "Ordered raw column identities from dataset fields' raw_column or rows_columns metadata. Required for new raw_table reports; omitted values preserve the existing selection on updates. Empty selections are rejected for raw_table rather than expanding to default columns. For a grouped report's Data tab, an explicit empty list resets defaults. These persist to the report and its CSV export; semantic field names are not column keys.",
            "items": {
              "$ref": "#/components/schemas/SemanticReportRawTableSortFieldRequestBody"
            },
            "title": "Raw Table Columns",
            "type": "array"
          },
          "raw_table_sort": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SemanticReportRawTableSortRequestBody"
              }
            ],
            "default": null,
            "description": "Optional raw-row sort using a catalog column identity and asc/desc. Used for raw_table reports and their CSV export. Omission preserves the existing sort on updates; explicit null clears it.",
            "nullable": true
          },
          "report_id": {
            "default": null,
            "description": "Existing semantic report id to update in place. Omit to create a new report.",
            "nullable": true,
            "title": "Report Id",
            "type": "string"
          },
          "report_query": {
            "additionalProperties": false,
            "description": "Semantic ReportQuery object to persist, not a query response or wrapper. Use catalog name values for dimension/measure references, row-filter fields, and time_range.dimension, not display labels or raw_column.column_key. For example, spend uses spend_date, not DATE: {\"dataset\":\"spend\",\"dimensions\":[{\"field\":\"spend_date\",\"time_grain\":\"month\"}],\"measures\":[{\"measure\":\"amount\"}]}. Omit time_range.dimension to use the dataset's default time dimension. New ordinary category charts default to five named groups per dimension plus Other, ranked by the chart measure descending, when ranking and explicit top-N intent are absent and the query supports ranking. Explicit ranking is preserved; updates retain existing omission semantics without adding default ranking. Use the exact validated query, preserving its filters, ranked cohort, date range, sort, and limit on every retry. A persistence, idempotency, or internal error does not authorize changing this query; revalidate any semantic query change before creating the report. For raw_table, supply dataset, settings, filters, and time_range only; raw_table_columns selects the output. Raw reports are validated by this tool, including their row grain and column projection. Raw reports reject dimensions, measures, aggregation filters, ranking, semantic order_by, and non-null limits; omit limit or pass null. Use raw_table_sort for row order.",
            "properties": {
              "aggregate_filters": {
                "default": [],
                "description": "Deprecated: use a filters clause whose field is a selected measure output name instead. Numeric post-aggregation filters (SQL HAVING) on selected measure output names, including aliases, migrated into filters at compile time and reported in result_metadata.predicate_migration.",
                "items": {
                  "additionalProperties": false,
                  "description": "Numeric post-aggregation comparison against a selected measure output.",
                  "properties": {
                    "field": {
                      "maxLength": 200,
                      "minLength": 1,
                      "title": "Field",
                      "type": "string"
                    },
                    "op": {
                      "enum": [
                        "eq",
                        "gt",
                        "gte",
                        "lt",
                        "lte",
                        "neq"
                      ],
                      "title": "AggregateFilterOp",
                      "type": "string"
                    },
                    "value": {
                      "description": "Numeric threshold compared with the aggregated measure value.",
                      "oneOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "number"
                        }
                      ],
                      "title": "Value"
                    }
                  },
                  "required": [
                    "field",
                    "op",
                    "value"
                  ],
                  "title": "AggregateFilterClause",
                  "type": "object"
                },
                "maxItems": 10,
                "title": "Aggregate Filters",
                "type": "array"
              },
              "ap_operations": {
                "additionalProperties": false,
                "default": null,
                "description": "Canonical AP metric parameters. Tenant, timezone and resource limits are server-owned; omit SQL controls.",
                "nullable": true,
                "properties": {
                  "as_of": {
                    "format": "date-time",
                    "title": "As Of",
                    "type": "string"
                  },
                  "end_at": {
                    "default": null,
                    "format": "date-time",
                    "nullable": true,
                    "title": "End At",
                    "type": "string"
                  },
                  "metric_windows": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "end_at": {
                          "format": "date-time",
                          "title": "End At",
                          "type": "string"
                        },
                        "metric": {
                          "enum": [
                            "creation_source"
                          ],
                          "title": "MetricKey",
                          "type": "string"
                        },
                        "start_at": {
                          "format": "date-time",
                          "title": "Start At",
                          "type": "string"
                        }
                      },
                      "required": [
                        "end_at",
                        "metric",
                        "start_at"
                      ],
                      "title": "MetricWindowOverride",
                      "type": "object"
                    },
                    "title": "Metric Windows",
                    "type": "array"
                  },
                  "start_at": {
                    "default": null,
                    "format": "date-time",
                    "nullable": true,
                    "title": "Start At",
                    "type": "string"
                  }
                },
                "required": [
                  "as_of"
                ],
                "title": "ApOperationsMetricsRequest",
                "type": "object"
              },
              "calculations": {
                "default": [],
                "description": "Per-report measures defined by arithmetic over other measures in this query. Available only to accounts with calculated measures enabled; for other accounts a query that sets it fails with invalid_calculation (reason not_enabled), so leave it empty. When available, put a ratio, difference, share of a group, or change between two periods here rather than computing it from query results, so it is a column in the result and in a saved report. For a subset or a period, add the operand as a measure with filters (for a period, filter on the time dimension and give time_range fixed dates that cover both periods). A formula uses + - * /, unary minus, parentheses and numbers over the output names of selected measures and of other calculations. Every operand must already be in measures; nothing is added for you. Division by zero gives null. Examples: {name: po_utilization, formula: 'actual_spend_amount / po_amount'} (ratio; shows as a percent), {name: net_spend, formula: 'amount - cashback'} (difference; keeps the money unit), and {name: net_rate, formula: 'net_spend / amount'} (refers to the calculation net_spend). Units: money +/- money is money; same unit / same unit is a ratio (a 0-1 fraction shown as a percent; set format NUMBER for per-X counts such as 'txn_count / spender_count'); money / count is money; money x money and money + count are rejected. Not available with second_stage or post_aggregation, nor for window percentages, durations or date measures.",
                "items": {
                  "additionalProperties": false,
                  "description": "A measure computed from other selected measures, compiled in the same query.",
                  "properties": {
                    "display_name": {
                      "default": null,
                      "maxLength": 200,
                      "minLength": 1,
                      "nullable": true,
                      "title": "Display Name",
                      "type": "string"
                    },
                    "format": {
                      "default": null,
                      "description": "Display override: PERCENT or NUMBER for a ratio, CURRENCY or NUMBER for money. Omit to use the unit inferred from the formula.",
                      "enum": [
                        "CURRENCY",
                        "NUMBER",
                        "PERCENT"
                      ],
                      "nullable": true,
                      "title": "CalculatedMeasureFormat",
                      "type": "string"
                    },
                    "formula": {
                      "description": "Arithmetic over output names of selected measures or other calculations, e.g. 'paid_amount / total_amount'.",
                      "maxLength": 1000,
                      "minLength": 1,
                      "title": "Formula",
                      "type": "string"
                    },
                    "name": {
                      "description": "Output name; shares one namespace with measures and dimensions and may be used in order_by, aggregate filters, and other formulas.",
                      "maxLength": 200,
                      "minLength": 1,
                      "pattern": "^[a-z][a-z0-9_]*$",
                      "title": "Name",
                      "type": "string"
                    }
                  },
                  "required": [
                    "formula",
                    "name"
                  ],
                  "title": "CalculatedMeasure",
                  "type": "object"
                },
                "maxItems": 10,
                "title": "Calculations",
                "type": "array"
              },
              "dataset": {
                "maxLength": 200,
                "minLength": 1,
                "title": "Dataset",
                "type": "string"
              },
              "dimensions": {
                "default": [],
                "items": {
                  "additionalProperties": false,
                  "description": "Reference to a dimension, optionally time-bucketed.",
                  "properties": {
                    "field": {
                      "maxLength": 200,
                      "minLength": 1,
                      "title": "Field",
                      "type": "string"
                    },
                    "time_grain": {
                      "default": null,
                      "description": "Calendar grain for a time dimension. Null selects a grain automatically from the resolved time range.",
                      "enum": [
                        "day",
                        "month",
                        "quarter",
                        "week",
                        "year"
                      ],
                      "nullable": true,
                      "title": "TimeGrain",
                      "type": "string"
                    },
                    "week_starts_on": {
                      "default": null,
                      "description": "First day of the week when time_grain is week. Defaults to Monday.",
                      "enum": [
                        "monday",
                        "sunday"
                      ],
                      "nullable": true,
                      "title": "Week Starts On",
                      "type": "string"
                    }
                  },
                  "required": [
                    "field"
                  ],
                  "title": "FieldRef",
                  "type": "object"
                },
                "maxItems": 50,
                "title": "Dimensions",
                "type": "array"
              },
              "filters": {
                "default": [],
                "description": "Conjunctive row filters. Text ops (contains, not_contains, starts_with, ends_with) are case-insensitive, take one string, and exist only on fields that list them in supported_filter_ops; neq, not_in, and not_contains keep rows with no value.",
                "items": {
                  "additionalProperties": false,
                  "properties": {
                    "field": {
                      "maxLength": 200,
                      "minLength": 1,
                      "title": "Field",
                      "type": "string"
                    },
                    "op": {
                      "enum": [
                        "contains",
                        "ends_with",
                        "eq",
                        "gt",
                        "gte",
                        "in",
                        "is_not_null",
                        "is_null",
                        "lt",
                        "lte",
                        "neq",
                        "not_contains",
                        "not_in",
                        "starts_with"
                      ],
                      "title": "FilterOp",
                      "type": "string"
                    },
                    "value": {
                      "default": null,
                      "nullable": true,
                      "oneOf": [
                        {
                          "format": "date",
                          "type": "string"
                        },
                        {
                          "format": "date-time",
                          "type": "string"
                        },
                        {
                          "items": {
                            "oneOf": [
                              {
                                "format": "date",
                                "type": "string"
                              },
                              {
                                "format": "date-time",
                                "type": "string"
                              },
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "integer"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "type": "string"
                              }
                            ]
                          },
                          "type": "array"
                        },
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "integer"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "type": "string"
                        }
                      ],
                      "title": "Value"
                    }
                  },
                  "required": [
                    "field",
                    "op"
                  ],
                  "title": "FilterClause",
                  "type": "object"
                },
                "title": "Filters",
                "type": "array"
              },
              "having": {
                "default": [],
                "description": "Deprecated: use a filters clause whose field is a selected measure output name instead. Post-aggregation filters on selected measure output names, migrated into filters at compile time and reported in result_metadata.predicate_migration.",
                "items": {
                  "additionalProperties": false,
                  "description": "Post-aggregation comparison against a selected measure output.",
                  "properties": {
                    "field": {
                      "maxLength": 200,
                      "minLength": 1,
                      "title": "Field",
                      "type": "string"
                    },
                    "op": {
                      "enum": [
                        "eq",
                        "gt",
                        "gte",
                        "in",
                        "lt",
                        "lte",
                        "neq",
                        "not_in"
                      ],
                      "title": "HavingOp",
                      "type": "string"
                    },
                    "value": {
                      "oneOf": [
                        {
                          "format": "date",
                          "type": "string"
                        },
                        {
                          "format": "date-time",
                          "type": "string"
                        },
                        {
                          "items": {
                            "oneOf": [
                              {
                                "format": "date",
                                "type": "string"
                              },
                              {
                                "format": "date-time",
                                "type": "string"
                              },
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "integer"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "type": "string"
                              }
                            ]
                          },
                          "type": "array"
                        },
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "integer"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "type": "string"
                        }
                      ],
                      "title": "Value"
                    }
                  },
                  "required": [
                    "field",
                    "op",
                    "value"
                  ],
                  "title": "HavingClause",
                  "type": "object"
                },
                "maxItems": 10,
                "title": "Having",
                "type": "array"
              },
              "limit": {
                "default": null,
                "description": "Flat row limit; defaults to 100 without max_groups. Mutually exclusive with max_groups.",
                "maximum": 1000,
                "minimum": 1,
                "nullable": true,
                "title": "Limit",
                "type": "integer"
              },
              "max_groups": {
                "default": null,
                "description": "Maximum named values per dimension, plus Other, independently for every selected non-time dimension. Time axes are exempt. Requires ranking_order_by. When time_range is omitted, ranking covers all authorized data. Omit limit; results use a separate 1,000-row safety cap with actual-truncation disclosure.",
                "maximum": 100,
                "minimum": 1,
                "nullable": true,
                "title": "Max Groups",
                "type": "integer"
              },
              "measures": {
                "default": [],
                "items": {
                  "additionalProperties": false,
                  "description": "Reference to a dataset measure, optionally restricted by filters.\n\n``filters`` make the measure conditional (\"sum of amount WHERE category =\nX\") without restricting the query's row set or any other selected\nmeasure. This is how one query produces side-by-side conditional columns,\ne.g. per-category spend totals grouped by employee. Filtered refs must set\n``name`` so each output column has a distinct, addressable name.\n\n``agg`` makes ``measure`` name a base-dataset field or catalog measure\nwhose record values are aggregated at query time, e.g. the median of\n``amount``. The catalog lists the aggregations each entry accepts.",
                  "properties": {
                    "agg": {
                      "default": null,
                      "description": "Optional query-time aggregation; measure then names a base-dataset field or catalog measure whose record values are aggregated. agg.type must be one of that entry's catalog aggregations; QUANTILE_NUMERIC also needs agg.percentile. Requires name.",
                      "discriminator": {
                        "mapping": {
                          "AVG": "#/components/schemas/PlainAggregationRequestBody",
                          "MAX": "#/components/schemas/PlainAggregationRequestBody",
                          "MEDIAN_NUMERIC": "#/components/schemas/PlainAggregationRequestBody",
                          "MIN": "#/components/schemas/PlainAggregationRequestBody",
                          "QUANTILE_NUMERIC": "#/components/schemas/QuantileAggregationRequestBody",
                          "SUM": "#/components/schemas/PlainAggregationRequestBody"
                        },
                        "propertyName": "type"
                      },
                      "nullable": true,
                      "oneOf": [
                        {
                          "$ref": "#/components/schemas/PlainAggregationRequestBody"
                        },
                        {
                          "$ref": "#/components/schemas/QuantileAggregationRequestBody"
                        }
                      ],
                      "title": "Agg"
                    },
                    "display_name": {
                      "default": null,
                      "description": "Display label for the measure, independent of its output name. Defaults to the humanized output alias when name is set, otherwise the catalog measure label. References still use the output name.",
                      "maxLength": 200,
                      "minLength": 1,
                      "nullable": true,
                      "title": "Display Name",
                      "type": "string"
                    },
                    "filters": {
                      "default": [],
                      "description": "Optional conjunctive filters restricting which records this one output column aggregates (compiled to a conditional aggregate). Base-dataset fields and declared source-backed relationship fields are supported; ordinary joined-dataset fields are not supported here.",
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "field": {
                            "maxLength": 200,
                            "minLength": 1,
                            "title": "Field",
                            "type": "string"
                          },
                          "op": {
                            "enum": [
                              "contains",
                              "ends_with",
                              "eq",
                              "gt",
                              "gte",
                              "in",
                              "is_not_null",
                              "is_null",
                              "lt",
                              "lte",
                              "neq",
                              "not_contains",
                              "not_in",
                              "starts_with"
                            ],
                            "title": "FilterOp",
                            "type": "string"
                          },
                          "value": {
                            "default": null,
                            "nullable": true,
                            "oneOf": [
                              {
                                "format": "date",
                                "type": "string"
                              },
                              {
                                "format": "date-time",
                                "type": "string"
                              },
                              {
                                "items": {
                                  "oneOf": [
                                    {
                                      "format": "date",
                                      "type": "string"
                                    },
                                    {
                                      "format": "date-time",
                                      "type": "string"
                                    },
                                    {
                                      "type": "boolean"
                                    },
                                    {
                                      "type": "integer"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "string"
                                    }
                                  ]
                                },
                                "type": "array"
                              },
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "integer"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "type": "string"
                              }
                            ],
                            "title": "Value"
                          }
                        },
                        "required": [
                          "field",
                          "op"
                        ],
                        "title": "FilterClause",
                        "type": "object"
                      },
                      "maxItems": 10,
                      "title": "Filters",
                      "type": "array"
                    },
                    "measure": {
                      "maxLength": 200,
                      "minLength": 1,
                      "title": "Measure",
                      "type": "string"
                    },
                    "name": {
                      "default": null,
                      "description": "Snake_case output column name for this measure, describing what the filtered column contains: 'airline_spend', 'software_spend', 'marketing_dept_amount', 'flagged_txn_count', 'other_spend'. Required when filters are set or when the same measure is selected more than once; defaults to the measure name.",
                      "maxLength": 200,
                      "minLength": 1,
                      "nullable": true,
                      "pattern": "^[a-z][a-z0-9_]*$",
                      "title": "Name",
                      "type": "string"
                    }
                  },
                  "required": [
                    "measure"
                  ],
                  "title": "MeasureRef",
                  "type": "object"
                },
                "maxItems": 20,
                "title": "Measures",
                "type": "array"
              },
              "order_by": {
                "default": [],
                "items": {
                  "additionalProperties": false,
                  "description": "Order by a selected dimension or measure (by semantic name).",
                  "properties": {
                    "dir": {
                      "default": "desc",
                      "enum": [
                        "asc",
                        "desc"
                      ],
                      "title": "OrderDir",
                      "type": "string"
                    },
                    "field": {
                      "maxLength": 200,
                      "minLength": 1,
                      "title": "Field",
                      "type": "string"
                    }
                  },
                  "required": [
                    "field"
                  ],
                  "title": "OrderByClause",
                  "type": "object"
                },
                "title": "Order By",
                "type": "array"
              },
              "post_aggregation": {
                "additionalProperties": false,
                "default": null,
                "description": "Deprecated: prefer `second_stage`. Optional second aggregation stage. Retains the named dimension and counts first-stage groups that satisfy the query's aggregate predicates.",
                "nullable": true,
                "properties": {
                  "dimension": {
                    "maxLength": 200,
                    "minLength": 1,
                    "title": "Dimension",
                    "type": "string"
                  },
                  "display_name": {
                    "default": null,
                    "maxLength": 200,
                    "minLength": 1,
                    "nullable": true,
                    "title": "Display Name",
                    "type": "string"
                  },
                  "name": {
                    "pattern": "^[a-z][a-z0-9_]*$",
                    "title": "Name",
                    "type": "string"
                  }
                },
                "required": [
                  "dimension",
                  "name"
                ],
                "title": "PostAggregation",
                "type": "object"
              },
              "predicate_migration": {
                "additionalProperties": false,
                "default": null,
                "description": "Compile-time notice that deprecated having/aggregate_filters clauses were migrated into filters. Derived only from the clauses migrated during compilation (submitted values are discarded), never persisted, and echoed as result_metadata.predicate_migration.",
                "nullable": true,
                "properties": {
                  "original_fields": {
                    "items": {
                      "maxLength": 200,
                      "minLength": 1,
                      "type": "string"
                    },
                    "maxItems": 20,
                    "minItems": 1,
                    "title": "Original Fields",
                    "type": "array"
                  },
                  "sources": {
                    "items": {
                      "enum": [
                        "aggregate_filters",
                        "having"
                      ],
                      "type": "string"
                    },
                    "maxItems": 2,
                    "minItems": 1,
                    "title": "Sources",
                    "type": "array"
                  },
                  "version": {
                    "default": 1,
                    "enum": [
                      1
                    ],
                    "title": "Version",
                    "type": "integer"
                  }
                },
                "required": [
                  "original_fields",
                  "sources"
                ],
                "title": "PredicateMigration",
                "type": "object"
              },
              "ranking_migration": {
                "additionalProperties": false,
                "default": null,
                "description": "Notice history populated when legacy top_groups input was migrated. Returned with normalized saved reports and echoed in result_metadata; do not author it for new queries.",
                "nullable": true,
                "properties": {
                  "original_dimensions": {
                    "items": {
                      "maxLength": 200,
                      "minLength": 1,
                      "type": "string"
                    },
                    "maxItems": 5,
                    "minItems": 1,
                    "title": "Original Dimensions",
                    "type": "array"
                  },
                  "original_limit": {
                    "maximum": 1000,
                    "minimum": 1,
                    "title": "Original Limit",
                    "type": "integer"
                  },
                  "source": {
                    "default": "top_groups",
                    "enum": [
                      "top_groups"
                    ],
                    "title": "Source",
                    "type": "string"
                  },
                  "version": {
                    "default": 1,
                    "enum": [
                      1
                    ],
                    "title": "Version",
                    "type": "integer"
                  }
                },
                "required": [
                  "original_dimensions",
                  "original_limit"
                ],
                "title": "RankingMigration",
                "type": "object"
              },
              "ranking_order_by": {
                "default": [],
                "description": "Ordered list of 1\u20135 selected first-stage measure {field, dir} scores, shared by every ranked dimension. Supports mixed directions and aliases. Separate from final display order_by; may be empty when no non-time axis is ranked.",
                "items": {
                  "additionalProperties": false,
                  "description": "Order by a selected dimension or measure (by semantic name).",
                  "properties": {
                    "dir": {
                      "default": "desc",
                      "enum": [
                        "asc",
                        "desc"
                      ],
                      "title": "OrderDir",
                      "type": "string"
                    },
                    "field": {
                      "maxLength": 200,
                      "minLength": 1,
                      "title": "Field",
                      "type": "string"
                    }
                  },
                  "required": [
                    "field"
                  ],
                  "title": "OrderByClause",
                  "type": "object"
                },
                "maxItems": 5,
                "title": "Ranking Order By",
                "type": "array"
              },
              "reporting_currency": {
                "default": null,
                "description": "Optional ISO 4217 code to convert every money value to (e.g. 'USD', 'EUR', 'JPY'). Defaults to the business's reporting currency. The response echoes the resolved code as reporting_currency and per-column currency metadata.",
                "nullable": true,
                "pattern": "^[A-Z]{3}$",
                "title": "Reporting Currency",
                "type": "string"
              },
              "second_stage": {
                "additionalProperties": false,
                "default": null,
                "description": "Optional second aggregation stage over the first-stage groups: retain `dimensions` ([] for one scalar row; otherwise selected first-stage dimensions; at least one other selected dimension is collapsed) and compute `measures`, each `{agg: SUM|AVG|MIN|MAX|COUNT, of: <first-stage measure output name or null>, name, display_name}`, across the collapsed groups. Each first-stage group weighs once: COUNT without `of` counts qualifying groups (and then requires an aggregate predicate); AVG is an average of existing groups, so AVG over months is per active month (a month with no rows is absent, not zero). Aggregate predicates on first-stage outputs qualify groups before this stage. Mutually exclusive with post_aggregation and max_groups; comparison requires `dimensions: []`.",
                "nullable": true,
                "properties": {
                  "dimensions": {
                    "description": "Selected first-stage dimensions to retain in the final result; use [] for one scalar row. At least one first-stage dimension must be collapsed.",
                    "items": {
                      "type": "string"
                    },
                    "maxItems": 50,
                    "title": "Dimensions",
                    "type": "array"
                  },
                  "measures": {
                    "description": "Aggregates computed over the collapsed first-stage groups.",
                    "items": {
                      "additionalProperties": false,
                      "description": "One aggregate over the first-stage groups collapsed into a retained grain.\n\nOperands are first-stage group values, so every group weighs one: ``AVG``\nof a first-stage measure is an average of groups, not the raw-row average,\nand only groups that exist count. A time bucket with no rows is absent,\nnot zero, so ``AVG`` over months is an average per active month.",
                      "oneOf": [
                        {
                          "properties": {
                            "agg": {
                              "enum": [
                                "AVG",
                                "MAX",
                                "MIN",
                                "SUM"
                              ]
                            },
                            "of": {
                              "maxLength": 200,
                              "minLength": 1,
                              "type": "string"
                            }
                          },
                          "required": [
                            "of"
                          ]
                        },
                        {
                          "properties": {
                            "agg": {
                              "enum": [
                                "COUNT"
                              ]
                            }
                          }
                        }
                      ],
                      "properties": {
                        "agg": {
                          "description": "Aggregate applied across the first-stage groups collapsed into each retained-dimension row: SUM, AVG, MIN, MAX, or COUNT.",
                          "enum": [
                            "AVG",
                            "COUNT",
                            "MAX",
                            "MIN",
                            "SUM"
                          ],
                          "title": "Agg",
                          "type": "string"
                        },
                        "display_name": {
                          "default": null,
                          "maxLength": 200,
                          "minLength": 1,
                          "nullable": true,
                          "title": "Display Name",
                          "type": "string"
                        },
                        "name": {
                          "description": "Snake_case output column name, distinct from every selected first-stage dimension and measure output name.",
                          "pattern": "^[a-z][a-z0-9_]*$",
                          "title": "Name",
                          "type": "string"
                        },
                        "of": {
                          "default": null,
                          "description": "Selected first-stage measure output name (aliases allowed) to aggregate across groups. Omit (or null) with COUNT to count the qualifying groups themselves; with an operand, COUNT counts groups whose value is not null.",
                          "maxLength": 200,
                          "minLength": 1,
                          "nullable": true,
                          "title": "Of",
                          "type": "string"
                        }
                      },
                      "required": [
                        "agg",
                        "name"
                      ],
                      "title": "SecondStageMeasure",
                      "type": "object"
                    },
                    "maxItems": 20,
                    "minItems": 1,
                    "title": "Measures",
                    "type": "array"
                  }
                },
                "required": [
                  "dimensions",
                  "measures"
                ],
                "title": "SecondStage",
                "type": "object"
              },
              "settings": {
                "anyOf": [
                  {
                    "additionalProperties": false,
                    "description": "AP Events settings; aging behavior still depends on the selected fields.",
                    "properties": {
                      "ap_aging_age_by": {
                        "default": null,
                        "description": "AP Aging bucket basis, supported by ap_aging and ap_events. Omitted or null means due_date; bill_date uses ap_aging_bill_date_type.",
                        "enum": [
                          "bill_date",
                          "due_date"
                        ],
                        "nullable": true,
                        "title": "ApAgingAgeBy",
                        "type": "string"
                      },
                      "ap_aging_bill_date_type": {
                        "default": null,
                        "description": "AP Aging bill date for inclusion and prepayments, supported only by ap_aging and ap_events. Omitted or null means accounting_date. received_at is invoice-draft creation in America/New_York. Missing accounting or received dates fall back to the invoice date; vendor credits retain their accounting date. time_range does not set this basis.",
                        "enum": [
                          "accounting_date",
                          "issued_at",
                          "received_at"
                        ],
                        "nullable": true,
                        "title": "Ap Aging Bill Date Type",
                        "type": "string"
                      },
                      "ap_aging_paid_by": {
                        "default": null,
                        "description": "AP Aging bank payment cutoff, supported by ap_aging and ap_events. Omitted or null means debit_completion. credit_completion uses vendor payment completion; card/manual payments and allocations are unchanged.",
                        "enum": [
                          "credit_completion",
                          "debit_completion"
                        ],
                        "nullable": true,
                        "title": "ApAgingPaidBy",
                        "type": "string"
                      },
                      "line_item_grain": {
                        "default": null,
                        "enum": [
                          "split",
                          "unsplit"
                        ],
                        "nullable": true,
                        "title": "LineItemGrain",
                        "type": "string"
                      },
                      "reference_date": {
                        "default": null,
                        "description": "AP Aging as-of calendar date (YYYY-MM-DD), supported by ap_aging and ap_events. Omitted or null means today in America/New_York. Future dates are rejected when validating or executing a query. This changes aging balances and buckets; time_range only filters entity dates.",
                        "format": "date",
                        "nullable": true,
                        "title": "Reference Date",
                        "type": "string"
                      }
                    },
                    "title": "ApEventsReportQuerySettings",
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "description": "As-of AP Aging settings; stored null/unsplit inputs remain readable.",
                    "properties": {
                      "ap_aging_age_by": {
                        "default": null,
                        "description": "AP Aging bucket basis, supported by ap_aging and ap_events. Omitted or null means due_date; bill_date uses ap_aging_bill_date_type.",
                        "enum": [
                          "bill_date",
                          "due_date"
                        ],
                        "nullable": true,
                        "title": "ApAgingAgeBy",
                        "type": "string"
                      },
                      "ap_aging_bill_date_type": {
                        "default": null,
                        "description": "AP Aging bill date for inclusion and prepayments, supported only by ap_aging and ap_events. Omitted or null means accounting_date. received_at is invoice-draft creation in America/New_York. Missing accounting or received dates fall back to the invoice date; vendor credits retain their accounting date. time_range does not set this basis.",
                        "enum": [
                          "accounting_date",
                          "issued_at",
                          "received_at"
                        ],
                        "nullable": true,
                        "title": "Ap Aging Bill Date Type",
                        "type": "string"
                      },
                      "ap_aging_paid_by": {
                        "default": null,
                        "description": "AP Aging bank payment cutoff, supported by ap_aging and ap_events. Omitted or null means debit_completion. credit_completion uses vendor payment completion; card/manual payments and allocations are unchanged.",
                        "enum": [
                          "credit_completion",
                          "debit_completion"
                        ],
                        "nullable": true,
                        "title": "ApAgingPaidBy",
                        "type": "string"
                      },
                      "line_item_grain": {
                        "default": "unsplit",
                        "enum": [
                          "split",
                          "unsplit"
                        ],
                        "nullable": true,
                        "title": "LineItemGrain",
                        "type": "string"
                      },
                      "reference_date": {
                        "default": null,
                        "description": "AP Aging as-of calendar date (YYYY-MM-DD), supported by ap_aging and ap_events. Omitted or null means today in America/New_York. Future dates are rejected when validating or executing a query. This changes aging balances and buckets; time_range only filters entity dates.",
                        "format": "date",
                        "nullable": true,
                        "title": "Reference Date",
                        "type": "string"
                      }
                    },
                    "title": "ApAgingReportQuerySettings",
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "description": "Common execution settings; omitted values preserve legacy behavior.",
                    "properties": {
                      "line_item_grain": {
                        "default": null,
                        "enum": [
                          "split",
                          "unsplit"
                        ],
                        "nullable": true,
                        "title": "LineItemGrain",
                        "type": "string"
                      }
                    },
                    "title": "ReportQuerySettings",
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "description": "Spend-owned execution settings.",
                    "properties": {
                      "line_item_grain": {
                        "default": null,
                        "enum": [
                          "split",
                          "unsplit"
                        ],
                        "nullable": true,
                        "title": "LineItemGrain",
                        "type": "string"
                      },
                      "spend_date_basis": {
                        "additionalProperties": false,
                        "default": null,
                        "description": "Per-spend-type dates used by the consolidated spend date dimension.",
                        "nullable": true,
                        "properties": {
                          "bill": {
                            "default": "paid_at",
                            "enum": [
                              "accounting_date",
                              "due_at",
                              "issued_at",
                              "paid_at"
                            ],
                            "title": "BillDateFilterType",
                            "type": "string"
                          },
                          "reimbursement": {
                            "default": "transaction_date",
                            "enum": [
                              "accounting_date",
                              "reviewed_at",
                              "submitted_at",
                              "transaction_date"
                            ],
                            "title": "ReimbursementDateFilterType",
                            "type": "string"
                          },
                          "transaction": {
                            "default": "transaction_time",
                            "enum": [
                              "accounting_date",
                              "cleared_at",
                              "transaction_time"
                            ],
                            "title": "TransactionDateFilterType",
                            "type": "string"
                          }
                        },
                        "title": "SpendDateBasis",
                        "type": "object"
                      }
                    },
                    "title": "SpendReportQuerySettings",
                    "type": "object"
                  }
                ],
                "title": "Settings"
              },
              "statement": {
                "additionalProperties": false,
                "default": null,
                "description": "Canonical financial-statement parameters, only for datasets advertising a financial_statement contract. Omit dimensions, measures, generic filters, ranking, sorting, comparison, and reporting_currency.",
                "nullable": true,
                "properties": {
                  "filters": {
                    "additionalProperties": false,
                    "description": "Provider dimension IDs; omission includes all authorized values.",
                    "properties": {
                      "class_ids": {
                        "default": null,
                        "items": {
                          "maxLength": 200,
                          "minLength": 1,
                          "type": "string"
                        },
                        "maxItems": 100,
                        "minItems": 1,
                        "nullable": true,
                        "title": "Class Ids",
                        "type": "array"
                      },
                      "customer_ids": {
                        "default": null,
                        "items": {
                          "maxLength": 200,
                          "minLength": 1,
                          "type": "string"
                        },
                        "maxItems": 100,
                        "minItems": 1,
                        "nullable": true,
                        "title": "Customer Ids",
                        "type": "array"
                      },
                      "department_ids": {
                        "default": null,
                        "items": {
                          "maxLength": 200,
                          "minLength": 1,
                          "type": "string"
                        },
                        "maxItems": 100,
                        "minItems": 1,
                        "nullable": true,
                        "title": "Department Ids",
                        "type": "array"
                      },
                      "location_ids": {
                        "default": null,
                        "items": {
                          "maxLength": 200,
                          "minLength": 1,
                          "type": "string"
                        },
                        "maxItems": 100,
                        "minItems": 1,
                        "nullable": true,
                        "title": "Location Ids",
                        "type": "array"
                      },
                      "subsidiary_ids": {
                        "default": null,
                        "items": {
                          "maxLength": 200,
                          "minLength": 1,
                          "type": "string"
                        },
                        "maxItems": 100,
                        "minItems": 1,
                        "nullable": true,
                        "title": "Subsidiary Ids",
                        "type": "array"
                      },
                      "vendor_ids": {
                        "default": null,
                        "items": {
                          "maxLength": 200,
                          "minLength": 1,
                          "type": "string"
                        },
                        "maxItems": 100,
                        "minItems": 1,
                        "nullable": true,
                        "title": "Vendor Ids",
                        "type": "array"
                      }
                    },
                    "title": "FinancialStatementFilters",
                    "type": "object"
                  },
                  "time_window": {
                    "description": "Balance sheet and trial balance require {as_of_date: YYYY-MM-DD}. Income statement requires {start_date: YYYY-MM-DD, end_date: YYYY-MM-DD}; both endpoints are inclusive.",
                    "oneOf": [
                      {
                        "additionalProperties": false,
                        "description": "A cumulative balance through a single point in time (balance sheets).",
                        "properties": {
                          "as_of_date": {
                            "format": "date",
                            "title": "As Of Date",
                            "type": "string"
                          }
                        },
                        "required": [
                          "as_of_date"
                        ],
                        "title": "AbkReportingTimeWindowAsOf",
                        "type": "object"
                      },
                      {
                        "additionalProperties": false,
                        "description": "Activity within an inclusive date range (income statements).",
                        "properties": {
                          "end_date": {
                            "format": "date",
                            "title": "End Date",
                            "type": "string"
                          },
                          "start_date": {
                            "format": "date",
                            "title": "Start Date",
                            "type": "string"
                          }
                        },
                        "required": [
                          "end_date",
                          "start_date"
                        ],
                        "title": "AbkReportingTimeWindowRange",
                        "type": "object"
                      }
                    ],
                    "title": "Time Window"
                  }
                },
                "required": [
                  "time_window"
                ],
                "title": "FinancialStatementQuery",
                "type": "object"
              },
              "time_range": {
                "additionalProperties": false,
                "default": null,
                "description": "Inclusive time bounds applied to the dataset's default time dimension\n(or ``dimension`` when set).\n\nNamed ``SemanticTimeRange`` (not ``TimeRange``) so its OpenAPI component\ndoes not collide with the unrelated GLA-staleness ``TimeRange`` schema.",
                "nullable": true,
                "properties": {
                  "dimension": {
                    "default": null,
                    "nullable": true,
                    "title": "Dimension",
                    "type": "string"
                  },
                  "end": {
                    "default": null,
                    "description": "Inclusive upper bound for the reporting window. To include a complete calendar end date, use end-of-day (for example, 2025-12-31T23:59:59.999999Z). Midnight is the start of that date and excludes later timestamped records from the same day. A relative date offset is resolved when the report runs.",
                    "nullable": true,
                    "oneOf": [
                      {
                        "additionalProperties": false,
                        "description": "Legacy reporting date offset, resolved in UTC when the report runs.\n\nWeeks start on Monday. Last 30 days uses day offsets -30 through 0,\nsnapped to the beginning and end of the day respectively.",
                        "properties": {
                          "offset": {
                            "title": "Offset",
                            "type": "integer"
                          },
                          "snap_to_beginning_of_unit": {
                            "default": false,
                            "title": "Snap To Beginning Of Unit",
                            "type": "boolean"
                          },
                          "snap_to_end_of_unit": {
                            "default": false,
                            "title": "Snap To End Of Unit",
                            "type": "boolean"
                          },
                          "unit": {
                            "enum": [
                              "day",
                              "month",
                              "quarter",
                              "week",
                              "year"
                            ],
                            "title": "RelativeDateUnit",
                            "type": "string"
                          }
                        },
                        "required": [
                          "offset",
                          "unit"
                        ],
                        "title": "RelativeDate",
                        "type": "object"
                      },
                      {
                        "format": "date",
                        "type": "string"
                      },
                      {
                        "format": "date-time",
                        "type": "string"
                      }
                    ],
                    "title": "End"
                  },
                  "start": {
                    "default": null,
                    "description": "Inclusive lower bound: an ISO datetime or a legacy relative date offset.",
                    "nullable": true,
                    "oneOf": [
                      {
                        "additionalProperties": false,
                        "description": "Legacy reporting date offset, resolved in UTC when the report runs.\n\nWeeks start on Monday. Last 30 days uses day offsets -30 through 0,\nsnapped to the beginning and end of the day respectively.",
                        "properties": {
                          "offset": {
                            "title": "Offset",
                            "type": "integer"
                          },
                          "snap_to_beginning_of_unit": {
                            "default": false,
                            "title": "Snap To Beginning Of Unit",
                            "type": "boolean"
                          },
                          "snap_to_end_of_unit": {
                            "default": false,
                            "title": "Snap To End Of Unit",
                            "type": "boolean"
                          },
                          "unit": {
                            "enum": [
                              "day",
                              "month",
                              "quarter",
                              "week",
                              "year"
                            ],
                            "title": "RelativeDateUnit",
                            "type": "string"
                          }
                        },
                        "required": [
                          "offset",
                          "unit"
                        ],
                        "title": "RelativeDate",
                        "type": "object"
                      },
                      {
                        "format": "date",
                        "type": "string"
                      },
                      {
                        "format": "date-time",
                        "type": "string"
                      }
                    ],
                    "title": "Start"
                  }
                },
                "title": "SemanticTimeRange",
                "type": "object"
              },
              "time_zone": {
                "default": null,
                "description": "IANA timezone of the report, for example 'America/Los_Angeles'. Timestamp days, groups, and relative ranges use this zone; calendar dates do not shift. Defaults to UTC. Set it only when the user asks for a timezone; never infer one.",
                "nullable": true,
                "title": "Time Zone",
                "type": "string"
              },
              "top_groups": {
                "additionalProperties": false,
                "default": null,
                "description": "Legacy input: migrates to max_groups per dimension and ranking_order_by.",
                "nullable": true,
                "properties": {
                  "dimensions": {
                    "description": "Historical selected axes, retained as migration history. Execution ranks every selected non-time dimension independently.",
                    "items": {
                      "type": "string"
                    },
                    "maxItems": 5,
                    "minItems": 1,
                    "title": "Dimensions",
                    "type": "array"
                  },
                  "limit": {
                    "description": "Historical group count; migrates to max_groups for every selected non-time dimension. Any flat query limit submitted alongside is dropped.",
                    "maximum": 100,
                    "minimum": 1,
                    "title": "Limit",
                    "type": "integer"
                  },
                  "order_by": {
                    "description": "Selected measure outputs used to rank the groups.",
                    "items": {
                      "additionalProperties": false,
                      "description": "Order by a selected dimension or measure (by semantic name).",
                      "properties": {
                        "dir": {
                          "default": "desc",
                          "enum": [
                            "asc",
                            "desc"
                          ],
                          "title": "OrderDir",
                          "type": "string"
                        },
                        "field": {
                          "maxLength": 200,
                          "minLength": 1,
                          "title": "Field",
                          "type": "string"
                        }
                      },
                      "required": [
                        "field"
                      ],
                      "title": "OrderByClause",
                      "type": "object"
                    },
                    "maxItems": 5,
                    "minItems": 1,
                    "title": "Order By",
                    "type": "array"
                  }
                },
                "required": [
                  "dimensions",
                  "limit",
                  "order_by"
                ],
                "title": "TopGroupsClause",
                "type": "object"
              }
            },
            "required": [
              "dataset"
            ],
            "title": "ReportQuery",
            "type": "object"
          },
          "report_title": {
            "description": "Short title. When generating it, omit selected dates and time windows; 'by month' is fine. Preserve explicitly user-supplied wording.",
            "maxLength": 255,
            "minLength": 1,
            "title": "Report Title",
            "type": "string"
          },
          "view_mode": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SemanticReportViewModeRequestBody"
              }
            ],
            "description": "Default view when the report opens: table or chart. Required; choose it from the analytical intent of the question (trend, share, comparison, single total, or a list of rows). Raw detail reports use chart with chart_type=raw_table; table is the grouped-result view."
          }
        },
        "required": [
          "rationale",
          "report_query",
          "report_title",
          "view_mode"
        ],
        "title": "CreateSemanticReport",
        "type": "object"
      },
      "CreateSemanticReportResult": {
        "properties": {
          "report": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SemanticReportMetadata"
              }
            ],
            "description": "The persisted semantic report metadata."
          },
          "report_url": {
            "default": null,
            "description": "Absolute Ramp web URL to share with the user when the current surface cannot render an inline report object. When present, link it in the response.",
            "nullable": true,
            "title": "Report Url",
            "type": "string"
          },
          "url_path": {
            "description": "Relative Ramp web path to the persisted report. When render_inline=false, this exact path can be shared as a report link. Otherwise, use report_url when present or the inline report object instead of reproducing this path.",
            "title": "Url Path",
            "type": "string"
          }
        },
        "required": [
          "report",
          "url_path"
        ],
        "title": "CreateSemanticReportResult",
        "type": "object"
      },
      "CreateTripRequestBody": {
        "description": "Create a new trip for the acting user.\n\nCreates a trip when the user asks for one, not as a prerequisite for booking travel.\nA trip is a Ramp record that groups travel spend; it books nothing. When the user\nwants a ride, flight or hotel booked, or it is unclear whether they want a booking\nor a trip record, ask which they mean before creating a trip, without saying whether\na booking is possible.\nReturns the trip UUID and dates.\n\nRequires both start and end dates. Overlaps of less than 48 hours are allowed.\nOverlaps of 48 hours or more with existing trips or pending travel requests fail\nwith the conflicting trip or request identified.",
        "properties": {
          "are_trip_dates_from_booking_receipt_or_user_input": {
            "title": "Are Trip Dates From Booking Receipt Or User Input",
            "type": "boolean"
          },
          "calendar_timezone": {
            "default": null,
            "description": "IANA timezone used to interpret date-only start_date and end_date, for example America/New_York. Defaults to the acting user's valid preferred timezone. Ignored for offset-qualified datetime inputs.",
            "nullable": true,
            "title": "Calendar Timezone",
            "type": "string"
          },
          "destinations": {
            "description": "Required trip destination(s). Infer from available evidence (for example merchant/location context, travel context, or user input). Ask the user only when destination cannot be inferred. A single destination spans the whole trip. When more than one destination is provided, each one must include offset-qualified start_date and end_date; otherwise the call fails with an invalid-argument error.",
            "items": {
              "$ref": "#/components/schemas/TripLocationRequestBody"
            },
            "title": "Destinations",
            "type": "array"
          },
          "end_date": {
            "default": null,
            "description": "End calendar date, or an RFC3339 datetime with an explicit offset. Datetime values containing a time must include an offset.",
            "nullable": true,
            "oneOf": [
              {
                "format": "date",
                "type": "string"
              },
              {
                "format": "date-time",
                "type": "string"
              }
            ],
            "title": "End Date"
          },
          "name": {
            "description": "Name for the trip (e.g., 'NYC Conference', 'Client Visit'). Follow patterns for user's other trip names that have similar purpose, use month/yyyy to disambiguate if multiple trips with same name",
            "title": "Name",
            "type": "string"
          },
          "rationale": {
            "description": "How you found out or inferred the field values for the trip",
            "title": "Rationale",
            "type": "string"
          },
          "start_date": {
            "default": null,
            "description": "Start calendar date, or an RFC3339 datetime with an explicit offset. Datetime values containing a time must include an offset.",
            "nullable": true,
            "oneOf": [
              {
                "format": "date",
                "type": "string"
              },
              {
                "format": "date-time",
                "type": "string"
              }
            ],
            "title": "Start Date"
          },
          "trip_purpose": {
            "default": null,
            "description": "Required purpose of the trip. Ask the user for the purpose if it is not provided.",
            "nullable": true,
            "title": "Trip Purpose",
            "type": "string"
          }
        },
        "required": [
          "are_trip_dates_from_booking_receipt_or_user_input",
          "name",
          "rationale"
        ],
        "title": "CreateTrip",
        "type": "object"
      },
      "Currency": {
        "description": "We attempted to dynamically create this class from the ISO4217Currency and CryptoCurrency enums.\nHowever, mypy was not able to infer the type of the Currency enum; so we manually added the currencies to the enum.",
        "enum": [
          "AED",
          "AFN",
          "ALL",
          "AMD",
          "ANG",
          "AOA",
          "ARS",
          "AUD",
          "AWG",
          "AZN",
          "BAM",
          "BBD",
          "BDT",
          "BGN",
          "BHD",
          "BIF",
          "BMD",
          "BND",
          "BOB",
          "BOV",
          "BRL",
          "BSD",
          "BTN",
          "BWP",
          "BYN",
          "BZD",
          "CAD",
          "CDF",
          "CHE",
          "CHF",
          "CHW",
          "CLF",
          "CLP",
          "CNH",
          "CNY",
          "COP",
          "COU",
          "CRC",
          "CUC",
          "CUP",
          "CVE",
          "CZK",
          "DJF",
          "DKK",
          "DOP",
          "DZD",
          "EGP",
          "ERN",
          "ETB",
          "EUR",
          "EURC",
          "FJD",
          "FKP",
          "GBP",
          "GEL",
          "GHS",
          "GIP",
          "GMD",
          "GNF",
          "GTQ",
          "GYD",
          "HKD",
          "HNL",
          "HRK",
          "HTG",
          "HUF",
          "IDR",
          "ILS",
          "INR",
          "IQD",
          "IRR",
          "ISK",
          "JMD",
          "JOD",
          "JPY",
          "KES",
          "KGS",
          "KHR",
          "KMF",
          "KPW",
          "KRW",
          "KWD",
          "KYD",
          "KZT",
          "LAK",
          "LBP",
          "LKR",
          "LRD",
          "LSL",
          "LYD",
          "MAD",
          "MDL",
          "MGA",
          "MKD",
          "MMK",
          "MNT",
          "MOP",
          "MRU",
          "MUR",
          "MVR",
          "MWK",
          "MXN",
          "MXV",
          "MYR",
          "MZN",
          "NAD",
          "NGN",
          "NIO",
          "NOK",
          "NPR",
          "NZD",
          "OMR",
          "OPEN_USD",
          "PAB",
          "PEN",
          "PGK",
          "PHP",
          "PKR",
          "PLN",
          "PYG",
          "QAR",
          "RON",
          "RSD",
          "RUB",
          "RWF",
          "SAR",
          "SBD",
          "SCR",
          "SDG",
          "SEK",
          "SGD",
          "SHP",
          "SLE",
          "SLL",
          "SOS",
          "SRD",
          "SSP",
          "STN",
          "SVC",
          "SYP",
          "SZL",
          "THB",
          "TJS",
          "TMT",
          "TND",
          "TOP",
          "TRY",
          "TTD",
          "TWD",
          "TZS",
          "UAH",
          "UGX",
          "USD",
          "USDB",
          "USDC",
          "USDG",
          "USDT",
          "USN",
          "UYI",
          "UYU",
          "UYW",
          "UZS",
          "VED",
          "VES",
          "VND",
          "VUV",
          "WST",
          "XAD",
          "XAF",
          "XAG",
          "XAU",
          "XBA",
          "XBB",
          "XBC",
          "XBD",
          "XCD",
          "XCG",
          "XDR",
          "XOF",
          "XPD",
          "XPF",
          "XPT",
          "XSU",
          "XTS",
          "XUA",
          "XXX",
          "YER",
          "ZAR",
          "ZMW",
          "ZWG",
          "ZWL"
        ],
        "title": "Currency",
        "type": "string",
        "x-enum-descriptions": {
          "AED": "UAE Dirham",
          "AFN": "Afghani",
          "ALL": "Lek",
          "AMD": "Armenian Dram",
          "ANG": "Netherlands Antillean Guilder",
          "AOA": "Kwanza",
          "ARS": "Argentine Peso",
          "AUD": "Australian Dollar",
          "AWG": "Aruban Florin",
          "AZN": "Azerbaijan Manat",
          "BAM": "Convertible Mark",
          "BBD": "Barbados Dollar",
          "BDT": "Taka",
          "BGN": "Bulgarian Lev",
          "BHD": "Bahraini Dinar",
          "BIF": "Burundi Franc",
          "BMD": "Bermudian Dollar",
          "BND": "Brunei Dollar",
          "BOB": "Boliviano",
          "BOV": "Mvdol",
          "BRL": "Brazilian Real",
          "BSD": "Bahamian Dollar",
          "BTN": "Ngultrum",
          "BWP": "Pula",
          "BYN": "Belarusian Ruble",
          "BZD": "Belize Dollar",
          "CAD": "Canadian Dollar",
          "CDF": "Congolese Franc",
          "CHE": "WIR Euro",
          "CHF": "Swiss Franc",
          "CHW": "WIR Franc",
          "CLF": "Unidad de Fomento",
          "CLP": "Chilean Peso",
          "CNH": "CNH",
          "CNY": "Yuan Renminbi",
          "COP": "Colombian Peso",
          "COU": "Unidad de Valor Real",
          "CRC": "Costa Rican Colon",
          "CUC": "Peso Convertible",
          "CUP": "Cuban Peso",
          "CVE": "Cabo Verde Escudo",
          "CZK": "Czech Koruna",
          "DJF": "Djibouti Franc",
          "DKK": "Danish Krone",
          "DOP": "Dominican Peso",
          "DZD": "Algerian Dinar",
          "EGP": "Egyptian Pound",
          "ERN": "Nakfa",
          "ETB": "Ethiopian Birr",
          "EUR": "Euro",
          "EURC": "Euro Coin",
          "FJD": "Fiji Dollar",
          "FKP": "Falkland Islands Pound",
          "GBP": "Pound Sterling",
          "GEL": "Lari",
          "GHS": "Ghana Cedi",
          "GIP": "Gibraltar Pound",
          "GMD": "Dalasi",
          "GNF": "Guinean Franc",
          "GTQ": "Quetzal",
          "GYD": "Guyana Dollar",
          "HKD": "Hong Kong Dollar",
          "HNL": "Lempira",
          "HRK": "Croatian Kuna",
          "HTG": "Gourde",
          "HUF": "Forint",
          "IDR": "Rupiah",
          "ILS": "New Israeli Sheqel",
          "INR": "Indian Rupee",
          "IQD": "Iraqi Dinar",
          "IRR": "Iranian Rial",
          "ISK": "Iceland Krona",
          "JMD": "Jamaican Dollar",
          "JOD": "Jordanian Dinar",
          "JPY": "Yen",
          "KES": "Kenyan Shilling",
          "KGS": "Som",
          "KHR": "Riel",
          "KMF": "Comorian Franc",
          "KPW": "North Korean Won",
          "KRW": "Won",
          "KWD": "Kuwaiti Dinar",
          "KYD": "Cayman Islands Dollar",
          "KZT": "Tenge",
          "LAK": "Lao Kip",
          "LBP": "Lebanese Pound",
          "LKR": "Sri Lanka Rupee",
          "LRD": "Liberian Dollar",
          "LSL": "Loti",
          "LYD": "Libyan Dinar",
          "MAD": "Moroccan Dirham",
          "MDL": "Moldovan Leu",
          "MGA": "Malagasy Ariary",
          "MKD": "Denar",
          "MMK": "Kyat",
          "MNT": "Tugrik",
          "MOP": "Pataca",
          "MRU": "Ouguiya",
          "MUR": "Mauritius Rupee",
          "MVR": "Rufiyaa",
          "MWK": "Malawi Kwacha",
          "MXN": "Mexican Peso",
          "MXV": "Mexican Unidad de Inversion (UDI)",
          "MYR": "Malaysian Ringgit",
          "MZN": "Mozambique Metical",
          "NAD": "Namibia Dollar",
          "NGN": "Naira",
          "NIO": "Cordoba Oro",
          "NOK": "Norwegian Krone",
          "NPR": "Nepalese Rupee",
          "NZD": "New Zealand Dollar",
          "OMR": "Rial Omani",
          "OPEN_USD": "OpenUSD",
          "PAB": "Balboa",
          "PEN": "Sol",
          "PGK": "Kina",
          "PHP": "Philippine Peso",
          "PKR": "Pakistan Rupee",
          "PLN": "Zloty",
          "PYG": "Guarani",
          "QAR": "Qatari Rial",
          "RON": "Romanian Leu",
          "RSD": "Serbian Dinar",
          "RUB": "Russian Ruble",
          "RWF": "Rwanda Franc",
          "SAR": "Saudi Riyal",
          "SBD": "Solomon Islands Dollar",
          "SCR": "Seychelles Rupee",
          "SDG": "Sudanese Pound",
          "SEK": "Swedish Krona",
          "SGD": "Singapore Dollar",
          "SHP": "Saint Helena Pound",
          "SLE": "Leone",
          "SLL": "Leone",
          "SOS": "Somali Shilling",
          "SRD": "Surinam Dollar",
          "SSP": "South Sudanese Pound",
          "STN": "Dobra",
          "SVC": "El Salvador Colon",
          "SYP": "Syrian Pound",
          "SZL": "Lilangeni",
          "THB": "Baht",
          "TJS": "Somoni",
          "TMT": "Turkmenistan New Manat",
          "TND": "Tunisian Dinar",
          "TOP": "Pa\u2019anga",
          "TRY": "Turkish Lira",
          "TTD": "Trinidad and Tobago Dollar",
          "TWD": "New Taiwan Dollar",
          "TZS": "Tanzanian Shilling",
          "UAH": "Hryvnia",
          "UGX": "Uganda Shilling",
          "USD": "US Dollar",
          "USDB": "USDB",
          "USDC": "USDC",
          "USDG": "Global Dollar",
          "USDT": "USDT",
          "USN": "US Dollar (Next day)",
          "UYI": "Uruguay Peso en Unidades Indexadas (UI)",
          "UYU": "Peso Uruguayo",
          "UYW": "Unidad Previsional",
          "UZS": "Uzbekistan Sum",
          "VED": "Bol\u00edvar Soberano",
          "VES": "Bol\u00edvar Soberano",
          "VND": "Dong",
          "VUV": "Vatu",
          "WST": "Tala",
          "XAD": "Arab Accounting Dinar",
          "XAF": "CFA Franc BEAC",
          "XAG": "Silver",
          "XAU": "Gold",
          "XBA": "Bond Markets Unit European Composite Unit (EURCO)",
          "XBB": "Bond Markets Unit European Monetary Unit (E.M.U.-6)",
          "XBC": "Bond Markets Unit European Unit of Account 9 (E.U.A.-9)",
          "XBD": "Bond Markets Unit European Unit of Account 17 (E.U.A.-17)",
          "XCD": "East Caribbean Dollar",
          "XCG": "Caribbean Guilder",
          "XDR": "SDR (Special Drawing Right)",
          "XOF": "CFA Franc BCEAO",
          "XPD": "Palladium",
          "XPF": "CFP Franc",
          "XPT": "Platinum",
          "XSU": "Sucre",
          "XTS": "Codes specifically reserved for testing purposes",
          "XUA": "ADB Unit of Account",
          "XXX": "The codes assigned for transactions where no currency is involved",
          "YER": "Yemeni Rial",
          "ZAR": "Rand",
          "ZMW": "Zambian Kwacha",
          "ZWG": "Zimbabwe Gold",
          "ZWL": "Zimbabwe Dollar"
        }
      },
      "CurrencyAmount": {
        "properties": {
          "amount": {
            "description": "the amount of money represented in the smallest denomination of the currency. For example, when the currency is USD, then the amount is expressed in cents.",
            "type": "integer"
          },
          "currency_code": {
            "default": "USD",
            "description": "The type of currency, in ISO 4217 format. e.g. USD for US dollars",
            "type": "string"
          },
          "minor_unit_conversion_rate": {
            "description": "The conversion factor to convert from the integer amount to the actual currency value. Divide amount by this value to get the real currency amount. For USD, this is 100 (e.g., 12034 / 100 = 120.34 USD). See https://docs.ramp.com/developer-api/v1/monetary-values for more information.",
            "nullable": true,
            "readOnly": true,
            "type": "integer"
          }
        },
        "required": [
          "amount",
          "currency_code",
          "minor_unit_conversion_rate"
        ],
        "type": "object"
      },
      "CurrencyRequestBody": {
        "description": "We attempted to dynamically create this class from the ISO4217Currency and CryptoCurrency enums.\nHowever, mypy was not able to infer the type of the Currency enum; so we manually added the currencies to the enum.",
        "enum": [
          "AED",
          "AFN",
          "ALL",
          "AMD",
          "ANG",
          "AOA",
          "ARS",
          "AUD",
          "AWG",
          "AZN",
          "BAM",
          "BBD",
          "BDT",
          "BGN",
          "BHD",
          "BIF",
          "BMD",
          "BND",
          "BOB",
          "BOV",
          "BRL",
          "BSD",
          "BTN",
          "BWP",
          "BYN",
          "BZD",
          "CAD",
          "CDF",
          "CHE",
          "CHF",
          "CHW",
          "CLF",
          "CLP",
          "CNH",
          "CNY",
          "COP",
          "COU",
          "CRC",
          "CUC",
          "CUP",
          "CVE",
          "CZK",
          "DJF",
          "DKK",
          "DOP",
          "DZD",
          "EGP",
          "ERN",
          "ETB",
          "EUR",
          "EURC",
          "FJD",
          "FKP",
          "GBP",
          "GEL",
          "GHS",
          "GIP",
          "GMD",
          "GNF",
          "GTQ",
          "GYD",
          "HKD",
          "HNL",
          "HRK",
          "HTG",
          "HUF",
          "IDR",
          "ILS",
          "INR",
          "IQD",
          "IRR",
          "ISK",
          "JMD",
          "JOD",
          "JPY",
          "KES",
          "KGS",
          "KHR",
          "KMF",
          "KPW",
          "KRW",
          "KWD",
          "KYD",
          "KZT",
          "LAK",
          "LBP",
          "LKR",
          "LRD",
          "LSL",
          "LYD",
          "MAD",
          "MDL",
          "MGA",
          "MKD",
          "MMK",
          "MNT",
          "MOP",
          "MRU",
          "MUR",
          "MVR",
          "MWK",
          "MXN",
          "MXV",
          "MYR",
          "MZN",
          "NAD",
          "NGN",
          "NIO",
          "NOK",
          "NPR",
          "NZD",
          "OMR",
          "OPEN_USD",
          "PAB",
          "PEN",
          "PGK",
          "PHP",
          "PKR",
          "PLN",
          "PYG",
          "QAR",
          "RON",
          "RSD",
          "RUB",
          "RWF",
          "SAR",
          "SBD",
          "SCR",
          "SDG",
          "SEK",
          "SGD",
          "SHP",
          "SLE",
          "SLL",
          "SOS",
          "SRD",
          "SSP",
          "STN",
          "SVC",
          "SYP",
          "SZL",
          "THB",
          "TJS",
          "TMT",
          "TND",
          "TOP",
          "TRY",
          "TTD",
          "TWD",
          "TZS",
          "UAH",
          "UGX",
          "USD",
          "USDB",
          "USDC",
          "USDG",
          "USDT",
          "USN",
          "UYI",
          "UYU",
          "UYW",
          "UZS",
          "VED",
          "VES",
          "VND",
          "VUV",
          "WST",
          "XAD",
          "XAF",
          "XAG",
          "XAU",
          "XBA",
          "XBB",
          "XBC",
          "XBD",
          "XCD",
          "XCG",
          "XDR",
          "XOF",
          "XPD",
          "XPF",
          "XPT",
          "XSU",
          "XTS",
          "XUA",
          "XXX",
          "YER",
          "ZAR",
          "ZMW",
          "ZWG",
          "ZWL"
        ],
        "title": "Currency",
        "type": "string",
        "x-enum-descriptions": {
          "AED": "UAE Dirham",
          "AFN": "Afghani",
          "ALL": "Lek",
          "AMD": "Armenian Dram",
          "ANG": "Netherlands Antillean Guilder",
          "AOA": "Kwanza",
          "ARS": "Argentine Peso",
          "AUD": "Australian Dollar",
          "AWG": "Aruban Florin",
          "AZN": "Azerbaijan Manat",
          "BAM": "Convertible Mark",
          "BBD": "Barbados Dollar",
          "BDT": "Taka",
          "BGN": "Bulgarian Lev",
          "BHD": "Bahraini Dinar",
          "BIF": "Burundi Franc",
          "BMD": "Bermudian Dollar",
          "BND": "Brunei Dollar",
          "BOB": "Boliviano",
          "BOV": "Mvdol",
          "BRL": "Brazilian Real",
          "BSD": "Bahamian Dollar",
          "BTN": "Ngultrum",
          "BWP": "Pula",
          "BYN": "Belarusian Ruble",
          "BZD": "Belize Dollar",
          "CAD": "Canadian Dollar",
          "CDF": "Congolese Franc",
          "CHE": "WIR Euro",
          "CHF": "Swiss Franc",
          "CHW": "WIR Franc",
          "CLF": "Unidad de Fomento",
          "CLP": "Chilean Peso",
          "CNH": "CNH",
          "CNY": "Yuan Renminbi",
          "COP": "Colombian Peso",
          "COU": "Unidad de Valor Real",
          "CRC": "Costa Rican Colon",
          "CUC": "Peso Convertible",
          "CUP": "Cuban Peso",
          "CVE": "Cabo Verde Escudo",
          "CZK": "Czech Koruna",
          "DJF": "Djibouti Franc",
          "DKK": "Danish Krone",
          "DOP": "Dominican Peso",
          "DZD": "Algerian Dinar",
          "EGP": "Egyptian Pound",
          "ERN": "Nakfa",
          "ETB": "Ethiopian Birr",
          "EUR": "Euro",
          "EURC": "Euro Coin",
          "FJD": "Fiji Dollar",
          "FKP": "Falkland Islands Pound",
          "GBP": "Pound Sterling",
          "GEL": "Lari",
          "GHS": "Ghana Cedi",
          "GIP": "Gibraltar Pound",
          "GMD": "Dalasi",
          "GNF": "Guinean Franc",
          "GTQ": "Quetzal",
          "GYD": "Guyana Dollar",
          "HKD": "Hong Kong Dollar",
          "HNL": "Lempira",
          "HRK": "Croatian Kuna",
          "HTG": "Gourde",
          "HUF": "Forint",
          "IDR": "Rupiah",
          "ILS": "New Israeli Sheqel",
          "INR": "Indian Rupee",
          "IQD": "Iraqi Dinar",
          "IRR": "Iranian Rial",
          "ISK": "Iceland Krona",
          "JMD": "Jamaican Dollar",
          "JOD": "Jordanian Dinar",
          "JPY": "Yen",
          "KES": "Kenyan Shilling",
          "KGS": "Som",
          "KHR": "Riel",
          "KMF": "Comorian Franc",
          "KPW": "North Korean Won",
          "KRW": "Won",
          "KWD": "Kuwaiti Dinar",
          "KYD": "Cayman Islands Dollar",
          "KZT": "Tenge",
          "LAK": "Lao Kip",
          "LBP": "Lebanese Pound",
          "LKR": "Sri Lanka Rupee",
          "LRD": "Liberian Dollar",
          "LSL": "Loti",
          "LYD": "Libyan Dinar",
          "MAD": "Moroccan Dirham",
          "MDL": "Moldovan Leu",
          "MGA": "Malagasy Ariary",
          "MKD": "Denar",
          "MMK": "Kyat",
          "MNT": "Tugrik",
          "MOP": "Pataca",
          "MRU": "Ouguiya",
          "MUR": "Mauritius Rupee",
          "MVR": "Rufiyaa",
          "MWK": "Malawi Kwacha",
          "MXN": "Mexican Peso",
          "MXV": "Mexican Unidad de Inversion (UDI)",
          "MYR": "Malaysian Ringgit",
          "MZN": "Mozambique Metical",
          "NAD": "Namibia Dollar",
          "NGN": "Naira",
          "NIO": "Cordoba Oro",
          "NOK": "Norwegian Krone",
          "NPR": "Nepalese Rupee",
          "NZD": "New Zealand Dollar",
          "OMR": "Rial Omani",
          "OPEN_USD": "OpenUSD",
          "PAB": "Balboa",
          "PEN": "Sol",
          "PGK": "Kina",
          "PHP": "Philippine Peso",
          "PKR": "Pakistan Rupee",
          "PLN": "Zloty",
          "PYG": "Guarani",
          "QAR": "Qatari Rial",
          "RON": "Romanian Leu",
          "RSD": "Serbian Dinar",
          "RUB": "Russian Ruble",
          "RWF": "Rwanda Franc",
          "SAR": "Saudi Riyal",
          "SBD": "Solomon Islands Dollar",
          "SCR": "Seychelles Rupee",
          "SDG": "Sudanese Pound",
          "SEK": "Swedish Krona",
          "SGD": "Singapore Dollar",
          "SHP": "Saint Helena Pound",
          "SLE": "Leone",
          "SLL": "Leone",
          "SOS": "Somali Shilling",
          "SRD": "Surinam Dollar",
          "SSP": "South Sudanese Pound",
          "STN": "Dobra",
          "SVC": "El Salvador Colon",
          "SYP": "Syrian Pound",
          "SZL": "Lilangeni",
          "THB": "Baht",
          "TJS": "Somoni",
          "TMT": "Turkmenistan New Manat",
          "TND": "Tunisian Dinar",
          "TOP": "Pa\u2019anga",
          "TRY": "Turkish Lira",
          "TTD": "Trinidad and Tobago Dollar",
          "TWD": "New Taiwan Dollar",
          "TZS": "Tanzanian Shilling",
          "UAH": "Hryvnia",
          "UGX": "Uganda Shilling",
          "USD": "US Dollar",
          "USDB": "USDB",
          "USDC": "USDC",
          "USDG": "Global Dollar",
          "USDT": "USDT",
          "USN": "US Dollar (Next day)",
          "UYI": "Uruguay Peso en Unidades Indexadas (UI)",
          "UYU": "Peso Uruguayo",
          "UYW": "Unidad Previsional",
          "UZS": "Uzbekistan Sum",
          "VED": "Bol\u00edvar Soberano",
          "VES": "Bol\u00edvar Soberano",
          "VND": "Dong",
          "VUV": "Vatu",
          "WST": "Tala",
          "XAD": "Arab Accounting Dinar",
          "XAF": "CFA Franc BEAC",
          "XAG": "Silver",
          "XAU": "Gold",
          "XBA": "Bond Markets Unit European Composite Unit (EURCO)",
          "XBB": "Bond Markets Unit European Monetary Unit (E.M.U.-6)",
          "XBC": "Bond Markets Unit European Unit of Account 9 (E.U.A.-9)",
          "XBD": "Bond Markets Unit European Unit of Account 17 (E.U.A.-17)",
          "XCD": "East Caribbean Dollar",
          "XCG": "Caribbean Guilder",
          "XDR": "SDR (Special Drawing Right)",
          "XOF": "CFA Franc BCEAO",
          "XPD": "Palladium",
          "XPF": "CFP Franc",
          "XPT": "Platinum",
          "XSU": "Sucre",
          "XTS": "Codes specifically reserved for testing purposes",
          "XUA": "ADB Unit of Account",
          "XXX": "The codes assigned for transactions where no currency is involved",
          "YER": "Yemeni Rial",
          "ZAR": "Rand",
          "ZMW": "Zambian Kwacha",
          "ZWG": "Zimbabwe Gold",
          "ZWL": "Zimbabwe Dollar"
        }
      },
      "CurrentApprovalChainDetailsOutput": {
        "properties": {
          "details": {
            "$ref": "#/components/schemas/LocalizedApprovalChainDetails"
          },
          "viewer": {
            "$ref": "#/components/schemas/WorkflowsDebuggerViewerContext"
          }
        },
        "required": [
          "details",
          "viewer"
        ],
        "title": "CurrentApprovalChainDetailsOutput",
        "type": "object"
      },
      "CurrentOutstanding": {
        "properties": {
          "block_uuid": {
            "default": null,
            "format": "uuid",
            "nullable": true,
            "title": "Block Uuid",
            "type": "string"
          },
          "waiting_on_users": {
            "items": {
              "$ref": "#/components/schemas/UserRef"
            },
            "title": "Waiting On Users",
            "type": "array"
          }
        },
        "required": [
          "waiting_on_users"
        ],
        "title": "CurrentOutstanding",
        "type": "object"
      },
      "CustomFieldAnswerInfo": {
        "properties": {
          "field_id": {
            "title": "Field Id",
            "type": "string"
          },
          "files": {
            "default": null,
            "description": "Files uploaded to a file-upload field, empty when none were uploaded. Null for other field types.",
            "items": {
              "$ref": "#/components/schemas/CustomFieldFileInfo"
            },
            "nullable": true,
            "title": "Files",
            "type": "array"
          },
          "label": {
            "title": "Label",
            "type": "string"
          },
          "value": {
            "default": null,
            "nullable": true,
            "title": "Value",
            "type": "string"
          }
        },
        "required": [
          "field_id",
          "label"
        ],
        "title": "CustomFieldAnswerInfo",
        "type": "object"
      },
      "CustomFieldFileInfo": {
        "properties": {
          "document_id": {
            "description": "ID of the uploaded file; matches an attachments entry's document_id.",
            "title": "Document Id",
            "type": "string"
          },
          "filename": {
            "title": "Filename",
            "type": "string"
          }
        },
        "required": [
          "document_id",
          "filename"
        ],
        "title": "CustomFieldFileInfo",
        "type": "object"
      },
      "CustomFormFieldType": {
        "description": "Mandatory: Adding a new field type, the customFieldTypeSchema in the emails repo must be updated with the new field type too.",
        "enum": [
          "ADDRESS",
          "BOOLEAN",
          "CONTACT",
          "DATE",
          "DEPARTMENT",
          "EMAIL",
          "FILE_UPLOAD",
          "LINK",
          "MERCHANT",
          "MERCHANT_CATEGORY",
          "MONETARY_AMOUNT",
          "NUMBER",
          "PARAGRAPH",
          "TEXT",
          "TEXT_MULTI_SELECT",
          "TEXT_SINGLE_SELECT",
          "USER",
          "VENDOR"
        ],
        "title": "CustomFormFieldType",
        "type": "string"
      },
      "CustomFormFieldTypeRequestBody": {
        "description": "Mandatory: Adding a new field type, the customFieldTypeSchema in the emails repo must be updated with the new field type too.",
        "enum": [
          "ADDRESS",
          "BOOLEAN",
          "CONTACT",
          "DATE",
          "DEPARTMENT",
          "EMAIL",
          "FILE_UPLOAD",
          "LINK",
          "MERCHANT",
          "MERCHANT_CATEGORY",
          "MONETARY_AMOUNT",
          "NUMBER",
          "PARAGRAPH",
          "TEXT",
          "TEXT_MULTI_SELECT",
          "TEXT_SINGLE_SELECT",
          "USER",
          "VENDOR"
        ],
        "title": "CustomFormFieldType",
        "type": "string"
      },
      "CustomRecordFieldState": {
        "properties": {
          "column_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UUIDStr"
              }
            ],
            "description": "Unique identifier for this custom record column."
          },
          "column_type": {
            "description": "Data type of the column: text, boolean, number, datetime, custom_reference, or native_reference.",
            "title": "Column Type",
            "type": "string"
          },
          "description": {
            "description": "Human-readable label for this field, e.g. 'Billable?'.",
            "title": "Description",
            "type": "string"
          },
          "fulfilled": {
            "title": "Fulfilled",
            "type": "boolean"
          },
          "required": {
            "title": "Required",
            "type": "boolean"
          },
          "value": {
            "description": "Current display value, or null if unset.",
            "nullable": true,
            "title": "Value",
            "type": "string"
          },
          "writable": {
            "description": "Whether the agent can write this field directly. Reference and date columns are read-only (writable=false) because the agent lacks a search tool for valid row IDs.",
            "title": "Writable",
            "type": "boolean"
          }
        },
        "required": [
          "column_id",
          "column_type",
          "description",
          "fulfilled",
          "required",
          "value",
          "writable"
        ],
        "title": "CustomRecordFieldState",
        "type": "object"
      },
      "CustomRecordValueRequestBody": {
        "properties": {
          "column_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UUIDStrRequestBody"
              }
            ],
            "description": "The column ID of the custom record field to set."
          },
          "value": {
            "description": "The value to set. For text columns, pass a string. For boolean columns, pass true/false. For number columns, pass a number.",
            "oneOf": [
              {
                "type": "boolean"
              },
              {
                "type": "integer"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "title": "Value"
          }
        },
        "required": [
          "column_id",
          "value"
        ],
        "title": "CustomRecordValue",
        "type": "object"
      },
      "DailyAmount": {
        "properties": {
          "amount": {
            "title": "Amount",
            "type": "string"
          },
          "currency": {
            "default": null,
            "description": "ISO-4217 currency code for `amount`. Null when not set upstream; no default currency is implied.",
            "nullable": true,
            "title": "Currency",
            "type": "string"
          },
          "date": {
            "title": "Date",
            "type": "string"
          },
          "gsa_lodging_cap": {
            "default": null,
            "nullable": true,
            "title": "Gsa Lodging Cap",
            "type": "string"
          }
        },
        "required": [
          "amount",
          "date"
        ],
        "title": "DailyAmount",
        "type": "object"
      },
      "DailyBalanceInfo": {
        "properties": {
          "brokerage_available_balance": {
            "title": "Brokerage Available Balance",
            "type": "number"
          },
          "currency": {
            "default": null,
            "description": "Null when the aggregate's currency cannot be verified from participating accounts.",
            "nullable": true,
            "title": "Currency",
            "type": "string"
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "managed_portfolio_available_balance": {
            "title": "Managed Portfolio Available Balance",
            "type": "number"
          },
          "wallet_available_balance": {
            "title": "Wallet Available Balance",
            "type": "number"
          }
        },
        "required": [
          "brokerage_available_balance",
          "date",
          "managed_portfolio_available_balance",
          "wallet_available_balance"
        ],
        "title": "DailyBalanceInfo",
        "type": "object"
      },
      "DataSource": {
        "enum": [
          "AI_SPEND_DAILY",
          "AI_SPEND_FACTS_DAILY",
          "AI_TOKEN_AGGREGATED_COST",
          "AI_TOKEN_AGGREGATED_USAGE",
          "AI_TOKEN_API_KEYS",
          "AI_TOKEN_BUSINESS_USAGE",
          "AI_TOKEN_DEPARTMENT_USAGE",
          "AI_TOKEN_PEOPLE_USAGE",
          "AI_TOKEN_SPEND",
          "AP_APPROVAL_DECISIONS",
          "AP_EVENTS",
          "AP_OPERATIONS",
          "AP_OPERATIONS_METRICS",
          "AR_INVOICES",
          "BOOKINGS",
          "BUDGET",
          "CROSS_BUSINESS_OLAP",
          "ERP_GENERAL_LEDGER",
          "FLIGHT_TRANSACTIONS",
          "HIBOB",
          "HUBSPOT",
          "ITINERARIES",
          "PLANNING_BUDGETS",
          "POLICY",
          "PROCUREMENT",
          "PROCUREMENT_SPEND_REQUESTS",
          "SALESFORCE",
          "SPEND_ALLOCATIONS",
          "SPEND_OLAP",
          "SPEND_PROGRAMS",
          "STRIPE",
          "TASK_SNAPSHOTS",
          "TRAVEL",
          "TRIPS",
          "USERS",
          "WALLET_TRANSFERS"
        ],
        "title": "DataSource",
        "type": "string"
      },
      "DateFieldState": {
        "properties": {
          "description": {
            "title": "Description",
            "type": "string"
          },
          "fulfilled": {
            "title": "Fulfilled",
            "type": "boolean"
          },
          "required": {
            "title": "Required",
            "type": "boolean"
          },
          "value": {
            "format": "date",
            "nullable": true,
            "title": "Value",
            "type": "string"
          }
        },
        "required": [
          "description",
          "fulfilled",
          "required",
          "value"
        ],
        "title": "DateFieldState",
        "type": "object"
      },
      "DecimalFieldState": {
        "properties": {
          "description": {
            "title": "Description",
            "type": "string"
          },
          "fulfilled": {
            "title": "Fulfilled",
            "type": "boolean"
          },
          "required": {
            "title": "Required",
            "type": "boolean"
          },
          "value": {
            "nullable": true,
            "title": "Value",
            "type": "number"
          }
        },
        "required": [
          "description",
          "fulfilled",
          "required",
          "value"
        ],
        "title": "DecimalFieldState",
        "type": "object"
      },
      "DeclineBufferTarget": {
        "enum": [
          "business",
          "fund",
          "spend_program"
        ],
        "title": "DeclineBufferTarget",
        "type": "string"
      },
      "DeclineBufferTargetRequestBody": {
        "enum": [
          "business",
          "fund",
          "spend_program"
        ],
        "title": "DeclineBufferTarget",
        "type": "string"
      },
      "DeclineExplanation": {
        "properties": {
          "amount": {
            "description": "Declined transaction amount",
            "title": "Amount",
            "type": "number"
          },
          "card_last_four": {
            "description": "Last 4 digits of the card",
            "title": "Card Last Four",
            "type": "string"
          },
          "cardholder_name": {
            "default": null,
            "description": "Cardholder's full name",
            "nullable": true,
            "title": "Cardholder Name",
            "type": "string"
          },
          "cardholder_user_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "description": "UUID of the cardholder whose transaction was declined; may differ from the acting user",
            "nullable": true
          },
          "currency_code": {
            "description": "Currency code (e.g. USD)",
            "title": "Currency Code",
            "type": "string"
          },
          "decline_reason": {
            "description": "Human-readable explanation of why the transaction was declined",
            "title": "Decline Reason",
            "type": "string"
          },
          "decline_reason_code": {
            "description": "Raw decline reason code (e.g. AUTHORIZER_CARD_SUSPENDED)",
            "title": "Decline Reason Code",
            "type": "string"
          },
          "declined_at": {
            "description": "When the transaction was declined",
            "format": "date-time",
            "nullable": true,
            "title": "Declined At",
            "type": "string"
          },
          "merchant_name": {
            "description": "Name of the merchant",
            "title": "Merchant Name",
            "type": "string"
          },
          "remediation_actions": {
            "description": "Structured remediation actions from evaluation class",
            "items": {
              "$ref": "#/components/schemas/RemediationAction"
            },
            "title": "Remediation Actions",
            "type": "array"
          },
          "short_reason": {
            "description": "Brief decline reason for display",
            "title": "Short Reason",
            "type": "string"
          },
          "transaction_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "description": "UUID of the declined transaction"
          },
          "user_notification_message": {
            "description": "Original SMS/push message sent to the user; always None because the sent payload is not persisted and cannot be reconstructed from mutable transaction state",
            "nullable": true,
            "title": "User Notification Message",
            "type": "string"
          }
        },
        "required": [
          "amount",
          "card_last_four",
          "currency_code",
          "decline_reason",
          "decline_reason_code",
          "declined_at",
          "merchant_name",
          "remediation_actions",
          "short_reason",
          "transaction_uuid",
          "user_notification_message"
        ],
        "title": "DeclineExplanation",
        "type": "object"
      },
      "DefaultFlightDeparture": {
        "description": "Origin a flight search uses when the traveler names none.",
        "properties": {
          "location": {
            "description": "Departure city name or airport IATA code.",
            "title": "Location",
            "type": "string"
          },
          "search_code": {
            "description": "Airport IATA code or city ID that identifies exactly this origin as a flight search departure.",
            "title": "Search Code",
            "type": "string"
          },
          "source": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DefaultFlightDepartureSource"
              }
            ],
            "description": "'saved_home_address' is the searchable city nearest the traveler's saved home address; 'flight_history' is their most-booked past departure."
          }
        },
        "required": [
          "location",
          "search_code",
          "source"
        ],
        "title": "DefaultFlightDeparture",
        "type": "object"
      },
      "DefaultFlightDepartureSource": {
        "enum": [
          "flight_history",
          "saved_home_address"
        ],
        "title": "DefaultFlightDepartureSource",
        "type": "string"
      },
      "DelegatedTraveler": {
        "description": "A person whose travel the acting user can book and manage.",
        "properties": {
          "email": {
            "description": "Traveler's email address.",
            "title": "Email",
            "type": "string"
          },
          "name": {
            "description": "Traveler's full name.",
            "title": "Name",
            "type": "string"
          },
          "user_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "description": "Traveler user UUID, accepted as traveler_user_id by travel booking and booking lookup tools."
          }
        },
        "required": [
          "email",
          "name",
          "user_id"
        ],
        "title": "DelegatedTraveler",
        "type": "object"
      },
      "DeleteCommentRequestBody": {
        "description": "Delete a comment you wrote on a Ramp object (transaction, bill, request, etc).\n\nOnly the comment's author can delete it. The comment is removed from the thread for everyone and cannot be restored.",
        "properties": {
          "comment_uuid": {
            "description": "UUID of the comment to delete, as returned when the comment was posted or listed.",
            "title": "Comment Uuid",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "comment_uuid",
          "rationale"
        ],
        "title": "DeleteComment",
        "type": "object"
      },
      "DeleteProcurementDraftRequestBody": {
        "description": "Delete an abandoned procurement draft owned by the acting user.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "spend_request_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UUIDStrRequestBody"
              }
            ],
            "description": "Draft spend request UUID returned by draft_procurement_request."
          }
        },
        "required": [
          "rationale",
          "spend_request_uuid"
        ],
        "title": "DeleteProcurementDraft",
        "type": "object"
      },
      "DeleteReimbursementRequestBody": {
        "description": "Delete a reimbursement by UUID.\n\nDeletion is permanent and only allowed for reimbursements the acting user is\npermitted to delete (their own drafts, or others' if they have write access).\nOnly draft, pending or rejected claims without initiated or queued payments\ncan be deleted here. Payment-linked claims must be reviewed in the app;\nthis action cannot cancel, reverse or rebatch a payment.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "reimbursement_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "description": "UUID of the reimbursement in the current business to delete.",
            "nullable": true
          }
        },
        "required": [
          "rationale",
          "reimbursement_uuid"
        ],
        "title": "DeleteReimbursement",
        "type": "object"
      },
      "DeleteReimbursementSuccess": {
        "properties": {
          "reimbursement_uuid": {
            "$ref": "#/components/schemas/EntityUUIDStr"
          }
        },
        "required": [
          "reimbursement_uuid"
        ],
        "title": "DeleteReimbursementSuccess",
        "type": "object"
      },
      "DeleteSpendProgramRequestBody": {
        "description": "Delete (terminate) a spend program.\n\nUse this tool when an admin wants to permanently delete a spend program.\nIf the program has linked funds (spend allocations), the caller must specify\nwhat to do with them via spend_intent_delete_action:\n\n- \"terminate\": Close all linked funds.\n- \"transfer\": Move funds to another spend program (requires transfer_to_spend_intent_uuid).\n- \"detach\": Unlink funds from the program but keep them active.\n- \"bulk_lock\": Lock all cards associated with linked funds (admin only).\n\nIf the program has no linked funds, spend_intent_delete_action can be omitted.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "spend_intent_delete_action": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SpendIntentDeleteActionRequestBody"
              }
            ],
            "default": null,
            "description": "Action to take for existing funds linked to this program. Required when the program has linked funds. Options: 'terminate' (close all funds), 'transfer' (move funds to another program \u2014 requires transfer_to_spend_intent_uuid), 'detach' (unlink funds but keep them active), 'bulk_lock' (lock all associated cards \u2014 admin only).",
            "nullable": true
          },
          "spend_intent_uuid": {
            "description": "UUID of the spend program to delete.",
            "title": "Spend Intent Uuid",
            "type": "string"
          },
          "transfer_to_spend_intent_uuid": {
            "default": null,
            "description": "UUID of the spend program to transfer funds to. Required when spend_intent_delete_action is 'transfer'.",
            "nullable": true,
            "title": "Transfer To Spend Intent Uuid",
            "type": "string"
          }
        },
        "required": [
          "rationale",
          "spend_intent_uuid"
        ],
        "title": "DeleteSpendProgram",
        "type": "object"
      },
      "DeleteSpendProgramResult": {
        "properties": {
          "async_job_uuid": {
            "default": null,
            "nullable": true,
            "title": "Async Job Uuid",
            "type": "string"
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "spend_intent_uuid": {
            "title": "Spend Intent Uuid",
            "type": "string"
          }
        },
        "required": [
          "message",
          "spend_intent_uuid"
        ],
        "title": "DeleteSpendProgramResult",
        "type": "object"
      },
      "DeletedProcurementDraft": {
        "properties": {
          "spend_request_uuid": {
            "title": "Spend Request Uuid",
            "type": "string"
          },
          "web_path": {
            "title": "Web Path",
            "type": "string"
          }
        },
        "required": [
          "spend_request_uuid",
          "web_path"
        ],
        "title": "DeletedProcurementDraft",
        "type": "object"
      },
      "DepartmentDetails": {
        "description": "Department information with name and UUID.",
        "properties": {
          "name": {
            "description": "Department name",
            "title": "Name",
            "type": "string"
          },
          "uuid": {
            "description": "Department UUID",
            "title": "Uuid",
            "type": "string"
          }
        },
        "required": [
          "name",
          "uuid"
        ],
        "title": "DepartmentDetails",
        "type": "object"
      },
      "DepartmentInfo": {
        "description": "Information about a department.",
        "properties": {
          "department_id": {
            "title": "Department Id",
            "type": "string"
          },
          "department_name": {
            "title": "Department Name",
            "type": "string"
          },
          "managing_external_firm": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ManagingExternalFirmInfo"
              }
            ],
            "default": null,
            "description": "External firm managing this department, if any.",
            "nullable": true
          },
          "owners": {
            "description": "Users who own (manage) this department.",
            "items": {
              "$ref": "#/components/schemas/DepartmentOwnerInfo"
            },
            "title": "Owners",
            "type": "array"
          },
          "users_count": {
            "default": 0,
            "description": "Number of active users assigned to this department.",
            "title": "Users Count",
            "type": "integer"
          }
        },
        "required": [
          "department_id",
          "department_name"
        ],
        "title": "DepartmentInfo",
        "type": "object"
      },
      "DepartmentOwnerInfo": {
        "description": "A user who owns (manages) a department.",
        "properties": {
          "name": {
            "description": "Full name of the owning user.",
            "title": "Name",
            "type": "string"
          },
          "user_id": {
            "description": "UUID of the owning user.",
            "title": "User Id",
            "type": "string"
          }
        },
        "required": [
          "name",
          "user_id"
        ],
        "title": "DepartmentOwnerInfo",
        "type": "object"
      },
      "DescribeReportingDatasetRequestBody": {
        "description": "Describe one semantic reporting dataset in detail.\n\nUse this after selecting a dataset name to inspect its dimensions, measures,\ndefault time dimensions, sample questions, join-reachable fields, and\nrelated-record roles with their role-qualified fields (for example\n`spender.email`) before constructing a ReportQuery.",
        "properties": {
          "name": {
            "description": "Semantic dataset name to describe, for example `spend`.",
            "title": "Name",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "name",
          "rationale"
        ],
        "title": "DescribeReportingDataset",
        "type": "object"
      },
      "DescribeReportingDatasetResult": {
        "properties": {
          "dataset": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CatalogDatasetDetail"
              }
            ],
            "description": "Full semantic dataset metadata, including fields, joins, and relationships."
          }
        },
        "required": [
          "dataset"
        ],
        "title": "DescribeReportingDatasetResult",
        "type": "object"
      },
      "DetailLineItemSummary": {
        "properties": {
          "discount": {
            "default": null,
            "description": "Discount amount",
            "nullable": true,
            "title": "Discount",
            "type": "number"
          },
          "price_per_unit": {
            "default": null,
            "description": "Price per unit",
            "nullable": true,
            "title": "Price Per Unit",
            "type": "number"
          },
          "product_or_service_name": {
            "default": null,
            "description": "Name of the product or service",
            "nullable": true,
            "title": "Product Or Service Name",
            "type": "string"
          },
          "quantity": {
            "default": null,
            "description": "Quantity of units",
            "nullable": true,
            "title": "Quantity",
            "type": "number"
          },
          "total_price": {
            "default": null,
            "description": "Total line item amount",
            "nullable": true,
            "title": "Total Price",
            "type": "number"
          },
          "unit": {
            "default": null,
            "description": "Unit of measurement",
            "nullable": true,
            "title": "Unit",
            "type": "string"
          }
        },
        "title": "DetailLineItemSummary",
        "type": "object"
      },
      "DetailedFieldRequestBody": {
        "enum": [
          "card_details",
          "policy_assessment_for_reviewers",
          "submitted_items",
          "suggestions_for_transaction_items",
          "transaction_documentation_and_missing_items"
        ],
        "title": "DetailedField",
        "type": "string"
      },
      "DeveloperAPINestedPage": {
        "description": "Pagination details for a Developer API response.",
        "example": {
          "next": "https://api.ramp.com/developer/v1/<resources>?<new_params>"
        },
        "properties": {
          "next": {
            "description": "the query to get to the next page; it is in the format of <BASE_URL>?<new_params>",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "next"
        ],
        "type": "object"
      },
      "DeveloperUserStatus": {
        "enum": [
          "INVITE_EXPIRED",
          "INVITE_PENDING",
          "USER_ACTIVE",
          "USER_DRAFT",
          "USER_INACTIVE",
          "USER_ONBOARDING",
          "USER_SUSPENDED"
        ],
        "title": "DeveloperUserStatus",
        "type": "string"
      },
      "Dimension": {
        "additionalProperties": false,
        "properties": {
          "description": {
            "default": null,
            "nullable": true,
            "title": "Description",
            "type": "string"
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UUIDStr"
              }
            ],
            "description": "Stable dimension UUID; use a new UUID to create a dimension."
          },
          "name": {
            "maxLength": 255,
            "minLength": 1,
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "title": "Dimension",
        "type": "object"
      },
      "DimensionResponse": {
        "additionalProperties": false,
        "description": "Source fields are read-only; edit requests cannot set them.",
        "properties": {
          "description": {
            "default": null,
            "nullable": true,
            "title": "Description",
            "type": "string"
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UUIDStr"
              }
            ],
            "description": "Stable dimension UUID; use a new UUID to create a dimension."
          },
          "is_sync_managed": {
            "default": false,
            "description": "The source sync may change this row. A user edit or delete sets it to false.",
            "title": "Is Sync Managed",
            "type": "boolean"
          },
          "name": {
            "maxLength": 255,
            "minLength": 1,
            "title": "Name",
            "type": "string"
          },
          "source_id": {
            "default": null,
            "description": "Accounting category UUID for a tracking category source.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "source_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BudgetDimensionSourceType"
              }
            ],
            "default": null,
            "description": "Source the dimension is linked to; null when manual.",
            "nullable": true
          }
        },
        "required": [
          "id",
          "name"
        ],
        "title": "DimensionResponse",
        "type": "object"
      },
      "DimensionValueByNameRequestBody": {
        "additionalProperties": false,
        "description": "A dimension value named rather than identified by UUIDs.",
        "properties": {
          "dimension": {
            "description": "Active dimension name, matched case-insensitively, such as \"Department\".",
            "minLength": 1,
            "title": "Dimension",
            "type": "string"
          },
          "value": {
            "description": "Value name in that dimension, matched case-insensitively, such as \"Engineering\".",
            "minLength": 1,
            "title": "Value",
            "type": "string"
          }
        },
        "required": [
          "dimension",
          "value"
        ],
        "title": "DimensionValueByName",
        "type": "object"
      },
      "DimensionValueConditionResponse": {
        "additionalProperties": false,
        "properties": {
          "dimension_value_id": {
            "$ref": "#/components/schemas/UUIDStr"
          },
          "expression": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BudgetDimensionConditionExpression"
              }
            ],
            "description": "Every condition must match. Separate rules for the same value are alternatives. Conditions list allowed spend allocation (fund), spend intent (program), payee (vendors and merchants), Ramp department, or business entity UUIDs, or allowed option UUIDs in one accounting category. Rules for different values in one dimension may match the same spend only through different condition types; each budget's condition priority (default fund, program, payee, accounting category, department, then entity) picks the value. Rules for different values that share a condition type must constrain a property they both use with disjoint UUIDs."
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UUIDStr"
              }
            ],
            "description": "Stable rule UUID; use a new UUID to create a rule."
          },
          "is_sync_managed": {
            "default": false,
            "description": "The source sync may change this row. A user edit or delete sets it to false.",
            "title": "Is Sync Managed",
            "type": "boolean"
          }
        },
        "required": [
          "dimension_value_id",
          "expression",
          "id"
        ],
        "title": "DimensionValueConditionResponse",
        "type": "object"
      },
      "DimensionValueOwners": {
        "additionalProperties": false,
        "properties": {
          "dimension_value_id": {
            "$ref": "#/components/schemas/UUIDStr"
          },
          "owner_user_ids": {
            "description": "Complete owner user UUID selection for this value; an empty list removes all owners.",
            "items": {
              "$ref": "#/components/schemas/UUIDStr"
            },
            "maxItems": 100,
            "title": "Owner User Ids",
            "type": "array"
          }
        },
        "required": [
          "dimension_value_id",
          "owner_user_ids"
        ],
        "title": "DimensionValueOwners",
        "type": "object"
      },
      "DimensionValueResponse": {
        "additionalProperties": false,
        "properties": {
          "description": {
            "default": null,
            "nullable": true,
            "title": "Description",
            "type": "string"
          },
          "dimension_id": {
            "$ref": "#/components/schemas/UUIDStr"
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UUIDStr"
              }
            ],
            "description": "Stable value UUID; use a new UUID to create a value."
          },
          "is_sync_managed": {
            "default": false,
            "description": "The source sync may change this row. A user edit or delete sets it to false.",
            "title": "Is Sync Managed",
            "type": "boolean"
          },
          "name": {
            "maxLength": 255,
            "minLength": 1,
            "title": "Name",
            "type": "string"
          },
          "source_value_id": {
            "default": null,
            "description": "Accounting category option UUID this value is linked to.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "dimension_id",
          "id",
          "name"
        ],
        "title": "DimensionValueResponse",
        "type": "object"
      },
      "DimensionsResponse": {
        "properties": {
          "affected_budget_ids": {
            "items": {
              "$ref": "#/components/schemas/UUIDStr"
            },
            "title": "Affected Budget Ids",
            "type": "array"
          },
          "condition_value_names": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "Display names for the fund, program, payee, department, entity, and accounting option UUIDs that conditions reference. UUIDs that no longer resolve are omitted.",
            "title": "Condition Value Names",
            "type": "object"
          },
          "conditions": {
            "items": {
              "$ref": "#/components/schemas/DimensionValueConditionResponse"
            },
            "title": "Conditions",
            "type": "array"
          },
          "dimensions": {
            "items": {
              "$ref": "#/components/schemas/DimensionResponse"
            },
            "title": "Dimensions",
            "type": "array"
          },
          "owners": {
            "items": {
              "$ref": "#/components/schemas/DimensionValueOwners"
            },
            "title": "Owners",
            "type": "array"
          },
          "recalculation_requested": {
            "default": false,
            "title": "Recalculation Requested",
            "type": "boolean"
          },
          "values": {
            "items": {
              "$ref": "#/components/schemas/DimensionValueResponse"
            },
            "title": "Values",
            "type": "array"
          }
        },
        "required": [
          "conditions",
          "dimensions",
          "owners",
          "values"
        ],
        "title": "DimensionsResponse",
        "type": "object"
      },
      "DisplayApprovalStepStatus": {
        "enum": [
          "FLAGGED"
        ],
        "title": "DisplayApprovalStepStatus",
        "type": "string"
      },
      "DisplayApprovalStepType": {
        "enum": [
          "FLAGGED",
          "PAYBACK"
        ],
        "title": "DisplayApprovalStepType",
        "type": "string"
      },
      "DistanceUnit": {
        "enum": [
          "KILOMETERS",
          "MILES"
        ],
        "title": "DistanceUnit",
        "type": "string"
      },
      "DistanceUnitRequestBody": {
        "enum": [
          "KILOMETERS",
          "MILES"
        ],
        "title": "DistanceUnit",
        "type": "string"
      },
      "DocumentSummary": {
        "properties": {
          "category": {
            "default": null,
            "description": "Document category",
            "nullable": true,
            "title": "Category",
            "type": "string"
          },
          "document_uuid": {
            "default": null,
            "description": "Document UUID",
            "nullable": true,
            "title": "Document Uuid",
            "type": "string"
          },
          "filename": {
            "description": "Original filename",
            "title": "Filename",
            "type": "string"
          },
          "uploaded_at": {
            "default": null,
            "description": "Upload timestamp",
            "format": "date-time",
            "nullable": true,
            "title": "Uploaded At",
            "type": "string"
          }
        },
        "required": [
          "filename"
        ],
        "title": "DocumentSummary",
        "type": "object"
      },
      "DocumentTaxDetailsSchema": {
        "properties": {
          "address_line_1": {
            "default": null,
            "nullable": true,
            "title": "Address Line 1",
            "type": "string"
          },
          "address_line_2": {
            "default": null,
            "nullable": true,
            "title": "Address Line 2",
            "type": "string"
          },
          "city": {
            "default": null,
            "nullable": true,
            "title": "City",
            "type": "string"
          },
          "country": {
            "default": null,
            "nullable": true,
            "title": "Country",
            "type": "string"
          },
          "federal_tax_classification": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FederalTaxClassification"
              }
            ],
            "default": null,
            "nullable": true
          },
          "has_tin": {
            "default": false,
            "title": "Has Tin",
            "type": "boolean"
          },
          "postal_code": {
            "default": null,
            "nullable": true,
            "title": "Postal Code",
            "type": "string"
          },
          "secondary_owner_line": {
            "default": null,
            "nullable": true,
            "title": "Secondary Owner Line",
            "type": "string"
          },
          "state": {
            "default": null,
            "nullable": true,
            "title": "State",
            "type": "string"
          },
          "tax_year": {
            "default": null,
            "nullable": true,
            "title": "Tax Year",
            "type": "integer"
          },
          "tin_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TinType"
              }
            ],
            "default": null,
            "nullable": true
          },
          "vendor_legal_name": {
            "default": null,
            "nullable": true,
            "title": "Vendor Legal Name",
            "type": "string"
          }
        },
        "required": [
          "address_line_1",
          "address_line_2",
          "city",
          "country",
          "federal_tax_classification",
          "has_tin",
          "postal_code",
          "secondary_owner_line",
          "state",
          "tax_year",
          "tin_type",
          "vendor_legal_name"
        ],
        "title": "DocumentTaxDetailsSchema",
        "type": "object"
      },
      "DraftBillDetails": {
        "description": "Detailed information about a draft bill.",
        "properties": {
          "amount": {
            "title": "Amount",
            "type": "number"
          },
          "bill_level_tracking_category_count": {
            "default": 0,
            "title": "Bill Level Tracking Category Count",
            "type": "integer"
          },
          "bill_owners": {
            "description": "Current bill owners. To change them, send the full desired list as bill_owner_user_uuids to the draft update tool.",
            "items": {
              "$ref": "#/components/schemas/DraftBillOwner"
            },
            "title": "Bill Owners",
            "type": "array"
          },
          "bill_url": {
            "default": null,
            "description": "Deep link URL to view this draft bill in the Ramp web app.",
            "nullable": true,
            "title": "Bill Url",
            "type": "string"
          },
          "currency": {
            "default": null,
            "description": "ISO-4217 currency code for `amount`. Sourced from the draft's invoice_currency, falling back to payment_currency. Null when neither is set upstream \u2014 do not assume USD.",
            "nullable": true,
            "title": "Currency",
            "type": "string"
          },
          "editable_payload": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UpdateOrCreateProvisionalBillSchema"
              }
            ],
            "default": null,
            "description": "The draft's full editable field set, in the shape accepted by the draft update tool. Includes line items, bill-level tracking categories, and payment details when the user has payment-details read permission. This may be omitted when the payload is not requested.",
            "nullable": true
          },
          "has_submission_policy_violations": {
            "default": null,
            "description": "Whether canonical readiness found submission-policy violations; null when not evaluated.",
            "nullable": true,
            "title": "Has Submission Policy Violations",
            "type": "boolean"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "inventory_line_item_count": {
            "default": 0,
            "title": "Inventory Line Item Count",
            "type": "integer"
          },
          "invoice_s3_object_id": {
            "default": null,
            "description": "Identifier of the document backing this draft's invoice attachment, present when the draft has exactly one invoice-type attachment.",
            "nullable": true,
            "title": "Invoice S3 Object Id",
            "type": "string"
          },
          "is_ready_for_submission": {
            "default": null,
            "description": "Canonical draft readiness; null when not evaluated. Not a guarantee that submission will succeed.",
            "nullable": true,
            "title": "Is Ready For Submission",
            "type": "boolean"
          },
          "line_item_count": {
            "default": 0,
            "title": "Line Item Count",
            "type": "integer"
          },
          "line_items_returned": {
            "default": false,
            "description": "Whether the full editable payload, including line items and tracking category detail, was returned inline.",
            "title": "Line Items Returned",
            "type": "boolean"
          },
          "submission_missing_requirements": {
            "default": [],
            "description": "Verified submission blockers. A blank editable field alone is not a required blocker. Empty when none were found or readiness was not evaluated; check is_ready_for_submission.",
            "items": {
              "$ref": "#/components/schemas/DraftBillMissingRequirement"
            },
            "title": "Submission Missing Requirements",
            "type": "array"
          },
          "summary": {
            "title": "Summary",
            "type": "string"
          },
          "vendor_name": {
            "title": "Vendor Name",
            "type": "string"
          },
          "version": {
            "description": "Current draft bill version. Pass this top-level value back into the draft update tool's `version` field when updating the draft bill.",
            "title": "Version",
            "type": "string"
          }
        },
        "required": [
          "amount",
          "id",
          "summary",
          "vendor_name",
          "version"
        ],
        "title": "DraftBillDetails",
        "type": "object"
      },
      "DraftBillMissingAccountingField": {
        "properties": {
          "level": {
            "description": "Where the field must be set: `bill` for a bill-level selection, or `line_item` for a selection on every line item, or on each expense line whose GL account requires the field.",
            "enum": [
              "bill",
              "line_item"
            ],
            "title": "Level",
            "type": "string"
          },
          "name": {
            "description": "Display name of the required accounting field.",
            "title": "Name",
            "type": "string"
          },
          "tracking_category_id": {
            "description": "UUID of the required accounting field (tracking category).",
            "title": "Tracking Category Id",
            "type": "string"
          }
        },
        "required": [
          "level",
          "name",
          "tracking_category_id"
        ],
        "title": "DraftBillMissingAccountingField",
        "type": "object"
      },
      "DraftBillMissingRequirement": {
        "properties": {
          "accounting_fields": {
            "default": [],
            "description": "For REQUIRED_ACCOUNTING_FIELDS, the specific accounting fields that are missing; empty for other codes.",
            "items": {
              "$ref": "#/components/schemas/DraftBillMissingAccountingField"
            },
            "title": "Accounting Fields",
            "type": "array"
          },
          "code": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProvisionalBillReadinessBlocker"
              }
            ],
            "description": "Stable code for the missing requirement: BILL_DATE (issue or due date), VENDOR, VENDOR_DETAILS (vendor is inactive, a draft, or lacks bill-pay details), INVOICE_CURRENCY, POSITIVE_AMOUNT, REQUIRED_ACCOUNTING_FIELDS (see accounting_fields), EXPENSE_LINE_ITEM_AMOUNTS, or INVENTORY_LINE_ITEM_QUANTITIES_OR_UNIT_PRICES."
          },
          "label": {
            "description": "Human-readable description of the requirement.",
            "title": "Label",
            "type": "string"
          }
        },
        "required": [
          "code",
          "label"
        ],
        "title": "DraftBillMissingRequirement",
        "type": "object"
      },
      "DraftBillOwner": {
        "properties": {
          "name": {
            "title": "Name",
            "type": "string"
          },
          "user_uuid": {
            "$ref": "#/components/schemas/UUIDStr"
          }
        },
        "required": [
          "name",
          "user_uuid"
        ],
        "title": "DraftBillOwner",
        "type": "object"
      },
      "DraftProcurementRequestRequestBody": {
        "description": "Create or update a procurement draft that has not been submitted yet, and return the current visible form state.\n\nA request that is already submitted, approved, or rejected cannot be edited\nin place through spend_request_uuid.",
        "properties": {
          "answers": {
            "description": "Flat typed custom-form answers. Use only field IDs in the current draft_state.fields visibility-based write allowlist. draft_state.fields_to_answer is the prioritized subset of missing required fields and fields with errors; visible optional or already-answered fields may also be updated. Copy the field's answer_template and fill the placeholder values. When draft_state.manual_completion_required is true, the form has fields excluded from AI that only the requester can complete on the request page; they are not listed and cannot be answered here.",
            "items": {
              "discriminator": {
                "mapping": {
                  "address": "#/components/schemas/AgentAddressFieldAnswerRequestBody",
                  "boolean": "#/components/schemas/AgentBooleanFieldAnswerRequestBody",
                  "contact": "#/components/schemas/AgentContactFieldAnswerRequestBody",
                  "date": "#/components/schemas/AgentDateFieldAnswerRequestBody",
                  "department": "#/components/schemas/AgentDepartmentFieldAnswerRequestBody",
                  "email": "#/components/schemas/AgentEmailFieldAnswerRequestBody",
                  "file_upload": "#/components/schemas/AgentFileUploadFieldAnswerRequestBody",
                  "link": "#/components/schemas/AgentLinkFieldAnswerRequestBody",
                  "merchant": "#/components/schemas/AgentMerchantFieldAnswerRequestBody",
                  "merchant_category": "#/components/schemas/AgentMerchantCategoryFieldAnswerRequestBody",
                  "monetary_amount": "#/components/schemas/AgentMonetaryAmountFieldAnswerRequestBody",
                  "multi_select": "#/components/schemas/AgentMultiSelectFieldAnswerRequestBody",
                  "number": "#/components/schemas/AgentNumberFieldAnswerRequestBody",
                  "paragraph": "#/components/schemas/AgentParagraphFieldAnswerRequestBody",
                  "single_select": "#/components/schemas/AgentSingleSelectFieldAnswerRequestBody",
                  "text": "#/components/schemas/AgentTextFieldAnswerRequestBody",
                  "user": "#/components/schemas/AgentUserFieldAnswerRequestBody",
                  "vendor": "#/components/schemas/AgentVendorFieldAnswerRequestBody"
                },
                "propertyName": "answer_type"
              },
              "oneOf": [
                {
                  "$ref": "#/components/schemas/AgentAddressFieldAnswerRequestBody"
                },
                {
                  "$ref": "#/components/schemas/AgentBooleanFieldAnswerRequestBody"
                },
                {
                  "$ref": "#/components/schemas/AgentContactFieldAnswerRequestBody"
                },
                {
                  "$ref": "#/components/schemas/AgentDateFieldAnswerRequestBody"
                },
                {
                  "$ref": "#/components/schemas/AgentDepartmentFieldAnswerRequestBody"
                },
                {
                  "$ref": "#/components/schemas/AgentEmailFieldAnswerRequestBody"
                },
                {
                  "$ref": "#/components/schemas/AgentFileUploadFieldAnswerRequestBody"
                },
                {
                  "$ref": "#/components/schemas/AgentLinkFieldAnswerRequestBody"
                },
                {
                  "$ref": "#/components/schemas/AgentMerchantCategoryFieldAnswerRequestBody"
                },
                {
                  "$ref": "#/components/schemas/AgentMerchantFieldAnswerRequestBody"
                },
                {
                  "$ref": "#/components/schemas/AgentMonetaryAmountFieldAnswerRequestBody"
                },
                {
                  "$ref": "#/components/schemas/AgentMultiSelectFieldAnswerRequestBody"
                },
                {
                  "$ref": "#/components/schemas/AgentNumberFieldAnswerRequestBody"
                },
                {
                  "$ref": "#/components/schemas/AgentParagraphFieldAnswerRequestBody"
                },
                {
                  "$ref": "#/components/schemas/AgentSingleSelectFieldAnswerRequestBody"
                },
                {
                  "$ref": "#/components/schemas/AgentTextFieldAnswerRequestBody"
                },
                {
                  "$ref": "#/components/schemas/AgentUserFieldAnswerRequestBody"
                },
                {
                  "$ref": "#/components/schemas/AgentVendorFieldAnswerRequestBody"
                }
              ]
            },
            "title": "Answers",
            "type": "array"
          },
          "change_request_answers": {
            "description": "Typed answers for the independent change-request form. Use only field IDs in change_request_state.fields; do not put these answers in answers.",
            "items": {
              "discriminator": {
                "mapping": {
                  "address": "#/components/schemas/AgentAddressFieldAnswerRequestBody",
                  "boolean": "#/components/schemas/AgentBooleanFieldAnswerRequestBody",
                  "contact": "#/components/schemas/AgentContactFieldAnswerRequestBody",
                  "date": "#/components/schemas/AgentDateFieldAnswerRequestBody",
                  "department": "#/components/schemas/AgentDepartmentFieldAnswerRequestBody",
                  "email": "#/components/schemas/AgentEmailFieldAnswerRequestBody",
                  "file_upload": "#/components/schemas/AgentFileUploadFieldAnswerRequestBody",
                  "link": "#/components/schemas/AgentLinkFieldAnswerRequestBody",
                  "merchant": "#/components/schemas/AgentMerchantFieldAnswerRequestBody",
                  "merchant_category": "#/components/schemas/AgentMerchantCategoryFieldAnswerRequestBody",
                  "monetary_amount": "#/components/schemas/AgentMonetaryAmountFieldAnswerRequestBody",
                  "multi_select": "#/components/schemas/AgentMultiSelectFieldAnswerRequestBody",
                  "number": "#/components/schemas/AgentNumberFieldAnswerRequestBody",
                  "paragraph": "#/components/schemas/AgentParagraphFieldAnswerRequestBody",
                  "single_select": "#/components/schemas/AgentSingleSelectFieldAnswerRequestBody",
                  "text": "#/components/schemas/AgentTextFieldAnswerRequestBody",
                  "user": "#/components/schemas/AgentUserFieldAnswerRequestBody",
                  "vendor": "#/components/schemas/AgentVendorFieldAnswerRequestBody"
                },
                "propertyName": "answer_type"
              },
              "oneOf": [
                {
                  "$ref": "#/components/schemas/AgentAddressFieldAnswerRequestBody"
                },
                {
                  "$ref": "#/components/schemas/AgentBooleanFieldAnswerRequestBody"
                },
                {
                  "$ref": "#/components/schemas/AgentContactFieldAnswerRequestBody"
                },
                {
                  "$ref": "#/components/schemas/AgentDateFieldAnswerRequestBody"
                },
                {
                  "$ref": "#/components/schemas/AgentDepartmentFieldAnswerRequestBody"
                },
                {
                  "$ref": "#/components/schemas/AgentEmailFieldAnswerRequestBody"
                },
                {
                  "$ref": "#/components/schemas/AgentFileUploadFieldAnswerRequestBody"
                },
                {
                  "$ref": "#/components/schemas/AgentLinkFieldAnswerRequestBody"
                },
                {
                  "$ref": "#/components/schemas/AgentMerchantCategoryFieldAnswerRequestBody"
                },
                {
                  "$ref": "#/components/schemas/AgentMerchantFieldAnswerRequestBody"
                },
                {
                  "$ref": "#/components/schemas/AgentMonetaryAmountFieldAnswerRequestBody"
                },
                {
                  "$ref": "#/components/schemas/AgentMultiSelectFieldAnswerRequestBody"
                },
                {
                  "$ref": "#/components/schemas/AgentNumberFieldAnswerRequestBody"
                },
                {
                  "$ref": "#/components/schemas/AgentParagraphFieldAnswerRequestBody"
                },
                {
                  "$ref": "#/components/schemas/AgentSingleSelectFieldAnswerRequestBody"
                },
                {
                  "$ref": "#/components/schemas/AgentTextFieldAnswerRequestBody"
                },
                {
                  "$ref": "#/components/schemas/AgentUserFieldAnswerRequestBody"
                },
                {
                  "$ref": "#/components/schemas/AgentVendorFieldAnswerRequestBody"
                }
              ]
            },
            "title": "Change Request Answers",
            "type": "array"
          },
          "clear_change_request_field_ids": {
            "description": "Visible change-request form field IDs to clear. Do not also provide a change_request_answers entry for the same field.",
            "items": {
              "type": "string"
            },
            "title": "Clear Change Request Field Ids",
            "type": "array"
          },
          "clear_field_ids": {
            "description": "Visible custom-form field IDs to clear. Do not also provide an answer for the same field.",
            "items": {
              "type": "string"
            },
            "title": "Clear Field Ids",
            "type": "array"
          },
          "currency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CurrencyRequestBody"
              }
            ],
            "default": null,
            "description": "ISO 4217 currency code, e.g. USD.",
            "nullable": true
          },
          "draft_revision": {
            "default": null,
            "description": "draft_revision from your latest read or update of this draft. When it is current, this update can change values already on the draft; when someone edited the draft since, its filled-in values stay protected. Omit when creating a draft.",
            "nullable": true,
            "title": "Draft Revision",
            "type": "integer"
          },
          "existing_spend_request_uuid": {
            "default": null,
            "description": "The original approved purchase-order request's spend_request_uuid from unified request details; not the unified_request_id or purchase_order_id. Provide this when requesting a change to that purchase order. Mutually exclusive with spend_intent_uuid.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "internal_memo": {
            "default": null,
            "description": "Common shortcut for the internal memo.",
            "nullable": true,
            "title": "Internal Memo",
            "type": "string"
          },
          "is_total_amount_estimated": {
            "default": null,
            "description": "Answer 'Let approvers know the total is estimated' (the final amount may be lower). Omit when draft.estimated_total_question is null or to keep the current answer.",
            "nullable": true,
            "title": "Is Total Amount Estimated",
            "type": "boolean"
          },
          "line_items": {
            "default": null,
            "description": "Complete desired line item list. When provided, it replaces the draft's current lines; omit it to leave the lines unchanged. For an existing line, include its UUID and edit only the values that should change. Use string money values such as amount='90000.00'. On a change-request draft (existing_spend_request_uuid), the original purchase order's line-item UUIDs are not accepted: the draft carries re-keyed copies of those lines, so read the draft's line_items first and reference those UUIDs.",
            "items": {
              "$ref": "#/components/schemas/ProcurementLineItemDataRequestBody"
            },
            "nullable": true,
            "title": "Line Items",
            "type": "array"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "request_blanket_purchase_order": {
            "default": null,
            "description": "Answer 'Request a blanket PO'. True asks approvers to approve the lines, prices, and total up front as a limit that release POs order against later. Requires a vendor and a one-time frequency before submission. Omit when draft.blanket_purchase_order_question is null or to keep the current answer.",
            "nullable": true,
            "title": "Request Blanket Purchase Order",
            "type": "boolean"
          },
          "request_name": {
            "default": null,
            "description": "Common shortcut for the procurement request name.",
            "nullable": true,
            "title": "Request Name",
            "type": "string"
          },
          "request_virtual_card": {
            "default": null,
            "description": "Whether to explicitly request a virtual card on approval. False removes that request but does not disable program-level automatic card creation when the payee accepts cards. Omit when draft.virtual_card_question is absent or to preserve the current value.",
            "nullable": true,
            "title": "Request Virtual Card",
            "type": "boolean"
          },
          "spend_intent_uuid": {
            "default": null,
            "description": "Spend intent UUID returned by spend-intents. Provide this when starting a new procurement request. Mutually exclusive with existing_spend_request_uuid.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "spend_request_uuid": {
            "default": null,
            "description": "Draft spend request UUID returned by this tool. Provide this to continue editing a request that is still a draft.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "DraftProcurementRequest",
        "type": "object"
      },
      "DraftReimbursementState": {
        "description": "Full reimbursement state visible to the LLM agent.\n\nEvery field the LLM cares about is a structured object with value,\nrequired, fulfilled, and description so the agent can reason about\nwhat to fill and what to ask for.",
        "properties": {
          "amount": {
            "$ref": "#/components/schemas/DecimalFieldState"
          },
          "attendee": {
            "$ref": "#/components/schemas/AttendeeFieldState"
          },
          "currency": {
            "$ref": "#/components/schemas/StringFieldState"
          },
          "custom_records": {
            "items": {
              "$ref": "#/components/schemas/CustomRecordFieldState"
            },
            "title": "Custom Records",
            "type": "array"
          },
          "fund": {
            "$ref": "#/components/schemas/FundFieldState"
          },
          "has_receipt": {
            "$ref": "#/components/schemas/BoolFieldState"
          },
          "memo": {
            "$ref": "#/components/schemas/StringFieldState"
          },
          "merchant": {
            "$ref": "#/components/schemas/StringFieldState"
          },
          "mileage_locations": {
            "$ref": "#/components/schemas/BoolFieldState"
          },
          "reimbursement_link": {
            "description": "Ramp page for this reimbursement.",
            "nullable": true,
            "title": "Reimbursement Link",
            "type": "string"
          },
          "reimbursement_uuid": {
            "$ref": "#/components/schemas/EntityUUIDStr"
          },
          "suggested_codings": {
            "items": {
              "$ref": "#/components/schemas/SuggestedCodingsInfo"
            },
            "title": "Suggested Codings",
            "type": "array"
          },
          "suggested_funds": {
            "items": {
              "$ref": "#/components/schemas/FundInfo"
            },
            "title": "Suggested Funds",
            "type": "array"
          },
          "suggested_memos": {
            "items": {
              "type": "string"
            },
            "title": "Suggested Memos",
            "type": "array"
          },
          "tracking_categories": {
            "items": {
              "$ref": "#/components/schemas/TrackingCategoryFieldState"
            },
            "title": "Tracking Categories",
            "type": "array"
          },
          "transaction_date": {
            "$ref": "#/components/schemas/DateFieldState"
          },
          "trip": {
            "$ref": "#/components/schemas/BoolFieldState"
          }
        },
        "required": [
          "amount",
          "attendee",
          "currency",
          "fund",
          "has_receipt",
          "memo",
          "merchant",
          "mileage_locations",
          "reimbursement_link",
          "reimbursement_uuid",
          "tracking_categories",
          "transaction_date",
          "trip"
        ],
        "title": "DraftReimbursementState",
        "type": "object"
      },
      "DrawdownRequestCreateRequestBody": {
        "example": {
          "agent_account_number_id": "b9d27c2b-8abf-4fc7-86eb-5b716b895224",
          "amount": {
            "currency": "USD",
            "value": 10000
          },
          "external_bank_account_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
          "memo": "Fund upcoming purchases"
        },
        "properties": {
          "agent_account_number_id": {
            "description": "Agent account number to receive the funds. If omitted, the banking account's primary account number is used",
            "format": "uuid",
            "nullable": true,
            "type": "string",
            "x-relationship": {
              "inverse_field_name": null,
              "reference_field_name": "id",
              "target_resource": "agent_account_numbers",
              "type": "many-to-one"
            }
          },
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiAmountRequestBody"
              }
            ],
            "description": "Amount to request in minor currency units"
          },
          "external_bank_account_id": {
            "description": "External bank account to request funds from",
            "format": "uuid",
            "type": "string",
            "x-relationship": {
              "inverse_field_name": null,
              "reference_field_name": "id",
              "target_resource": "bank_accounts",
              "type": "many-to-one"
            }
          },
          "memo": {
            "description": "Optional reason for the funding request",
            "maxLength": 500,
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "amount",
          "external_bank_account_id"
        ],
        "type": "object"
      },
      "DrawdownRequestResponse": {
        "example": {
          "agent_account_number_id": "b9d27c2b-8abf-4fc7-86eb-5b716b895224",
          "amount": {
            "currency": "USD",
            "value": 10000
          },
          "banking_account_id": "f6a0e5f1-45cc-4e36-9c47-b44c6422f5be",
          "external_bank_account_id": "b31da96d-21fa-499f-959b-c2661ad35fb3",
          "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
          "status": "REQUESTED"
        },
        "properties": {
          "agent_account_number_id": {
            "description": "Agent account number receiving the funds, or null when the banking account's primary account number is used",
            "format": "uuid",
            "nullable": true,
            "type": "string",
            "x-relationship": {
              "inverse_field_name": null,
              "reference_field_name": "id",
              "target_resource": "agent_account_numbers",
              "type": "many-to-one"
            }
          },
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiAmount"
              }
            ],
            "description": "Requested amount"
          },
          "banking_account_id": {
            "description": "Banking account receiving the funds",
            "format": "uuid",
            "type": "string",
            "x-relationship": {
              "inverse_field_name": null,
              "reference_field_name": "id",
              "target_resource": "banking_accounts",
              "type": "many-to-one"
            }
          },
          "external_bank_account_id": {
            "description": "External bank account funding the request",
            "format": "uuid",
            "type": "string",
            "x-relationship": {
              "inverse_field_name": null,
              "reference_field_name": "id",
              "target_resource": "bank_accounts",
              "type": "many-to-one"
            }
          },
          "id": {
            "description": "Identifier of the funding request",
            "format": "uuid",
            "type": "string"
          },
          "status": {
            "description": "Current funding request status",
            "enum": [
              "BLOCKED",
              "CANCELED",
              "CHECK_DEPOSIT_ATTEMPT_REJECTED",
              "COMPLETED",
              "ERROR",
              "HELD_AFTER_RECONCILIATION",
              "HELD_BEFORE_INITIATION",
              "HELD_FOR_AUTO_RETRY",
              "ISSUED",
              "PARTIALLY_AVAILABLE",
              "PENDING_INBOUND_REQUEST_REVIEW",
              "PROCESSING",
              "REJECTED",
              "REQUESTED",
              "REVERSED",
              "SCHEDULED"
            ],
            "type": "string"
          }
        },
        "required": [
          "agent_account_number_id",
          "amount",
          "banking_account_id",
          "external_bank_account_id",
          "id",
          "status"
        ],
        "type": "object"
      },
      "DuplicateReimbursementRequestBody": {
        "description": "Copy an existing reimbursement into a distinct new draft; never submits it.\n\nEach call can create another draft. If the outcome is unknown or the new UUID\nis missing, do not repeat the request: reconcile the existing drafts first.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "reimbursement_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "description": "UUID of the source reimbursement in the current business to copy into a new draft.",
            "nullable": true
          }
        },
        "required": [
          "rationale",
          "reimbursement_uuid"
        ],
        "title": "DuplicateReimbursement",
        "type": "object"
      },
      "DuplicateReimbursementSuccess": {
        "properties": {
          "new_reimbursement_uuid": {
            "$ref": "#/components/schemas/EntityUUIDStr"
          }
        },
        "required": [
          "new_reimbursement_uuid"
        ],
        "title": "DuplicateReimbursementSuccess",
        "type": "object"
      },
      "EURCounterpartyDetails": {
        "additionalProperties": true,
        "description": "Bank account details for euro payments.",
        "properties": {
          "account_name": {
            "description": "Name on the destination account.",
            "title": "Account Name",
            "type": "string"
          },
          "bank_mailing_address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UnvalidatedMailingAddress"
              }
            ],
            "description": "Mailing address of the destination bank.",
            "title": "Bank Mailing Address"
          },
          "currency": {
            "default": "EUR",
            "description": "Currency of the destination account.",
            "enum": [
              "EUR"
            ],
            "title": "Currency",
            "type": "string"
          },
          "iban": {
            "description": "International bank account number.",
            "title": "Iban",
            "type": "string"
          },
          "mailing_address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UnvalidatedMailingAddress"
              }
            ],
            "default": null,
            "description": "Mailing address of the counterparty.",
            "nullable": true
          },
          "payment_method": {
            "default": "INTERNATIONAL",
            "description": "Payment method.",
            "enum": [
              "INTERNATIONAL"
            ],
            "title": "Payment Method",
            "type": "string"
          },
          "swift_bic": {
            "description": "SWIFT bank identifier code.",
            "title": "Swift Bic",
            "type": "string"
          },
          "type": {
            "default": "eur",
            "description": "Counterparty details type.",
            "enum": [
              "eur"
            ],
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "iban",
          "swift_bic"
        ],
        "title": "EURCounterpartyDetails",
        "type": "object"
      },
      "EVMCounterpartyDetails": {
        "additionalProperties": true,
        "description": "Wallet details for EVM-compatible transfers.",
        "properties": {
          "account_name": {
            "description": "Name on the destination account.",
            "title": "Account Name",
            "type": "string"
          },
          "bank_mailing_address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UnvalidatedMailingAddress"
              }
            ],
            "description": "Mailing address of the destination bank.",
            "title": "Bank Mailing Address"
          },
          "currency": {
            "default": "USDC",
            "description": "Currency of the destination account.",
            "enum": [
              "USDC"
            ],
            "title": "Currency",
            "type": "string"
          },
          "mailing_address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UnvalidatedMailingAddress"
              }
            ],
            "default": null,
            "description": "Mailing address of the counterparty.",
            "nullable": true
          },
          "payment_method": {
            "default": "CRYPTO_TRANSFER",
            "description": "Payment method.",
            "enum": [
              "CRYPTO_TRANSFER"
            ],
            "title": "Payment Method",
            "type": "string"
          },
          "type": {
            "default": "evm",
            "description": "Counterparty details type.",
            "enum": [
              "evm"
            ],
            "title": "Type",
            "type": "string"
          },
          "wallet_address": {
            "description": "Destination wallet address.",
            "title": "Wallet Address",
            "type": "string"
          }
        },
        "required": [
          "wallet_address"
        ],
        "title": "EVMCounterpartyDetails",
        "type": "object"
      },
      "EditCommentRequestBody": {
        "description": "Replace the text of a comment you wrote on a Ramp object (transaction, bill, request, etc).\n\nOnly the comment's author can edit it. The comment is marked as edited, and only newly mentioned users are notified.",
        "properties": {
          "comment_uuid": {
            "description": "UUID of the comment to edit, as returned when the comment was posted or listed.",
            "title": "Comment Uuid",
            "type": "string"
          },
          "mention_user_uuids": {
            "default": null,
            "description": "User UUIDs to @-mention. Omit to keep the comment's current mentions; pass a list to replace them, or an empty list to remove them all. Only newly added users are notified.",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "title": "Mention User Uuids",
            "type": "array"
          },
          "message": {
            "description": "The full new comment text; it replaces the existing text. Do not include user @-mentions in this field - use mention_user_uuids instead.",
            "title": "Message",
            "type": "string"
          },
          "message_format": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CommentMessageFormatRequestBody"
              }
            ],
            "default": "PLAIN_TEXT",
            "description": "PLAIN_TEXT (default) saves the message as written. MARKDOWN renders standard Markdown: **bold**, *italic*, [link text](https://example.com), bullet and numbered lists; single line breaks are kept."
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "comment_uuid",
          "message",
          "rationale"
        ],
        "title": "EditComment",
        "type": "object"
      },
      "EditReimbursementRequestBody": {
        "description": "Edit reimbursement fields (amount, currency, date, merchant, memo, funds, accounting categories, split line items, custom records, trip, attendees including non-Ramp guests). Non-empty attendee inputs replace the full attendee list; include every attendee to keep. Send only fields being changed, not existing values or a full-state copy. For a memo-only edit, send only reimbursement_uuid and memo. Merchant and attendees are draft-only; accounting categories cannot be sent after sync, even if unchanged. Omitted fields stay unchanged; null and empty-list fields are ignored. This tool cannot clear existing values. Mileage drafts containing tolls require editing in Ramp; this tool leaves them unchanged.",
        "properties": {
          "accounting_split_request": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReimbursementAccountingSplitRequestRequestBody"
              }
            ],
            "default": null,
            "description": "Complete replacement for every split line on a draft. Omit for ordinary edits; null is treated as omitted and preserves existing split lines. A non-null payload must include every line with its amount, memo, and line-level tracking category selections. Required when changing the amount or currency of an existing split draft, unless the split came only from an unedited automated accounting review.",
            "nullable": true
          },
          "amount": {
            "default": null,
            "description": "The reimbursement amount, in the major unit of `currency_code` \u2014 pass a decimal string like \"18150.00\", never minor units, a currency symbol, or thousands separators. Must be a positive number. Only editable while the reimbursement is in DRAFT state.",
            "nullable": true,
            "oneOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "title": "Amount"
          },
          "attendee_user_uuids": {
            "description": "Ramp user UUIDs as attendees. Omit unless changing attendees on a DRAFT reimbursement. Resending saved attendees outside DRAFT is rejected. Null or an empty list leaves existing attendees unchanged unless another attendee field is non-empty.",
            "items": {
              "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
            },
            "nullable": true,
            "title": "Attendee User Uuids",
            "type": "array"
          },
          "currency_code": {
            "default": null,
            "description": "ISO 4217 currency code (e.g. 'USD', 'EUR') for the reimbursement amount. Pass it whenever the amount's currency is known rather than relying on the existing value. Only editable while the reimbursement is in DRAFT state. Null is ignored.",
            "nullable": true,
            "title": "Currency Code",
            "type": "string"
          },
          "custom_record_values": {
            "description": "Custom record values (text/boolean/number). Null or an empty list leaves existing values unchanged. Use column_id from state.custom_records.",
            "items": {
              "$ref": "#/components/schemas/CustomRecordValueRequestBody"
            },
            "nullable": true,
            "title": "Custom Record Values",
            "type": "array"
          },
          "external_attendee_ids": {
            "default": null,
            "description": "Managed External Attendee IDs (UUIDs) on a DRAFT reimbursement, only when provided in attendee context and external_attendee_ids_enabled is true in reimbursement context. Never guess IDs. Include every managed attendee ID to keep when replacing attendees. Omitted, null, or an empty list supplies no managed attendees.",
            "items": {
              "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
            },
            "nullable": true,
            "title": "External Attendee Ids",
            "type": "array"
          },
          "fund_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "UUID of the fund (spend allocation) to charge this reimbursement to. Null is ignored.",
            "nullable": true
          },
          "memo": {
            "default": null,
            "description": "The memo/description text. Null is ignored. Empty or whitespace-only values are invalid and cannot be used to clear an existing memo.",
            "minLength": 1,
            "nullable": true,
            "title": "Memo",
            "type": "string"
          },
          "merchant_name": {
            "default": null,
            "description": "Merchant name. Omit unless changing it on a DRAFT reimbursement. Resending the saved value outside DRAFT is rejected. Null is ignored.",
            "minLength": 1,
            "nullable": true,
            "title": "Merchant Name",
            "type": "string"
          },
          "merchant_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "Canonical merchant UUID. Omit unless changing it on a DRAFT reimbursement. Resending the saved value outside DRAFT is rejected. Null is ignored.",
            "nullable": true
          },
          "non_ramp_attendees": {
            "default": null,
            "description": "Names of non-Ramp guests on a DRAFT reimbursement. Use names exactly as the user provided them; names alone are sufficient. Never invent emails or other contact details. Include every guest name to keep when replacing attendees. Omitted, null, or an empty list supplies no guests.",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "title": "Non Ramp Attendees",
            "type": "array"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "reimbursement_date": {
            "default": null,
            "description": "Date the expense was incurred. Use YYYY-MM-DD format.",
            "format": "date",
            "nullable": true,
            "title": "Reimbursement Date",
            "type": "string"
          },
          "reimbursement_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "description": "UUID of the reimbursement to modify. Look up the reimbursement to determine the UUID if it cannot be obtained from context.",
            "nullable": true
          },
          "tracking_category_selections": {
            "description": "Tracking category assignments. Omit unchanged selections; after accounting sync, non-empty selections are rejected even if unchanged. Null or an empty list leaves existing selections unchanged. Each category_uuid identifies the category. Use category and option UUIDs from accounting category/option data or suggested_codings; never infer them from names or codes. option_selection must be an option UUID for BOOLEAN/SINGLE_CHOICE, not a name, code, or label. FREE_FORM_TEXT accepts text instead.",
            "items": {
              "$ref": "#/components/schemas/ReimbursementTrackingCategorySelectionRequestBody"
            },
            "nullable": true,
            "title": "Tracking Category Selections",
            "type": "array"
          },
          "trip_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "Trip UUID to associate. Null is ignored.",
            "nullable": true
          }
        },
        "required": [
          "rationale",
          "reimbursement_uuid"
        ],
        "title": "EditReimbursement",
        "type": "object"
      },
      "EditReimbursementSuccess": {
        "properties": {
          "missing_items": {
            "$ref": "#/components/schemas/ReimbursementMissingItemsInfo"
          },
          "reimbursement_link": {
            "description": "Ramp page for this reimbursement.",
            "nullable": true,
            "title": "Reimbursement Link",
            "type": "string"
          },
          "reimbursement_uuid": {
            "$ref": "#/components/schemas/EntityUUIDStr"
          },
          "state": {
            "$ref": "#/components/schemas/DraftReimbursementState"
          },
          "suggested_codings": {
            "items": {
              "$ref": "#/components/schemas/SuggestedCodingsInfo"
            },
            "title": "Suggested Codings",
            "type": "array"
          },
          "suggested_funds": {
            "items": {
              "$ref": "#/components/schemas/FundInfo"
            },
            "title": "Suggested Funds",
            "type": "array"
          },
          "suggested_memos": {
            "items": {
              "type": "string"
            },
            "title": "Suggested Memos",
            "type": "array"
          },
          "validation_errors": {
            "items": {
              "$ref": "#/components/schemas/ReimbursementValidationErrorInfo"
            },
            "title": "Validation Errors",
            "type": "array"
          }
        },
        "required": [
          "missing_items",
          "reimbursement_link",
          "reimbursement_uuid",
          "state",
          "suggested_codings",
          "suggested_funds",
          "suggested_memos"
        ],
        "title": "EditReimbursementSuccess",
        "type": "object"
      },
      "EditTransactionRequestBody": {
        "deprecated": true,
        "description": "Edit a transaction field (memo, funds, accounting categories, trip, attendees). Returns the updated transaction, remaining missing items, and a transaction_link for fields the API cannot edit.",
        "properties": {
          "attendee_selections": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AttendeeSelectionsRequestBody"
              }
            ],
            "default": null,
            "description": "Attendee selections: attendee_uuids (Ramp users; must be valid UUIDs, never integer IDs), non_ramp_attendees (external people), include_self_as_attendee (acting user is added automatically when include_self_as_attendee is True). This is an upsert - provide the complete set of attendees. Only provide this field when Attendees is in incomplete items, or when the user directly provides attendee values or asks to change attendees; a memo or business-purpose answer is not an attendee change by itself unless it directly identifies attendee names or an attendee change.",
            "nullable": true
          },
          "fund_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "UUID of the fund (spend allocation) to charge this transaction to.",
            "nullable": true
          },
          "memo": {
            "default": null,
            "description": "The memo/description text to set for the transaction. Set to empty string ('') if clearing the memo.",
            "nullable": true,
            "title": "Memo",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "tracking_category_selections": {
            "default": null,
            "description": "Tracking/accounting category assignments (e.g., category, department, project). Each item requires `category_uuid` and `option_selection` \u2014 do NOT use `tracking_category_uuid` or `tracking_category_option_uuid` (those are response-only field names). For BOOLEAN and SINGLE_CHOICE tracking categories, option_selection should be the UUID of the tracking category option, or None to clear the field (only when user explicitly replies 'none' and the business allows it). For FREE_FORM_TEXT tracking categories, option_selection should be the freeform text value. Retrieve values from GetTrackingCategories, GetTrackingCategoryOptions, or suggested_codings. If user-provided context already contains a tracking_category_option_uuid, use that UUID directly as option_selection without calling GetTrackingCategoryOptions. Only the codings that are to be updated need to be provided.",
            "items": {
              "$ref": "#/components/schemas/TrackingCategorySelectionRequestBody"
            },
            "nullable": true,
            "title": "Tracking Category Selections",
            "type": "array"
          },
          "transaction_uuid": {
            "description": "UUID of the transaction to modify. Call GetUserTransactions to determine the UUID if it cannot be obtained from context.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "trip_selection": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TripSelectionRequestBody"
              }
            ],
            "default": null,
            "description": "Trip selection configuration. Provide a trip_uuid to assign/change the transaction. Set trip_uuid=None to detach a wrong trip while leaving the transaction eligible for another trip. Set mark_not_part_of_trip=True only when the transaction genuinely is not part of any trip.",
            "nullable": true
          },
          "user_submitted_fields": {
            "description": "Fields where the user DIRECTLY provided the specific value in their message. Always provide this field \u2014 use an empty list [] if no fields were user-specified. A value counts as directly provided when the user explicitly states it or unambiguously selects it from options you presented by number, index, or reference. Evaluate each updated field independently. Do NOT include fields where you (the agent) decided/inferred the value based on context. Valid values: 'memo', 'fund_uuid', 'tracking_category_selections', 'trip_selection', 'attendee_selections'. Examples - INCLUDE: User says 'Team lunch' -> include 'memo'. User says 'Use the Travel fund' -> include 'fund_uuid'. Examples - DO NOT INCLUDE: You decide to change fund based on memo content -> do not include 'fund_uuid'. You infer tracking category from transaction details -> do not include 'tracking_category_selections'.",
            "items": {
              "$ref": "#/components/schemas/EditableTransactionFieldRequestBody"
            },
            "title": "User Submitted Fields",
            "type": "array"
          }
        },
        "required": [
          "rationale",
          "transaction_uuid"
        ],
        "title": "EditTransaction",
        "type": "object"
      },
      "EditTransactionSuccess": {
        "properties": {
          "missing_items": {
            "$ref": "#/components/schemas/TransactionMissingItemsInfo"
          },
          "suggested_codings": {
            "items": {
              "$ref": "#/components/schemas/SuggestedCodingsInfo"
            },
            "title": "Suggested Codings",
            "type": "array"
          },
          "suggested_memos": {
            "items": {
              "type": "string"
            },
            "title": "Suggested Memos",
            "type": "array"
          },
          "transaction_link": {
            "title": "Transaction Link",
            "type": "string"
          },
          "transaction_uuid": {
            "title": "Transaction Uuid",
            "type": "string"
          }
        },
        "required": [
          "missing_items",
          "suggested_codings",
          "suggested_memos",
          "transaction_link",
          "transaction_uuid"
        ],
        "title": "EditTransactionSuccess",
        "type": "object"
      },
      "EditUserRoleOnSharedFundPublicRequestRequestBody": {
        "description": "Change a shared-fund user's role between member and co-owner using user_email.",
        "properties": {
          "new_role": {
            "description": "New role to assign: MEMBER or COOWNER",
            "enum": [
              "COOWNER",
              "MEMBER"
            ],
            "title": "New Role",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "spend_allocation_uuid": {
            "description": "UUID of the shared fund",
            "title": "Spend Allocation Uuid",
            "type": "string"
          },
          "user_email": {
            "description": "Email of the user whose role to change",
            "title": "User Email",
            "type": "string"
          }
        },
        "required": [
          "new_role",
          "rationale",
          "spend_allocation_uuid",
          "user_email"
        ],
        "title": "EditUserRoleOnSharedFundPublicRequest",
        "type": "object"
      },
      "EditUserRoleOnSharedFundPublicResult": {
        "properties": {
          "message": {
            "title": "Message",
            "type": "string"
          },
          "new_role": {
            "default": null,
            "description": "New role assigned to the user",
            "nullable": true,
            "title": "New Role",
            "type": "string"
          },
          "spend_allocation_uuid": {
            "default": null,
            "description": "UUID of the spend allocation",
            "nullable": true,
            "title": "Spend Allocation Uuid",
            "type": "string"
          }
        },
        "required": [
          "message"
        ],
        "title": "EditUserRoleOnSharedFundPublicResult",
        "type": "object"
      },
      "EditableTransactionFieldRequestBody": {
        "description": "Editable fields for EditTransaction tool.",
        "enum": [
          "attendee_selections",
          "attendee_uuids",
          "fund_uuid",
          "memo",
          "tracking_category_selections",
          "trip_selection"
        ],
        "title": "EditableTransactionField",
        "type": "string"
      },
      "EmployeeSubmissionPolicyRequirementSection": {
        "properties": {
          "items": {
            "description": "Employee-visible submission requirements for this group.",
            "items": {
              "type": "string"
            },
            "title": "Items",
            "type": "array"
          },
          "label": {
            "description": "Requirement group label, such as Card transactions.",
            "title": "Label",
            "type": "string"
          }
        },
        "required": [
          "items",
          "label"
        ],
        "title": "EmployeeSubmissionPolicyRequirementSection",
        "type": "object"
      },
      "EmployeeSubmissionPolicyRequirementsPolicy": {
        "properties": {
          "display_name": {
            "default": null,
            "description": "Human-readable policy name.",
            "nullable": true,
            "title": "Display Name",
            "type": "string"
          },
          "is_default": {
            "description": "Whether this is the default submission policy.",
            "title": "Is Default",
            "type": "boolean"
          },
          "policy_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UUIDStr"
              }
            ],
            "description": "UUID of the submission policy."
          },
          "sections": {
            "description": "Employee-visible requirement summaries from the employee handbook.",
            "items": {
              "$ref": "#/components/schemas/EmployeeSubmissionPolicyRequirementSection"
            },
            "title": "Sections",
            "type": "array"
          }
        },
        "required": [
          "is_default",
          "policy_uuid",
          "sections"
        ],
        "title": "EmployeeSubmissionPolicyRequirementsPolicy",
        "type": "object"
      },
      "EmployeeSubmissionPolicyRequirementsSuccess": {
        "properties": {
          "can_edit_requirements": {
            "default": false,
            "description": "Whether this user can change these requirements. When false, only an admin can change them: say so instead of pointing the user to settings or offering to make the change.",
            "title": "Can Edit Requirements",
            "type": "boolean"
          },
          "policies": {
            "description": "Submission policies and their employee-visible requirement summaries. If multiple policies are returned, explain that requirements vary by policy.",
            "items": {
              "$ref": "#/components/schemas/EmployeeSubmissionPolicyRequirementsPolicy"
            },
            "title": "Policies",
            "type": "array"
          },
          "question": {
            "description": "The user's original submission-policy question.",
            "title": "Question",
            "type": "string"
          }
        },
        "required": [
          "policies",
          "question"
        ],
        "title": "EmployeeSubmissionPolicyRequirementsSuccess",
        "type": "object"
      },
      "EmptyObject": {
        "additionalProperties": false,
        "properties": {},
        "type": "object"
      },
      "EnableSharedFundAccessRequestBody": {
        "description": "Enable sharing on an existing fund so members can be added to it.\n\nUse this when a user wants to turn an existing personal fund into a shared fund,\nor when adding a member requires sharing to be enabled first.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "spend_allocation_uuid": {
            "description": "UUID of the fund to convert into a shared fund",
            "title": "Spend Allocation Uuid",
            "type": "string"
          }
        },
        "required": [
          "rationale",
          "spend_allocation_uuid"
        ],
        "title": "EnableSharedFundAccess",
        "type": "object"
      },
      "EnableSharedFundAccessResult": {
        "properties": {
          "is_shareable": {
            "default": null,
            "description": "Whether the fund is now shared",
            "nullable": true,
            "title": "Is Shareable",
            "type": "boolean"
          },
          "message": {
            "description": "Result of the sharing update",
            "title": "Message",
            "type": "string"
          },
          "spend_allocation_uuid": {
            "default": null,
            "description": "UUID of the fund whose sharing was updated",
            "nullable": true,
            "title": "Spend Allocation Uuid",
            "type": "string"
          }
        },
        "required": [
          "message"
        ],
        "title": "EnableSharedFundAccessResult",
        "type": "object"
      },
      "EntityReferenceResource": {
        "properties": {
          "label": {
            "description": "Label of the entity reference",
            "type": "string"
          },
          "resource_name": {
            "enum": [
              "Accounting rule group",
              "Approvals",
              "Bill payment",
              "Bill template",
              "Billing contract",
              "Card",
              "Cash Manager recommendation",
              "Fixed asset class",
              "Fixed asset",
              "Forecast custom input",
              "Fund request",
              "Investment account",
              "Legal entity",
              "Managed portfolio transfer",
              "Payment run",
              "Plan",
              "Reimbursement",
              "SFTP Configurations",
              "Separation of duties",
              "Spend allocation",
              "Spend event",
              "Spend program",
              "Subscription",
              "Transaction",
              "Travel (Booking request)",
              "Travel (Trip)",
              "Treasury account",
              "User",
              "Vendor / Merchant",
              "WBX Policy",
              "WBX Request",
              "Wallet automation policy",
              "Wallet transfer",
              "Workflow (Base)",
              "Workflow"
            ],
            "readOnly": true,
            "type": "string",
            "x-enum-descriptions": {
              "Accounting rule group": "An accounting rule group.",
              "Billing contract": "A billing contract.",
              "Cash Manager recommendation": "Cash Manager recommendation",
              "Fixed asset": "Fixed asset",
              "Fixed asset class": "Fixed asset class",
              "Forecast custom input": "Forecast custom input",
              "Investment account": "Investment account",
              "Legal entity": "A business legal entity.",
              "Managed portfolio transfer": "Managed portfolio transfer",
              "Payment run": "Payment run",
              "Plan": "A financial plan.",
              "Spend program": "A spend program.",
              "Subscription": "A billing subscription.",
              "Wallet automation policy": "A treasury automation policy."
            }
          },
          "url": {
            "description": "URL of the entity reference",
            "type": "string"
          }
        },
        "required": [
          "label",
          "resource_name",
          "url"
        ],
        "type": "object"
      },
      "EntityUUIDStr": {
        "anyOf": [
          {
            "description": "Entity alias returned by tools.",
            "type": "string"
          },
          {
            "format": "uuid",
            "type": "string"
          }
        ],
        "description": "Entity UUID or alias returned by tools."
      },
      "EntityUUIDStrJsonMode": {
        "anyOf": [
          {
            "description": "Entity alias returned by tools.",
            "type": "string"
          },
          {
            "format": "uuid",
            "type": "string"
          }
        ],
        "description": "Entity UUID or alias returned by tools."
      },
      "EntityUUIDStrRequestBody": {
        "anyOf": [
          {
            "description": "Entity alias returned by tools.",
            "type": "string"
          },
          {
            "format": "uuid",
            "type": "string"
          }
        ],
        "description": "Entity UUID or alias returned by tools."
      },
      "EnumWithLabel": {
        "properties": {
          "label": {
            "default": null,
            "nullable": true,
            "title": "Label",
            "type": "string"
          },
          "value": {
            "title": "Value",
            "type": "string"
          }
        },
        "required": [
          "value"
        ],
        "title": "EnumWithLabel",
        "type": "object"
      },
      "ErpConnectionStatusResult": {
        "properties": {
          "business_name": {
            "default": null,
            "description": "The business's display name, for personalizing messages (e.g. 'Acme Corp')",
            "nullable": true,
            "title": "Business Name",
            "type": "string"
          },
          "connected_provider": {
            "default": null,
            "description": "The connected ERP provider type (e.g. 'quickbooks', 'netsuite_rest', 'sage')",
            "nullable": true,
            "title": "Connected Provider",
            "type": "string"
          },
          "connected_provider_display_name": {
            "default": null,
            "description": "Human-readable name of the connected provider (e.g. 'QuickBooks Online', 'NetSuite', 'Sage Intacct')",
            "nullable": true,
            "title": "Connected Provider Display Name",
            "type": "string"
          },
          "ftux_is_direct_integration": {
            "default": null,
            "description": "Whether the FTUX-selected provider has a direct Ramp integration (True) or only supports CSV export (False). None if no provider was selected.",
            "nullable": true,
            "title": "Ftux Is Direct Integration",
            "type": "boolean"
          },
          "ftux_selected_provider": {
            "default": null,
            "description": "Raw ERP provider value from onboarding. Can be a ProviderType (e.g. 'netsuite_rest'), a KnownAccountingProvider (e.g. 'SAP'), or a special value like 'NOT_SURE_OR_NONE' or 'USER_INPUTTED_STRING'.",
            "nullable": true,
            "title": "Ftux Selected Provider",
            "type": "string"
          },
          "ftux_selected_provider_display_name": {
            "default": null,
            "description": "Human-readable name of the ERP selected during onboarding (e.g. 'NetSuite', 'SAP'). None if no meaningful selection was made.",
            "nullable": true,
            "title": "Ftux Selected Provider Display Name",
            "type": "string"
          },
          "ftux_selected_provider_user_inputted": {
            "default": null,
            "description": "Custom provider name the user typed during onboarding if they selected 'Other'",
            "nullable": true,
            "title": "Ftux Selected Provider User Inputted",
            "type": "string"
          },
          "is_connected": {
            "description": "Whether the business has a connected ERP/accounting integration",
            "title": "Is Connected",
            "type": "boolean"
          },
          "requires_plus": {
            "default": null,
            "description": "Whether the detected provider (connected or FTUX-selected) requires Ramp Plus. True for NetSuite and Sage Intacct, False for others, None if unknown.",
            "nullable": true,
            "title": "Requires Plus",
            "type": "boolean"
          },
          "setup_url": {
            "default": "/settings/integrations",
            "description": "The in-app URL where the user can set up or manage their ERP integration",
            "title": "Setup Url",
            "type": "string"
          }
        },
        "required": [
          "is_connected"
        ],
        "title": "ErpConnectionStatusResult",
        "type": "object"
      },
      "EstimateMileageReimbursementRequestBody": {
        "description": "Estimate the reimbursement amount for a given mileage distance based on the user's company rates.",
        "properties": {
          "distance": {
            "description": "The distance traveled (e.g. 50.0)",
            "oneOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "title": "Distance"
          },
          "distance_units": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DistanceUnitRequestBody"
              }
            ],
            "default": "MILES",
            "description": "The distance unit: MILES or KILOMETERS. Defaults to MILES."
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "transaction_date": {
            "default": null,
            "description": "The date of the trip. If not provided, today's date is used.",
            "format": "date",
            "nullable": true,
            "title": "Transaction Date",
            "type": "string"
          },
          "vehicle_mileage_class": {
            "allOf": [
              {
                "$ref": "#/components/schemas/VehicleMileageClassRequestBody"
              }
            ],
            "default": null,
            "description": "The vehicle mileage class, required for some countries (e.g. France, Finland).",
            "nullable": true
          }
        },
        "required": [
          "distance",
          "rationale"
        ],
        "title": "EstimateMileageReimbursement",
        "type": "object"
      },
      "EstimateMileageReimbursementResult": {
        "properties": {
          "amount": {
            "description": "The estimated reimbursement amount in the mileage country's currency",
            "title": "Amount",
            "type": "string"
          },
          "currency_code": {
            "description": "The currency code for the amount",
            "title": "Currency Code",
            "type": "string"
          },
          "distance": {
            "description": "The distance used for estimation",
            "title": "Distance",
            "type": "number"
          },
          "distance_note": {
            "description": "A note about the distance calculation",
            "title": "Distance Note",
            "type": "string"
          },
          "distance_units": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DistanceUnit"
              }
            ],
            "description": "The distance unit (MILES or KILOMETERS)"
          },
          "mileage_rate": {
            "description": "The mileage rate applied per distance unit",
            "title": "Mileage Rate",
            "type": "string"
          },
          "mileage_rate_distance_units": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DistanceUnit"
              }
            ],
            "description": "The distance unit for the mileage rate"
          },
          "payee_amount": {
            "description": "The estimated amount in the payee's currency",
            "title": "Payee Amount",
            "type": "number"
          },
          "payee_currency": {
            "description": "The currency code for the payee amount",
            "title": "Payee Currency",
            "type": "string"
          }
        },
        "required": [
          "amount",
          "currency_code",
          "distance",
          "distance_note",
          "distance_units",
          "mileage_rate",
          "mileage_rate_distance_units",
          "payee_amount",
          "payee_currency"
        ],
        "title": "EstimateMileageReimbursementResult",
        "type": "object"
      },
      "EstimatePerDiemAmountRequestBody": {
        "description": "Estimate the per diem reimbursement amount for an existing trip over a date range.\n\nThe rate comes from the trip's locations and the business's per diem settings;\noptional meal and lodging details adjust the estimate. Dates after today are\naccepted only when the business allows advance per diem payments. Read-only:\nno reimbursement is created.",
        "properties": {
          "day_data": {
            "default": null,
            "description": "Optional per-day meal and lodging breakdown, one entry per trip day. Required to reflect per-meal deductions: without it the estimate uses the full daily rate even when meals_provided is set.",
            "items": {
              "$ref": "#/components/schemas/PerDiemDayInputRequestBody"
            },
            "nullable": true,
            "title": "Day Data",
            "type": "array"
          },
          "deduct_weekends": {
            "default": null,
            "description": "Whether to deduct weekends from the per diem calculation.",
            "nullable": true,
            "title": "Deduct Weekends",
            "type": "boolean"
          },
          "end_date": {
            "description": "End date of the per diem period (YYYY-MM-DD), on or after start_date. Dates after today are accepted only when the business allows advance per diem payments.",
            "format": "date",
            "title": "End Date",
            "type": "string"
          },
          "meals_provided": {
            "default": null,
            "description": "Whether meals are provided during the trip.",
            "nullable": true,
            "title": "Meals Provided",
            "type": "boolean"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "start_date": {
            "description": "Start date of the per diem period (YYYY-MM-DD). Dates after today are accepted only when the business allows advance per diem payments.",
            "format": "date",
            "title": "Start Date",
            "type": "string"
          },
          "trip_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "description": "UUID of the trip to estimate per diem for. The per diem rate is determined by the trip's locations."
          }
        },
        "required": [
          "end_date",
          "rationale",
          "start_date",
          "trip_uuid"
        ],
        "title": "EstimatePerDiemAmount",
        "type": "object"
      },
      "EstimatePerDiemAmountSuccess": {
        "properties": {
          "amount": {
            "title": "Amount",
            "type": "string"
          },
          "currency": {
            "default": null,
            "description": "ISO-4217 currency code for `amount`. Null when not set upstream; no default currency is implied.",
            "nullable": true,
            "title": "Currency",
            "type": "string"
          },
          "daily_amounts": {
            "items": {
              "$ref": "#/components/schemas/DailyAmount"
            },
            "title": "Daily Amounts",
            "type": "array"
          },
          "should_default_visiting_office_with_catered_meals": {
            "default": false,
            "title": "Should Default Visiting Office With Catered Meals",
            "type": "boolean"
          }
        },
        "required": [
          "amount"
        ],
        "title": "EstimatePerDiemAmountSuccess",
        "type": "object"
      },
      "EventDetailsResource": {
        "properties": {
          "references": {
            "description": "Metadata of the objects referenced by the audit log event",
            "items": {
              "$ref": "#/components/schemas/EntityReferenceResource"
            },
            "type": "array"
          }
        },
        "required": [
          "references"
        ],
        "type": "object"
      },
      "EventInfo": {
        "properties": {
          "actor_name": {
            "default": null,
            "nullable": true,
            "title": "Actor Name",
            "type": "string"
          },
          "date": {
            "title": "Date",
            "type": "string"
          },
          "description": {
            "default": null,
            "nullable": true,
            "title": "Description",
            "type": "string"
          },
          "event_type": {
            "default": null,
            "nullable": true,
            "title": "Event Type",
            "type": "string"
          },
          "severity": {
            "title": "Severity",
            "type": "string"
          },
          "title": {
            "title": "Title",
            "type": "string"
          }
        },
        "required": [
          "date",
          "severity",
          "title"
        ],
        "title": "EventInfo",
        "type": "object"
      },
      "ExactBillAmountRequestBody": {
        "description": "Exact recorded invoice header total, without currency conversion.",
        "properties": {
          "amount": {
            "description": "Exact recorded invoice header total in major currency units, not cents/minor units. For USD 123.45, pass '123.45'. Must be nonnegative and exactly representable at the currency's precision, with at most four fractional digits and less than 100000000000000 major units; never rounded.",
            "oneOf": [
              {
                "exclusiveMaximum": true,
                "maximum": 100000000000000.0,
                "minimum": 0.0,
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "title": "Amount"
          },
          "currency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CurrencyRequestBody"
              }
            ],
            "description": "Original invoice currency code, such as USD, EUR, or JPY. No FX conversion is applied."
          }
        },
        "required": [
          "amount",
          "currency"
        ],
        "title": "ExactBillAmount",
        "type": "object"
      },
      "ExpenseWorkflowContextApprovalStep": {
        "properties": {
          "acted_by_names": {
            "description": "Users who explicitly approved or rejected this step, when available.",
            "items": {
              "type": "string"
            },
            "title": "Acted By Names",
            "type": "array"
          },
          "approver_names": {
            "description": "Approvers assigned to this step, when available.",
            "items": {
              "type": "string"
            },
            "title": "Approver Names",
            "type": "array"
          },
          "assigned_via": {
            "description": "Recorded source of this step's approvers.",
            "items": {
              "$ref": "#/components/schemas/ExpenseWorkflowContextStepAssignment"
            },
            "title": "Assigned Via",
            "type": "array"
          },
          "recorded_reasons": {
            "description": "Recorded reasons this step was added, skipped, or acted on.",
            "items": {
              "$ref": "#/components/schemas/ExpenseWorkflowContextStepRecordedReason"
            },
            "title": "Recorded Reasons",
            "type": "array"
          },
          "status": {
            "description": "Whether this step has already completed, is current, is later in the chain, rejected the chain, or was skipped.",
            "enum": [
              "completed",
              "current",
              "rejected",
              "skipped",
              "upcoming"
            ],
            "title": "Status",
            "type": "string"
          },
          "step_order": {
            "description": "1-indexed order of the approval step.",
            "title": "Step Order",
            "type": "integer"
          },
          "step_type": {
            "description": "Approval step type, such as REQUIRE.",
            "title": "Step Type",
            "type": "string"
          },
          "was_added_after_creation": {
            "default": false,
            "description": "True when the step appears to have been added after the approval chain was created.",
            "title": "Was Added After Creation",
            "type": "boolean"
          }
        },
        "required": [
          "status",
          "step_order",
          "step_type"
        ],
        "title": "ExpenseWorkflowContextApprovalStep",
        "type": "object"
      },
      "ExpenseWorkflowContextExpense": {
        "properties": {
          "amount": {
            "default": null,
            "nullable": true,
            "title": "Amount",
            "type": "number"
          },
          "currency": {
            "default": null,
            "description": "ISO 4217 code of amount, the expense's own currency.",
            "nullable": true,
            "title": "Currency",
            "type": "string"
          },
          "date": {
            "default": null,
            "format": "date-time",
            "nullable": true,
            "title": "Date",
            "type": "string"
          },
          "employee_name": {
            "default": null,
            "nullable": true,
            "title": "Employee Name",
            "type": "string"
          },
          "expense_type": {
            "enum": [
              "reimbursement",
              "transaction"
            ],
            "title": "Expense Type",
            "type": "string"
          },
          "merchant_name": {
            "default": null,
            "nullable": true,
            "title": "Merchant Name",
            "type": "string"
          },
          "uuid": {
            "$ref": "#/components/schemas/UUIDStr"
          }
        },
        "required": [
          "expense_type",
          "uuid"
        ],
        "title": "ExpenseWorkflowContextExpense",
        "type": "object"
      },
      "ExpenseWorkflowContextNoApprovalReason": {
        "properties": {
          "reason": {
            "description": "Why the transaction has no active approval: 'auto_approved_merchant' means Ramp exempted this charge from approval because its merchant was on the company's auto-approved merchant list when recorded; 'bill_paid_by_card' means the charge is the card payment for a bill, so the bill's workflow governs its approval; 'repaid' means the charge was repaid in full, which ends any approval review, including one people had already approved.",
            "enum": [
              "auto_approved_merchant",
              "bill_paid_by_card",
              "repaid"
            ],
            "title": "Reason",
            "type": "string"
          },
          "recorded_at": {
            "default": null,
            "description": "When Ramp recorded the merchant or bill exemption, when available.",
            "format": "date-time",
            "nullable": true,
            "title": "Recorded At",
            "type": "string"
          }
        },
        "required": [
          "reason"
        ],
        "title": "ExpenseWorkflowContextNoApprovalReason",
        "type": "object"
      },
      "ExpenseWorkflowContextPolicy": {
        "properties": {
          "display_name": {
            "default": null,
            "description": "Human-readable approval policy name, when available.",
            "nullable": true,
            "title": "Display Name",
            "type": "string"
          },
          "kind": {
            "allOf": [
              {
                "$ref": "#/components/schemas/OmniPolicyWorkflowKind"
              }
            ],
            "description": "Policy family to use with GetPolicyWorkflowBody."
          },
          "latest_workflow_uuid": {
            "default": null,
            "description": "Latest published policy workflow version UUID on the backing ProductWorkflow. This is distinct from approval_instance_uuid.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "policy_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UUIDStr"
              }
            ],
            "description": "UUID of the attached approval policy."
          },
          "product_workflow_uuid": {
            "default": null,
            "description": "Backing ProductWorkflow UUID. Pass this to GetPolicyWorkflowBody only when this value is present and workflow_body_available is true.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "spend_type": {
            "description": "Approval policy spend type.",
            "title": "Spend Type",
            "type": "string"
          },
          "workflow_body_available": {
            "default": true,
            "description": "True when GetPolicyWorkflowBody can fetch the current workflow body. If false, use the approval_instance fields instead and do not call GetPolicyWorkflowBody for this policy.",
            "title": "Workflow Body Available",
            "type": "boolean"
          }
        },
        "required": [
          "kind",
          "policy_uuid",
          "spend_type"
        ],
        "title": "ExpenseWorkflowContextPolicy",
        "type": "object"
      },
      "ExpenseWorkflowContextPolicyAgentReview": {
        "properties": {
          "agent_decision": {
            "default": null,
            "description": "Latest Policy Agent decision for this expense: APPROVE, REJECT, or UNSURE.",
            "nullable": true,
            "title": "Agent Decision",
            "type": "string"
          },
          "agent_rationale": {
            "default": null,
            "description": "Policy Agent rationale for the latest decision, when available.",
            "nullable": true,
            "title": "Agent Rationale",
            "type": "string"
          },
          "awaiting_human_review": {
            "default": false,
            "description": "True when the latest Policy Agent decision is REJECT or UNSURE, a human approval step is currently outstanding, and no active cardholder change request takes precedence. This does not establish whether the prediction caused or did not cause the human approval requirement.",
            "title": "Awaiting Human Review",
            "type": "boolean"
          },
          "cardholder_note": {
            "default": null,
            "description": "Concise cardholder-facing note from the latest Policy Agent review stating what needs fixing or why the submission is out of policy, when available.",
            "nullable": true,
            "title": "Cardholder Note",
            "type": "string"
          },
          "cardholder_revision_fields": {
            "description": "Policy fields the latest Policy Agent review flagged as needing cardholder revision (such as MEMO or RECEIPT), when available.",
            "items": {
              "type": "string"
            },
            "title": "Cardholder Revision Fields",
            "type": "array"
          },
          "context_note": {
            "description": "Evidence scope of the latest Policy Agent decision alongside the current approval workflow and revision-request state.",
            "title": "Context Note",
            "type": "string"
          },
          "evaluated_at": {
            "default": null,
            "description": "Timestamp when this stored Policy Agent prediction was generated. Stored predictions are not automatically re-run when the expense policy changes.",
            "format": "date-time",
            "nullable": true,
            "title": "Evaluated At",
            "type": "string"
          },
          "has_unpublished_policy_draft": {
            "default": null,
            "description": "True when the business has an unpublished expense policy draft, which stored predictions do not reflect.",
            "nullable": true,
            "title": "Has Unpublished Policy Draft",
            "type": "boolean"
          },
          "latest_published_policy_updated_at": {
            "default": null,
            "description": "Timestamp of the business's latest published expense policy version, when available.",
            "format": "date-time",
            "nullable": true,
            "title": "Latest Published Policy Updated At",
            "type": "string"
          },
          "policy_updated_since_evaluation": {
            "default": null,
            "description": "True when a newer published expense policy version exists than the one this stored Policy Agent review evaluated against; False when it matches the current published policy; null when it cannot be determined.",
            "nullable": true,
            "title": "Policy Updated Since Evaluation",
            "type": "boolean"
          },
          "unsure_reason": {
            "default": null,
            "description": "Machine-readable reason for an UNSURE decision, when available.",
            "nullable": true,
            "title": "Unsure Reason",
            "type": "string"
          }
        },
        "required": [
          "context_note"
        ],
        "title": "ExpenseWorkflowContextPolicyAgentReview",
        "type": "object"
      },
      "ExpenseWorkflowContextPublicApprovalInstance": {
        "properties": {
          "approval_chain_name": {
            "default": null,
            "description": "Customer-facing name of the approval setup attached to this expense, when available.",
            "nullable": true,
            "title": "Approval Chain Name",
            "type": "string"
          },
          "approval_instance_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UUIDStr"
              }
            ],
            "description": "UUID of the approval instance attached to the expense."
          },
          "approval_steps": {
            "description": "Customer-facing steps on the approval instance itself. Explain these before comparing against the current published policy setup.",
            "items": {
              "$ref": "#/components/schemas/ExpenseWorkflowContextApprovalStep"
            },
            "title": "Approval Steps",
            "type": "array"
          },
          "created_at": {
            "description": "When this expense's approval chain was created.",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "current_approver_names": {
            "description": "Current outstanding approver names, when available.",
            "items": {
              "type": "string"
            },
            "title": "Current Approver Names",
            "type": "array"
          },
          "generated_from_latest_policy_version": {
            "default": null,
            "description": "False when the policy has been republished since this chain was generated, so the latest version may route differently.",
            "nullable": true,
            "title": "Generated From Latest Policy Version",
            "type": "boolean"
          },
          "policy_version_uuid": {
            "default": null,
            "description": "Policy workflow version UUID that generated this approval chain. Use it as workflow_uuid to read or evaluate the exact version behind these steps.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "status": {
            "description": "Current approval instance status.",
            "title": "Status",
            "type": "string"
          },
          "workflow_uuid": {
            "deprecated": true,
            "description": "Deprecated alias of approval_instance_uuid. This identifies the approval execution, not a policy workflow version; do not pass it as workflow_uuid when fetching a policy workflow body.",
            "title": "Workflow Uuid",
            "type": "string"
          }
        },
        "required": [
          "approval_instance_uuid",
          "created_at",
          "status",
          "workflow_uuid"
        ],
        "title": "ExpenseWorkflowContextPublicApprovalInstance",
        "type": "object"
      },
      "ExpenseWorkflowContextPublicTravelBookingApproval": {
        "properties": {
          "approval_instance": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ExpenseWorkflowContextPublicApprovalInstance"
              }
            ],
            "default": null,
            "description": "Approval chain attached to the travel booking request, when available.",
            "nullable": true
          },
          "auto_approved": {
            "default": null,
            "description": "Whether the booking request was auto-approved at request time.",
            "nullable": true,
            "title": "Auto Approved",
            "type": "boolean"
          },
          "booking_approval_status": {
            "default": null,
            "description": "Current booking approval status, when available.",
            "nullable": true,
            "title": "Booking Approval Status",
            "type": "string"
          },
          "booking_request_status": {
            "default": null,
            "description": "Current booking request status, when available.",
            "nullable": true,
            "title": "Booking Request Status",
            "type": "string"
          },
          "booking_request_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UUIDStr"
              }
            ],
            "description": "UUID of the travel booking request that created the booking."
          },
          "booking_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UUIDStr"
              }
            ],
            "description": "UUID of the Ramp Travel booking."
          },
          "context_note": {
            "description": "How policy QA should relate the travel booking approval flow to the transaction approval flow.",
            "title": "Context Note",
            "type": "string"
          },
          "soft_approved": {
            "description": "Whether the booking request used the soft-approval flow.",
            "title": "Soft Approved",
            "type": "boolean"
          },
          "transaction_approval_skip_check_passed": {
            "description": "True when the duplicate transaction approval guard applies, so the booking approval flow can replace the normal transaction approval flow.",
            "title": "Transaction Approval Skip Check Passed",
            "type": "boolean"
          },
          "uses_booking_request_approval_flow": {
            "description": "True when the linked Ramp Travel booking itself went through a booking request approval flow.",
            "title": "Uses Booking Request Approval Flow",
            "type": "boolean"
          }
        },
        "required": [
          "booking_request_uuid",
          "booking_uuid",
          "context_note",
          "soft_approved",
          "transaction_approval_skip_check_passed",
          "uses_booking_request_approval_flow"
        ],
        "title": "ExpenseWorkflowContextPublicTravelBookingApproval",
        "type": "object"
      },
      "ExpenseWorkflowContextRevisionRequest": {
        "properties": {
          "awaiting_cardholder": {
            "description": "True while an active change request is awaiting the cardholder's revision. Takes precedence over a pending approval step until the cardholder submits the revision or a reviewer cancels it.",
            "title": "Awaiting Cardholder",
            "type": "boolean"
          },
          "cardholder_response": {
            "default": null,
            "description": "Cardholder's recorded response when completing the revision, when status is 'revision_completed'.",
            "nullable": true,
            "title": "Cardholder Response",
            "type": "string"
          },
          "completed_at": {
            "default": null,
            "description": "When the cardholder completed the revision, when status is 'revision_completed'.",
            "format": "date-time",
            "nullable": true,
            "title": "Completed At",
            "type": "string"
          },
          "request_reason": {
            "default": null,
            "description": "Recorded note stating what the cardholder was asked to fix.",
            "nullable": true,
            "title": "Request Reason",
            "type": "string"
          },
          "requested_at": {
            "default": null,
            "description": "When the latest change request was sent, when recorded.",
            "format": "date-time",
            "nullable": true,
            "title": "Requested At",
            "type": "string"
          },
          "requested_by_name": {
            "default": null,
            "description": "Name of the reviewer who requested changes, or 'Ramp' when requested by Ramp, when recorded.",
            "nullable": true,
            "title": "Requested By Name",
            "type": "string"
          },
          "status": {
            "description": "Whether a cardholder change/revision request is currently open awaiting the cardholder ('revision_requested') or the cardholder has completed it and returned the expense for review ('revision_completed').",
            "enum": [
              "revision_completed",
              "revision_requested"
            ],
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "awaiting_cardholder",
          "status"
        ],
        "title": "ExpenseWorkflowContextRevisionRequest",
        "type": "object"
      },
      "ExpenseWorkflowContextStepAssignment": {
        "properties": {
          "group_name": {
            "default": null,
            "description": "Group name, the relative rule such as MANAGER, or the manager-chain condition or approval-matrix column label, when applicable.",
            "nullable": true,
            "title": "Group Name",
            "type": "string"
          },
          "kind": {
            "description": "How the policy assigned approvers to this step: an individually named user, a named approver group, a relative rule resolved from another user, such as that user's manager, a manager-chain traversal, or an approval matrix.",
            "enum": [
              "approval_matrix",
              "group",
              "individual",
              "manager_chain",
              "relative"
            ],
            "title": "Kind",
            "type": "string"
          },
          "relative_to_name": {
            "default": null,
            "description": "User the relative rule was resolved from, when recorded.",
            "nullable": true,
            "title": "Relative To Name",
            "type": "string"
          }
        },
        "required": [
          "kind"
        ],
        "title": "ExpenseWorkflowContextStepAssignment",
        "type": "object"
      },
      "ExpenseWorkflowContextStepRecordedReason": {
        "properties": {
          "reason": {
            "default": null,
            "description": "Recorded reason text, when available.",
            "nullable": true,
            "title": "Reason",
            "type": "string"
          },
          "tag": {
            "description": "Recorded step tag, such as SKIPPED_STEP, ADDED_STEP_DUE_TO_UPDATE, APPROVAL_AGENT_TOOK_ACTION (the Policy Agent acted on this step), or APPROVAL_AGENT_ESCALATED_TO_FALLBACK_APPROVERS (it sent the step to human approvers).",
            "title": "Tag",
            "type": "string"
          }
        },
        "required": [
          "tag"
        ],
        "title": "ExpenseWorkflowContextStepRecordedReason",
        "type": "object"
      },
      "ExpenseWorkflowContextSubmissionPolicy": {
        "properties": {
          "display_name": {
            "default": null,
            "description": "Human-readable submission policy name, when available.",
            "nullable": true,
            "title": "Display Name",
            "type": "string"
          },
          "kind": {
            "default": "submission_policy",
            "description": "Policy family to use with GetPolicyWorkflowBody.",
            "enum": [
              "submission_policy"
            ],
            "title": "Kind",
            "type": "string"
          },
          "latest_workflow_uuid": {
            "default": null,
            "description": "Latest published Workflow UUID on the backing ProductWorkflow.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "policy_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UUIDStr"
              }
            ],
            "description": "UUID of the submission policy."
          },
          "product_workflow_uuid": {
            "default": null,
            "description": "Backing ProductWorkflow UUID for this submission policy. Pass this to GetPolicyWorkflowBody only when workflow_body_available is true.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "spend_type": {
            "description": "Submission policy spend type.",
            "title": "Spend Type",
            "type": "string"
          },
          "workflow_body_available": {
            "default": true,
            "description": "True when GetPolicyWorkflowBody can fetch this submission policy's workflow body.",
            "title": "Workflow Body Available",
            "type": "boolean"
          },
          "workflow_version_uuid": {
            "default": null,
            "description": "Workflow UUID from the PolicyVersion attached to the transaction. Pass this as workflow_uuid to GetPolicyWorkflowBody to inspect the submission workflow version that applied to the transaction.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "policy_uuid",
          "spend_type"
        ],
        "title": "ExpenseWorkflowContextSubmissionPolicy",
        "type": "object"
      },
      "ExplainSpendNotOnBudgetOutput": {
        "description": "Whether a spend item is counted on the active budget, and if not, why.",
        "properties": {
          "budget_row": {
            "default": null,
            "description": "The budget row the spend maps to (e.g. 'Engineering / Software'), when matched.",
            "nullable": true,
            "title": "Budget Row",
            "type": "string"
          },
          "message": {
            "description": "Human-readable summary answering the question",
            "title": "Message",
            "type": "string"
          },
          "on_budget": {
            "description": "True if the spend item is currently counted on the active budget.",
            "title": "On Budget",
            "type": "boolean"
          },
          "reasons": {
            "description": "Ranked reasons the spend isn't fully counted. May be non-empty even when on_budget is true \u2014 e.g. a multi-line bill only partially on budget, or spend counted in a non-current period.",
            "items": {
              "$ref": "#/components/schemas/NotOnBudgetReason"
            },
            "title": "Reasons",
            "type": "array"
          }
        },
        "required": [
          "message",
          "on_budget"
        ],
        "title": "ExplainSpendNotOnBudgetOutput",
        "type": "object"
      },
      "ExplainSpendNotOnBudgetRequestBody": {
        "description": "Explain whether a transaction, bill, or reimbursement is counted on the acting user's active budget in Ramp Budgets and, if not, why. Returns the matched budget row when there is one, plus ranked reasons the spend is not (fully) counted, each with a suggested fix: no active budget, budget not started, spend dated outside the budget, a different period, uncoded spend, or coding that matches no budget row. Financial planning budgets are not included. This operation does not change data.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "spend_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SpendItemTypeRequestBody"
              }
            ],
            "description": "Which kind of spend item to check: transaction, bill, or reimbursement."
          },
          "spend_uuid": {
            "description": "UUID of the spend item (the transaction, bill, or reimbursement).",
            "format": "uuid",
            "title": "Spend Uuid",
            "type": "string"
          }
        },
        "required": [
          "rationale",
          "spend_type",
          "spend_uuid"
        ],
        "title": "ExplainSpendNotOnBudget",
        "type": "object"
      },
      "ExtendedReceiptDataJsonMode": {
        "properties": {
          "ground_transportation": {
            "allOf": [
              {
                "$ref": "#/components/schemas/GroundTransportationDataJsonMode"
              }
            ],
            "default": null,
            "nullable": true
          },
          "hotel_folio": {
            "allOf": [
              {
                "$ref": "#/components/schemas/HotelFolioDataJsonMode"
              }
            ],
            "default": null,
            "nullable": true
          },
          "on_demand_delivery": {
            "allOf": [
              {
                "$ref": "#/components/schemas/OnDemandDeliveryDataJsonMode"
              }
            ],
            "default": null,
            "nullable": true
          }
        },
        "title": "ExtendedReceiptData",
        "type": "object"
      },
      "ExternalApproval": {
        "description": "An approval step awaiting a decision from an external approver.",
        "properties": {
          "approval_trigger_instance_uuid": {
            "description": "Identifier of the external approval step awaiting a decision.",
            "format": "uuid",
            "type": "string"
          },
          "service_key": {
            "description": "Service key of the external approver.",
            "type": "string"
          }
        },
        "required": [
          "approval_trigger_instance_uuid",
          "service_key"
        ],
        "type": "object"
      },
      "FacetCategorySchema": {
        "description": "A top-level facet filter category (e.g. Model Compute Tier).",
        "properties": {
          "display_name": {
            "title": "Display Name",
            "type": "string"
          },
          "values": {
            "items": {
              "$ref": "#/components/schemas/FacetValueOptionSchema"
            },
            "title": "Values",
            "type": "array"
          }
        },
        "required": [
          "display_name",
          "values"
        ],
        "title": "FacetCategorySchema",
        "type": "object"
      },
      "FacetValueOptionSchema": {
        "description": "A single selectable value within a facet filter category.",
        "properties": {
          "display_name": {
            "title": "Display Name",
            "type": "string"
          },
          "key": {
            "title": "Key",
            "type": "string"
          },
          "token_share_pct": {
            "title": "Token Share Pct",
            "type": "number"
          }
        },
        "required": [
          "display_name",
          "key",
          "token_share_pct"
        ],
        "title": "FacetValueOptionSchema",
        "type": "object"
      },
      "FareCategoryDisplayEnum": {
        "enum": [
          "Basic Economy",
          "Business",
          "Economy Plus",
          "Economy",
          "First",
          "Premium"
        ],
        "title": "FareCategoryDisplayEnum",
        "type": "string"
      },
      "FederalTaxClassification": {
        "enum": [
          "C_CORPORATION",
          "INDIVIDUAL_SOLE_PROPRIETOR_SINGLE_MEMBER_LLC",
          "INTERNATIONAL",
          "LLC_C_CORPORATION",
          "LLC_PARTNERSHIP",
          "LLC_S_CORPORATION",
          "OTHER",
          "PARTNERSHIP",
          "S_CORPORATION",
          "TRUST_ESTATE"
        ],
        "title": "FederalTaxClassification",
        "type": "string"
      },
      "FieldGroup": {
        "description": "Field picker section. Declaration order is the display order.",
        "enum": [
          "accounting",
          "airports",
          "amounts",
          "ap_aging",
          "approvals",
          "ar_aging",
          "counts",
          "customers",
          "dates",
          "details",
          "emissions",
          "flight_details",
          "hotel_details",
          "identifiers",
          "people_and_teams",
          "policy",
          "provider_and_model",
          "status",
          "timing",
          "tokens",
          "travel",
          "vendors_and_merchants"
        ],
        "title": "FieldGroup",
        "type": "string"
      },
      "FieldRef": {
        "description": "Reference to a dimension, optionally time-bucketed.",
        "properties": {
          "field": {
            "maxLength": 200,
            "minLength": 1,
            "title": "Field",
            "type": "string"
          },
          "time_grain": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TimeGrain"
              }
            ],
            "default": null,
            "description": "Calendar grain for a time dimension. Null selects a grain automatically from the resolved time range.",
            "nullable": true
          },
          "week_starts_on": {
            "default": null,
            "description": "First day of the week when time_grain is week. Defaults to Monday.",
            "enum": [
              "monday",
              "sunday"
            ],
            "nullable": true,
            "title": "Week Starts On",
            "type": "string"
          }
        },
        "required": [
          "field"
        ],
        "title": "FieldRef",
        "type": "object"
      },
      "FieldValueActor": {
        "description": "Who wrote a custom form field value.",
        "enum": [
          "agent",
          "user"
        ],
        "title": "FieldValueActor",
        "type": "string",
        "x-enum-descriptions": {
          "agent": "The field value was filled by an AI agent.",
          "user": "The field value was provided by a user."
        }
      },
      "FieldValueSourceType": {
        "description": "Where an agent-written value came from.",
        "enum": [
          "attachment",
          "email",
          "notion",
          "other",
          "slack",
          "web"
        ],
        "title": "FieldValueSourceType",
        "type": "string",
        "x-enum-descriptions": {
          "attachment": "Taken from an uploaded document or attachment.",
          "email": "Taken from an email.",
          "notion": "Taken from a Notion page.",
          "other": "Taken from a source not covered by the other types.",
          "slack": "Taken from a Slack message or thread.",
          "web": "Taken from a web page or web search result."
        }
      },
      "Filetype": {
        "enum": [
          "base64",
          "csv",
          "doc",
          "docx",
          "eml",
          "gif",
          "gz",
          "heic",
          "html",
          "ics",
          "iif",
          "jpeg",
          "json",
          "jsonl",
          "md",
          "mp3",
          "mp4",
          "msg",
          "npy",
          "ods",
          "parquet",
          "pdf",
          "pgp",
          "png",
          "ppt",
          "pptx",
          "py",
          "txt",
          "webp",
          "xls",
          "xlsm",
          "xlsx",
          "xml",
          "zip"
        ],
        "title": "Filetype",
        "type": "string",
        "x-enum-descriptions": {
          "ics": "An iCalendar calendar event file.",
          "mp3": "An MP3 audio file.",
          "mp4": "An MP4 video file.",
          "ppt": "A Microsoft PowerPoint presentation file.",
          "pptx": "A Microsoft PowerPoint Open XML presentation file."
        }
      },
      "FilterClause": {
        "properties": {
          "field": {
            "maxLength": 200,
            "minLength": 1,
            "title": "Field",
            "type": "string"
          },
          "op": {
            "$ref": "#/components/schemas/FilterOp"
          },
          "value": {
            "default": null,
            "nullable": true,
            "oneOf": [
              {
                "format": "date",
                "type": "string"
              },
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "items": {
                  "oneOf": [
                    {
                      "format": "date",
                      "type": "string"
                    },
                    {
                      "format": "date-time",
                      "type": "string"
                    },
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "integer"
                    },
                    {
                      "type": "number"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "type": "array"
              },
              {
                "type": "boolean"
              },
              {
                "type": "integer"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "title": "Value"
          }
        },
        "required": [
          "field",
          "op"
        ],
        "title": "FilterClause",
        "type": "object"
      },
      "FilterCriteriaRequestBody": {
        "properties": {
          "filter": {
            "description": "Fuzzy for merchant, spend_allocation, trip, and tracking_category; user name or email for marked_ready_by_user; exact for category.",
            "title": "Filter",
            "type": "string"
          },
          "filter_type": {
            "description": "'trip' is the event/conference name, not a city. 'tracking_category' matches an accounting coding option name/code (needs an accounting integration). 'marked_ready_by_user': transactions currently ready to sync whose latest ready mark was by the matched person.",
            "enum": [
              "category",
              "marked_ready_by_user",
              "merchant",
              "spend_allocation",
              "tracking_category",
              "trip"
            ],
            "title": "Filter Type",
            "type": "string"
          }
        },
        "required": [
          "filter",
          "filter_type"
        ],
        "title": "FilterCriteria",
        "type": "object"
      },
      "FilterOp": {
        "enum": [
          "contains",
          "ends_with",
          "eq",
          "gt",
          "gte",
          "in",
          "is_not_null",
          "is_null",
          "lt",
          "lte",
          "neq",
          "not_contains",
          "not_in",
          "starts_with"
        ],
        "title": "FilterOp",
        "type": "string"
      },
      "FilterOptionDepartmentSchema": {
        "properties": {
          "name": {
            "title": "Name",
            "type": "string"
          },
          "uuid": {
            "title": "Uuid",
            "type": "string"
          }
        },
        "required": [
          "name",
          "uuid"
        ],
        "title": "FilterOptionDepartmentSchema",
        "type": "object"
      },
      "FilterOptionsResponseSchema": {
        "properties": {
          "departments": {
            "items": {
              "$ref": "#/components/schemas/FilterOptionDepartmentSchema"
            },
            "title": "Departments",
            "type": "array"
          },
          "model_compute_tier": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FacetCategorySchema"
              }
            ],
            "default": null,
            "nullable": true
          },
          "model_context_window": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FacetCategorySchema"
              }
            ],
            "default": null,
            "nullable": true
          },
          "model_families": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ModelFamilyCategorySchema"
              }
            ],
            "default": null,
            "nullable": true
          },
          "model_fine_tune_source": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FacetCategorySchema"
              }
            ],
            "default": null,
            "nullable": true
          },
          "model_speed": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FacetCategorySchema"
              }
            ],
            "default": null,
            "nullable": true
          },
          "model_thinking": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FacetCategorySchema"
              }
            ],
            "default": null,
            "nullable": true
          },
          "models": {
            "items": {
              "type": "string"
            },
            "title": "Models",
            "type": "array"
          },
          "providers": {
            "items": {
              "description": "AI provider: one of OPENAI, ANTHROPIC, CURSOR, FIREWORKS, GCP, AWS, AZURE, RAMP, or the provider name reported for usage.",
              "type": "string"
            },
            "title": "Providers",
            "type": "array"
          }
        },
        "required": [
          "departments",
          "models",
          "providers"
        ],
        "title": "FilterOptionsResponseSchema",
        "type": "object"
      },
      "FilterRequestBody": {
        "properties": {
          "filters": {
            "items": {
              "$ref": "#/components/schemas/FilterCriteriaRequestBody"
            },
            "title": "Filters",
            "type": "array"
          }
        },
        "required": [
          "filters"
        ],
        "title": "Filter",
        "type": "object"
      },
      "FilterValueKind": {
        "enum": [
          "boolean",
          "date",
          "datetime",
          "enum",
          "number",
          "search_tag",
          "string"
        ],
        "title": "FilterValueKind",
        "type": "string"
      },
      "FinancialStatementContract": {
        "description": "Discoverable query contract; the dataset owns the statement kind.",
        "properties": {
          "accounting_basis": {
            "default": "accrual",
            "enum": [
              "accrual"
            ],
            "title": "Accounting Basis",
            "type": "string"
          },
          "currency_mode": {
            "default": "canonical_provider",
            "enum": [
              "canonical_provider"
            ],
            "title": "Currency Mode",
            "type": "string"
          },
          "report_type": {
            "enum": [
              "balance_sheet",
              "income_statement",
              "trial_balance"
            ],
            "title": "Report Type",
            "type": "string"
          },
          "row_order": {
            "default": "canonical_depth_first",
            "enum": [
              "canonical_depth_first"
            ],
            "title": "Row Order",
            "type": "string"
          },
          "time_window_kind": {
            "enum": [
              "as_of_date",
              "date_range"
            ],
            "title": "Time Window Kind",
            "type": "string"
          }
        },
        "required": [
          "accounting_basis",
          "currency_mode",
          "report_type",
          "row_order",
          "time_window_kind"
        ],
        "title": "FinancialStatementContract",
        "type": "object"
      },
      "FinancialStatementFilters": {
        "additionalProperties": false,
        "description": "Provider dimension IDs; omission includes all authorized values.",
        "properties": {
          "class_ids": {
            "default": null,
            "items": {
              "maxLength": 200,
              "minLength": 1,
              "type": "string"
            },
            "maxItems": 100,
            "minItems": 1,
            "nullable": true,
            "title": "Class Ids",
            "type": "array"
          },
          "customer_ids": {
            "default": null,
            "items": {
              "maxLength": 200,
              "minLength": 1,
              "type": "string"
            },
            "maxItems": 100,
            "minItems": 1,
            "nullable": true,
            "title": "Customer Ids",
            "type": "array"
          },
          "department_ids": {
            "default": null,
            "items": {
              "maxLength": 200,
              "minLength": 1,
              "type": "string"
            },
            "maxItems": 100,
            "minItems": 1,
            "nullable": true,
            "title": "Department Ids",
            "type": "array"
          },
          "location_ids": {
            "default": null,
            "items": {
              "maxLength": 200,
              "minLength": 1,
              "type": "string"
            },
            "maxItems": 100,
            "minItems": 1,
            "nullable": true,
            "title": "Location Ids",
            "type": "array"
          },
          "subsidiary_ids": {
            "default": null,
            "items": {
              "maxLength": 200,
              "minLength": 1,
              "type": "string"
            },
            "maxItems": 100,
            "minItems": 1,
            "nullable": true,
            "title": "Subsidiary Ids",
            "type": "array"
          },
          "vendor_ids": {
            "default": null,
            "items": {
              "maxLength": 200,
              "minLength": 1,
              "type": "string"
            },
            "maxItems": 100,
            "minItems": 1,
            "nullable": true,
            "title": "Vendor Ids",
            "type": "array"
          }
        },
        "title": "FinancialStatementFilters",
        "type": "object"
      },
      "FinancialStatementMetadata": {
        "properties": {
          "accounting_basis": {
            "default": "accrual",
            "enum": [
              "accrual"
            ],
            "title": "Accounting Basis",
            "type": "string"
          },
          "connection_id": {
            "format": "uuid",
            "title": "Connection Id",
            "type": "string"
          },
          "coverage": {
            "default": "unverified",
            "enum": [
              "unverified"
            ],
            "title": "Coverage",
            "type": "string"
          },
          "equity_period_basis": {
            "enum": [
              "calendar_year",
              "provider_ledger"
            ],
            "title": "Equity Period Basis",
            "type": "string"
          },
          "filters": {
            "$ref": "#/components/schemas/FinancialStatementFilters"
          },
          "observed_at": {
            "format": "date-time",
            "title": "Observed At",
            "type": "string"
          },
          "provider": {
            "$ref": "#/components/schemas/AbkReportingProvider"
          },
          "published_at": {
            "format": "date-time",
            "title": "Published At",
            "type": "string"
          },
          "report_type": {
            "enum": [
              "balance_sheet",
              "income_statement",
              "trial_balance"
            ],
            "title": "Report Type",
            "type": "string"
          },
          "row_identity_scope": {
            "default": "response",
            "enum": [
              "response"
            ],
            "title": "Row Identity Scope",
            "type": "string"
          },
          "row_order": {
            "default": "canonical_depth_first",
            "enum": [
              "canonical_depth_first"
            ],
            "title": "Row Order",
            "type": "string"
          },
          "time_window": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/AbkReportingTimeWindowAsOf"
              },
              {
                "$ref": "#/components/schemas/AbkReportingTimeWindowRange"
              }
            ],
            "title": "Time Window"
          }
        },
        "required": [
          "accounting_basis",
          "connection_id",
          "coverage",
          "equity_period_basis",
          "filters",
          "observed_at",
          "provider",
          "published_at",
          "report_type",
          "row_identity_scope",
          "row_order",
          "time_window"
        ],
        "title": "FinancialStatementMetadata",
        "type": "object"
      },
      "FinancialStatementQuery": {
        "additionalProperties": false,
        "description": "A canonical accrual statement, scoped to the caller's connected ERP books.",
        "properties": {
          "filters": {
            "$ref": "#/components/schemas/FinancialStatementFilters"
          },
          "time_window": {
            "description": "Balance sheet and trial balance require {as_of_date: YYYY-MM-DD}. Income statement requires {start_date: YYYY-MM-DD, end_date: YYYY-MM-DD}; both endpoints are inclusive.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/AbkReportingTimeWindowAsOf"
              },
              {
                "$ref": "#/components/schemas/AbkReportingTimeWindowRange"
              }
            ],
            "title": "Time Window"
          }
        },
        "required": [
          "time_window"
        ],
        "title": "FinancialStatementQuery",
        "type": "object"
      },
      "FindProcurementDeflectionMatchesBatchOutputJsonMode": {
        "properties": {
          "results": {
            "items": {
              "$ref": "#/components/schemas/PayeeDeflectionMatchesJsonMode"
            },
            "title": "Results",
            "type": "array"
          }
        },
        "required": [
          "results"
        ],
        "title": "FindProcurementDeflectionMatchesBatchOutput",
        "type": "object"
      },
      "FindProcurementDeflectionMatchesRequestBody": {
        "description": "Find active procurement objects for one or more exact vendors.\n\nRestricted matches intentionally contain only the object type and owner\ndisplay names. Never infer, add, or disclose absent details, and never use\nanother tool to recover them.",
        "properties": {
          "payee_uuids": {
            "description": "Exact payee UUIDs to find related procurement objects for. Pass every resolved vendor in one call instead of calling once per vendor.",
            "items": {
              "$ref": "#/components/schemas/UUIDStrRequestBody"
            },
            "minItems": 1,
            "title": "Payee Uuids",
            "type": "array"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "request_summary": {
            "default": null,
            "description": "What this request is for, in a few words \u2014 the product, service, or scope being bought or renewed, not the vendor name. Used to drop unrelated activity with the same vendor. Omitting it returns everything for the vendor.",
            "nullable": true,
            "title": "Request Summary",
            "type": "string"
          }
        },
        "required": [
          "payee_uuids",
          "rationale"
        ],
        "title": "FindProcurementDeflectionMatches",
        "type": "object"
      },
      "FlightAncillaryInfo": {
        "description": "Provider-derived amenity or restriction attached to a flight fare.",
        "properties": {
          "amount": {
            "default": null,
            "description": "Raw unrounded chargeable amount for this ancillary, as a decimal string (e.g. '59.00'), denominated in currency. UI clients should render this ancillary's money from amount plus currency and apply their own rounding; price is a pre-formatted display form intended for text output. Null (like price) whenever the provider supplied no chargeable amount, which is normal for INCLUDED and NOT_INCLUDED ancillaries; '0.00' is a real free-of-charge amount and is never reported as null.",
            "nullable": true,
            "title": "Amount",
            "type": "string"
          },
          "currency": {
            "default": null,
            "description": "ISO 4217 currency code for amount, e.g. 'USD'. Null exactly when amount is null.",
            "nullable": true,
            "title": "Currency",
            "type": "string"
          },
          "display_name": {
            "description": "Short label for the ancillary, safe to show or read out verbatim (e.g. 'Seat assignment', 'Carry-on bag'). For the standardized type_codes it is derived from type_code alone, so the same amenity reads identically across providers and is never a raw code, a supplier fare-rule fragment, or a dimension spec. It names the amenity only: it never states whether the fare grants it, because categories like REFUNDS and CHANGES are also present when the fare disallows them -- read offer_type for that. type_code is an open vocabulary, so a code outside the standardized set falls back to the provider's own text (humanized when that text is itself a raw code), which may read like supplier prose. Use type_code, not this label, for machine matching, and name for the provider's exact wording.",
            "title": "Display Name",
            "type": "string"
          },
          "name": {
            "description": "Exact ancillary description supplied by the provider.",
            "title": "Name",
            "type": "string"
          },
          "offer_type": {
            "description": "Whether the ancillary is INCLUDED, CHARGEABLE, or NOT_INCLUDED (exactly these three values; kept as a string for response-schema compatibility on the agent-tools API). Only NOT_INCLUDED confirms exclusion; an absent ancillary category is unknown.",
            "title": "Offer Type",
            "type": "string"
          },
          "price": {
            "default": null,
            "description": "Formatted ancillary price when the provider supplied one.",
            "nullable": true,
            "title": "Price",
            "type": "string"
          },
          "type_code": {
            "description": "Ancillary category. OPEN vocabulary: Atlas/Duffel emit the standardized codes (CARRYON_BAGGAGE, CHANGES, CHECKED_BAGGAGE, MEAL_BEVERAGE, MEALS, SNACKS, BEVERAGES, PRIORITY_BOARDING, PRIORITY_CHECK_IN, REFUNDS, SEAT_SELECTION, WIFI), but some providers pass their own codes through verbatim, so treat unknown values as displayable opaque categories.",
            "title": "Type Code",
            "type": "string"
          }
        },
        "required": [
          "display_name",
          "name",
          "offer_type",
          "type_code"
        ],
        "title": "FlightAncillaryInfo",
        "type": "object"
      },
      "FlightBookingCardDataV1": {
        "description": "Self-contained flight booking review card payload.\n\nEverything the card renders lives here; clients must not reconstruct any\nof it from other result fields or earlier messages. Every ``*_display``\nfield is display-final: render verbatim.",
        "properties": {
          "ancillaries_by_slice": {
            "description": "Provider-derived amenities and restrictions for every slice of the quoted fare.",
            "items": {
              "$ref": "#/components/schemas/FlightSliceAncillaryInfo"
            },
            "title": "Ancillaries By Slice",
            "type": "array"
          },
          "approval_display_description": {
            "default": null,
            "description": "Display-final secondary approval copy; render beneath the approval status. Null unless the booking uses soft approval.",
            "nullable": true,
            "title": "Approval Display Description",
            "type": "string"
          },
          "approval_display_status": {
            "default": null,
            "description": "Ready-to-display approval message; render verbatim.",
            "nullable": true,
            "title": "Approval Display Status",
            "type": "string"
          },
          "cancellable_by_display": {
            "default": null,
            "description": "Display-final cancellation deadline in US Eastern Time, e.g. 'Wed, Apr 1, 2026, 5:00 PM ET'; null when unknown.",
            "nullable": true,
            "title": "Cancellable By Display",
            "type": "string"
          },
          "estimated_fees": {
            "default": null,
            "description": "Estimated fees already included in the quoted total, e.g. a low-cost carrier's fees that the airline confirms only when it charges the card. Render each display_name and description verbatim. Null when the quote has no estimate.",
            "items": {
              "$ref": "#/components/schemas/FlightEstimatedFeeV1"
            },
            "nullable": true,
            "title": "Estimated Fees",
            "type": "array"
          },
          "fund": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BookingCardFundV1"
              }
            ],
            "default": null,
            "description": "Server-resolved booking fund line (selected > recommended > lone eligible); null when no fund resolves.",
            "nullable": true
          },
          "in_policy": {
            "description": "Whether the fare is within the traveler's travel policy.",
            "title": "In Policy",
            "type": "boolean"
          },
          "itinerary": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FlightBookingItineraryV1"
              }
            ],
            "description": "Self-contained itinerary block (slices in travel order plus fare_name)."
          },
          "loyalty_programs": {
            "default": null,
            "description": "Matching saved traveler loyalty programs to render as a loyalty line; null when none apply.",
            "items": {
              "$ref": "#/components/schemas/BookingCardLoyaltyProgramV1"
            },
            "nullable": true,
            "title": "Loyalty Programs",
            "type": "array"
          },
          "offer_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "description": "The quoted flight offer id; the id the confirm call is keyed to."
          },
          "outbound_date": {
            "description": "Display-final outbound date, e.g. 'Sun, Apr 5, 2026'.",
            "title": "Outbound Date",
            "type": "string"
          },
          "payment_display": {
            "default": null,
            "description": "Display-final payment timing descriptor; flights charge the booking fund at ticketing, so 'Pay now'. Null when unknown.",
            "nullable": true,
            "title": "Payment Display",
            "type": "string"
          },
          "policy_violations": {
            "description": "Human-readable travel-policy violations, if any.",
            "items": {
              "type": "string"
            },
            "title": "Policy Violations",
            "type": "array"
          },
          "return_date": {
            "default": null,
            "description": "Display-final return date for round trips; null for one-way.",
            "nullable": true,
            "title": "Return Date",
            "type": "string"
          },
          "seat_selection_available": {
            "default": false,
            "description": "Whether this unconfirmed preview's quote has selectable seat maps. When true, the client renders the inline seat map by fetching the authenticated flight-quote seats endpoint with flight_quote_uuid and saves seat clicks straight to the quote; seat geometry never rides in this payload.",
            "title": "Seat Selection Available",
            "type": "boolean"
          },
          "seats_display": {
            "default": null,
            "description": "Display-final saved-seat lines, one per leg with a saved seat, e.g. 'JFK to SFO: 12A'. Render verbatim in the Seats row; newer client-side click state may overlay it. Null when the quote had no saved seats when this payload was built.",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "title": "Seats Display",
            "type": "array"
          },
          "ticket_price_breakdown": {
            "default": null,
            "description": "Expected per-ticket prices from the quote's expected_ticket_price snapshot. Present when the provider supplies per-ticket prices; null otherwise. Never derive these from total_amount_display.",
            "items": {
              "$ref": "#/components/schemas/SubmitFlightBookingTicketPriceBreakdownV1"
            },
            "nullable": true,
            "title": "Ticket Price Breakdown",
            "type": "array"
          },
          "ticket_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AtlasTicketType"
              }
            ],
            "default": "single_ticket",
            "description": "Provider ticketing shape for this quote: 'single_ticket' or 'multi_ticket' (split ticket). Defaults to 'single_ticket' when the provider does not expose the signal, mirroring how flight booking derives it, so this is never null. When 'multi_ticket', ticket_price_breakdown lists each ticket's expected price."
          },
          "total_amount_display": {
            "description": "Display-final quoted total, e.g. '$450' or '$450.50'. A preview that cannot compute it emits no card.",
            "title": "Total Amount Display",
            "type": "string"
          },
          "traveler_name_display": {
            "default": null,
            "description": "Display-final traveler full name, e.g. 'Kim Kavanroodi'; null when unavailable.",
            "nullable": true,
            "title": "Traveler Name Display",
            "type": "string"
          },
          "uatp_program": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UatpProgram"
              }
            ],
            "default": null,
            "description": "UATP card program that pays this fare, such as UNITED_PASSPLUS. When set, fund pays only the agency's booking fees, not the fare. Null when the Ramp card and booking fund pay.",
            "nullable": true
          }
        },
        "required": [
          "in_policy",
          "itinerary",
          "offer_id",
          "outbound_date",
          "total_amount_display"
        ],
        "title": "FlightBookingCardDataV1",
        "type": "object"
      },
      "FlightBookingDetailInfo": {
        "description": "Flight booking with full per-segment itinerary and seat assignments.",
        "properties": {
          "airline": {
            "default": null,
            "description": "Airline name",
            "nullable": true,
            "title": "Airline",
            "type": "string"
          },
          "airline_confirmation_numbers": {
            "description": "Distinct airline confirmation numbers across all segments, in itinerary order. One entry means every segment shares it; several entries mean the trip spans separate airline records, so match each to its segment. Empty when the inventory source reported none.",
            "items": {
              "type": "string"
            },
            "title": "Airline Confirmation Numbers",
            "type": "array"
          },
          "airline_credits_applied": {
            "default": null,
            "description": "Flight credits used to pay for this booking, one entry per credit. Null when the booking used no flight credit or is not yet confirmed.",
            "items": {
              "$ref": "#/components/schemas/AppliedAirlineCreditV1"
            },
            "nullable": true,
            "title": "Airline Credits Applied",
            "type": "array"
          },
          "approval_display_status": {
            "default": null,
            "description": "Ready-to-display approval message.",
            "nullable": true,
            "title": "Approval Display Status",
            "type": "string"
          },
          "arrival_airport": {
            "default": null,
            "description": "Arrival airport code (e.g., 'JFK')",
            "nullable": true,
            "title": "Arrival Airport",
            "type": "string"
          },
          "arrival_time": {
            "default": null,
            "description": "Scheduled arrival time in the arrival airport's local timezone. When presenting this value, use the local calendar date and time and state the timezone or UTC offset; do not derive the date from UTC.",
            "format": "date-time",
            "nullable": true,
            "title": "Arrival Time",
            "type": "string"
          },
          "booked_at": {
            "default": null,
            "description": "When the booking was created",
            "format": "date-time",
            "nullable": true,
            "title": "Booked At",
            "type": "string"
          },
          "booked_for_someone_else": {
            "default": null,
            "description": "True when the person traveling is not the user these bookings were retrieved for: they arranged this booking for a colleague or guest, so its itinerary is not theirs. False when they are the traveler. Null when not reported.",
            "nullable": true,
            "title": "Booked For Someone Else",
            "type": "boolean"
          },
          "booking_request_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "description": "Booking request UUID, including the linked request for an existing flight reservation; its approval state is separate from reservation and ticketing status. Use this typed ID when linking a pending, processing, failed, cancelled, or rejected request, with display_name as the entity-link label.",
            "nullable": true
          },
          "cabin_class": {
            "default": null,
            "description": "Cabin class (e.g., 'ECONOMY', 'BUSINESS')",
            "nullable": true,
            "title": "Cabin Class",
            "type": "string"
          },
          "departure_airport": {
            "default": null,
            "description": "Departure airport code (e.g., 'SFO')",
            "nullable": true,
            "title": "Departure Airport",
            "type": "string"
          },
          "departure_time": {
            "default": null,
            "description": "Scheduled departure time in the departure airport's local timezone. When presenting this value, use the local calendar date and time and state the timezone or UTC offset; do not derive the date from UTC.",
            "format": "date-time",
            "nullable": true,
            "title": "Departure Time",
            "type": "string"
          },
          "display_name": {
            "default": null,
            "description": "Ready-to-display flight label. Use this verbatim as the entity-link label; pending requests without carrier details use their route instead of 'Unknown'.",
            "nullable": true,
            "title": "Display Name",
            "type": "string"
          },
          "error_message": {
            "default": null,
            "description": "Error message if the booking request failed (status=FAILED)",
            "nullable": true,
            "title": "Error Message",
            "type": "string"
          },
          "flight_booking_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "description": "Confirmed flight booking UUID; pass it to GetBookingDetails as flight_booking_id. Use this typed ID when linking a persisted flight booking.",
            "nullable": true
          },
          "flight_number": {
            "default": null,
            "description": "Flight number (e.g., 'UA 100')",
            "nullable": true,
            "title": "Flight Number",
            "type": "string"
          },
          "record_locators": {
            "description": "Travel-agency (GDS) record locators for the reservation, when the booking was issued through one. Distinct from airline confirmation numbers; airlines may not recognize these at check-in.",
            "items": {
              "type": "string"
            },
            "title": "Record Locators",
            "type": "array"
          },
          "slices": {
            "description": "Every itinerary leg in order, each with its individual flights. For a round trip, the first entry is the outbound leg and the next entry is the return leg.",
            "items": {
              "$ref": "#/components/schemas/FlightSliceDetail"
            },
            "title": "Slices",
            "type": "array"
          },
          "status": {
            "default": null,
            "description": "Booking status. For persisted bookings: reservation status (e.g., CONFIRMED, CANCELLED). For unfulfilled requests: PENDING_APPROVAL, PROCESSING, FAILED, CANCELLED, or REJECTED.",
            "nullable": true,
            "title": "Status",
            "type": "string"
          },
          "ticketing_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FlightTicketingStatus"
              }
            ],
            "default": null,
            "description": "Flight ticket issuance status. TICKETING means the reservation is confirmed but tickets have not been issued yet; TICKETED means ticketing is complete; FAILED means ticketing did not complete.",
            "nullable": true
          },
          "trip_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "description": "ID of the associated trip (UUID or entity alias). To link to the trip, pass this ID to FindUrl as entity_uuid with entity_type='trip' and use the returned URL. Do not construct a URL from this ID.",
            "nullable": true
          },
          "trip_name": {
            "default": null,
            "description": "Name of the trip this booking is associated with",
            "nullable": true,
            "title": "Trip Name",
            "type": "string"
          }
        },
        "title": "FlightBookingDetailInfo",
        "type": "object"
      },
      "FlightBookingInfo": {
        "description": "Summary information about a flight booking or pending request.",
        "properties": {
          "airline": {
            "default": null,
            "description": "Airline name",
            "nullable": true,
            "title": "Airline",
            "type": "string"
          },
          "approval_display_status": {
            "default": null,
            "description": "Ready-to-display approval message.",
            "nullable": true,
            "title": "Approval Display Status",
            "type": "string"
          },
          "arrival_airport": {
            "default": null,
            "description": "Arrival airport code (e.g., 'JFK')",
            "nullable": true,
            "title": "Arrival Airport",
            "type": "string"
          },
          "arrival_time": {
            "default": null,
            "description": "Scheduled arrival time in the arrival airport's local timezone. When presenting this value, use the local calendar date and time and state the timezone or UTC offset; do not derive the date from UTC.",
            "format": "date-time",
            "nullable": true,
            "title": "Arrival Time",
            "type": "string"
          },
          "booked_at": {
            "default": null,
            "description": "When the booking was created",
            "format": "date-time",
            "nullable": true,
            "title": "Booked At",
            "type": "string"
          },
          "booked_for_someone_else": {
            "default": null,
            "description": "True when the person traveling is not the user these bookings were retrieved for: they arranged this booking for a colleague or guest, so its itinerary is not theirs. False when they are the traveler. Null when not reported.",
            "nullable": true,
            "title": "Booked For Someone Else",
            "type": "boolean"
          },
          "booking_request_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "description": "Booking request UUID, including the linked request for an existing flight reservation; its approval state is separate from reservation and ticketing status. Use this typed ID when linking a pending, processing, failed, cancelled, or rejected request, with display_name as the entity-link label.",
            "nullable": true
          },
          "cabin_class": {
            "default": null,
            "description": "Cabin class (e.g., 'ECONOMY', 'BUSINESS')",
            "nullable": true,
            "title": "Cabin Class",
            "type": "string"
          },
          "departure_airport": {
            "default": null,
            "description": "Departure airport code (e.g., 'SFO')",
            "nullable": true,
            "title": "Departure Airport",
            "type": "string"
          },
          "departure_time": {
            "default": null,
            "description": "Scheduled departure time in the departure airport's local timezone. When presenting this value, use the local calendar date and time and state the timezone or UTC offset; do not derive the date from UTC.",
            "format": "date-time",
            "nullable": true,
            "title": "Departure Time",
            "type": "string"
          },
          "display_name": {
            "default": null,
            "description": "Ready-to-display flight label. Use this verbatim as the entity-link label; pending requests without carrier details use their route instead of 'Unknown'.",
            "nullable": true,
            "title": "Display Name",
            "type": "string"
          },
          "error_message": {
            "default": null,
            "description": "Error message if the booking request failed (status=FAILED)",
            "nullable": true,
            "title": "Error Message",
            "type": "string"
          },
          "flight_booking_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "description": "Confirmed flight booking UUID; pass it to GetBookingDetails as flight_booking_id. Use this typed ID when linking a persisted flight booking.",
            "nullable": true
          },
          "flight_number": {
            "default": null,
            "description": "Flight number (e.g., 'UA 100')",
            "nullable": true,
            "title": "Flight Number",
            "type": "string"
          },
          "slices": {
            "description": "Every itinerary leg in order. For a round trip, the first entry is the outbound leg and the next entry is the return leg.",
            "items": {
              "$ref": "#/components/schemas/FlightSliceDetails"
            },
            "title": "Slices",
            "type": "array"
          },
          "status": {
            "default": null,
            "description": "Booking status. For persisted bookings: reservation status (e.g., CONFIRMED, CANCELLED). For unfulfilled requests: PENDING_APPROVAL, PROCESSING, FAILED, CANCELLED, or REJECTED.",
            "nullable": true,
            "title": "Status",
            "type": "string"
          },
          "ticketing_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FlightTicketingStatus"
              }
            ],
            "default": null,
            "description": "Flight ticket issuance status. TICKETING means the reservation is confirmed but tickets have not been issued yet; TICKETED means ticketing is complete; FAILED means ticketing did not complete.",
            "nullable": true
          },
          "trip_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "description": "ID of the associated trip (UUID or entity alias). To link to the trip, pass this ID to FindUrl as entity_uuid with entity_type='trip' and use the returned URL. Do not construct a URL from this ID.",
            "nullable": true
          },
          "trip_name": {
            "default": null,
            "description": "Name of the trip this booking is associated with",
            "nullable": true,
            "title": "Trip Name",
            "type": "string"
          }
        },
        "title": "FlightBookingInfo",
        "type": "object"
      },
      "FlightBookingItineraryV1": {
        "description": "Preview-only nested itinerary block for the booking review card.\n\nEverything the card renders must be present in this result; clients must\nnot reconstruct the itinerary from earlier search-result messages.",
        "properties": {
          "fare_name": {
            "default": null,
            "description": "Outbound slice's branded fare name, e.g. 'Main Cabin'. Prefer slices[].fare_name, which is set per slice.",
            "nullable": true,
            "title": "Fare Name",
            "type": "string"
          },
          "slices": {
            "description": "Itinerary slices in travel order (outbound first).",
            "items": {
              "$ref": "#/components/schemas/FlightItinerarySliceV1"
            },
            "title": "Slices",
            "type": "array"
          }
        },
        "required": [
          "slices"
        ],
        "title": "FlightBookingItineraryV1",
        "type": "object"
      },
      "FlightBookingResult": {
        "description": "Result of SubmitFlightBooking - the quote-time assessment, plus the created\nbooking once confirmed.\n\n``review_details`` carries quote-time review evidence on every surface.\nWhen unavailable, use the other preview fields and selected search result,\nwithout inferring missing quote details.\n\n- PREVIEW (``booked=False``): ``action=preview`` - ``booking`` is ``None``\n  and no booking is created.\n- BOOKED (``booked=True``): ``action=confirm`` - ``booking`` is populated.",
        "properties": {
          "airline_credit_applied": {
            "default": null,
            "description": "Whether a flight credit is applied to this quote right now. false means no credit is applied: payment_breakdown, card_charge_amount, and uatp_charge_amount are omitted and the card pays the full fare. State credit amounts only from this result, never from an earlier card or message. Omitted when available_airline_credits is omitted.",
            "nullable": true,
            "title": "Airline Credit Applied",
            "type": "boolean"
          },
          "airline_credit_disclaimer": {
            "default": null,
            "description": "Disclaimer to state verbatim with any flight credit. Omitted when available_airline_credits is omitted.",
            "nullable": true,
            "title": "Airline Credit Disclaimer",
            "type": "string"
          },
          "airline_credit_unused_notice": {
            "default": null,
            "description": "Notice that unused credit value may be lost; state it verbatim with the disclaimer. Omitted when available_airline_credits is omitted.",
            "nullable": true,
            "title": "Airline Credit Unused Notice",
            "type": "string"
          },
          "ancillaries_by_slice": {
            "description": "Provider-derived amenities and restrictions for every slice of the selected fare. Review each slice with the traveler before confirming. Missing categories are unknown; only offer_type=NOT_INCLUDED confirms exclusion.",
            "items": {
              "$ref": "#/components/schemas/FlightSliceAncillaryInfo"
            },
            "title": "Ancillaries By Slice",
            "type": "array"
          },
          "approval_display_status": {
            "default": null,
            "description": "Ready-to-display approval message and source of truth for approval mode. Use this verbatim instead of inferring approval copy from requires_approval or policy status. 'Booking will be flagged for review' means soft approval, not that approval is unnecessary; 'Approval required before booking' means hard approval.",
            "nullable": true,
            "title": "Approval Display Status",
            "type": "string"
          },
          "approval_steps": {
            "description": "Human-readable approval steps that must clear before the booking is made.",
            "items": {
              "type": "string"
            },
            "title": "Approval Steps",
            "type": "array"
          },
          "available_airline_credits": {
            "default": null,
            "description": "The traveler's Ramp Travel flight credits the airline marked as possibly applicable to this fare. Eligibility and the amount applied are confirmed only when a credit is applied; never present a credit as covering the fare. Omitted when none may apply.",
            "items": {
              "$ref": "#/components/schemas/FlightQuoteAirlineCreditV1"
            },
            "nullable": true,
            "title": "Available Airline Credits",
            "type": "array"
          },
          "booked": {
            "description": "True when a booking request was created; False for a preview. This does not mean the flight is confirmed or ticketed. Use booking.status for fulfillment and approval_display_status to distinguish hard approval from a soft-approved flight that was secured and flagged for review.",
            "title": "Booked",
            "type": "boolean"
          },
          "booking": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BookingRequestResult"
              }
            ],
            "default": null,
            "description": "The created booking (id, status, next steps, dates, refundability). Present only when booked=True.",
            "nullable": true
          },
          "cancellable_by": {
            "default": null,
            "description": "Deadline for cancelling the quoted fare for a full refund.",
            "format": "date-time",
            "nullable": true,
            "title": "Cancellable By",
            "type": "string"
          },
          "card_charge_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MoneyAmountSchema"
              }
            ],
            "default": null,
            "description": "Amount charged to the Ramp card after the applied credit; 0.00 when the credit and any UATP card cover the fare. expected_total_amount stays the full fare. Omitted unless a credit is applied.",
            "nullable": true
          },
          "confirmation_email": {
            "default": null,
            "description": "Traveler profile email where booking confirmation will be sent. Present only when booked=True.",
            "nullable": true,
            "title": "Confirmation Email",
            "type": "string"
          },
          "currency": {
            "default": null,
            "description": "ISO 4217 currency code of the fare, e.g. 'USD'. Applies to total_amount and expected_total_amount.",
            "nullable": true,
            "title": "Currency",
            "type": "string"
          },
          "display_card_data": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FlightBookingCardDataV1"
              }
            ],
            "default": null,
            "description": "Self-contained booking review card payload, populated only on successful previews (booked=false) on card-enabled surfaces; null on booked=true results. Legacy AskRamp Web rendering payload; not a display acknowledgment. The same facts are available in review_details without a renderer.",
            "nullable": true
          },
          "eligible_funds": {
            "description": "Funds that can pay for this booking (preview only); pass a fund_uuid as spend_allocation_id to book. The traveler's funds come first. When booking for someone else, the booker's own funds follow when they may pay for it, marked is_booker_fund.",
            "items": {
              "$ref": "#/components/schemas/SuggestedFundInfo"
            },
            "title": "Eligible Funds",
            "type": "array"
          },
          "estimated_fees": {
            "default": null,
            "description": "Estimated fees already included in total_amount, e.g. a low-cost carrier's fees that the airline confirms only when it charges the card; the traveler is only charged what the airline bills. When explaining the price, name each fee by its display_name and use its description verbatim. Omitted when the quote has no estimate.",
            "items": {
              "$ref": "#/components/schemas/FlightEstimatedFeeV1"
            },
            "nullable": true,
            "title": "Estimated Fees",
            "type": "array"
          },
          "expected_total_amount": {
            "description": "Canonical unformatted quote amount. Copy this value verbatim into SubmitFlightBooking.expected_total_amount when confirming.",
            "title": "Expected Total Amount",
            "type": "string"
          },
          "flight_quote_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "description": "Persisted quote UUID this result was priced from. Pass it back as flight_quote_uuid (in place of flight_offer_uuid) to re-preview or confirm this exact quote, preserving quote-specific state instead of creating a fresh quote.",
            "nullable": true
          },
          "fund_eligibility_status": {
            "default": null,
            "description": "Whether eligible funds were resolved, none were eligible, or the lookup failed (preview only).",
            "enum": [
              "lookup_failed",
              "none_eligible",
              "resolved"
            ],
            "nullable": true,
            "title": "Fund Eligibility Status",
            "type": "string"
          },
          "in_policy": {
            "description": "Whether the fare is within the traveler's company travel policy.",
            "title": "In Policy",
            "type": "boolean"
          },
          "loyalty_program_names_to_offer": {
            "description": "Exact loyalty program names to offer the traveler before confirmation. If this list is empty, do not offer to add a loyalty program.",
            "items": {
              "type": "string"
            },
            "title": "Loyalty Program Names To Offer",
            "type": "array"
          },
          "loyalty_programs": {
            "description": "Saved traveler loyalty programs that match this quote and will be submitted if confirmed.",
            "items": {
              "$ref": "#/components/schemas/ApplicableTravelerLoyaltyProgram"
            },
            "title": "Loyalty Programs",
            "type": "array"
          },
          "message": {
            "description": "Current-state and next-step guidance for the caller.",
            "title": "Message",
            "type": "string"
          },
          "offer_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "description": "The flight offer id this result quotes: echoed from the call, or recovered from the persisted quote on quote-based calls. Null when a quote-based call has no recoverable source offer.",
            "nullable": true
          },
          "outbound_date": {
            "description": "Outbound flight date, e.g. 'Sun, Apr 5, 2026'. Show this exact string, including the weekday; do not infer or recompute the weekday.",
            "title": "Outbound Date",
            "type": "string"
          },
          "paid_seat_selection_disabled": {
            "default": null,
            "description": "Whether the provider disables paid seat selection in Ramp. Present when seat options are requested and enabled.",
            "nullable": true,
            "title": "Paid Seat Selection Disabled",
            "type": "boolean"
          },
          "payment_breakdown": {
            "default": null,
            "description": "How the fare is split between an applied flight credit and other payers. Omitted unless a credit is applied to this quote.",
            "items": {
              "$ref": "#/components/schemas/FlightPaymentLineV1"
            },
            "nullable": true,
            "title": "Payment Breakdown",
            "type": "array"
          },
          "policy_violations": {
            "description": "Human-readable travel-policy violation descriptions, if any.",
            "items": {
              "type": "string"
            },
            "title": "Policy Violations",
            "type": "array"
          },
          "preview_call_id": {
            "default": null,
            "description": "Protocol correlation ID of this completed preview tool call, not a quote or offer UUID. Null after submission or when the calling runtime supplies no correlation ID.",
            "nullable": true,
            "title": "Preview Call Id",
            "type": "string"
          },
          "recommended_fund_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "description": "Preferred eligible fund UUID to pass as spend_allocation_id (preview only): the traveler's leading fund. The booker's own funds are never recommended.",
            "nullable": true
          },
          "requires_approval": {
            "description": "Whether the booking requires approval before it is ticketed.",
            "title": "Requires Approval",
            "type": "boolean"
          },
          "return_date": {
            "default": null,
            "description": "Return flight date for round trips, e.g. 'Sun, Apr 12, 2026'. Show this exact string, including the weekday; do not infer or recompute the weekday.",
            "nullable": true,
            "title": "Return Date",
            "type": "string"
          },
          "review_card_attached": {
            "description": "True when this preview carries the review card payload that the connected AskRamp Web client renders automatically. The payload is omitted from model content; review_details holds the same facts.",
            "readOnly": true,
            "title": "Review Card Attached",
            "type": "boolean"
          },
          "review_details": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FlightBookingCardDataV1"
              }
            ],
            "default": null,
            "description": "Authoritative structured preview, independent of client rendering. Includes itinerary, traveler, price, fare terms, seats, policy, approval, and funding. Null after submission or when the quote cannot supply an itinerary or display total; use the other returned preview facts without inventing missing details.",
            "nullable": true
          },
          "seat_options": {
            "default": null,
            "description": "Compact selectable seat options from the persisted quote, grouped by segment_id. Null when seat options were not requested or are disabled; otherwise present on previews. Pass an option's segment_id and service_id back as seat_selections to save that seat. An empty list means the provider returned no selectable seats.",
            "items": {
              "$ref": "#/components/schemas/FlightSeatOptionV1"
            },
            "nullable": true,
            "title": "Seat Options",
            "type": "array"
          },
          "selected_fund_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "description": "Fund UUID the caller explicitly selected by passing spend_allocation_id, echoed back; null when no fund was explicitly selected. On previews this fund is guaranteed present in eligible_funds (an ineligible selection errors instead), so clients can resolve its name and balance; it supersedes recommended_fund_uuid as the booking fund.",
            "nullable": true
          },
          "total_amount": {
            "description": "Display-formatted quoted total for the trip (for round trips, the full round-trip total).",
            "title": "Total Amount",
            "type": "string"
          },
          "traveler_seat_preference": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FlightSeatPosition"
              }
            ],
            "default": null,
            "description": "The seat position supplied for this booking ('window', 'aisle', or 'middle'); null when none was supplied. Present on previews that include seat_options. When set, skip asking for a seat preference and recommend matching free seats directly. A preference never authorizes a paid seat.",
            "nullable": true
          },
          "traveler_user_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "description": "Ramp user UUID of the traveler this quote is for: the acting user for self-booking, the principal for delegated booking.",
            "nullable": true
          },
          "uatp_charge_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MoneyAmountSchema"
              }
            ],
            "default": null,
            "description": "Amount charged to the company's UATP card (for example United PassPlus) after the applied credit. Omitted unless a credit is applied and a UATP card pays a remainder.",
            "nullable": true
          }
        },
        "required": [
          "booked",
          "expected_total_amount",
          "in_policy",
          "message",
          "outbound_date",
          "requires_approval",
          "review_card_attached",
          "total_amount"
        ],
        "title": "FlightBookingResult",
        "type": "object"
      },
      "FlightCancellationAirline": {
        "properties": {
          "iata_code": {
            "title": "Iata Code",
            "type": "string"
          },
          "logo_url": {
            "default": null,
            "nullable": true,
            "title": "Logo Url",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "iata_code",
          "name"
        ],
        "title": "FlightCancellationAirline",
        "type": "object"
      },
      "FlightCancellationAirlineCredit": {
        "properties": {
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MoneyAmountSchema"
              }
            ],
            "description": "Airline credit amount and currency"
          },
          "credit_name": {
            "description": "Airline-provided credit description",
            "title": "Credit Name",
            "type": "string"
          },
          "issued_on": {
            "description": "Airline-provided credit issue date",
            "title": "Issued On",
            "type": "string"
          },
          "passenger_id": {
            "description": "Passenger receiving the airline credit",
            "title": "Passenger Id",
            "type": "string"
          }
        },
        "required": [
          "amount",
          "credit_name",
          "issued_on",
          "passenger_id"
        ],
        "title": "FlightCancellationAirlineCredit",
        "type": "object"
      },
      "FlightCancellationLegOption": {
        "description": "One flight of a split-ticket booking that can be cancelled on its own.\n\nAmounts are this flight's ticket's share of the entire-booking quote. An\namount the quote does not attribute to the ticket is null: unknown, not\nzero. The flight's own preview quotes the terms a confirmation executes.",
        "properties": {
          "amount_paid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MoneyAmountSchema"
              }
            ],
            "default": null,
            "description": "Amount paid for this flight's ticket; null when unknown",
            "nullable": true
          },
          "cancellation_fee": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MoneyAmountSchema"
              }
            ],
            "default": null,
            "description": "Nonzero cancellation fee for this flight; null when none or unknown",
            "nullable": true
          },
          "credit_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MoneyAmountSchema"
              }
            ],
            "default": null,
            "description": "Expected airline credit for this flight; null when unknown",
            "nullable": true
          },
          "flight_leg_index": {
            "description": "0-based leg in the booking's itinerary order. Pass it as flight_leg_index to preview cancelling only this flight.",
            "title": "Flight Leg Index",
            "type": "integer"
          },
          "outcome": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FlightCancellationTicketOutcome"
              }
            ],
            "default": null,
            "description": "What cancelling does to this flight's ticket: VOID (ticket voided), REFUND, CREDIT (value kept as airline credit), or FORFEIT (nothing back); null when unknown",
            "nullable": true
          },
          "refund_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MoneyAmountSchema"
              }
            ],
            "default": null,
            "description": "Expected cash refund for this flight; null when unknown",
            "nullable": true
          },
          "refund_to": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RefundTo"
              }
            ],
            "default": null,
            "description": "Where this flight's refund will be issued",
            "nullable": true
          },
          "segments": {
            "description": "Ordered flight segments of this leg, including connections",
            "items": {
              "$ref": "#/components/schemas/FlightCancellationSegment"
            },
            "title": "Segments",
            "type": "array"
          }
        },
        "required": [
          "flight_leg_index",
          "segments"
        ],
        "title": "FlightCancellationLegOption",
        "type": "object"
      },
      "FlightCancellationPreview": {
        "description": "Fresh, authoritative flight cancellation terms shown before confirmation.",
        "properties": {
          "airline_credits": {
            "description": "Airline credits issued instead of a payment-method refund",
            "items": {
              "$ref": "#/components/schemas/FlightCancellationAirlineCredit"
            },
            "title": "Airline Credits",
            "type": "array"
          },
          "amount_paid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MoneyAmountSchema"
              }
            ],
            "default": null,
            "description": "What was charged for what this cancellation covers, when known; the refund and any non-refundable part are measured against it",
            "nullable": true
          },
          "available_via_support": {
            "description": "Whether support may still cancel a non-self-serve booking",
            "title": "Available Via Support",
            "type": "boolean"
          },
          "blocked_reason": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BookingUnavailableCancellationReason"
              }
            ],
            "default": null,
            "description": "Canonical reason cancellation is unavailable",
            "nullable": true
          },
          "booking_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MoneyAmountSchema"
              }
            ],
            "description": "Amount for what these terms cancel: the booking's total, or only the selected flight's when flight_leg_index is set. The booking's total can include flights that were never ticketed or charged; amount_paid is what was charged. Null when the selected flight's amount is unknown",
            "nullable": true
          },
          "booking_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "description": "Public parent Ramp Travel booking UUID"
          },
          "booking_type": {
            "default": "FLIGHT",
            "enum": [
              "FLIGHT"
            ],
            "title": "Booking Type",
            "type": "string"
          },
          "booking_url": {
            "default": null,
            "description": "HTTPS URL for viewing the parent booking",
            "nullable": true,
            "title": "Booking Url",
            "type": "string"
          },
          "cancellable_legs": {
            "description": "Entire-booking previews of a split-ticket booking only: flights that can each be cancelled on their own right now, with that flight's share of this quote. Not covered by this preview_id; preview a flight with its flight_leg_index for the terms its cancellation executes. Empty when no flight can be cancelled separately.",
            "items": {
              "$ref": "#/components/schemas/FlightCancellationLegOption"
            },
            "title": "Cancellable Legs",
            "type": "array"
          },
          "cancellation_deadline": {
            "default": null,
            "description": "Current cancellation deadline, including its UTC offset",
            "format": "date-time",
            "nullable": true,
            "title": "Cancellation Deadline",
            "type": "string"
          },
          "cancellation_fee": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MoneyAmountSchema"
              }
            ],
            "default": null,
            "description": "Nonzero cancellation fee, when available",
            "nullable": true
          },
          "cancellation_statement": {
            "description": "Canonical user-facing cancellation terms",
            "title": "Cancellation Statement",
            "type": "string"
          },
          "credit_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MoneyAmountSchema"
              }
            ],
            "default": null,
            "description": "Airline credit kept in addition to the cash refund_amount when a split-ticket booking's tickets settle differently; absent when there is no such credit or its value is unknown",
            "nullable": true
          },
          "flight_booking_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "description": "Flight reservation UUID, distinct from the parent booking UUID",
            "nullable": true
          },
          "flight_leg_index": {
            "default": null,
            "description": "0-based leg these terms cancel on its own, leaving the rest of the booking booked; null when they cancel the entire booking",
            "nullable": true,
            "title": "Flight Leg Index",
            "type": "integer"
          },
          "is_currently_cancellable": {
            "description": "Whether Core currently permits this booking to be cancelled",
            "title": "Is Currently Cancellable",
            "type": "boolean"
          },
          "itinerary": {
            "description": "Flights these terms cancel: the complete itinerary, or only the selected leg when flight_leg_index is set",
            "items": {
              "$ref": "#/components/schemas/FlightCancellationSlice"
            },
            "title": "Itinerary",
            "type": "array"
          },
          "message": {
            "description": "Required next step for the agent",
            "title": "Message",
            "type": "string"
          },
          "policy_disclaimer": {
            "description": "Disclaimer to show with the cancellation terms",
            "title": "Policy Disclaimer",
            "type": "string"
          },
          "preview_id": {
            "description": "Server-issued identifier for these exact terms. Pass it back unchanged with confirm=true after the user explicitly approves.",
            "title": "Preview Id",
            "type": "string"
          },
          "refund_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MoneyAmountSchema"
              }
            ],
            "default": null,
            "description": "Expected refund amount and currency, when available",
            "nullable": true
          },
          "refund_to": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RefundTo"
              }
            ],
            "default": null,
            "description": "Where the refund will be issued, when available",
            "nullable": true
          },
          "rendered_response": {
            "default": "",
            "description": "Authoritative cancellation copy in surface-neutral plain text. Display verbatim, without reconstructing or paraphrasing terms. Booking links are separate metadata, not part of this copy.",
            "title": "Rendered Response",
            "type": "string"
          },
          "support": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BookingSupportRouting"
              }
            ],
            "default": null,
            "description": "Booking-specific travel support channels",
            "nullable": true
          },
          "traveler_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "description": "Traveler user UUID"
          },
          "traveler_is_acting_user": {
            "description": "Whether the traveler is the user making this request. The authority on whose flight this is; traveler_name is for display only.",
            "title": "Traveler Is Acting User",
            "type": "boolean"
          },
          "traveler_name": {
            "description": "Traveler full name",
            "title": "Traveler Name",
            "type": "string"
          }
        },
        "required": [
          "airline_credits",
          "available_via_support",
          "booking_amount",
          "booking_id",
          "cancellation_statement",
          "is_currently_cancellable",
          "itinerary",
          "message",
          "preview_id",
          "traveler_id",
          "traveler_is_acting_user",
          "traveler_name"
        ],
        "title": "FlightCancellationPreview",
        "type": "object"
      },
      "FlightCancellationPreviewResponse": {
        "properties": {
          "preview": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FlightCancellationPreview"
              }
            ],
            "description": "Fresh terms that require explicit confirmation"
          },
          "response_type": {
            "default": "preview",
            "enum": [
              "preview"
            ],
            "title": "Response Type",
            "type": "string"
          }
        },
        "required": [
          "preview"
        ],
        "title": "FlightCancellationPreviewResponse",
        "type": "object"
      },
      "FlightCancellationResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/FlightCancellationResponseData"
          }
        ],
        "description": "Successful preview or result with structurally exclusive payloads.",
        "title": "FlightCancellationResponse"
      },
      "FlightCancellationResponseData": {
        "discriminator": {
          "mapping": {
            "preview": "#/components/schemas/FlightCancellationPreviewResponse",
            "result": "#/components/schemas/FlightCancellationResultResponse"
          },
          "propertyName": "response_type"
        },
        "oneOf": [
          {
            "$ref": "#/components/schemas/FlightCancellationPreviewResponse"
          },
          {
            "$ref": "#/components/schemas/FlightCancellationResultResponse"
          }
        ]
      },
      "FlightCancellationResult": {
        "properties": {
          "already_requested": {
            "description": "Whether this result came from an existing cancellation request",
            "title": "Already Requested",
            "type": "boolean"
          },
          "booking_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "description": "Public parent Ramp Travel booking UUID, once the booking exists",
            "nullable": true
          },
          "booking_request_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "description": "Booking request UUID when the booking is still being fulfilled",
            "nullable": true
          },
          "booking_type": {
            "default": "FLIGHT",
            "enum": [
              "FLIGHT"
            ],
            "title": "Booking Type",
            "type": "string"
          },
          "cancellation_state": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BookingCancellationState"
              }
            ],
            "description": "Canonical cancellation state; None means the final state is unavailable",
            "nullable": true
          },
          "cancelled": {
            "description": "Whether cancellation completed successfully",
            "title": "Cancelled",
            "type": "boolean"
          },
          "flight_leg_index": {
            "default": null,
            "description": "0-based leg cancelled on its own, leaving the rest of the booking booked; null when the request covered the entire booking",
            "nullable": true,
            "title": "Flight Leg Index",
            "type": "integer"
          },
          "message": {
            "description": "Canonical user-facing cancellation outcome. Relay verbatim.",
            "title": "Message",
            "type": "string"
          },
          "replacement_booking_request_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "description": "Booking request of the new flight replacing this one, when given",
            "nullable": true
          },
          "replacement_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReplacementBookingState"
              }
            ],
            "default": null,
            "description": "FULFILLED: the replacement is ticketed, so this flight's cancellation was requested now. PENDING: the replacement awaits approval or ticketing; nothing is cancelled yet, and this flight is cancelled automatically once it is ticketed, unless the terms got worse or the flight changed. FAILED: the replacement is not booked (it failed, or was rejected or cancelled); nothing was cancelled. PARTLY_CANCELLED: one of the replacement's flights is cancelled or being cancelled while its other flights stay booked; nothing was cancelled. Null when no replacement was given. Only FULFILLED means the new flight is confirmed.",
            "nullable": true
          },
          "support": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BookingSupportRouting"
              }
            ],
            "default": null,
            "description": "Booking-specific travel support channels",
            "nullable": true
          }
        },
        "required": [
          "already_requested",
          "cancellation_state",
          "cancelled",
          "message"
        ],
        "title": "FlightCancellationResult",
        "type": "object"
      },
      "FlightCancellationResultResponse": {
        "properties": {
          "response_type": {
            "default": "result",
            "enum": [
              "result"
            ],
            "title": "Response Type",
            "type": "string"
          },
          "result": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FlightCancellationResult"
              }
            ],
            "description": "Cancellation request outcome"
          }
        },
        "required": [
          "result"
        ],
        "title": "FlightCancellationResultResponse",
        "type": "object"
      },
      "FlightCancellationSegment": {
        "properties": {
          "arrival_airport": {
            "default": null,
            "description": "Arrival airport IATA code",
            "nullable": true,
            "title": "Arrival Airport",
            "type": "string"
          },
          "arrival_time": {
            "default": null,
            "description": "Scheduled arrival time in the arrival airport timezone",
            "format": "date-time",
            "nullable": true,
            "title": "Arrival Time",
            "type": "string"
          },
          "cabin_class": {
            "default": null,
            "description": "Booked cabin class, when available",
            "nullable": true,
            "title": "Cabin Class",
            "type": "string"
          },
          "departure_airport": {
            "default": null,
            "description": "Departure airport IATA code",
            "nullable": true,
            "title": "Departure Airport",
            "type": "string"
          },
          "departure_time": {
            "default": null,
            "description": "Scheduled departure time in the departure airport timezone",
            "format": "date-time",
            "nullable": true,
            "title": "Departure Time",
            "type": "string"
          },
          "flight_number": {
            "default": null,
            "description": "Flight number, when available",
            "nullable": true,
            "title": "Flight Number",
            "type": "string"
          },
          "marketing_airline": {
            "default": null,
            "description": "Marketing airline name, when available",
            "nullable": true,
            "title": "Marketing Airline",
            "type": "string"
          }
        },
        "title": "FlightCancellationSegment",
        "type": "object"
      },
      "FlightCancellationShape": {
        "description": "How what the traveler paid splits between refund, credit, and nothing back.",
        "enum": [
          "FULL_CREDIT",
          "FULL_REFUND",
          "NOTHING_BACK",
          "SPLIT",
          "UNKNOWN_AMOUNT"
        ],
        "title": "FlightCancellationShape",
        "type": "string"
      },
      "FlightCancellationSlice": {
        "properties": {
          "segments": {
            "description": "Ordered flight segments, including connections",
            "items": {
              "$ref": "#/components/schemas/FlightCancellationSegment"
            },
            "title": "Segments",
            "type": "array"
          }
        },
        "required": [
          "segments"
        ],
        "title": "FlightCancellationSlice",
        "type": "object"
      },
      "FlightCancellationTicketOutcome": {
        "description": "What cancelling does to one ticket.",
        "enum": [
          "CREDIT",
          "FORFEIT",
          "REFUND",
          "VOID"
        ],
        "title": "FlightCancellationTicketOutcome",
        "type": "string"
      },
      "FlightConnectivityPreferenceRequestBody": {
        "enum": [
          "starlink",
          "wifi"
        ],
        "title": "FlightConnectivityPreference",
        "type": "string"
      },
      "FlightConnectivitySegment": {
        "description": "The flight-segment fields needed for a Starlink or Wi-Fi lookup.\n\nSame key names as the canonical flight segment, so clients can read either.",
        "properties": {
          "arrival": {
            "$ref": "#/components/schemas/ConnectivityArrival"
          },
          "departure": {
            "$ref": "#/components/schemas/ConnectivityDeparture"
          },
          "display_flight_number": {
            "title": "Display Flight Number",
            "type": "string"
          },
          "flight_number": {
            "title": "Flight Number",
            "type": "string"
          },
          "marketing_carrier": {
            "$ref": "#/components/schemas/ConnectivityCarrier"
          },
          "operating_carrier": {
            "$ref": "#/components/schemas/ConnectivityCarrier"
          },
          "operating_flight_number": {
            "nullable": true,
            "title": "Operating Flight Number",
            "type": "string"
          },
          "technical_stops": {
            "items": {
              "$ref": "#/components/schemas/ConnectivityTechnicalStop"
            },
            "title": "Technical Stops",
            "type": "array"
          },
          "wifi_availability": {
            "$ref": "#/components/schemas/FlightWifiAvailability"
          }
        },
        "required": [
          "arrival",
          "departure",
          "display_flight_number",
          "flight_number",
          "marketing_carrier",
          "operating_carrier",
          "operating_flight_number",
          "technical_stops",
          "wifi_availability"
        ],
        "title": "FlightConnectivitySegment",
        "type": "object"
      },
      "FlightEstimatedFeeV1": {
        "description": "An estimated fee already included in a flight price (e.g. a low-cost\ncarrier's fees that the airline confirms only when it charges the card).\n\nThe name and description are the provider's traveler-facing copy: quote\nthem as given when explaining the price, never rename the fee.",
        "properties": {
          "amount": {
            "description": "Estimate for all travelers as an unformatted decimal string; already included in the price it belongs to.",
            "title": "Amount",
            "type": "string"
          },
          "currency": {
            "description": "ISO 4217 currency code for amount.",
            "title": "Currency",
            "type": "string"
          },
          "description": {
            "default": null,
            "description": "Traveler-facing explanation of the fee: what it is, when it applies and that the traveler is only charged what the airline bills. Use it verbatim when the traveler asks about the fee.",
            "nullable": true,
            "title": "Description",
            "type": "string"
          },
          "display_name": {
            "description": "Traveler-facing name of the fee, e.g. 'Mexico entry tax (estimate)'. Use this name verbatim.",
            "title": "Display Name",
            "type": "string"
          }
        },
        "required": [
          "amount",
          "currency",
          "display_name"
        ],
        "title": "FlightEstimatedFeeV1",
        "type": "object"
      },
      "FlightFareProgram": {
        "description": "Airline fare program a fare was priced under; public fares have none.",
        "enum": [
          "united_passplus"
        ],
        "title": "FlightFareProgram",
        "type": "string"
      },
      "FlightItinerarySliceV1": {
        "description": "One itinerary slice of a previewed flight, self-contained for the\nbooking review card. Every field is display-final; render verbatim.",
        "properties": {
          "airline_logo_url": {
            "default": null,
            "description": "Provider-hosted airline logo image URL; null when the provider has no logo.",
            "nullable": true,
            "title": "Airline Logo Url",
            "type": "string"
          },
          "airline_name": {
            "description": "Marketing airline name.",
            "title": "Airline Name",
            "type": "string"
          },
          "arrival_date_display": {
            "default": null,
            "description": "Display-final local arrival date for this slice, e.g. 'Mon Apr 6'.",
            "nullable": true,
            "title": "Arrival Date Display",
            "type": "string"
          },
          "arrival_time": {
            "description": "Formatted local arrival time.",
            "title": "Arrival Time",
            "type": "string"
          },
          "arrives_next_day": {
            "default": false,
            "description": "True when the slice arrives on a later calendar day than it departs (local dates).",
            "title": "Arrives Next Day",
            "type": "boolean"
          },
          "connectivity_segments": {
            "default": null,
            "description": "Stored segments of this quoted slice, for client-side connectivity indicators. No connectivity lookup is performed by booking.",
            "items": {
              "$ref": "#/components/schemas/FlightConnectivitySegment"
            },
            "nullable": true,
            "title": "Connectivity Segments",
            "type": "array"
          },
          "date_display": {
            "description": "Display-final departure date for this slice, e.g. 'Sun Apr 5'. The result's outbound_date/return_date stay canonical.",
            "title": "Date Display",
            "type": "string"
          },
          "departure_time": {
            "description": "Formatted local departure time.",
            "title": "Departure Time",
            "type": "string"
          },
          "destination_airport": {
            "description": "Arrival airport IATA code.",
            "title": "Destination Airport",
            "type": "string"
          },
          "duration": {
            "description": "Slice duration, e.g. '5 hr 30 min'.",
            "title": "Duration",
            "type": "string"
          },
          "fare_name": {
            "default": null,
            "description": "Branded fare name for this slice, e.g. 'Main Cabin'. Slices can differ, such as on split tickets; null when the provider has none.",
            "nullable": true,
            "title": "Fare Name",
            "type": "string"
          },
          "flight_number": {
            "description": "Marketing carrier code plus flight number, e.g. 'UA1149'.",
            "title": "Flight Number",
            "type": "string"
          },
          "flights_display": {
            "description": "Display-final marketing airline and flight number per segment, in travel order. Copy verbatim; do not strip carrier codes from flight_number.",
            "items": {
              "type": "string"
            },
            "title": "Flights Display",
            "type": "array"
          },
          "origin_airport": {
            "description": "Departure airport IATA code.",
            "title": "Origin Airport",
            "type": "string"
          },
          "slice_id": {
            "description": "Stable provider slice identifier for this itinerary slice. Matches ticket_price_breakdown[].slice_id, so clients can associate each per-ticket price with its slice directly instead of relying on array position.",
            "title": "Slice Id",
            "type": "string"
          },
          "starlink": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Starlink"
              }
            ],
            "default": null,
            "description": "SMS travel visuals only: Starlink the flight search's option card showed for this nonstop slice. Omitted when unknown; never a guarantee.",
            "nullable": true
          },
          "stops": {
            "description": "Number of stops, e.g. 'Nonstop' or '1 stop'.",
            "title": "Stops",
            "type": "string"
          }
        },
        "required": [
          "airline_name",
          "arrival_time",
          "date_display",
          "departure_time",
          "destination_airport",
          "duration",
          "flight_number",
          "origin_airport",
          "slice_id",
          "stops"
        ],
        "title": "FlightItinerarySliceV1",
        "type": "object"
      },
      "FlightLiveStatusDetail": {
        "description": "Airline-reported day-of-travel status for one flight.",
        "properties": {
          "actual_arrival_time": {
            "default": null,
            "description": "When the flight actually arrived, in the arrival airport's local timezone.",
            "format": "date-time",
            "nullable": true,
            "title": "Actual Arrival Time",
            "type": "string"
          },
          "actual_departure_time": {
            "default": null,
            "description": "When the flight actually departed, in the departure airport's local timezone.",
            "format": "date-time",
            "nullable": true,
            "title": "Actual Departure Time",
            "type": "string"
          },
          "airline_lifecycle": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FlightStatusLifecycle"
              }
            ],
            "default": null,
            "description": "Latest progress the airline has confirmed: DEPARTED, LANDED, or ARRIVED (at the gate) prove the leg departed or landed. SCHEDULED only means no departure is reported yet; when source is 'stale' the leg may already be flying. Do not narrate it.",
            "nullable": true
          },
          "arrival_gate": {
            "default": null,
            "description": "Arrival gate. Null means not assigned yet.",
            "nullable": true,
            "title": "Arrival Gate",
            "type": "string"
          },
          "arrival_terminal": {
            "default": null,
            "description": "Arrival terminal. Null means not reported yet.",
            "nullable": true,
            "title": "Arrival Terminal",
            "type": "string"
          },
          "as_of": {
            "description": "When the airline last reported this status (UTC).",
            "format": "date-time",
            "title": "As Of",
            "type": "string"
          },
          "badge": {
            "allOf": [
              {
                "$ref": "#/components/schemas/LiveStatusBadge"
              }
            ],
            "description": "Punctuality: on_time, early, delayed, canceled (by the airline), diverted, or unknown when the status is stale."
          },
          "baggage_carousel": {
            "default": null,
            "description": "Baggage claim carousel at the arrival airport. Null means the airline has not posted it yet; do not guess one.",
            "nullable": true,
            "title": "Baggage Carousel",
            "type": "string"
          },
          "delay_minutes": {
            "default": null,
            "description": "Reported delay in minutes, when delayed.",
            "nullable": true,
            "title": "Delay Minutes",
            "type": "integer"
          },
          "departure_gate": {
            "default": null,
            "description": "Departure gate. Null means not assigned yet.",
            "nullable": true,
            "title": "Departure Gate",
            "type": "string"
          },
          "departure_terminal": {
            "default": null,
            "description": "Departure terminal. Null means not reported yet.",
            "nullable": true,
            "title": "Departure Terminal",
            "type": "string"
          },
          "diverted_airport": {
            "default": null,
            "description": "Airport code the flight diverted to, if diverted.",
            "nullable": true,
            "title": "Diverted Airport",
            "type": "string"
          },
          "estimated_arrival_time": {
            "default": null,
            "description": "Airline's estimated arrival, in the arrival airport's local timezone.",
            "format": "date-time",
            "nullable": true,
            "title": "Estimated Arrival Time",
            "type": "string"
          },
          "estimated_departure_time": {
            "default": null,
            "description": "Airline's estimated departure, in the departure airport's local timezone.",
            "format": "date-time",
            "nullable": true,
            "title": "Estimated Departure Time",
            "type": "string"
          },
          "previous_departure_gate": {
            "default": null,
            "description": "Gate before a change in the last 30 minutes; null otherwise.",
            "nullable": true,
            "title": "Previous Departure Gate",
            "type": "string"
          },
          "previous_departure_terminal": {
            "default": null,
            "description": "Terminal before a change in the last 30 minutes; null otherwise.",
            "nullable": true,
            "title": "Previous Departure Terminal",
            "type": "string"
          },
          "source": {
            "allOf": [
              {
                "$ref": "#/components/schemas/LiveStatusSource"
              }
            ],
            "description": "'live': the airline feed is current. 'stale': the feed went quiet past a milestone it should have reported; if you relay a gate or time, say it may be out of date."
          }
        },
        "required": [
          "as_of",
          "badge",
          "source"
        ],
        "title": "FlightLiveStatusDetail",
        "type": "object"
      },
      "FlightLocation": {
        "properties": {
          "city": {
            "nullable": true,
            "title": "City",
            "type": "string"
          },
          "country_code": {
            "nullable": true,
            "title": "Country Code",
            "type": "string"
          },
          "group": {
            "nullable": true,
            "title": "Group",
            "type": "string"
          },
          "iata_code": {
            "nullable": true,
            "title": "Iata Code",
            "type": "string"
          },
          "latitude": {
            "title": "Latitude",
            "type": "number"
          },
          "longitude": {
            "title": "Longitude",
            "type": "number"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "search_code": {
            "description": "Flight search departure/arrival code. Airports use their IATA code; cities use a Ramp city id that searches every airport in the metro.",
            "title": "Search Code",
            "type": "string"
          },
          "state_code": {
            "nullable": true,
            "title": "State Code",
            "type": "string"
          },
          "timezone": {
            "nullable": true,
            "title": "Timezone",
            "type": "string"
          },
          "type": {
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "city",
          "country_code",
          "group",
          "iata_code",
          "latitude",
          "longitude",
          "name",
          "search_code",
          "state_code",
          "timezone",
          "type"
        ],
        "title": "FlightLocation",
        "type": "object"
      },
      "FlightLocationSearchResult": {
        "properties": {
          "fallback_message": {
            "nullable": true,
            "title": "Fallback Message",
            "type": "string"
          },
          "location_type_filter": {
            "title": "Location Type Filter",
            "type": "string"
          },
          "locations": {
            "items": {
              "$ref": "#/components/schemas/FlightLocation"
            },
            "title": "Locations",
            "type": "array"
          },
          "matched_options": {
            "description": "Geographic matches the user must choose between before locations with usable search_code values can be returned.",
            "items": {
              "type": "string"
            },
            "title": "Matched Options",
            "type": "array"
          },
          "note": {
            "nullable": true,
            "title": "Note",
            "type": "string"
          },
          "query": {
            "title": "Query",
            "type": "string"
          },
          "search_method": {
            "title": "Search Method",
            "type": "string"
          },
          "total_found": {
            "title": "Total Found",
            "type": "integer"
          }
        },
        "required": [
          "fallback_message",
          "location_type_filter",
          "locations",
          "note",
          "query",
          "search_method",
          "total_found"
        ],
        "title": "FlightLocationSearchResult",
        "type": "object"
      },
      "FlightModificationAncillary": {
        "description": "Provider-derived amenity or restriction for a replacement fare.",
        "properties": {
          "amount": {
            "default": null,
            "nullable": true,
            "title": "Amount",
            "type": "string"
          },
          "currency": {
            "default": null,
            "nullable": true,
            "title": "Currency",
            "type": "string"
          },
          "display_name": {
            "title": "Display Name",
            "type": "string"
          },
          "offer_type": {
            "enum": [
              "CHARGEABLE",
              "INCLUDED",
              "NOT_INCLUDED"
            ],
            "title": "Offer Type",
            "type": "string"
          },
          "price": {
            "default": null,
            "nullable": true,
            "title": "Price",
            "type": "string"
          }
        },
        "required": [
          "display_name",
          "offer_type"
        ],
        "title": "FlightModificationAncillary",
        "type": "object"
      },
      "FlightModificationEconomics": {
        "description": "Authoritative payment terms for the proposed flight exchange.",
        "properties": {
          "additional_collect": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MoneyAmountSchema"
              }
            ],
            "default": null,
            "description": "Additional amount charged for a more expensive flight",
            "nullable": true
          },
          "airline_credit": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MoneyAmountSchema"
              }
            ],
            "default": null,
            "description": "Residual value issued as airline credit",
            "nullable": true
          },
          "change_fee": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MoneyAmountSchema"
              }
            ],
            "default": null,
            "description": "Airline change fee included in the exchange terms",
            "nullable": true
          },
          "forfeited_residual": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MoneyAmountSchema"
              }
            ],
            "default": null,
            "description": "Residual value forfeited under the exchange terms",
            "nullable": true
          },
          "new_total": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MoneyAmountSchema"
              }
            ],
            "default": null,
            "description": "Total price of the whole booking after the exchange, including any separately ticketed legs it keeps unchanged. Null when that total cannot be determined.",
            "nullable": true
          },
          "original_total": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MoneyAmountSchema"
              }
            ],
            "default": null,
            "description": "Total fare value of the current itinerary immediately before this exchange, covering the same travelers and tickets and using the same booking scope and currency as new_total. Null when the provider cannot supply an authoritative comparable amount; it is never derived from new_total and the change amounts.",
            "nullable": true
          },
          "payment_outcome": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FlightModificationPaymentOutcome"
              }
            ],
            "description": "How the fare difference will be settled"
          },
          "pricing_is_final": {
            "description": "Whether the airline has finalized these amounts. When False the airline still reports them as estimates that can change when the ticket is reissued.",
            "title": "Pricing Is Final",
            "type": "boolean"
          },
          "refund_to_original_form_of_payment": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MoneyAmountSchema"
              }
            ],
            "default": null,
            "description": "Refund returned to the original payment method",
            "nullable": true
          }
        },
        "required": [
          "payment_outcome",
          "pricing_is_final"
        ],
        "title": "FlightModificationEconomics",
        "type": "object"
      },
      "FlightModificationEligibility": {
        "description": "Executable modification channel after provider and Ramp capability checks.",
        "enum": [
          "MODIFIABLE_VIA_CHAT",
          "MODIFIABLE_VIA_UI",
          "NOT_MODIFIABLE",
          "PARTIALLY_MODIFIABLE",
          "VOID_AND_REBOOK"
        ],
        "title": "FlightModificationEligibility",
        "type": "string"
      },
      "FlightModificationFareOption": {
        "description": "One bookable fare class for a replacement flight.\n\nExchange economics are per fare: a cheaper fare may return residual value\nas airline credit while a pricier one refunds to the original form of\npayment, and each fare carries its own policy verdict.",
        "properties": {
          "ancillaries": {
            "description": "Provider-derived amenities and restrictions for this fare. A missing category is unknown, not excluded.",
            "items": {
              "$ref": "#/components/schemas/FlightModificationAncillary"
            },
            "title": "Ancillaries",
            "type": "array"
          },
          "change_amount": {
            "default": null,
            "description": "Signed price difference per ticket for this fare as a decimal string. Negative means value comes back to the traveler. Null means the provider did not price the exchange for this fare; that is unknown, not zero.",
            "nullable": true,
            "title": "Change Amount",
            "type": "string"
          },
          "currency": {
            "description": "ISO 4217 currency code for change_amount, e.g. 'USD'.",
            "title": "Currency",
            "type": "string"
          },
          "fare_category": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FareCategoryDisplayEnum"
              }
            ],
            "default": null,
            "description": "Standardized cabin for this fare: 'Basic Economy', 'Economy', 'Economy Plus', 'Premium', 'Business', or 'First'. Null when the provider does not classify the fare.",
            "nullable": true
          },
          "id": {
            "description": "Pass this ID to SubmitFlightModification to select this fare",
            "title": "Id",
            "type": "string"
          },
          "in_policy": {
            "default": null,
            "description": "Policy verdict for this specific fare: True in policy, False out of policy (requires approval), None unevaluated.",
            "nullable": true,
            "title": "In Policy",
            "type": "boolean"
          },
          "is_category_default": {
            "default": false,
            "description": "True for the fare this cabin category books by default; false for the category's alternative fares. Several categories can each have their own default.",
            "title": "Is Category Default",
            "type": "boolean"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "policy_violations": {
            "description": "Policy violation descriptions backing in_policy for this fare.",
            "items": {
              "type": "string"
            },
            "title": "Policy Violations",
            "type": "array"
          },
          "refund_to": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RefundTo"
              }
            ],
            "default": null,
            "description": "Where residual value returns for this fare. Null when the provider does not say.",
            "nullable": true
          },
          "total_amount": {
            "default": null,
            "description": "Full replacement fare per ticket for this fare, when available.",
            "nullable": true,
            "title": "Total Amount",
            "type": "string"
          }
        },
        "required": [
          "ancillaries",
          "change_amount",
          "currency",
          "fare_category",
          "id",
          "in_policy",
          "is_category_default",
          "name",
          "policy_violations",
          "refund_to",
          "total_amount"
        ],
        "title": "FlightModificationFareOption",
        "type": "object"
      },
      "FlightModificationFund": {
        "properties": {
          "fund_name": {
            "title": "Fund Name",
            "type": "string"
          }
        },
        "required": [
          "fund_name"
        ],
        "title": "FlightModificationFund",
        "type": "object"
      },
      "FlightModificationLoyaltyProgram": {
        "properties": {
          "display_name": {
            "title": "Display Name",
            "type": "string"
          },
          "logo_url": {
            "default": null,
            "nullable": true,
            "title": "Logo Url",
            "type": "string"
          }
        },
        "required": [
          "display_name"
        ],
        "title": "FlightModificationLoyaltyProgram",
        "type": "object"
      },
      "FlightModificationOffer": {
        "description": "A replacement itinerary the traveler can exchange into.",
        "properties": {
          "ancillaries": {
            "description": "Provider-derived amenities and restrictions for the fare selected by this offer's top-level id. A missing category is unknown, not excluded.",
            "items": {
              "$ref": "#/components/schemas/FlightModificationAncillary"
            },
            "title": "Ancillaries",
            "type": "array"
          },
          "blocked_reasons": {
            "description": "Customer-facing reasons from the booking rules that block this replacement, safe to show verbatim. Empty unless is_blocked.",
            "items": {
              "type": "string"
            },
            "title": "Blocked Reasons",
            "type": "array"
          },
          "change_amount": {
            "default": null,
            "description": "Signed estimated price difference per ticket as a decimal string. Negative means value comes back to the traveler. Null means the provider did not price the exchange; that is unknown, not zero, so do not tell the traveler the change is free. When fare_options is non-empty this describes the fare that this offer's top-level id books, so compare each fare option's own change_amount before selecting a different fare's id.",
            "nullable": true,
            "title": "Change Amount",
            "type": "string"
          },
          "currency": {
            "description": "ISO 4217 currency code for change_amount and total_amount.",
            "title": "Currency",
            "type": "string"
          },
          "fare_options": {
            "description": "Every fare class priced for this replacement itinerary, flattened across cabin categories. Use fare_category to group them and is_category_default to identify each category's primary fare.",
            "items": {
              "$ref": "#/components/schemas/FlightModificationFareOption"
            },
            "title": "Fare Options",
            "type": "array"
          },
          "id": {
            "description": "Modification offer or selected fare ID. For a two-leg change, pass this as selected_outbound_offer_id to SearchFlightModifications. Otherwise pass it to SubmitFlightModification.",
            "title": "Id",
            "type": "string"
          },
          "in_policy": {
            "default": null,
            "description": "Policy verdict for the fare this offer's top-level id books: True in policy, False out of policy (requires approval), None unevaluated. When fare_options is non-empty this describes only that default fare, so check each fare option's own in_policy before selecting a different fare's id.",
            "nullable": true,
            "title": "In Policy",
            "type": "boolean"
          },
          "is_blocked": {
            "default": false,
            "description": "True when the company's booking rules block every fare of this replacement, so it can't be booked. Blocked replacements are shown only when nothing the rules allow was found; never offer to book one.",
            "title": "Is Blocked",
            "type": "boolean"
          },
          "itinerary": {
            "items": {
              "$ref": "#/components/schemas/FlightModificationSlice"
            },
            "title": "Itinerary",
            "type": "array"
          },
          "policy_violations": {
            "description": "Policy violation descriptions backing in_policy, describing the same fare that in_policy describes.",
            "items": {
              "type": "string"
            },
            "title": "Policy Violations",
            "type": "array"
          },
          "refund_to": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RefundTo"
              }
            ],
            "default": null,
            "description": "Where residual value returns for the fare this offer's top-level id books. Null when the provider does not say.",
            "nullable": true
          },
          "total_amount": {
            "description": "New total fare per ticket as a decimal string, denominated in currency. This is the replacement itinerary's full price, not the amount due; change_amount is what the exchange costs. Per ticket, so it is not directly comparable to current_total_amount, which covers the whole booking.",
            "title": "Total Amount",
            "type": "string"
          }
        },
        "required": [
          "ancillaries",
          "blocked_reasons",
          "change_amount",
          "currency",
          "fare_options",
          "id",
          "in_policy",
          "is_blocked",
          "itinerary",
          "policy_violations",
          "refund_to",
          "total_amount"
        ],
        "title": "FlightModificationOffer",
        "type": "object"
      },
      "FlightModificationPaymentOutcome": {
        "enum": [
          "additional_collect",
          "airline_credit",
          "forfeited_residual",
          "no_change",
          "refund_to_original_form_of_payment"
        ],
        "title": "FlightModificationPaymentOutcome",
        "type": "string"
      },
      "FlightModificationPreview": {
        "description": "Fresh, authoritative flight modification terms shown before confirmation.",
        "properties": {
          "booking_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "description": "Public parent Ramp Travel booking UUID"
          },
          "economics": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FlightModificationEconomics"
              }
            ],
            "description": "Authoritative payment terms for the proposed exchange"
          },
          "fund": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FlightModificationFund"
              }
            ],
            "default": null,
            "description": "Original booking fund charged for an additional collect. Null for other payment outcomes, when a UATP card pays the new fare instead of a fund (see uatp_program), or when the fund name is unavailable.",
            "nullable": true
          },
          "in_policy": {
            "description": "Policy verdict for the replacement offer: True in policy, False out of policy, None unevaluated.",
            "nullable": true,
            "title": "In Policy",
            "type": "boolean"
          },
          "loyalty_programs": {
            "description": "Loyalty programs recorded on the original flight booking",
            "items": {
              "$ref": "#/components/schemas/FlightModificationLoyaltyProgram"
            },
            "title": "Loyalty Programs",
            "type": "array"
          },
          "offer_id": {
            "description": "Selected replacement flight offer UUID",
            "title": "Offer Id",
            "type": "string"
          },
          "original_itinerary": {
            "description": "Complete ordered original booking itinerary; each slice's leg_index is its zero-based position here",
            "items": {
              "$ref": "#/components/schemas/FlightModificationSlice"
            },
            "title": "Original Itinerary",
            "type": "array"
          },
          "policy_violations": {
            "description": "Travel policy violations on the replacement offer",
            "items": {
              "type": "string"
            },
            "title": "Policy Violations",
            "type": "array"
          },
          "preview_id": {
            "description": "Server-issued identifier for these exact terms. Pass it back unchanged with confirm=true after the user explicitly approves.",
            "title": "Preview Id",
            "type": "string"
          },
          "replaced_leg_indexes": {
            "description": "Zero-based indices into original_itinerary for the slices being replaced; empty when the mapping is ambiguous",
            "items": {
              "type": "integer"
            },
            "title": "Replaced Leg Indexes",
            "type": "array"
          },
          "replacement_itinerary": {
            "description": "Only the replaced slices, in quote order; each known leg_index refers to its zero-based position in original_itinerary, or null when the original leg cannot be identified",
            "items": {
              "$ref": "#/components/schemas/FlightModificationSlice"
            },
            "title": "Replacement Itinerary",
            "type": "array"
          },
          "traveler_name_display": {
            "default": null,
            "description": "Display-ready full name of the booked traveler",
            "nullable": true,
            "title": "Traveler Name Display",
            "type": "string"
          },
          "trip_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FlightTripType"
              }
            ],
            "description": "Shape of the complete original booking: reciprocal two-leg trip is ROUND_TRIP; a single leg is ONE_WAY; otherwise MULTI_CITY"
          },
          "uatp_program": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UatpProgram"
              }
            ],
            "default": null,
            "description": "UATP card program that pays the new fare, such as UNITED_PASSPLUS. Null when the Ramp card and booking fund pay it.",
            "nullable": true
          }
        },
        "required": [
          "booking_id",
          "economics",
          "in_policy",
          "offer_id",
          "original_itinerary",
          "policy_violations",
          "preview_id",
          "replaced_leg_indexes",
          "replacement_itinerary",
          "trip_type"
        ],
        "title": "FlightModificationPreview",
        "type": "object"
      },
      "FlightModificationPreviewResponse": {
        "properties": {
          "assistant_note": {
            "description": "Required next step addressed to the assistant reading this preview; always present. Follow it before calling this tool again. UI clients should ignore it.",
            "title": "Assistant Note",
            "type": "string"
          },
          "display_card_data": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FlightModificationPreview"
              }
            ],
            "default": null,
            "description": "Self-contained modification review card payload, populated only on UI-enabled surfaces. When present, the client renders the authoritative terms from this field and the assistant asks one brief confirmation question without repeating any card details.",
            "nullable": true
          },
          "preview": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FlightModificationPreview"
              }
            ],
            "description": "Fresh terms that require explicit confirmation, including replacement terms returned after a confirm call detects a changed preview"
          },
          "response_type": {
            "description": "Identifies terms requiring confirmation. A confirm call returns this instead of result when re-quoted terms changed; the new preview requires fresh explicit confirmation and must never be auto-confirmed.",
            "enum": [
              "preview"
            ],
            "title": "Response Type",
            "type": "string"
          }
        },
        "required": [
          "assistant_note",
          "preview",
          "response_type"
        ],
        "title": "FlightModificationPreviewResponse",
        "type": "object"
      },
      "FlightModificationRecommendedOffer": {
        "description": "A ranked replacement option with the reason it was picked.",
        "properties": {
          "offer": {
            "$ref": "#/components/schemas/FlightModificationOffer"
          },
          "rank": {
            "minimum": 1,
            "title": "Rank",
            "type": "integer"
          },
          "reason": {
            "description": "Why this replacement was recommended. Summarize it concisely when presenting the option; do not recite the full sentence.",
            "title": "Reason",
            "type": "string"
          },
          "reason_tags": {
            "default": null,
            "description": "Badge-sized labels derived from the same rules as reason, most-important-first. Null when no rule-derived tags apply.",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "title": "Reason Tags",
            "type": "array"
          },
          "tradeoff": {
            "default": null,
            "nullable": true,
            "title": "Tradeoff",
            "type": "string"
          }
        },
        "required": [
          "offer",
          "rank",
          "reason",
          "reason_tags",
          "tradeoff"
        ],
        "title": "FlightModificationRecommendedOffer",
        "type": "object"
      },
      "FlightModificationResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/FlightModificationResponseData"
          }
        ],
        "description": "Successful preview or result with structurally exclusive payloads.\n\nA confirm call can return a preview instead of a result when re-quoted terms\nchanged. No modification was submitted in that case; the new preview ID requires\nfresh explicit confirmation and must never be auto-confirmed.",
        "title": "FlightModificationResponse"
      },
      "FlightModificationResponseData": {
        "discriminator": {
          "mapping": {
            "preview": "#/components/schemas/FlightModificationPreviewResponse",
            "result": "#/components/schemas/FlightModificationResultResponse"
          },
          "propertyName": "response_type"
        },
        "oneOf": [
          {
            "$ref": "#/components/schemas/FlightModificationPreviewResponse"
          },
          {
            "$ref": "#/components/schemas/FlightModificationResultResponse"
          }
        ]
      },
      "FlightModificationResult": {
        "properties": {
          "already_requested": {
            "description": "Whether this result came from an existing modification request",
            "title": "Already Requested",
            "type": "boolean"
          },
          "booking_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "description": "Public parent Ramp Travel booking UUID"
          },
          "booking_request_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "description": "Submitted modification request UUID"
          },
          "confirmation_email": {
            "description": "Traveler email where the change confirmation will be sent.",
            "title": "Confirmation Email",
            "type": "string"
          },
          "deep_link": {
            "description": "Complete link to the modification booking request; paste verbatim in the reply",
            "title": "Deep Link",
            "type": "string"
          },
          "headline": {
            "description": "Localized authoritative user-facing headline for the modification outcome",
            "title": "Headline",
            "type": "string"
          },
          "message": {
            "description": "Localized authoritative user-facing context for a concise, natural modification summary",
            "title": "Message",
            "type": "string"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BookingRequestStatus"
              }
            ],
            "description": "Internal booking-request lifecycle status, not customer-facing copy. Do not restate or paraphrase this raw value; use headline and message to describe the outcome. This status does not mean ticketing or booking completion."
          },
          "web_url": {
            "default": null,
            "description": "Absolute web URL for the modification booking request. Share it instead of deep_link on surfaces that cannot open ror:// links",
            "nullable": true,
            "title": "Web Url",
            "type": "string"
          }
        },
        "required": [
          "already_requested",
          "booking_id",
          "booking_request_id",
          "confirmation_email",
          "deep_link",
          "headline",
          "message",
          "status"
        ],
        "title": "FlightModificationResult",
        "type": "object"
      },
      "FlightModificationResultResponse": {
        "properties": {
          "assistant_note": {
            "description": "Short presentation reminder for the assistant; UI clients should ignore it.",
            "title": "Assistant Note",
            "type": "string"
          },
          "response_type": {
            "description": "Identifies this response as a submitted request result. Result responses do not render a card; the internal status is omitted from model text.",
            "enum": [
              "result"
            ],
            "title": "Response Type",
            "type": "string"
          },
          "result": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FlightModificationResult"
              }
            ],
            "description": "Submitted outcome, including whether an existing request was reused and user-facing status meaning in headline and message."
          }
        },
        "required": [
          "assistant_note",
          "response_type",
          "result"
        ],
        "title": "FlightModificationResultResponse",
        "type": "object"
      },
      "FlightModificationSearchResult": {
        "properties": {
          "applied_preferences": {
            "description": "The inputs supplied for this booking's modification (on this or an earlier call), booked-cabin default, and loyalty affinity applied by the ranker. Saved comments are not interpreted by this search.",
            "items": {
              "$ref": "#/components/schemas/SearchFlightsAppliedPreferenceV1"
            },
            "title": "Applied Preferences",
            "type": "array"
          },
          "assistant_note": {
            "description": "Presentation and next-step instruction for the assistant. Follow it before making another flight-modification tool call. UI clients should ignore it.",
            "title": "Assistant Note",
            "type": "string"
          },
          "blocked_options": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BlockedOptionsV1"
              }
            ],
            "default": null,
            "description": "Replacement flights and fares the company's booking rules block. They are never recommended and are left out of offers while any replacement the rules allow was found; otherwise offers holds those replacements, each marked is_blocked, and only_blocked_results is true. Follow assistant_note when presenting it. None when nothing was blocked.",
            "nullable": true
          },
          "booking_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "description": "Public parent Ramp Travel booking UUID"
          },
          "current_itinerary": {
            "items": {
              "$ref": "#/components/schemas/FlightModificationSlice"
            },
            "title": "Current Itinerary",
            "type": "array"
          },
          "current_total_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MoneyAmountSchema"
              }
            ],
            "default": null,
            "description": "Current fare for the booking as it stands today, rendered with the current itinerary, covering the whole booking across all travelers. This is a different unit from each offer's total_amount, which is per ticket, so do not compare or subtract the two directly on a multi-traveler booking; multiply the per-ticket amount by the traveler count first. Null when the booking price is unavailable.",
            "nullable": true
          },
          "deferred_leg_indexes": {
            "description": "Requested legs of a split-ticket booking that this search did not cover, because each ticket is exchanged separately. Only one leg was searched; change each listed leg afterwards in its own search. Empty when every requested leg was searched.",
            "items": {
              "type": "integer"
            },
            "title": "Deferred Leg Indexes",
            "type": "array"
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "next_cursor": {
            "default": null,
            "nullable": true,
            "title": "Next Cursor",
            "type": "string"
          },
          "offers": {
            "description": "This page of replacement offers, ordered as the provider returned them. Recommended offers may instead use the selected fare option's ID, cabin and price for the same replacement itinerary.",
            "items": {
              "$ref": "#/components/schemas/FlightModificationOffer"
            },
            "title": "Offers",
            "type": "array"
          },
          "recommended_offers": {
            "description": "Up to 3 replacement options ranked to stay close to the original flight (same airline and departure window where possible) while favouring in-policy fares and the smallest change cost. Always present. Clients present these entries using their surface's supported format. Present them first, never substituting entries from offers. Ranked from this page of offers only, so a later page may hold a better option. Empty ([]) when there is nothing to rank; then present offers instead.",
            "items": {
              "$ref": "#/components/schemas/FlightModificationRecommendedOffer"
            },
            "maxItems": 3,
            "title": "Recommended Offers",
            "type": "array"
          },
          "web_modification_url": {
            "default": null,
            "description": "User-facing fallback link to the Ramp web flight modification flow for browsing every replacement option. End each recommendation turn with exactly `[See all results](<web_modification_url>)` on its own line, including when structured chat cards render. Never use another label such as `here`, and never emit the link more than once. Null when the link cannot be built.",
            "nullable": true,
            "title": "Web Modification Url",
            "type": "string"
          }
        },
        "required": [
          "applied_preferences",
          "assistant_note",
          "blocked_options",
          "booking_id",
          "current_itinerary",
          "current_total_amount",
          "deferred_leg_indexes",
          "message",
          "next_cursor",
          "offers",
          "recommended_offers",
          "web_modification_url"
        ],
        "title": "FlightModificationSearchResult",
        "type": "object"
      },
      "FlightModificationSegment": {
        "properties": {
          "arrival_airport": {
            "description": "Arrival airport code (e.g., 'JFK')",
            "title": "Arrival Airport",
            "type": "string"
          },
          "arrival_time": {
            "description": "Local arrival time at the arrival airport, with that airport's UTC offset. Show the local time as is; do not convert it.",
            "format": "date-time",
            "title": "Arrival Time",
            "type": "string"
          },
          "departure_airport": {
            "description": "Departure airport code (e.g., 'SFO')",
            "title": "Departure Airport",
            "type": "string"
          },
          "departure_time": {
            "description": "Local departure time at the departure airport, with that airport's UTC offset (e.g., '2027-01-15T16:44:00-08:00' is 4:44 PM in San Francisco). Show the local time as is; do not convert it.",
            "format": "date-time",
            "title": "Departure Time",
            "type": "string"
          },
          "flight_number": {
            "default": null,
            "description": "Flight number (e.g., 'UA 123'); null when unknown.",
            "nullable": true,
            "title": "Flight Number",
            "type": "string"
          },
          "marketing_airline": {
            "default": null,
            "description": "Marketing airline name (e.g., 'United'); null when unknown.",
            "nullable": true,
            "title": "Marketing Airline",
            "type": "string"
          }
        },
        "required": [
          "arrival_airport",
          "arrival_time",
          "departure_airport",
          "departure_time"
        ],
        "title": "FlightModificationSegment",
        "type": "object"
      },
      "FlightModificationSlice": {
        "properties": {
          "airline_logo_url": {
            "default": null,
            "description": "Provider-hosted marketing airline logo URL; null when unknown.",
            "nullable": true,
            "title": "Airline Logo Url",
            "type": "string"
          },
          "arrival_date_display": {
            "default": null,
            "description": "Display-final local arrival date, e.g. 'Mon Apr 6'; null when unknown.",
            "nullable": true,
            "title": "Arrival Date Display",
            "type": "string"
          },
          "arrives_next_day": {
            "default": null,
            "description": "True when the slice arrives on a later local calendar day, enabling the '+1D' indicator; null when unknown.",
            "nullable": true,
            "title": "Arrives Next Day",
            "type": "boolean"
          },
          "connectivity_segments": {
            "default": null,
            "description": "Stored segments of this booked, offered, or quoted slice, for client-side connectivity indicators. No connectivity lookup is performed by modification tools.",
            "items": {
              "$ref": "#/components/schemas/FlightConnectivitySegment"
            },
            "nullable": true,
            "title": "Connectivity Segments",
            "type": "array"
          },
          "date_display": {
            "default": null,
            "description": "Display-final departure date, e.g. 'Sun Apr 5'; null when unknown.",
            "nullable": true,
            "title": "Date Display",
            "type": "string"
          },
          "destination_city": {
            "default": null,
            "description": "Display city for the slice destination; null when unknown.",
            "nullable": true,
            "title": "Destination City",
            "type": "string"
          },
          "duration": {
            "default": null,
            "description": "Authoritative slice duration, e.g. '5 hr 30 min'; null when unknown.",
            "nullable": true,
            "title": "Duration",
            "type": "string"
          },
          "fare_category": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FareCategoryDisplayEnum"
              }
            ],
            "default": null,
            "description": "Standardized cabin for this leg: 'Basic Economy', 'Economy', 'Economy Plus', 'Premium', 'Business', or 'First'. Populated on current-itinerary legs and on the selected replacement itinerary in a modification preview and replacement search offers, using the selected/default fare category or the offered slice cabin. Null when the data does not establish a category.",
            "nullable": true
          },
          "flights_display": {
            "description": "Display-final marketing airline and flight number per segment, in travel order. Copy verbatim; do not strip carrier codes from segment flight_number values. Unknown carriers are not inferred.",
            "items": {
              "type": "string"
            },
            "title": "Flights Display",
            "type": "array"
          },
          "leg_index": {
            "default": null,
            "description": "0-based position of this leg in the booked itinerary; pass it as slice_modifications[].leg_index to replace this leg. On a search-result offer or a modification preview's replacement slice, this is the original leg being replaced; null when that leg is unknown.",
            "nullable": true,
            "title": "Leg Index",
            "type": "integer"
          },
          "origin_city": {
            "default": null,
            "description": "Display city for the slice origin; null when unknown.",
            "nullable": true,
            "title": "Origin City",
            "type": "string"
          },
          "segments": {
            "items": {
              "$ref": "#/components/schemas/FlightModificationSegment"
            },
            "title": "Segments",
            "type": "array"
          },
          "stops": {
            "default": null,
            "description": "Authoritative stop count, e.g. 'Nonstop' or '1 stop'; null when unknown.",
            "nullable": true,
            "title": "Stops",
            "type": "string"
          }
        },
        "required": [
          "airline_logo_url",
          "arrival_date_display",
          "arrives_next_day",
          "date_display",
          "destination_city",
          "duration",
          "fare_category",
          "flights_display",
          "leg_index",
          "origin_city",
          "segments",
          "stops"
        ],
        "title": "FlightModificationSlice",
        "type": "object"
      },
      "FlightPaymentLineV1": {
        "description": "One payer's share of the previewed fare.",
        "properties": {
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MoneyAmountSchema"
              }
            ],
            "description": "Part of the fare this payer covers. For a credit, excludes penalty_amount."
          },
          "credit_id": {
            "default": null,
            "description": "credit_id from available_airline_credits for an 'AIRLINE_CREDIT' line; null for other lines.",
            "nullable": true,
            "title": "Credit Id",
            "type": "string"
          },
          "is_estimated": {
            "description": "True when the airline confirms the amount only at ticketing.",
            "title": "Is Estimated",
            "type": "boolean"
          },
          "payment_method": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentMethodType"
              }
            ],
            "description": "'CARD' is the Ramp card, 'AIRLINE_CREDIT' a flight credit, 'UATP' a company UATP card such as United PassPlus."
          },
          "penalty_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MoneyAmountSchema"
              }
            ],
            "default": null,
            "description": "Credit redemption fee the airline deducts from the credit; null when none.",
            "nullable": true
          }
        },
        "required": [
          "amount",
          "is_estimated",
          "payment_method"
        ],
        "title": "FlightPaymentLineV1",
        "type": "object"
      },
      "FlightPhoneOptionV1": {
        "properties": {
          "card": {
            "description": "Ready GenUI `flight` component for this offer; copy it unchanged.",
            "type": "object"
          }
        },
        "required": [
          "card"
        ],
        "title": "FlightPhoneOptionV1",
        "type": "object"
      },
      "FlightPresentationRequestBody": {
        "description": "Offers the assistant chose to present from a search's current view.",
        "properties": {
          "offer_ids": {
            "description": "Offers from this job_id's view to present, in this order. An id may be an offer's id or a nested fare option's id; a fare option's id presents that flight at that fare, with its price, fare name, ancillaries, and policy verdict, and the presented id books that fare.",
            "items": {
              "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
            },
            "maxItems": 10,
            "minItems": 1,
            "title": "Offer Ids",
            "type": "array"
          },
          "reason": {
            "description": "A short traveler-facing reason shown on each presented offer.",
            "minLength": 1,
            "title": "Reason",
            "type": "string"
          },
          "role": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FlightPresentationRoleRequestBody"
              }
            ],
            "default": "recommended",
            "description": "recommended for your top pick, or alternative for other options, so clients can label them apart."
          }
        },
        "required": [
          "offer_ids",
          "reason"
        ],
        "title": "FlightPresentation",
        "type": "object"
      },
      "FlightPresentationRole": {
        "description": "How presented offers relate to the assistant's overall pick.",
        "enum": [
          "alternative",
          "recommended"
        ],
        "title": "FlightPresentationRole",
        "type": "string"
      },
      "FlightPresentationRoleRequestBody": {
        "description": "How presented offers relate to the assistant's overall pick.",
        "enum": [
          "alternative",
          "recommended"
        ],
        "title": "FlightPresentationRole",
        "type": "string"
      },
      "FlightQuoteAirlineCreditV1": {
        "description": "A traveler's flight credit that may apply to the previewed fare.",
        "properties": {
          "airline_iata_code": {
            "default": null,
            "description": "IATA code of the issuing airline, e.g. 'UA'",
            "nullable": true,
            "title": "Airline Iata Code",
            "type": "string"
          },
          "airline_name": {
            "default": null,
            "description": "Airline that issued the credit; null when unknown",
            "nullable": true,
            "title": "Airline Name",
            "type": "string"
          },
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MoneyAmountSchema"
              }
            ],
            "description": "Original credit value and currency. The airline may apply less than this to a fare and may keep any unused remainder."
          },
          "credit_id": {
            "description": "Ramp's id for this credit",
            "title": "Credit Id",
            "type": "string"
          },
          "expires_on": {
            "default": null,
            "description": "Last calendar day (UTC) the credit can be redeemed, inclusive; null when the airline set no expiry",
            "format": "date",
            "nullable": true,
            "title": "Expires On",
            "type": "string"
          },
          "is_selected": {
            "description": "True when this credit is already applied to the persisted quote, so payment_breakdown includes it.",
            "title": "Is Selected",
            "type": "boolean"
          },
          "issued_on": {
            "default": null,
            "description": "Date the airline issued it",
            "format": "date",
            "nullable": true,
            "title": "Issued On",
            "type": "string"
          },
          "provider": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FlightSourceType"
              }
            ],
            "default": null,
            "description": "Flight provider that holds the credit; null for credits imported before the provider was recorded",
            "nullable": true
          },
          "redeemable_in_ramp": {
            "description": "True when status is 'redeemable' and Ramp Travel can apply this credit to a new fare. False for spent, expired, or invalidated credits.",
            "title": "Redeemable In Ramp",
            "type": "boolean"
          },
          "source_booking_id": {
            "default": null,
            "description": "Ramp booking id of the cancelled flight that produced this credit; null when unknown",
            "nullable": true,
            "title": "Source Booking Id",
            "type": "string"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AirlineCreditStatus"
              }
            ],
            "description": "'redeemable' can be applied to a fare; 'spent', 'expired', and 'invalidated' cannot."
          },
          "traveler_name": {
            "default": null,
            "description": "Name on the credit; airlines only accept it for this traveler",
            "nullable": true,
            "title": "Traveler Name",
            "type": "string"
          }
        },
        "required": [
          "amount",
          "credit_id",
          "is_selected",
          "redeemable_in_ramp",
          "status"
        ],
        "title": "FlightQuoteAirlineCreditV1",
        "type": "object"
      },
      "FlightRefundDestination": {
        "description": "Where one ticket's refund or credit goes.",
        "properties": {
          "airline_iata": {
            "default": null,
            "nullable": true,
            "title": "Airline Iata",
            "type": "string"
          },
          "type": {
            "$ref": "#/components/schemas/FlightRefundDestinationType"
          },
          "uatp_program": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UatpProgram"
              }
            ],
            "default": null,
            "nullable": true
          }
        },
        "required": [
          "type"
        ],
        "title": "FlightRefundDestination",
        "type": "object"
      },
      "FlightRefundDestinationType": {
        "enum": [
          "AIRLINE_CREDIT",
          "NONE",
          "RAMP_CARD",
          "UATP_ACCOUNT",
          "UNKNOWN"
        ],
        "title": "FlightRefundDestinationType",
        "type": "string"
      },
      "FlightSearchSortKeyRequestBody": {
        "enum": [
          "EARLIEST_ARRIVAL_TIME",
          "EARLIEST_DEPARTURE_TIME",
          "LATEST_ARRIVAL_TIME",
          "LATEST_DEPARTURE_TIME",
          "LEAST_NUMBER_OF_STOPS",
          "LOWEST_TOTAL_AMOUNT",
          "SHORTEST_DURATION",
          "WEIGHTED_SCORE"
        ],
        "title": "FlightSearchSortKey",
        "type": "string"
      },
      "FlightSeatOptionV1": {
        "description": "One selectable seat on a quoted flight segment.",
        "properties": {
          "amount": {
            "description": "Seat price as an unformatted decimal string.",
            "title": "Amount",
            "type": "string"
          },
          "currency": {
            "description": "ISO 4217 currency code for amount.",
            "title": "Currency",
            "type": "string"
          },
          "designator": {
            "description": "Seat label, e.g. '18F'.",
            "title": "Designator",
            "type": "string"
          },
          "disclosures": {
            "description": "Provider disclosures for this seat, such as limited recline.",
            "items": {
              "type": "string"
            },
            "title": "Disclosures",
            "type": "array"
          },
          "position": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FlightSeatPosition"
              }
            ],
            "default": null,
            "description": "Cabin position derived from the seat-map row geometry: 'window', 'aisle', or 'middle'; null when it cannot be determined.",
            "nullable": true
          },
          "segment_id": {
            "description": "Provider segment id this seat applies to.",
            "title": "Segment Id",
            "type": "string"
          },
          "selected": {
            "description": "Whether this seat is already selected on the persisted quote.",
            "title": "Selected",
            "type": "boolean"
          },
          "service_id": {
            "description": "Opaque provider seat-service id. Retain it for a later seat-selection call.",
            "title": "Service Id",
            "type": "string"
          }
        },
        "required": [
          "amount",
          "currency",
          "designator",
          "segment_id",
          "selected",
          "service_id"
        ],
        "title": "FlightSeatOptionV1",
        "type": "object"
      },
      "FlightSeatPosition": {
        "description": "Cabin position of a seat.",
        "enum": [
          "aisle",
          "middle",
          "window"
        ],
        "title": "FlightSeatPosition",
        "type": "string"
      },
      "FlightSeatPositionRequestBody": {
        "description": "Cabin position of a seat.",
        "enum": [
          "aisle",
          "middle",
          "window"
        ],
        "title": "FlightSeatPosition",
        "type": "string"
      },
      "FlightSeatSelectionRequestBody": {
        "properties": {
          "segment_id": {
            "title": "Segment Id",
            "type": "string"
          },
          "service_id": {
            "nullable": true,
            "title": "Service Id",
            "type": "string"
          }
        },
        "required": [
          "segment_id",
          "service_id"
        ],
        "title": "FlightSeatSelection",
        "type": "object"
      },
      "FlightSegmentDetail": {
        "description": "One physical flight within an itinerary leg.",
        "properties": {
          "aircraft": {
            "default": null,
            "description": "Aircraft model (e.g., 'Boeing 737-MAX-8').",
            "nullable": true,
            "title": "Aircraft",
            "type": "string"
          },
          "airline": {
            "default": null,
            "description": "Marketing airline that sold this segment.",
            "nullable": true,
            "title": "Airline",
            "type": "string"
          },
          "airline_confirmation_number": {
            "default": null,
            "description": "Airline confirmation number (record locator) for this segment, the code the operating airline recognizes at check-in. Null when the inventory source did not report one.",
            "nullable": true,
            "title": "Airline Confirmation Number",
            "type": "string"
          },
          "arrival_airport": {
            "default": null,
            "description": "Arrival airport code (e.g., 'JFK').",
            "nullable": true,
            "title": "Arrival Airport",
            "type": "string"
          },
          "arrival_time": {
            "default": null,
            "description": "Scheduled arrival in the arrival airport's local timezone. Present the local calendar date and time and state the timezone; do not derive the date from UTC.",
            "format": "date-time",
            "nullable": true,
            "title": "Arrival Time",
            "type": "string"
          },
          "arrival_timezone": {
            "default": null,
            "description": "IANA timezone for arrival_time.",
            "nullable": true,
            "title": "Arrival Timezone",
            "type": "string"
          },
          "cabin_class": {
            "default": null,
            "description": "Cabin class for this segment.",
            "nullable": true,
            "title": "Cabin Class",
            "type": "string"
          },
          "departure_airport": {
            "default": null,
            "description": "Departure airport code (e.g., 'SFO').",
            "nullable": true,
            "title": "Departure Airport",
            "type": "string"
          },
          "departure_time": {
            "default": null,
            "description": "Scheduled departure in the departure airport's local timezone. Present the local calendar date and time and state the timezone; do not derive the date from UTC.",
            "format": "date-time",
            "nullable": true,
            "title": "Departure Time",
            "type": "string"
          },
          "departure_timezone": {
            "default": null,
            "description": "IANA timezone for departure_time.",
            "nullable": true,
            "title": "Departure Timezone",
            "type": "string"
          },
          "duration_in_minutes": {
            "default": null,
            "description": "Scheduled flying time for this segment.",
            "nullable": true,
            "title": "Duration In Minutes",
            "type": "integer"
          },
          "flight_number": {
            "default": null,
            "description": "Segment flight number (e.g., 'UA 100').",
            "nullable": true,
            "title": "Flight Number",
            "type": "string"
          },
          "layover_duration_in_minutes": {
            "default": null,
            "description": "Layover duration connected to this segment, when one exists.",
            "nullable": true,
            "title": "Layover Duration In Minutes",
            "type": "integer"
          },
          "layover_note": {
            "default": null,
            "description": "Ready-to-display layover message. Use this verbatim.",
            "nullable": true,
            "title": "Layover Note",
            "type": "string"
          },
          "live_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FlightLiveStatusDetail"
              }
            ],
            "default": null,
            "description": "Airline-reported gate, terminal, baggage carousel, and delay. Mention it only when the traveler asks about it or it changes what they should do (a delay, gate or terminal change, cancellation, or diversion). Present from 48 hours before departure until shortly after arrival for Ramp-booked flights the airline feed covers, unless the traveler's reservation for this leg is canceled. Null means no live status is available, not that there is no gate or delay.",
            "nullable": true
          },
          "operated_by": {
            "default": null,
            "description": "Operating airline, present only when it differs from airline (a codeshare). Tell the traveler to look for this carrier at the airport.",
            "nullable": true,
            "title": "Operated By",
            "type": "string"
          },
          "seat": {
            "default": null,
            "description": "Confirmed seat assignment for this segment (e.g., '14A'). Null means no seat is confirmed on this segment, not that none was requested.",
            "nullable": true,
            "title": "Seat",
            "type": "string"
          }
        },
        "title": "FlightSegmentDetail",
        "type": "object"
      },
      "FlightSegmentProviderStatus": {
        "description": "Stored reservation status for one matched booked flight, not ticket validity.",
        "properties": {
          "arrival_airport": {
            "description": "Booked arrival airport IATA code.",
            "title": "Arrival Airport",
            "type": "string"
          },
          "departure_airport": {
            "description": "Booked departure airport IATA code.",
            "title": "Departure Airport",
            "type": "string"
          },
          "departure_time": {
            "description": "Booked departure in the departure airport's local timezone, including its UTC offset.",
            "format": "date-time",
            "title": "Departure Time",
            "type": "string"
          },
          "flight_number": {
            "description": "Booked marketing flight, e.g. UA 100.",
            "title": "Flight Number",
            "type": "string"
          },
          "provider": {
            "description": "Underlying provider of this matched Atlas flight segment.",
            "enum": [
              "sabre",
              "spotnana"
            ],
            "title": "Provider",
            "type": "string"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AtlasPnrFlightSegmentStatus"
              }
            ],
            "description": "Stored segment reservation status, not ticket issuance, coupon validity, or check-in eligibility."
          },
          "status_code": {
            "description": "Raw segment reservation status, when supplied by the provider; not a live check.",
            "nullable": true,
            "title": "Status Code",
            "type": "string"
          }
        },
        "required": [
          "arrival_airport",
          "departure_airport",
          "departure_time",
          "flight_number",
          "provider",
          "status",
          "status_code"
        ],
        "title": "FlightSegmentProviderStatus",
        "type": "object"
      },
      "FlightSliceAncillaryInfo": {
        "description": "Provider-derived ancillary terms for one flight itinerary slice.",
        "properties": {
          "ancillaries": {
            "description": "Amenities and restrictions returned by the provider for this slice. A missing category is unknown, not excluded.",
            "items": {
              "$ref": "#/components/schemas/FlightAncillaryInfo"
            },
            "title": "Ancillaries",
            "type": "array"
          },
          "arrival_airport": {
            "description": "Arrival airport IATA code.",
            "title": "Arrival Airport",
            "type": "string"
          },
          "departure_airport": {
            "description": "Departure airport IATA code.",
            "title": "Departure Airport",
            "type": "string"
          },
          "source_slice_index": {
            "description": "Provider-derived itinerary index for this slice. It may be sparse or non-zero-based when the quote contains a filtered subset of the itinerary.",
            "title": "Source Slice Index",
            "type": "integer"
          }
        },
        "required": [
          "arrival_airport",
          "departure_airport",
          "source_slice_index"
        ],
        "title": "FlightSliceAncillaryInfo",
        "type": "object"
      },
      "FlightSliceDetail": {
        "description": "One itinerary leg, with its individual flights.",
        "properties": {
          "airline": {
            "default": null,
            "nullable": true,
            "title": "Airline",
            "type": "string"
          },
          "arrival_airport": {
            "default": null,
            "nullable": true,
            "title": "Arrival Airport",
            "type": "string"
          },
          "arrival_city": {
            "default": null,
            "nullable": true,
            "title": "Arrival City",
            "type": "string"
          },
          "arrival_time": {
            "default": null,
            "format": "date-time",
            "nullable": true,
            "title": "Arrival Time",
            "type": "string"
          },
          "arrival_timezone": {
            "default": null,
            "description": "IANA timezone for arrival_time at the arrival airport.",
            "nullable": true,
            "title": "Arrival Timezone",
            "type": "string"
          },
          "cabin_class": {
            "default": null,
            "nullable": true,
            "title": "Cabin Class",
            "type": "string"
          },
          "departure_airport": {
            "default": null,
            "nullable": true,
            "title": "Departure Airport",
            "type": "string"
          },
          "departure_time": {
            "default": null,
            "format": "date-time",
            "nullable": true,
            "title": "Departure Time",
            "type": "string"
          },
          "departure_timezone": {
            "default": null,
            "description": "IANA timezone for departure_time at the departure airport.",
            "nullable": true,
            "title": "Departure Timezone",
            "type": "string"
          },
          "duration_in_minutes": {
            "default": null,
            "description": "Total travel time for this leg, including layovers.",
            "nullable": true,
            "title": "Duration In Minutes",
            "type": "integer"
          },
          "fare_name": {
            "default": null,
            "description": "Fare brand for this leg (e.g., 'Basic Economy'). Fare brands determine seat selection, bag, and change entitlements.",
            "nullable": true,
            "title": "Fare Name",
            "type": "string"
          },
          "flight_number": {
            "default": null,
            "nullable": true,
            "title": "Flight Number",
            "type": "string"
          },
          "is_cancelled": {
            "default": false,
            "description": "True when this leg is cancelled. A leg can be cancelled on its own: the booking then stays confirmed for its other legs.",
            "title": "Is Cancelled",
            "type": "boolean"
          },
          "is_refundable": {
            "default": null,
            "description": "True only when this leg's fare is known to be fully refundable. False means not known to be refundable, not that a refund is impossible; use BookingCancellationDetails for cancellation outcomes.",
            "nullable": true,
            "title": "Is Refundable",
            "type": "boolean"
          },
          "number_of_stops": {
            "default": null,
            "description": "Number of stops on this leg. 0 means nonstop.",
            "nullable": true,
            "title": "Number Of Stops",
            "type": "integer"
          },
          "segments": {
            "description": "Each individual flight on this leg, in departure order. A leg with more than one segment is a connection.",
            "items": {
              "$ref": "#/components/schemas/FlightSegmentDetail"
            },
            "title": "Segments",
            "type": "array"
          }
        },
        "title": "FlightSliceDetail",
        "type": "object"
      },
      "FlightSliceDetails": {
        "description": "Extracted flight details from a FlightSlice.",
        "properties": {
          "airline": {
            "default": null,
            "nullable": true,
            "title": "Airline",
            "type": "string"
          },
          "arrival_airport": {
            "default": null,
            "nullable": true,
            "title": "Arrival Airport",
            "type": "string"
          },
          "arrival_city": {
            "default": null,
            "nullable": true,
            "title": "Arrival City",
            "type": "string"
          },
          "arrival_time": {
            "default": null,
            "format": "date-time",
            "nullable": true,
            "title": "Arrival Time",
            "type": "string"
          },
          "arrival_timezone": {
            "default": null,
            "description": "IANA timezone for arrival_time at the arrival airport.",
            "nullable": true,
            "title": "Arrival Timezone",
            "type": "string"
          },
          "cabin_class": {
            "default": null,
            "nullable": true,
            "title": "Cabin Class",
            "type": "string"
          },
          "departure_airport": {
            "default": null,
            "nullable": true,
            "title": "Departure Airport",
            "type": "string"
          },
          "departure_time": {
            "default": null,
            "format": "date-time",
            "nullable": true,
            "title": "Departure Time",
            "type": "string"
          },
          "departure_timezone": {
            "default": null,
            "description": "IANA timezone for departure_time at the departure airport.",
            "nullable": true,
            "title": "Departure Timezone",
            "type": "string"
          },
          "flight_number": {
            "default": null,
            "nullable": true,
            "title": "Flight Number",
            "type": "string"
          },
          "is_cancelled": {
            "default": false,
            "description": "True when this leg is cancelled. A leg can be cancelled on its own: the booking then stays confirmed for its other legs.",
            "title": "Is Cancelled",
            "type": "boolean"
          }
        },
        "title": "FlightSliceDetails",
        "type": "object"
      },
      "FlightSliceModificationInputRequestBody": {
        "additionalProperties": false,
        "properties": {
          "leg_index": {
            "default": null,
            "description": "0-based leg to replace, matching the order legs are listed in current_itinerary and GetBookings. Omit only for single-leg bookings.",
            "minimum": 0,
            "nullable": true,
            "title": "Leg Index",
            "type": "integer"
          },
          "new_departure_date": {
            "default": null,
            "description": "New departure date, date only (YYYY-MM-DD). Omit to keep the leg's booked date, such as for a same-day time change or a cabin change.",
            "format": "date",
            "nullable": true,
            "title": "New Departure Date",
            "type": "string"
          },
          "new_destination": {
            "default": null,
            "description": "New arrival airport IATA code",
            "nullable": true,
            "title": "New Destination",
            "type": "string"
          },
          "new_origin": {
            "default": null,
            "description": "New departure airport IATA code",
            "nullable": true,
            "title": "New Origin",
            "type": "string"
          }
        },
        "title": "FlightSliceModificationInput",
        "type": "object"
      },
      "FlightSourceType": {
        "enum": [
          "ATLAS",
          "DUFFEL",
          "FIXTURE",
          "PRICELINE"
        ],
        "title": "FlightSourceType",
        "type": "string"
      },
      "FlightStatusLifecycle": {
        "description": "Day-of-travel lifecycle of a physical flight, as reported by the provider.",
        "enum": [
          "ARRIVED",
          "CANCELLED",
          "DEPARTED",
          "DIVERTED",
          "LANDED",
          "SCHEDULED",
          "UNKNOWN"
        ],
        "title": "FlightStatusLifecycle",
        "type": "string"
      },
      "FlightTicketingStatus": {
        "description": "Ticketing lifecycle, tracked separately from the reservation status.\n\nBooking and ticketing are distinct steps for Atlas/Sabre: the PNR is created\n(reservation confirmed) before tickets are issued. ``BookingStatus`` describes\nthe reservation; this describes whether the tickets exist yet. \"Truly\nconfirmed / charged\" is keyed off ``TICKETED``, not the booking row's existence.",
        "enum": [
          "FAILED",
          "TICKETED",
          "TICKETING"
        ],
        "title": "FlightTicketingStatus",
        "type": "string"
      },
      "FlightTripType": {
        "enum": [
          "MULTI_CITY",
          "ONE_WAY",
          "ROUND_TRIP"
        ],
        "title": "FlightTripType",
        "type": "string"
      },
      "FlightWifiAvailability": {
        "enum": [
          "available",
          "unavailable",
          "unknown"
        ],
        "title": "FlightWifiAvailability",
        "type": "string"
      },
      "FullTransactionMetadata": {
        "properties": {
          "amount_cents": {
            "title": "Amount Cents",
            "type": "integer"
          },
          "amount_decimal": {
            "default": null,
            "description": "The amount in the major unit of `currency`, rounded to that currency's precision and rendered as an exact decimal string. Prefer this over `amount_cents`: it needs no minor-unit conversion. Null when the transaction has no known amount.",
            "nullable": true,
            "title": "Amount Decimal",
            "type": "string"
          },
          "comments": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CommentThreadContext"
              }
            ],
            "default": {
              "comments": [],
              "count": 0
            }
          },
          "created_at": {
            "title": "Created At",
            "type": "string"
          },
          "currency": {
            "default": null,
            "description": "ISO 4217 code `amount_decimal` is denominated in.",
            "nullable": true,
            "title": "Currency",
            "type": "string"
          },
          "fund_name": {
            "default": null,
            "nullable": true,
            "title": "Fund Name",
            "type": "string"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "line_items": {
            "description": "Canonical accounting split lines for the transaction. Empty when no lines exist; null when required provider, amount, or currency data is unavailable and persisted split lines cannot be read safely. Never plan a split mutation from a null value.",
            "items": {
              "$ref": "#/components/schemas/TransactionLineItem"
            },
            "nullable": true,
            "title": "Line Items",
            "type": "array"
          },
          "memo": {
            "nullable": true,
            "title": "Memo",
            "type": "string"
          },
          "memo_source": {
            "default": null,
            "nullable": true,
            "title": "Memo Source",
            "type": "string"
          },
          "merchant_name": {
            "nullable": true,
            "title": "Merchant Name",
            "type": "string"
          },
          "personal_repayment_state": {
            "default": null,
            "nullable": true,
            "title": "Personal Repayment State",
            "type": "string"
          },
          "synced_at": {
            "default": null,
            "description": "Time when the transaction was synced to the customer's accounting system, in ISO8601 format. Null if not yet synced.",
            "format": "date-time",
            "nullable": true,
            "title": "Synced At",
            "type": "string"
          },
          "tracking_categories": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/TrackingCategoryInfo"
            },
            "title": "Tracking Categories",
            "type": "array"
          },
          "user_name": {
            "default": null,
            "nullable": true,
            "title": "User Name",
            "type": "string"
          }
        },
        "required": [
          "amount_cents",
          "created_at",
          "id",
          "memo",
          "merchant_name"
        ],
        "title": "FullTransactionMetadata",
        "type": "object"
      },
      "FundBusinessEntity": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "title": "FundBusinessEntity",
        "type": "object"
      },
      "FundFieldState": {
        "properties": {
          "description": {
            "title": "Description",
            "type": "string"
          },
          "fulfilled": {
            "title": "Fulfilled",
            "type": "boolean"
          },
          "required": {
            "title": "Required",
            "type": "boolean"
          },
          "value": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FundFieldValue"
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "description",
          "fulfilled",
          "required",
          "value"
        ],
        "title": "FundFieldState",
        "type": "object"
      },
      "FundFieldValue": {
        "description": "Current fund selection with optional remaining balance.",
        "properties": {
          "fund_name": {
            "title": "Fund Name",
            "type": "string"
          },
          "fund_uuid": {
            "$ref": "#/components/schemas/EntityUUIDStr"
          },
          "remaining_balance": {
            "default": null,
            "nullable": true,
            "title": "Remaining Balance",
            "type": "number"
          }
        },
        "required": [
          "fund_name",
          "fund_uuid"
        ],
        "title": "FundFieldValue",
        "type": "object"
      },
      "FundInfo": {
        "properties": {
          "fund_name": {
            "title": "Fund Name",
            "type": "string"
          },
          "fund_uuid": {
            "$ref": "#/components/schemas/EntityUUIDStr"
          }
        },
        "required": [
          "fund_name",
          "fund_uuid"
        ],
        "title": "FundInfo",
        "type": "object"
      },
      "FundRequestLink": {
        "description": "Response containing the fund request link.",
        "properties": {
          "message_format": {
            "description": "Format of the message to send to the user",
            "title": "Message Format",
            "type": "string"
          },
          "url": {
            "description": "Full URL to the fund request page",
            "title": "Url",
            "type": "string"
          }
        },
        "required": [
          "message_format",
          "url"
        ],
        "title": "FundRequestLink",
        "type": "object"
      },
      "FundX402WalletRequestBody": {
        "description": "Fund the business's x402 wallet from a Ramp Checking Account.\n\nBefore calling, use ListBusinessAccounts to obtain the source account UUID;\nnever guess it. Confirm the exact source account and positive USD amount with\nthe user before creating this irreversible transfer. MCP and CLI callers must\nprovide an idempotency key. Only active Increase USD accounts are supported.",
        "properties": {
          "amount": {
            "description": "Exact positive USD amount the user confirmed for funding.",
            "oneOf": [
              {
                "exclusiveMinimum": true,
                "minimum": 0.0,
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "title": "Amount"
          },
          "idempotency_key": {
            "default": null,
            "description": "Caller-generated UUID used to prevent duplicate funding. Reuse it only when retrying the same request.",
            "format": "uuid",
            "nullable": true,
            "title": "Idempotency Key",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "source_wallet_account_uuid": {
            "description": "UUID of the source Ramp Checking Account returned by ListBusinessAccounts. Never guess an account UUID.",
            "format": "uuid",
            "title": "Source Wallet Account Uuid",
            "type": "string"
          }
        },
        "required": [
          "amount",
          "rationale",
          "source_wallet_account_uuid"
        ],
        "title": "FundX402Wallet",
        "type": "object"
      },
      "FundX402WalletResult": {
        "properties": {
          "amount": {
            "title": "Amount",
            "type": "number"
          },
          "currency": {
            "title": "Currency",
            "type": "string"
          },
          "destination_name": {
            "title": "Destination Name",
            "type": "string"
          },
          "source_name": {
            "title": "Source Name",
            "type": "string"
          },
          "status": {
            "title": "Status",
            "type": "string"
          },
          "transfer_uuid": {
            "title": "Transfer Uuid",
            "type": "string"
          }
        },
        "required": [
          "amount",
          "currency",
          "destination_name",
          "source_name",
          "status",
          "transfer_uuid"
        ],
        "title": "FundX402WalletResult",
        "type": "object"
      },
      "FundsToRetrieveRequestBody": {
        "enum": [
          "ALL_FUNDS",
          "MY_FUNDS"
        ],
        "title": "FundsToRetrieve",
        "type": "string"
      },
      "GBPCounterpartyDetails": {
        "additionalProperties": true,
        "description": "Bank account details for British pound payments.",
        "properties": {
          "account_name": {
            "description": "Name on the destination account.",
            "title": "Account Name",
            "type": "string"
          },
          "account_number": {
            "description": "Destination bank account number.",
            "title": "Account Number",
            "type": "string"
          },
          "bank_mailing_address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UnvalidatedMailingAddress"
              }
            ],
            "description": "Mailing address of the destination bank.",
            "title": "Bank Mailing Address"
          },
          "currency": {
            "default": "GBP",
            "description": "Currency of the destination account.",
            "enum": [
              "GBP"
            ],
            "title": "Currency",
            "type": "string"
          },
          "mailing_address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UnvalidatedMailingAddress"
              }
            ],
            "default": null,
            "description": "Mailing address of the counterparty.",
            "nullable": true
          },
          "payment_method": {
            "default": "INTERNATIONAL",
            "description": "Payment method.",
            "enum": [
              "INTERNATIONAL"
            ],
            "title": "Payment Method",
            "type": "string"
          },
          "sort_code": {
            "description": "Destination bank sort code.",
            "title": "Sort Code",
            "type": "string"
          },
          "type": {
            "default": "gbp",
            "description": "Counterparty details type.",
            "enum": [
              "gbp"
            ],
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "account_number",
          "sort_code"
        ],
        "title": "GBPCounterpartyDetails",
        "type": "object"
      },
      "GcpConfigurationMetadataSchema": {
        "properties": {
          "gcp_bigquery_dataset": {
            "default": null,
            "nullable": true,
            "title": "Gcp Bigquery Dataset",
            "type": "string"
          },
          "gcp_billing_account_id": {
            "default": null,
            "nullable": true,
            "title": "Gcp Billing Account Id",
            "type": "string"
          },
          "gcp_billing_project_id": {
            "default": null,
            "nullable": true,
            "title": "Gcp Billing Project Id",
            "type": "string"
          },
          "gcp_billing_table_name": {
            "default": null,
            "nullable": true,
            "title": "Gcp Billing Table Name",
            "type": "string"
          },
          "provider": {
            "default": "GCP",
            "enum": [
              "GCP"
            ],
            "title": "Provider",
            "type": "string"
          }
        },
        "required": [
          "gcp_bigquery_dataset",
          "gcp_billing_account_id",
          "gcp_billing_project_id",
          "gcp_billing_table_name",
          "provider"
        ],
        "title": "GcpConfigurationMetadataSchema",
        "type": "object"
      },
      "GetAccountBalanceHistoryOutput": {
        "properties": {
          "account_uuid": {
            "title": "Account Uuid",
            "type": "string"
          },
          "balances": {
            "items": {
              "$ref": "#/components/schemas/AccountDailyBalanceInfo"
            },
            "title": "Balances",
            "type": "array"
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "total_days": {
            "title": "Total Days",
            "type": "integer"
          }
        },
        "required": [
          "account_uuid",
          "balances",
          "message",
          "total_days"
        ],
        "title": "GetAccountBalanceHistoryOutput",
        "type": "object"
      },
      "GetAccountBalanceHistoryRequestBody": {
        "description": "Get daily balance history for a specific Ramp Checking Account.\n\nUse when the user asks about balance history for a specific account,\nsavings account trend, checking account balance over time, or the\nbalance trend for a specific Ramp Checking Account. This tool only\nsupports Ramp Checking Accounts, not Investment Accounts or Managed\nPortfolios.",
        "properties": {
          "account_uuid": {
            "description": "UUID of the specific Ramp Checking Account to inspect",
            "title": "Account Uuid",
            "type": "string"
          },
          "end_date": {
            "default": null,
            "description": "Inclusive UTC end date; defaults to today. Use separate nonoverlapping ranges for longer history.",
            "format": "date",
            "nullable": true,
            "title": "End Date",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "start_date": {
            "default": null,
            "description": "Inclusive UTC start date; defaults to account opening. The effective range can cover at most 1,461 days.",
            "format": "date",
            "nullable": true,
            "title": "Start Date",
            "type": "string"
          }
        },
        "required": [
          "account_uuid",
          "rationale"
        ],
        "title": "GetAccountBalanceHistory",
        "type": "object"
      },
      "GetAgentCardCredsRequestBody": {
        "description": "Get a one-time payment token for a fund. Handles card enrollment and purchase instructions automatically.",
        "properties": {
          "amount": {
            "description": "Transaction amount as decimal string (e.g., '45.00')",
            "title": "Amount",
            "type": "string"
          },
          "currency_code": {
            "description": "ISO 4217 currency code (e.g., 'USD')",
            "title": "Currency Code",
            "type": "string"
          },
          "fund_id": {
            "description": "UUID of the fund to pay from",
            "title": "Fund Id",
            "type": "string"
          },
          "merchant_country_code": {
            "description": "2-letter country code (e.g., 'US')",
            "title": "Merchant Country Code",
            "type": "string"
          },
          "merchant_name": {
            "description": "Merchant name (e.g., 'Figma Inc')",
            "title": "Merchant Name",
            "type": "string"
          },
          "merchant_url": {
            "description": "Merchant website URL (e.g., 'https://figma.com')",
            "title": "Merchant Url",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "amount",
          "currency_code",
          "fund_id",
          "merchant_country_code",
          "merchant_name",
          "merchant_url",
          "rationale"
        ],
        "title": "GetAgentCardCreds",
        "type": "object"
      },
      "GetAgentCardFundsRequestBody": {
        "description": "List funds that can be used for agent card payments. Returns eligible funds with available balance.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "GetAgentCardFunds",
        "type": "object"
      },
      "GetAiTokenSpendAggregatesRequestBody": {
        "description": "Aggregate AI token usage or estimated cost over a time window, grouped by caller-selected dimensions (provider, model, configuration, department, user, or API-key tag group).",
        "properties": {
          "configuration_ids": {
            "description": "Restrict to these AI provider configuration UUIDs.",
            "items": {
              "type": "string"
            },
            "title": "Configuration Ids",
            "type": "array"
          },
          "department_uuids": {
            "description": "metric='usage' only: restrict to these department UUIDs.",
            "items": {
              "type": "string"
            },
            "title": "Department Uuids",
            "type": "array"
          },
          "end_at": {
            "description": "Exclusive UTC end of the window. ISO date or datetime.",
            "format": "date-time",
            "title": "End At",
            "type": "string"
          },
          "group_by": {
            "description": "Dimensions to break results down by. Valid for both metrics: 'provider', 'model', 'configuration_id', 'tag_group'. Only for metric='usage': 'user_uuid', 'department_uuid'. Only for metric='cost': 'cost_category'.",
            "items": {
              "type": "string"
            },
            "title": "Group By",
            "type": "array"
          },
          "metric": {
            "description": "'cost' for estimated dollar cost, 'usage' for token counts.",
            "enum": [
              "cost",
              "usage"
            ],
            "title": "Metric",
            "type": "string"
          },
          "model_compute_tier": {
            "description": "Restrict to these compute-tier facet keys (from filter_options.model_compute_tier).",
            "items": {
              "type": "string"
            },
            "title": "Model Compute Tier",
            "type": "array"
          },
          "model_context_window": {
            "description": "Restrict to these context-window facet keys (from filter_options.model_context_window).",
            "items": {
              "type": "string"
            },
            "title": "Model Context Window",
            "type": "array"
          },
          "model_families": {
            "description": "Restrict to these model family keys (from GetAiTokenSpendFilterOptions.filter_options.model_families).",
            "items": {
              "type": "string"
            },
            "title": "Model Families",
            "type": "array"
          },
          "model_fine_tune_source": {
            "description": "Restrict to these fine-tune-source facet keys (from filter_options.model_fine_tune_source).",
            "items": {
              "type": "string"
            },
            "title": "Model Fine Tune Source",
            "type": "array"
          },
          "model_speed": {
            "description": "Restrict to these speed facet keys (from filter_options.model_speed).",
            "items": {
              "type": "string"
            },
            "title": "Model Speed",
            "type": "array"
          },
          "model_thinking": {
            "description": "Restrict to these thinking-mode facet keys (from filter_options.model_thinking).",
            "items": {
              "type": "string"
            },
            "title": "Model Thinking",
            "type": "array"
          },
          "models": {
            "description": "Restrict to these exact model names (from GetAiTokenSpendFilterOptions.filter_options.models). Combined with the model_families/model_* facet filters via intersection.",
            "items": {
              "type": "string"
            },
            "title": "Models",
            "type": "array"
          },
          "providers": {
            "description": "Restrict to these providers. Supported: OPENAI, ANTHROPIC, CURSOR, GCP, AWS, AZURE, RAMP, and other provider names returned in results. AWS and AZURE support business-wide usage only. RAMP is Ramp Router usage; other providers exclude Router usage even when Router routed the request to that vendor.",
            "items": {
              "type": "string"
            },
            "title": "Providers",
            "type": "array"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "rollup": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AiTokenTrackingAggregateRollupRequestBody"
              }
            ],
            "default": "all",
            "description": "Time bucketing. 'all' returns a single bucket per group; 'daily'/'weekly'/'monthly' return one row per bucket per group."
          },
          "start_at": {
            "description": "Inclusive UTC start of the window. ISO date or datetime.",
            "format": "date-time",
            "title": "Start At",
            "type": "string"
          },
          "tag_definition_id": {
            "default": null,
            "description": "Required when group_by contains 'tag_group'; the tag definition (label group) UUID to bucket by.",
            "nullable": true,
            "title": "Tag Definition Id",
            "type": "string"
          },
          "user_uuids": {
            "description": "metric='usage' only: restrict to these user UUIDs.",
            "items": {
              "type": "string"
            },
            "title": "User Uuids",
            "type": "array"
          }
        },
        "required": [
          "end_at",
          "metric",
          "rationale",
          "start_at"
        ],
        "title": "GetAiTokenSpendAggregates",
        "type": "object"
      },
      "GetAiTokenSpendConnectionsRequestBody": {
        "description": "Summarize connected AI providers (admin keys, OpenRouter/LiteLLM gateway connections, and Ramp Router). Use GetAiTokenSpendCurrentSpend for actual vendor spend and GetAiTokenSpendAggregates for estimated token usage and cost.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "GetAiTokenSpendConnections",
        "type": "object"
      },
      "GetAiTokenSpendCurrentSpendRequestBody": {
        "description": "Report the business's actual trailing-30-day Ramp spend on AI vendors (card, bill, and reimbursement spend) per provider. Requires transaction, reimbursement, or bill read access.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "GetAiTokenSpendCurrentSpend",
        "type": "object"
      },
      "GetAiTokenSpendFilterOptionsRequestBody": {
        "description": "List the dimensions and values available for AI-spend aggregate queries: providers, models, model families/facets, departments, and API-key tag groups.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "GetAiTokenSpendFilterOptions",
        "type": "object"
      },
      "GetAirlineCreditsRequestBody": {
        "description": "List flight credits for one traveler, not the company-wide inventory. Returns each credit's airline, amount with ISO 4217 currency code, status, issue date, and expiry, soonest expiry first. Available only when the business has flight credits enabled. The airline confirms whether a credit covers a fare only when it is applied to a flight quote. Defaults to the acting user. Does not apply credits or change anything.",
        "properties": {
          "include_used_and_expired": {
            "default": false,
            "description": "Set true to also return spent, expired, and invalidated credits, for example to explain why a credit no longer applies.",
            "title": "Include Used And Expired",
            "type": "boolean"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "traveler_user_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "Traveler user UUID when listing another person's credits for delegated booking. Requires delegate or travel-manager permission. Omit for the acting user.",
            "nullable": true
          }
        },
        "required": [
          "rationale"
        ],
        "title": "GetAirlineCredits",
        "type": "object"
      },
      "GetAirlineCreditsResult": {
        "description": "Flight credits Ramp holds for one traveler.",
        "properties": {
          "credits": {
            "description": "Credits sorted by expiry, soonest first; empty when the traveler has none matching the request",
            "items": {
              "$ref": "#/components/schemas/AirlineCreditV1"
            },
            "title": "Credits",
            "type": "array"
          },
          "freshness_note": {
            "description": "How current the list is; repeat its meaning to the traveler",
            "title": "Freshness Note",
            "type": "string"
          },
          "how_to_use": {
            "description": "Where and when the traveler picks a credit on this surface; relay it when offering to use a credit",
            "title": "How To Use",
            "type": "string"
          },
          "total_count": {
            "description": "Number of matching credits; larger than len(credits) when the list was cut at the result limit",
            "title": "Total Count",
            "type": "integer"
          }
        },
        "required": [
          "credits",
          "freshness_note",
          "how_to_use",
          "total_count"
        ],
        "title": "GetAirlineCreditsResult",
        "type": "object"
      },
      "GetAllReducedUsersRequestBody": {
        "description": "List and search users across the entire business.\n\nReturns all users in the organization matching the given filters. Supports searching by\nname (partial match, case-insensitive), filtering by department or location, and pagination.\nResults include active and inactive users \u2014 check the is_inactive field to distinguish.\nThe role field is the primary role only: it does not include add-on roles such as\nAccounts Payable or evaluated bill, payment or card permissions. An Employee\nresult is not evidence that AP access is missing or that credentials are denied.\nDepartment and location UUID filters narrow the results.",
        "properties": {
          "department_ids": {
            "default": null,
            "description": "Filter users by department UUIDs (from ListDepartments).",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "title": "Department Ids",
            "type": "array"
          },
          "include_agents": {
            "default": false,
            "description": "Include standalone agents in addition to human users.",
            "title": "Include Agents",
            "type": "boolean"
          },
          "location_ids": {
            "default": null,
            "description": "Filter users by location UUIDs (from ListLocations).",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "title": "Location Ids",
            "type": "array"
          },
          "name_search": {
            "default": null,
            "description": "Search by user name (partial match, case-insensitive).",
            "nullable": true,
            "title": "Name Search",
            "type": "string"
          },
          "page_cursor": {
            "default": null,
            "description": "Pagination cursor for fetching additional pages.",
            "nullable": true,
            "title": "Page Cursor",
            "type": "string"
          },
          "page_size": {
            "default": 20,
            "description": "Number of users to return per page.",
            "maximum": 100,
            "title": "Page Size",
            "type": "integer"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "GetAllReducedUsers",
        "type": "object"
      },
      "GetAllReducedUsersResult": {
        "properties": {
          "next_page": {
            "default": null,
            "description": "Pagination cursor for next page",
            "nullable": true,
            "title": "Next Page",
            "type": "string"
          },
          "users": {
            "description": "List of users matching the filters",
            "items": {
              "$ref": "#/components/schemas/AllUserInfo"
            },
            "title": "Users",
            "type": "array"
          }
        },
        "required": [
          "users"
        ],
        "title": "GetAllReducedUsersResult",
        "type": "object"
      },
      "GetApplicationDetailsRequestBody": {
        "description": "Get the Ramp financing application for the business you are acting on in more detail than its status: business and incorporation details, the applicant's name, and the completion status of each page and section.\n\nThe business can be your own, or a client business whose application your accounting\nfirm prepares (an assisted application). Use this when the user asks what is\nincomplete. This does not change the application.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "GetApplicationDetails",
        "type": "object"
      },
      "GetApplicationDetailsResult": {
        "properties": {
          "application": {
            "$ref": "#/components/schemas/ApplicationDetailsInfo"
          }
        },
        "required": [
          "application"
        ],
        "title": "GetApplicationDetailsResult",
        "type": "object"
      },
      "GetApplicationInvitesRequestBody": {
        "description": "List the pending and accepted invites to the Ramp financing application of the business you are acting on: who was invited as primary applicant or preparer, and whether they joined.\n\nThe business can be your own, or a client business whose application your accounting\nfirm prepares (an assisted application). Use this when the user asks who has been\ninvited or whether an invite is still pending. This does not send or change invites.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "GetApplicationInvites",
        "type": "object"
      },
      "GetApplicationInvitesResult": {
        "properties": {
          "count": {
            "description": "Number of invites returned.",
            "title": "Count",
            "type": "integer"
          },
          "invites": {
            "description": "Pending and accepted primary applicant and preparer invites; empty when there are none.",
            "items": {
              "$ref": "#/components/schemas/InviteInfo"
            },
            "title": "Invites",
            "type": "array"
          }
        },
        "required": [
          "count",
          "invites"
        ],
        "title": "GetApplicationInvitesResult",
        "type": "object"
      },
      "GetApplicationStatusRequestBody": {
        "description": "Get the status of the Ramp financing application for the business you are acting on: its stage, most recently saved step, and underwriting country.\n\nThe business can be your own, or a client business whose application your accounting\nfirm prepares (an assisted application). Use this when the user asks where the\napplication stands or what step comes next. This does not change the application.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "GetApplicationStatus",
        "type": "object"
      },
      "GetApplicationStatusResult": {
        "properties": {
          "application": {
            "$ref": "#/components/schemas/ApplicationStatusInfo"
          }
        },
        "required": [
          "application"
        ],
        "title": "GetApplicationStatusResult",
        "type": "object"
      },
      "GetApprovalChainDetailsRequestBody": {
        "additionalProperties": false,
        "description": "Fetch approval details for an approval instance or Blank Canvas execution.\n\nReturns the recorded chain for one approval instance, not the policy\ntemplate. It cannot answer policy-configuration or notification-delivery\nquestions. Pass the selected workflow_execution_uuid for a Blank Canvas target.\nBlank Canvas nodes retain separate recorded approvals; projected future nodes\nmay change, and the list does not imply sequential execution.",
        "properties": {
          "approval_instance_uuid": {
            "default": null,
            "format": "uuid",
            "nullable": true,
            "title": "Approval Instance Uuid",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "workflow_execution_uuid": {
            "default": null,
            "format": "uuid",
            "nullable": true,
            "title": "Workflow Execution Uuid",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "GetApprovalChainDetails",
        "type": "object"
      },
      "GetApprovalChainDetailsResponse": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/BlankCanvasApprovalChainDetailsOutput"
          },
          {
            "$ref": "#/components/schemas/CurrentApprovalChainDetailsOutput"
          }
        ],
        "title": "GetApprovalChainDetailsResponse"
      },
      "GetAttentionFeedRequestBody": {
        "description": "Return the authenticated user's homepage attention feed.\n\nUse this tool to see what needs the user's attention right now: pending approvals,\nmissing receipts, overdue reviews, signatures, and similar action items that appear\non the Ramp homepage.\n\nBy default, the tool returns the default homepage sections with compact\nLIST-hydrated task rows. To fetch more from a section, pass that section's\nsection_type and next_cursor back in sections.\n\nFor own-card GET_ATTENTION_FEED remediation, use this as the canonical task feed.\nblocking_effects describes a task type's possible sanction, not proof that an item\ncaused the active lock. Use browser_handoff for user action in Ramp. For an\navailable CompleteTransactionRevision, inspect or edit the transaction and call\nit with a nonblank reason. Re-read both tools and continue relevant overdue tasks;\nsuccess requires the task absent, blocking_task_count=0, and is_spendable=true.\nPending verification is not an unlock.",
        "properties": {
          "fanout_timeout_seconds": {
            "default": 5.0,
            "description": "Timeout applied to task-feed section and hydration fanout work.",
            "exclusiveMinimum": true,
            "maximum": 60.0,
            "minimum": 0,
            "title": "Fanout Timeout Seconds",
            "type": "number"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "sections": {
            "default": null,
            "description": "Optional section pagination requests. Omit this to return the default homepage attention feed.",
            "items": {
              "$ref": "#/components/schemas/AttentionFeedSectionRequestRequestBody"
            },
            "nullable": true,
            "title": "Sections",
            "type": "array"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "GetAttentionFeed",
        "type": "object"
      },
      "GetAttentionFeedResult": {
        "description": "The authenticated user's homepage attention feed.",
        "properties": {
          "sections": {
            "description": "Non-empty homepage sections in default task-feed order.",
            "items": {
              "$ref": "#/components/schemas/AttentionFeedSection"
            },
            "title": "Sections",
            "type": "array"
          }
        },
        "required": [
          "sections"
        ],
        "title": "GetAttentionFeedResult",
        "type": "object"
      },
      "GetAuthorizedBusinessesRequestBody": {
        "description": "Retrieve the list of businesses that the advisor console user is authorized to access.\n\nThis tool returns all client businesses that the external firm (advisor console) user\nhas been granted access to. Use this to understand which businesses the user can\nwork with or to help them find a specific client.\n\nSupports filtering by business display name and pagination for large lists.",
        "properties": {
          "after": {
            "default": null,
            "description": "Pagination cursor. Pass the 'next_cursor' from a previous response to get the next page.",
            "nullable": true,
            "title": "After",
            "type": "string"
          },
          "business_name_filter": {
            "default": null,
            "description": "Optional filter to search businesses by display name (partial match supported)",
            "nullable": true,
            "title": "Business Name Filter",
            "type": "string"
          },
          "page_size": {
            "default": 50,
            "description": "Number of results to return per page (max 500)",
            "title": "Page Size",
            "type": "integer"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "GetAuthorizedBusinesses",
        "type": "object"
      },
      "GetAuthorizedBusinessesResult": {
        "description": "Response containing authorized businesses for the advisor console user.",
        "properties": {
          "businesses": {
            "description": "List of businesses the user is authorized to access",
            "items": {
              "$ref": "#/components/schemas/AuthorizedBusinessInfo"
            },
            "title": "Businesses",
            "type": "array"
          },
          "next_cursor": {
            "default": null,
            "description": "Cursor for pagination. Pass this as 'after' to get the next page.",
            "nullable": true,
            "title": "Next Cursor",
            "type": "string"
          },
          "total_count": {
            "description": "Total number of authorized businesses",
            "title": "Total Count",
            "type": "integer"
          }
        },
        "required": [
          "businesses",
          "total_count"
        ],
        "title": "GetAuthorizedBusinessesResult",
        "type": "object"
      },
      "GetBillAmountSummaryRequestBody": {
        "description": "Get aggregate dollar amounts for bills matching the given filters.\n\nExamples: total unpaid amount, total pending amount. Use when users ask\nthings like \"How much do we owe in bills?\" or \"What's our total\noutstanding bill amount?\".\n\nBills in Ramp have two stages: draft bills (created/uploaded but not yet\nsubmitted; use the draft-bill tools) and bills (submitted; they move through\napproval, then scheduling, then payment). A draft keeps the same ID after\nsubmission, but draft-only tools stop working on it once submitted.",
        "properties": {
          "due_date_from": {
            "default": null,
            "description": "Only include bills with due date on or after this date (YYYY-MM-DD)",
            "format": "date",
            "nullable": true,
            "title": "Due Date From",
            "type": "string"
          },
          "due_date_to": {
            "default": null,
            "description": "Only include bills with due date on or before this date (YYYY-MM-DD)",
            "format": "date",
            "nullable": true,
            "title": "Due Date To",
            "type": "string"
          },
          "max_amount": {
            "default": null,
            "description": "Maximum bill amount to include",
            "nullable": true,
            "title": "Max Amount",
            "type": "number"
          },
          "min_amount": {
            "default": null,
            "description": "Minimum bill amount to include",
            "nullable": true,
            "title": "Min Amount",
            "type": "number"
          },
          "payment_status": {
            "default": null,
            "description": "Filter by payment status: 'OPEN' (unpaid) or 'PAID'",
            "nullable": true,
            "title": "Payment Status",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "vendor_name": {
            "default": null,
            "description": "Filter by vendor name (partial match, minimum 3 characters). Example: 'Amazon'",
            "nullable": true,
            "title": "Vendor Name",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "GetBillAmountSummary",
        "type": "object"
      },
      "GetBillAmountSummaryResult": {
        "properties": {
          "summary": {
            "title": "Summary",
            "type": "string"
          },
          "total_normalized": {
            "$ref": "#/components/schemas/BillCurrencyAmount"
          },
          "totals_by_currency": {
            "items": {
              "$ref": "#/components/schemas/BillCurrencyAmount"
            },
            "title": "Totals By Currency",
            "type": "array"
          }
        },
        "required": [
          "summary",
          "total_normalized",
          "totals_by_currency"
        ],
        "title": "GetBillAmountSummaryResult",
        "type": "object"
      },
      "GetBillCommentsRequestBody": {
        "description": "Retrieve comments from a bill's comment thread.\n\nBills in Ramp have two stages: draft bills (created/uploaded but not yet\nsubmitted; use the draft-bill tools) and bills (submitted; they move through\napproval, then scheduling, then payment). A draft keeps the same ID after\nsubmission, but draft-only tools stop working on it once submitted.",
        "properties": {
          "bill_id": {
            "description": "The UUID of the bill",
            "title": "Bill Id",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "bill_id",
          "rationale"
        ],
        "title": "GetBillComments",
        "type": "object"
      },
      "GetBillDetailsRequestBody": {
        "description": "Get details for a bill already confirmed to be submitted; submitted bills only.\n\nRequires a bill UUID and known submitted status. A UUID alone does not\nestablish submission: a draft keeps the same UUID after submission.\nNot applicable to bills whose draft/submitted stage is unknown or to\nunsubmitted drafts.\n\nReturns bill metadata, payment status, and approval status. Submitted bills\ninclude bills awaiting approval, scheduling, or payment.",
        "properties": {
          "bill_id": {
            "description": "UUID of a bill whose submitted status is confirmed (is_draft=false). A UUID appearing in a report or another tool result does not itself confirm submission. Does not accept draft or unknown-stage bill UUIDs.",
            "title": "Bill Id",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "bill_id",
          "rationale"
        ],
        "title": "GetBillDetails",
        "type": "object"
      },
      "GetBillHistoryRequestBody": {
        "description": "Retrieve the full modification and approval history of a submitted bill; submitted bills only (is_draft=false).\n\nReturns a chronological event log \u2014 creation, submission, each\napproval-chain action with actor and timestamp, and deletion. Use it to\nanswer questions like \"who approved this bill?\". Rejects unsubmitted draft\nbills (is_draft=true); unsubmitted drafts have no submitted bill history.\n\nBills in Ramp have two stages: draft bills (created/uploaded but not yet\nsubmitted; use the draft-bill tools) and bills (submitted; they move through\napproval, then scheduling, then payment). A draft keeps the same ID after\nsubmission, but draft-only tools stop working on it once submitted.",
        "properties": {
          "bill_id": {
            "description": "The UUID of a submitted (non-draft) bill to retrieve history for.",
            "title": "Bill Id",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "bill_id",
          "rationale"
        ],
        "title": "GetBillHistory",
        "type": "object"
      },
      "GetBillInvoicesRequestBody": {
        "description": "Retrieve invoice file attachments (PDFs/images) for a submitted bill.\n\nReturns the source documents backing the bill: for each attachment, the\nfilename, type, and a time-limited download URL (the URL expires after\nabout 3 days). Draft bills are not supported: draft attachments are not\nretrievable through agent tools. get-draft-bill-details returns draft\nmetadata and a link to the draft page in the Ramp web app, where\nattachments can be viewed.\n\nBills in Ramp have two stages: draft bills (created/uploaded but not yet\nsubmitted; use the draft-bill tools) and bills (submitted; they move through\napproval, then scheduling, then payment). A draft keeps the same ID after\nsubmission, but draft-only tools stop working on it once submitted.",
        "properties": {
          "bill_id": {
            "description": "The UUID of the bill to retrieve invoices for",
            "title": "Bill Id",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "bill_id",
          "rationale"
        ],
        "title": "GetBillInvoices",
        "type": "object"
      },
      "GetBillMetricsRequestBody": {
        "description": "Returns the count of bills matching specified filters. Use this to answer questions like \"How many bills are pending approval?\" or \"How many overdue bills do we have?\".\n\nBills in Ramp have two stages: draft bills (created/uploaded but not yet\nsubmitted; use the draft-bill tools) and bills (submitted; they move through\napproval, then scheduling, then payment). A draft keeps the same ID after\nsubmission, but draft-only tools stop working on it once submitted.",
        "properties": {
          "approval_status": {
            "default": null,
            "description": "Filter by approval chain status: 'PENDING', 'APPROVED', 'REJECTED'",
            "nullable": true,
            "title": "Approval Status",
            "type": "string"
          },
          "from_due_date": {
            "default": null,
            "description": "Only count bills with due date on or after this date (YYYY-MM-DD). Useful for finding overdue bills when combined with a to_due_date in the past.",
            "format": "date",
            "nullable": true,
            "title": "From Due Date",
            "type": "string"
          },
          "is_draft": {
            "default": null,
            "description": "If True, only count draft bills. If False, exclude drafts.",
            "nullable": true,
            "title": "Is Draft",
            "type": "boolean"
          },
          "payment_status": {
            "default": null,
            "description": "Filter by payment status: 'OPEN' (unpaid) or 'PAID'",
            "nullable": true,
            "title": "Payment Status",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "status_summary": {
            "default": null,
            "description": "Filter by detailed status summary. Options include: 'APPROVAL_PENDING', 'APPROVAL_REJECTED', 'PAYMENT_READY', 'PAYMENT_SCHEDULED', 'PAYMENT_PROCESSING', 'TRANSACTION_PENDING', 'PAYMENT_COMPLETED', 'PAYMENT_ERROR', 'DRAFT_MISSING_INFO', 'DRAFT_READY', 'DRAFT_PARSING', 'AWAITING_RELEASE', 'PAYMENT_DETAILS_MISSING'",
            "nullable": true,
            "title": "Status Summary",
            "type": "string"
          },
          "to_due_date": {
            "default": null,
            "description": "Only count bills with due date on or before this date (YYYY-MM-DD). Set to today's date to find overdue bills.",
            "format": "date",
            "nullable": true,
            "title": "To Due Date",
            "type": "string"
          },
          "vendor_name": {
            "default": null,
            "description": "Search for bills from vendors matching this name (partial match)",
            "nullable": true,
            "title": "Vendor Name",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "GetBillMetrics",
        "type": "object"
      },
      "GetBillMetricsResult": {
        "properties": {
          "count": {
            "description": "Number of bills matching the filters",
            "title": "Count",
            "type": "integer"
          },
          "summary": {
            "description": "Human-readable summary of the count and filters",
            "title": "Summary",
            "type": "string"
          }
        },
        "required": [
          "count",
          "summary"
        ],
        "title": "GetBillMetricsResult",
        "type": "object"
      },
      "GetBillStatusRequestBody": {
        "description": "Get the recorded payment and approval status of a specific submitted bill; submitted bills only (is_draft=false).\n\nRejects unsubmitted draft bills (is_draft=true); unsubmitted drafts have no\nsubmitted payment or approval status. This tool does not determine required\nnext actions: next_action_required is always null (unavailable), not\nconfirmation that no action is needed. Summary labels describe recorded\nstatus. PAYMENT_DETAILS_MISSING indicates incomplete details required for\npayment release; it does not identify the missing fields, who must supply\nthem, or whether a payment date can be selected.\n\nBills in Ramp have two stages: draft bills (created/uploaded but not yet\nsubmitted; use the draft-bill tools) and bills (submitted; they move through\napproval, then scheduling, then payment). A draft keeps the same ID after\nsubmission, but draft-only tools stop working on it once submitted.",
        "properties": {
          "bill_id": {
            "description": "The UUID of a submitted (non-draft) bill to check status for.",
            "title": "Bill Id",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "bill_id",
          "rationale"
        ],
        "title": "GetBillStatus",
        "type": "object"
      },
      "GetBillsForApprovalRequestBody": {
        "description": "Get bills that are pending approval from the current user.\n\nUse this tool when the user wants to see bills they need to approve or asks\nabout pending approvals. This returns only bills where the authenticated\nuser is the next required approver in the approval chain.\n\nBills in Ramp have two stages: draft bills (created/uploaded but not yet\nsubmitted; use the draft-bill tools) and bills (submitted; they move through\napproval, then scheduling, then payment). A draft keeps the same ID after\nsubmission, but draft-only tools stop working on it once submitted.",
        "properties": {
          "limit": {
            "default": 10,
            "description": "Maximum number of bills to return",
            "maximum": 50,
            "minimum": 1,
            "title": "Limit",
            "type": "integer"
          },
          "page_cursor": {
            "default": null,
            "description": "Pagination cursor from a previous response's next_page_cursor. The only valid string values are encrypted cursor tokens from a previous response (long strings starting with 'gAAAAA'). For the first page, for no more results, or for anything that is not one of those encrypted tokens, pass None (never the string 'None').",
            "nullable": true,
            "title": "Page Cursor",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "GetBillsForApproval",
        "type": "object"
      },
      "GetBookingDetailsRequestBody": {
        "description": "Get itinerary, stay, or rental details plus request status, amount, payment timing, cancellation state, supplier confirmation numbers, associated spend, error, approval information, and optional booking-specific partner support channels for one flight, hotel, car booking, or travel booking request UUID. On the day of travel, each flight also carries its airline-reported gate, terminal, delay, and baggage carousel. Trip and transaction UUIDs are not booking IDs. Approval details concern travel booking requests, not card or spend-limit requests. Use booking status for routine lookups. Optional provider_status supplies stored Atlas hotel or per-segment flight evidence for check-in trouble or missing reservations, not a live provider check, proof of hotel receipt, flight ticket validity, or provider fault. Its observation time is unknown; do not let it override a completed cancellation. For a flight paid partly or fully with flight credits, airline_credits_applied lists each credit used, with the amount applied and any redemption fee. flight_cancellation_terms are stored executed-quote terms, not proof of a settled refund or issued credit. A fare's is_refundable=false means not known fully refundable, not that a refund is impossible after airline cancellation. soft_approval_window_end, when present, is the local deadline when the booking will be auto-approved unless rejected, not a departure time or proof of ticketing.",
        "properties": {
          "booking_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "Parent booking UUID, such as a car rental's booking_id or a booking_id returned by another travel tool.",
            "nullable": true
          },
          "booking_request_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "Travel booking request UUID (GetBookings booking_request_id).",
            "nullable": true
          },
          "flight_booking_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "Flight booking UUID (GetBookings flight_booking_id).",
            "nullable": true
          },
          "hotel_room_booking_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "Hotel room booking UUID (GetBookings hotel_room_booking_id).",
            "nullable": true
          },
          "include_provider_status": {
            "default": false,
            "description": "Include stored Atlas provider status only to investigate hotel or flight check-in trouble, a missing reservation, or a disputed confirmation. Leave false or omit for routine booking, approval, or cancellation-status lookups. Supported only for fulfilled Atlas hotel and flight bookings; failures leave normal details available. This does not refresh the provider or verify flight ticket validity.",
            "title": "Include Provider Status",
            "type": "boolean"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "GetBookingDetails",
        "type": "object"
      },
      "GetBookingServiceStatusRequestBody": {
        "description": "Get the current booking-service availability for flights, hotels, and cars.\n\nReturns current disruptions and advisories for the acting user's flight and\nhotel providers, plus car booking. A booking type's is_down flag identifies a\ntemporary outage; its message and note can also describe nonblocking advisories.\nThis does not establish the user's booking eligibility or inventory availability.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "GetBookingServiceStatus",
        "type": "object"
      },
      "GetBookingsRequestBody": {
        "description": "Retrieve flight, hotel, and car rental booking summaries for the user. Optionally identify existing bookings by city, hotel name, flight airline, flight number, booking reference, or travel date. Filters for the same booking type combine with AND; mixed hotel- and flight-specific filters match each type independently. Matching entries are returned up to limit for caller disambiguation, except include_past may return up to limit upcoming and limit past entries per type. Returns confirmed bookings and pending requests ordered upcoming-first (soonest next booking first, then past most recent first), with unsuccessful requests available via include_failed; check the status field and call GetBookingDetails for one entry's detailed state.",
        "properties": {
          "booking_reference": {
            "default": null,
            "description": "Optional case-insensitive exact match against a confirmed flight booking reference, PNR, or airline confirmation number on any segment. Use this for the booking reference provided by the traveler; use flight_number for airline segment numbers. This filter applies only to confirmed flights.",
            "maxLength": 200,
            "minLength": 1,
            "nullable": true,
            "title": "Booking Reference",
            "type": "string"
          },
          "city": {
            "default": null,
            "description": "Optional case-insensitive partial city match against hotel cities, car rental pickup cities, and every flight segment's arrival city or airport code, including connections. Flight city names, abbreviations, and Ramp city IDs also match metro airports; exact airport IATA codes match only that airport, and also match car rentals picked up at that airport.",
            "maxLength": 200,
            "minLength": 1,
            "nullable": true,
            "title": "City",
            "type": "string"
          },
          "flight_airline": {
            "default": null,
            "description": "Optional case-insensitive partial airline-name match against every flight segment, including connections. This filter applies only to flights; when combined with hotel_name, each booking type is matched independently.",
            "maxLength": 200,
            "minLength": 1,
            "nullable": true,
            "title": "Flight Airline",
            "type": "string"
          },
          "flight_number": {
            "default": null,
            "description": "Optional flight-number match against every segment. Spaces, punctuation, case, and leading zeroes in the numeric portion are ignored, so UA100, UA 0100, UA 100, ua-100, and the numeric portion 100 match.",
            "maxLength": 200,
            "minLength": 1,
            "nullable": true,
            "title": "Flight Number",
            "type": "string"
          },
          "hotel_name": {
            "default": null,
            "description": "Optional case-insensitive partial hotel-name match applied only to hotels. When combined with flight-specific filters, each booking type is matched independently.",
            "maxLength": 200,
            "minLength": 1,
            "nullable": true,
            "title": "Hotel Name",
            "type": "string"
          },
          "include_cars": {
            "default": true,
            "description": "Whether to include car rental bookings",
            "title": "Include Cars",
            "type": "boolean"
          },
          "include_failed": {
            "default": false,
            "description": "Whether to include unsuccessful terminal booking requests that did not produce a confirmed booking: errors, cancellations, and rejections, shown as FAILED, CANCELLED, and REJECTED. Defaults to False. Set to True when the user explicitly asks about an unsuccessful booking attempt OR when a recent request known from the current conversation is missing from the default result. Retry with this flag before describing a missing request's state; do not reuse its earlier pending state. Confirmed, pending, and in-progress bookings are always returned regardless of this flag.",
            "title": "Include Failed",
            "type": "boolean"
          },
          "include_flights": {
            "default": true,
            "description": "Whether to include flight bookings",
            "title": "Include Flights",
            "type": "boolean"
          },
          "include_hotels": {
            "default": true,
            "description": "Whether to include hotel bookings",
            "title": "Include Hotels",
            "type": "boolean"
          },
          "include_past": {
            "default": false,
            "description": "Whether to include past/completed bookings (flights that have already landed, hotel stays that have ended, car rentals already returned). Defaults to False so that cancellation/modification requests operate on current and upcoming bookings only and never act on a past booking by mistake. Set to True ONLY when the user explicitly asks about their past, previous, or historical bookings. Implied automatically when travel_date is today or earlier. Pending/in-progress requests are always returned regardless of this flag. The limit is applied separately to upcoming and past bookings when this is True.",
            "title": "Include Past",
            "type": "boolean"
          },
          "limit": {
            "default": 20,
            "description": "Maximum number of bookings to return per type. With include_past=True, applies separately to upcoming and past bookings.",
            "maximum": 50,
            "minimum": 1,
            "title": "Limit",
            "type": "integer"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "travel_date": {
            "default": null,
            "description": "Optional local calendar date that must inclusively overlap the flight's full itinerary, the hotel stay, or the car rental period (YYYY-MM-DD). A travel_date on or before today implies include_past=True, so lookups for earlier dates also return completed bookings.",
            "format": "date",
            "nullable": true,
            "title": "Travel Date",
            "type": "string"
          },
          "traveler_user_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "Optional UUID of another user whose bookings to retrieve, such as a person the acting user is a delegate for. Defaults to the acting user. Results are scoped to bookings the acting user is authorized to view; an unauthorized lookup returns empty lists.",
            "nullable": true
          },
          "verification_mode": {
            "default": false,
            "description": "Use only when determining whether Ramp can service an existing flight or hotel booking. Bounds all reads, includes past/completed bookings so a finished Ramp trip still counts as on-platform, and reports whether the result is incomplete; when incomplete, do not conclude that no Ramp booking exists.",
            "title": "Verification Mode",
            "type": "boolean"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "GetBookings",
        "type": "object"
      },
      "GetBusinessStatementDateToolRequestBody": {
        "description": "Get the business's statement billing schedule: the next statement close date, the configured statement close day of month, and the next card payment or autopay debit date.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "GetBusinessStatementDateTool",
        "type": "object"
      },
      "GetCandidateTripsForTransactionRequestBody": {
        "description": "Fetch relevant trips for the acting user, with names, dates, status, and locations.\n\nReturns up to 10 ongoing, upcoming, and recently completed trips. Supports\ngeneral trip lookups as well as expense matching; no transaction is required.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "GetCandidateTripsForTransaction",
        "type": "object"
      },
      "GetCardStatementBalanceRequestBody": {
        "description": "Get a snapshot of the business's most recent card statement balance \u2014\nhow much was due, how much has been paid, what's still outstanding, and\nwhen the next payment is due.\n\nUse this when the user asks about their card statement balance, why they\ngot a delinquency / outstanding balance notice after paying, what their\nremaining balance is, or how their last payment was applied. Common\nphrasings: \"I paid X but still got an outstanding balance notice\",\n\"what's my statement balance\", \"why am I still showing a balance\".\n\nReturns the most recent statement only. Doesn't include current-cycle\n(post-statement-close) charges \u2014 those are surfaced via separate\ntransaction-listing tools when needed.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "GetCardStatementBalance",
        "type": "object"
      },
      "GetCardStatementBalanceResponseJsonMode": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/CardStatementBalanceJsonMode"
          },
          {
            "$ref": "#/components/schemas/NoCardStatementsResultJsonMode"
          }
        ],
        "title": "GetCardStatementBalanceResponse"
      },
      "GetDeclineExplanationRequestBody": {
        "description": "Get a detailed explanation of why a card transaction was declined. Returns the reason, remediation actions, and transaction details. Only valid for already-declined transactions.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "transaction_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "description": "The UUID of the declined transaction"
          }
        },
        "required": [
          "rationale",
          "transaction_uuid"
        ],
        "title": "GetDeclineExplanation",
        "type": "object"
      },
      "GetDelegatedTravelersRequestBody": {
        "description": "List the people the acting user can book, cancel, and change travel for.\n\nThe same list Ramp Travel offers when booking for someone else: a travel\nmanager can find anyone in the company; everyone else finds the people who\nmade them their delegate (assistant). Returns each person's user UUID for\nbooking, cancellation, modification, and booking lookups. Read-only.\n\nUse it to answer \"who can I book travel for?\" or \"who am I a delegate or\nassistant for?\" with the actual people, not general guidance.",
        "properties": {
          "name_search": {
            "default": null,
            "description": "Optional case-insensitive partial match against the traveler's name or email. Omit to list everyone.",
            "maxLength": 200,
            "minLength": 1,
            "nullable": true,
            "title": "Name Search",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "GetDelegatedTravelers",
        "type": "object"
      },
      "GetDelegatedTravelersResult": {
        "properties": {
          "is_travel_manager": {
            "description": "True when the acting user can book for anyone in the company, so the travelers listed did not necessarily make them their delegate. Don't describe them as the user's delegators in that case.",
            "title": "Is Travel Manager",
            "type": "boolean"
          },
          "results_truncated": {
            "default": false,
            "description": "True when more people match than were returned; narrow name_search to find a specific person.",
            "title": "Results Truncated",
            "type": "boolean"
          },
          "travelers": {
            "description": "People the acting user can book travel for, sorted by name, at most 50: everyone in the company for a travel manager, otherwise the people who made the acting user their delegate. Empty when there is no one or no one matches name_search.",
            "items": {
              "$ref": "#/components/schemas/DelegatedTraveler"
            },
            "title": "Travelers",
            "type": "array"
          }
        },
        "required": [
          "is_travel_manager"
        ],
        "title": "GetDelegatedTravelersResult",
        "type": "object"
      },
      "GetDraftBillDetailsRequestBody": {
        "description": "Get details for an active draft bill that has not been submitted.\n\nSubmitted bills, including those awaiting approval or payment, are not\nsupported. A draft link may be stale after submission.\n\nReturns compact draft-bill metadata by default. Set return_line_items=true\nto include the full editable payload with line items and tracking categories.\nIncludes canonical submission readiness and verified missing requirements;\nblank optional fields are not evidence of a submission blocker.\n\nBills in Ramp have two stages: draft bills (created/uploaded but not yet\nsubmitted; use the draft-bill tools) and bills (submitted; they move through\napproval, then scheduling, then payment). A draft keeps the same ID after\nsubmission, but draft-only tools stop working on it once submitted.",
        "properties": {
          "bill_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UUIDStrRequestBody"
              }
            ],
            "description": "The UUID of an active, unsubmitted draft bill (is_draft=true); submitted bills are not accepted. Pass only the UUID, not a full URL, invoice number, or payment ID."
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "return_line_items": {
            "default": false,
            "description": "When true, include the full editable payload inline, including line items and tracking-category detail. Leave false to return only a compact summary.",
            "title": "Return Line Items",
            "type": "boolean"
          }
        },
        "required": [
          "bill_id",
          "rationale"
        ],
        "title": "GetDraftBillDetails",
        "type": "object"
      },
      "GetEmployeeSubmissionPolicyRequirementsRequestBody": {
        "description": "Get the employee-visible expense submission requirements for the caller's business, such as receipt, memo, attendee, fund, and accounting-field requirements per submission policy. Returns the same summaries shown in the employee handbook's transaction requirements.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "GetEmployeeSubmissionPolicyRequirements",
        "type": "object"
      },
      "GetErpConnectionStatusRequestBody": {
        "description": "Get the current ERP/accounting integration connection status for the business.\n\nReturns whether an ERP is connected, which provider it is, and what the business\nselected during onboarding. Use this to understand the user's ERP context before\nguiding them through setup or troubleshooting. Can be called multiple times to\nre-verify connection status after the user completes OAuth.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "GetErpConnectionStatus",
        "type": "object"
      },
      "GetExpenseWorkflowContextPublicSuccess": {
        "properties": {
          "approval_instance": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ExpenseWorkflowContextPublicApprovalInstance"
              }
            ],
            "default": null,
            "nullable": true
          },
          "approval_policy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ExpenseWorkflowContextPolicy"
              }
            ],
            "default": null,
            "nullable": true
          },
          "current_state_caveat": {
            "default": "approval_steps are this expense's recorded chain: assigned_via shows why each approver is on a step (named individually, a group, or a relative rule such as the requester's manager), and recorded_reasons shows recorded skips, added steps, and Policy Agent actions. Which policy condition selected the steps is established by evaluating the policy_version_uuid version against this expense's own fields, such as amount, merchant, or category; evaluation uses today's requester attributes, such as department, so it does not establish conditions on them. The latest published version may differ when generated_from_latest_policy_version is false.",
            "description": "How to establish causes from this result.",
            "title": "Current State Caveat",
            "type": "string"
          },
          "expense": {
            "$ref": "#/components/schemas/ExpenseWorkflowContextExpense"
          },
          "no_approval_reason": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ExpenseWorkflowContextNoApprovalReason"
              }
            ],
            "default": null,
            "description": "Recorded reason a transaction has no active approval, present only when approval_instance is null and Ramp recorded one. It explains why no approval is active, not who approved the charge earlier: a repaid charge may have been approved before its repayment.",
            "nullable": true
          },
          "policy_agent_review": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ExpenseWorkflowContextPolicyAgentReview"
              }
            ],
            "default": null,
            "description": "Latest Policy Agent review prediction for the expense, if present. This is not necessarily the review available when the expense routed or an approval action occurred.",
            "nullable": true
          },
          "revision_request": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ExpenseWorkflowContextRevisionRequest"
              }
            ],
            "default": null,
            "description": "Active or recently completed cardholder change/revision request for this transaction, when present. While status is 'revision_requested' (awaiting_cardholder is true), the cardholder needs to act before a pending approval step can proceed.",
            "nullable": true
          },
          "submission_policy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ExpenseWorkflowContextSubmissionPolicy"
              }
            ],
            "default": null,
            "nullable": true
          },
          "travel_booking_approval": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ExpenseWorkflowContextPublicTravelBookingApproval"
              }
            ],
            "default": null,
            "nullable": true
          }
        },
        "required": [
          "expense"
        ],
        "title": "GetExpenseWorkflowContextPublicSuccess",
        "type": "object"
      },
      "GetExpenseWorkflowContextRequestBody": {
        "description": "Resolve a transaction or reimbursement UUID to its approval workflow context: the expense summary, its approval chain steps with recorded approver sources and step reasons and the policy version that generated the chain; when a transaction has no active approval, the recorded reason (auto-approved merchant, bill paid by card, or repaid in full); the attached approval and submission policies, any travel booking approval, any active or completed cardholder change/revision request, and the latest Policy Agent review. Provide exactly one expense UUID. Does not support bills.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "reimbursement_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "Reimbursement UUID or reimbursement alias to inspect. Provide exactly one expense reference.",
            "nullable": true
          },
          "transaction_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "Transaction UUID or transaction alias to inspect. Provide exactly one expense reference.",
            "nullable": true
          }
        },
        "required": [
          "rationale"
        ],
        "title": "GetExpenseWorkflowContext",
        "type": "object"
      },
      "GetFlightBookingLocationsRequestBody": {
        "description": "Resolves locations (airports/cities) available for booking a flight from user intent.\n\nPreserve the user's location wording in ``query``. When the user names a city or\nmetro area such as \"NYC\", set ``location_type=city``. A returned city\n``search_code`` searches all supported airports in that metro; do not ask the\nuser to choose one airport when a city result is available.\n\nUse this to answer which airports or cities are bookable for a place, or to\nlist the candidates when a place name is ambiguous. If the results contain\nmultiple plausible locations, present the choices and wait for the user to\nclarify; never choose a location on their behalf. Do not infer a location from\nprofile data, an area code, or a broad description such as \"somewhere warm.\"\n\nReturns locations where flights can be booked from or to, which may include:\n- Individual airports (e.g., JFK, SFO, LAX)\n- City groups with multiple airports (e.g., NYC includes JFK, LGA, EWR)\n- Major travel destinations with flight availability\n\nEach result carries a ``search_code`` usable as a flight search departure or\narrival. Cities search every airport in the metro area; airports search just\nthat airport.",
        "properties": {
          "limit": {
            "default": 5,
            "description": "Maximum number of location results to return",
            "title": "Limit",
            "type": "integer"
          },
          "location_type": {
            "default": "none",
            "description": "Specific location type: use 'city' when the user names a city or metro area such as NYC, 'airport' for a specific airport, or 'none' when the intent is genuinely unknown.",
            "enum": [
              "airport",
              "city",
              "none"
            ],
            "title": "Location Type",
            "type": "string"
          },
          "query": {
            "description": "The exact location wording from the user (e.g., 'SF', 'San Francisco', 'NYC', 'JFK', 'Boston Logan'). Preserve abbreviations such as NYC; do not rewrite them before resolution.",
            "title": "Query",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "query",
          "rationale"
        ],
        "title": "GetFlightBookingLocations",
        "type": "object"
      },
      "GetFullTransactionMetadataRequestBody": {
        "description": "View all details, memos, funds, and receipts for a specific transaction.\n\nRead the amount from `amount_decimal`, which is already in `currency`'s major unit\nand needs no arithmetic. Ignore `amount_cents`; it is the same amount in minor units,\nkept only for backwards compatibility.",
        "properties": {
          "id": {
            "description": "Transaction id (from tool calls or metadata)",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "id",
          "rationale"
        ],
        "title": "GetFullTransactionMetadata",
        "type": "object"
      },
      "GetHotelRatesRequestBody": {
        "description": "Fetch available room-rate options for one selected hotel from SearchHotels. Use this after the user picks a hotel from SearchHotels results and before booking. Every current room group and its rates for the stay are returned in all_rates; the returned rate.id values are the exact IDs to pass to SubmitHotelBooking. These rates are current options, not quotes - wait for the traveler to select one exact rate. When the result's all_rates_out_of_policy is true, every rate at this hotel is out of policy for the stay: tell the traveler, prefer offering an in-policy hotel from the SearchHotels results, and proceed with this hotel only if the traveler explicitly chooses to - booking will then require an oop_reason at SubmitHotelBooking.",
        "properties": {
          "check_in_date": {
            "description": "Hotel check-in date in YYYY-MM-DD format",
            "format": "date",
            "title": "Check In Date",
            "type": "string"
          },
          "check_out_date": {
            "description": "Hotel check-out date in YYYY-MM-DD format",
            "format": "date",
            "title": "Check Out Date",
            "type": "string"
          },
          "filters": {
            "allOf": [
              {
                "$ref": "#/components/schemas/HotelRateRecommendationFiltersRequestBody"
              }
            ],
            "default": null,
            "description": "Optional rate-level preferences from the traveler's saved or current-trip preferences. Rates meeting more preferences rank higher in recommended_rates, but best-available fallbacks are still returned when nothing matches (see each group's unmet_preferences); all_rates remains the complete selectable inventory.",
            "nullable": true
          },
          "hotel_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "description": "Hotel UUID from SearchHotels results."
          },
          "max_recommended_rates": {
            "default": 3,
            "description": "Maximum number of best recommended room-rate options to return. Defaults to 3. Pass 0 to suppress recommendations entirely for a plain listing: the result then has an empty display_ui_recommended_cards, renders no rate cards, and every rate is presented as text. Card-less callers receive recommended_rates alongside the complete all_rates inventory.",
            "minimum": 0,
            "title": "Max Recommended Rates",
            "type": "integer"
          },
          "num_adults": {
            "default": 1,
            "minimum": 1,
            "title": "Num Adults",
            "type": "integer"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "search_id": {
            "default": null,
            "description": "Completed SearchHotels search_id for the selected hotel. Pass it when available so the result includes cached hotel metadata, including office travel details.",
            "nullable": true,
            "title": "Search Id",
            "type": "string"
          },
          "traveler_user_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "Traveler UUID when retrieving rates on behalf of another user.",
            "nullable": true
          }
        },
        "required": [
          "check_in_date",
          "check_out_date",
          "hotel_id",
          "rationale"
        ],
        "title": "GetHotelRates",
        "type": "object"
      },
      "GetHotelRatesResult": {
        "properties": {
          "all_rates": {
            "description": "All available room-rate groups for the selected hotel. Omitted from the model-facing result when recommendation cards render; re-call with max_recommended_rates=0 when the traveler asks for more options.",
            "items": {
              "$ref": "#/components/schemas/HotelRoomRates"
            },
            "title": "All Rates",
            "type": "array"
          },
          "all_rates_out_of_policy": {
            "default": false,
            "description": "True when every returned rate at this hotel has a resolved out-of-policy verdict. Tell the traveler, prefer offering the next recommended in-policy hotel from the search results, and only proceed here if they explicitly choose to - booking will then require an oop_reason at SubmitHotelBooking.",
            "title": "All Rates Out Of Policy",
            "type": "boolean"
          },
          "assistant_note": {
            "default": "Recommendation cards are the sole presentation for these rates, including on later turns. Even if asked to repeat, summarize, compare, count, rank, or tabulate them, refer to the cards collectively and never reproduce card content. Reply only with a brief selection prompt and, when applicable, the SearchHotels browse link. Each card already shows its own recommendation_reason, so never restate, paraphrase, or summarize why a rate was recommended. The user can also select a rate directly on a card; that selection arrives with their next message.",
            "description": "Short presentation reminder addressed to the assistant reading this result; always present. UI clients should ignore it.",
            "title": "Assistant Note",
            "type": "string"
          },
          "blocked_options": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BlockedOptionsV1"
              }
            ],
            "default": null,
            "description": "Room rates the company's booking rules block. They are left out of every rate list while any rate the rules allow was found; otherwise the lists hold those rates, each marked is_blocked, and only_blocked_results is true. Follow assistant_note when presenting it. None when nothing was blocked.",
            "nullable": true
          },
          "check_in_date_display": {
            "default": null,
            "description": "Display-final check-in date for rate cards, e.g. 'Wed Aug 12'. The requested stay dates stay canonical.",
            "nullable": true,
            "title": "Check In Date Display",
            "type": "string"
          },
          "check_out_date_display": {
            "default": null,
            "description": "Display-final check-out date for rate cards, e.g. 'Fri Aug 14'. The requested stay dates stay canonical.",
            "nullable": true,
            "title": "Check Out Date Display",
            "type": "string"
          },
          "display_ui_recommended_cards": {
            "description": "Top recommended room-rate groups for the selected hotel. Always present; the client renders each entry as a card, so refer to them collectively and never re-list a carded rate in text. Empty ([]) when the caller passed max_recommended_rates=0 or the provider returned no recommendations, or when the company's booking rules block every rate; then no cards render and the assistant_note says to present the rates as text. Best-available out-of-policy recommendations still render when every rate is out of policy.",
            "items": {
              "$ref": "#/components/schemas/HotelRoomRates"
            },
            "title": "Display Ui Recommended Cards",
            "type": "array"
          },
          "has_corporate_rates": {
            "description": "Whether this hotel has business-level negotiated/corporate rates.",
            "title": "Has Corporate Rates",
            "type": "boolean"
          },
          "hotel": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SelectedHotel"
              }
            ],
            "description": "Summary of the selected hotel."
          },
          "phone_option": {
            "allOf": [
              {
                "$ref": "#/components/schemas/HotelPhoneOptionV1"
              }
            ],
            "default": null,
            "description": "SMS travel visuals only: this hotel's first recommended bookable rate as a ready option card. Omitted elsewhere.",
            "nullable": true
          },
          "recommended_rates": {
            "description": "Full payloads for the recommended room-rate groups. Populated only when recommendation cards do not render, alongside all_rates, so card-less callers can identify the recommended rates and use their recommendation_reason values. Empty when display_ui_recommended_cards is non-empty.",
            "items": {
              "$ref": "#/components/schemas/HotelRoomRates"
            },
            "title": "Recommended Rates",
            "type": "array"
          },
          "traveler_user_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "description": "Traveler UUID for delegated lookups; pass it to SubmitHotelBooking.",
            "nullable": true
          },
          "type": {
            "default": "hotel_rates",
            "description": "Constant discriminator identifying this tool result payload.",
            "enum": [
              "hotel_rates"
            ],
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "all_rates",
          "all_rates_out_of_policy",
          "assistant_note",
          "blocked_options",
          "check_in_date_display",
          "check_out_date_display",
          "display_ui_recommended_cards",
          "has_corporate_rates",
          "hotel",
          "recommended_rates",
          "traveler_user_id",
          "type"
        ],
        "title": "GetHotelRatesResult",
        "type": "object"
      },
      "GetInvestmentAccountBalanceOutput": {
        "properties": {
          "accounts": {
            "items": {
              "$ref": "#/components/schemas/InvestmentAccountBalanceInfo"
            },
            "title": "Accounts",
            "type": "array"
          },
          "currency": {
            "$ref": "#/components/schemas/Currency"
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "total_available_balance": {
            "title": "Total Available Balance",
            "type": "number"
          },
          "total_statement_balance": {
            "title": "Total Statement Balance",
            "type": "number"
          }
        },
        "required": [
          "accounts",
          "currency",
          "message",
          "total_available_balance",
          "total_statement_balance"
        ],
        "title": "GetInvestmentAccountBalanceOutput",
        "type": "object"
      },
      "GetInvestmentAccountBalanceRequestBody": {
        "description": "Get the balance of investment accounts for the business.\n\nUse this when the user asks about investment account balances, brokerage cash,\nor the current balance of Ramp investment accounts. Returns all investment\naccounts the business has, along with balances, status, yield, and earnings.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "GetInvestmentAccountBalance",
        "type": "object"
      },
      "GetLatestSyncRequestBody": {
        "description": "Get the most recent accounting sync commit for the acting user's business and sync type.\n\nUse this when you need the latest sync status plus every intended and successful count exposed by Ramp's accounting latest-sync endpoint.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "sync_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/LatestSyncRequestTypeRequestBody"
              }
            ],
            "description": "Sync type to fetch, such as TRANSACTION_SYNC, BILL_SYNC, BILL_PAYMENT_SYNC, REIMBURSEMENT_SYNC, TRANSFER_SYNC, WALLET_TRANSFER_SYNC, or ACCRUAL_SYNC."
          }
        },
        "required": [
          "rationale",
          "sync_type"
        ],
        "title": "GetLatestSync",
        "type": "object"
      },
      "GetLatestSyncResponse": {
        "properties": {
          "message": {
            "default": null,
            "description": "Explanation of whether sync exists.",
            "nullable": true,
            "title": "Message",
            "type": "string"
          },
          "result": {
            "allOf": [
              {
                "$ref": "#/components/schemas/LatestSyncInfo"
              }
            ],
            "description": "The latest sync commit details, or null when no sync history exists for the requested sync type.",
            "nullable": true
          }
        },
        "required": [
          "message",
          "result"
        ],
        "title": "GetLatestSyncResponse",
        "type": "object"
      },
      "GetManagedPortfolioAccountBalanceOutput": {
        "properties": {
          "accounts": {
            "items": {
              "$ref": "#/components/schemas/ManagedPortfolioAccountBalanceInfo"
            },
            "title": "Accounts",
            "type": "array"
          },
          "currency": {
            "$ref": "#/components/schemas/Currency"
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "total_available_balance": {
            "title": "Total Available Balance",
            "type": "number"
          },
          "total_market_value": {
            "title": "Total Market Value",
            "type": "number"
          },
          "total_statement_balance": {
            "title": "Total Statement Balance",
            "type": "number"
          }
        },
        "required": [
          "accounts",
          "currency",
          "message",
          "total_available_balance",
          "total_market_value",
          "total_statement_balance"
        ],
        "title": "GetManagedPortfolioAccountBalanceOutput",
        "type": "object"
      },
      "GetManagedPortfolioAccountBalanceRequestBody": {
        "description": "Get the balance of managed portfolio accounts for the business.\n\nUse this when the user asks about managed portfolio balances, managed\nportfolio cash, or the current balance of Ramp managed portfolio accounts.\nReturns all managed portfolio accounts the business has, along with balances,\nmarket value, status, yield, and earnings.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "GetManagedPortfolioAccountBalance",
        "type": "object"
      },
      "GetMissingItemsByUserRequestBody": {
        "description": "Get transactions still missing what the submission policy requires (receipts above its threshold, memos, policy-required accounting fields), grouped by user. Reflects the submission policy only: accounting fields required only to sync to the accounting system are not included, so an empty result does not mean transactions are coded or ready to sync. Returns a paginated list of users you are allowed to view, with sample transactions and what each is missing. Use get-transaction-missing-items for per-transaction detail.",
        "properties": {
          "only_missing_receipt": {
            "default": false,
            "description": "Set true to return only transactions that are missing a receipt, ignoring transactions whose only outstanding items are memos or accounting fields.",
            "title": "Only Missing Receipt",
            "type": "boolean"
          },
          "page_cursor": {
            "default": null,
            "description": "Pagination cursor for fetching additional pages of users.",
            "nullable": true,
            "title": "Page Cursor",
            "type": "string"
          },
          "page_size": {
            "default": 10,
            "description": "Number of users to return per page.",
            "maximum": 20,
            "title": "Page Size",
            "type": "integer"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "user_limit": {
            "default": 5,
            "description": "Maximum number of transactions to show per user.",
            "maximum": 20,
            "title": "User Limit",
            "type": "integer"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "GetMissingItemsByUser",
        "type": "object"
      },
      "GetMissingItemsByUserResult": {
        "properties": {
          "next_page": {
            "default": null,
            "description": "Pagination cursor for next page of users",
            "nullable": true,
            "title": "Next Page",
            "type": "string"
          },
          "total_user_count": {
            "default": null,
            "description": "Total number of users with missing items",
            "nullable": true,
            "title": "Total User Count",
            "type": "integer"
          },
          "users_with_missing_items": {
            "description": "Users who have transactions with missing items, with sample transactions",
            "items": {
              "$ref": "#/components/schemas/UserMissingItems"
            },
            "title": "Users With Missing Items",
            "type": "array"
          }
        },
        "required": [
          "users_with_missing_items"
        ],
        "title": "GetMissingItemsByUserResult",
        "type": "object"
      },
      "GetMoreToolsRequestBody": {
        "description": "Check whether Ramp has a tool for something your Ramp tools can't do.\n\nUse this when the user's request cannot be completed with the available Ramp\ntools. Describe the user's goal and the capability that would be needed. The\nreply says whether Ramp has a tool for it that this user can't use (and why),\nor that Ramp has none; either way the request is recorded.",
        "properties": {
          "context": {
            "description": "The user's goal and the missing capability needed to accomplish it. Do not include secrets, credentials, or financial account details.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Context",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "context",
          "rationale"
        ],
        "title": "GetMoreTools",
        "type": "object"
      },
      "GetMoreToolsResult": {
        "properties": {
          "message": {
            "title": "Message",
            "type": "string"
          },
          "reason": {
            "default": null,
            "enum": [
              "disabled_for_business",
              "missing_permissions"
            ],
            "nullable": true,
            "title": "Reason",
            "type": "string"
          }
        },
        "required": [
          "message"
        ],
        "title": "GetMoreToolsResult",
        "type": "object"
      },
      "GetMyAiTokenSpendAggregatesRequestBody": {
        "description": "Aggregate the acting user's own AI token usage and estimated token cost over a time window, optionally grouped by provider and model.",
        "properties": {
          "end_at": {
            "description": "Exclusive UTC end of the window. ISO date or datetime.",
            "format": "date-time",
            "title": "End At",
            "type": "string"
          },
          "group_by": {
            "description": "Dimensions to break results down by. Supported: 'provider', 'model'.",
            "items": {
              "enum": [
                "model",
                "provider"
              ],
              "type": "string"
            },
            "title": "Group By",
            "type": "array"
          },
          "model_compute_tier": {
            "description": "Restrict to these compute-tier facet keys.",
            "items": {
              "type": "string"
            },
            "title": "Model Compute Tier",
            "type": "array"
          },
          "model_context_window": {
            "description": "Restrict to these context-window facet keys.",
            "items": {
              "type": "string"
            },
            "title": "Model Context Window",
            "type": "array"
          },
          "model_families": {
            "description": "Restrict to these model family keys.",
            "items": {
              "type": "string"
            },
            "title": "Model Families",
            "type": "array"
          },
          "model_fine_tune_source": {
            "description": "Restrict to these fine-tune-source facet keys.",
            "items": {
              "type": "string"
            },
            "title": "Model Fine Tune Source",
            "type": "array"
          },
          "model_speed": {
            "description": "Restrict to these speed facet keys.",
            "items": {
              "type": "string"
            },
            "title": "Model Speed",
            "type": "array"
          },
          "model_thinking": {
            "description": "Restrict to these thinking-mode facet keys.",
            "items": {
              "type": "string"
            },
            "title": "Model Thinking",
            "type": "array"
          },
          "models": {
            "description": "Restrict to these exact model names.",
            "items": {
              "type": "string"
            },
            "title": "Models",
            "type": "array"
          },
          "providers": {
            "description": "Restrict to these providers. Supported: OPENAI, ANTHROPIC, CURSOR, GCP, RAMP, and other provider names returned in results. RAMP is Ramp Router usage; other providers exclude Router usage even when Router routed the request to that vendor.",
            "items": {
              "type": "string"
            },
            "title": "Providers",
            "type": "array"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "rollup": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AiTokenTrackingAggregateRollupRequestBody"
              }
            ],
            "default": "all",
            "description": "Time bucketing. 'all' returns a single bucket per group; 'daily'/'weekly'/'monthly' return one row per bucket per group."
          },
          "start_at": {
            "description": "Inclusive UTC start of the window. ISO date or datetime.",
            "format": "date-time",
            "title": "Start At",
            "type": "string"
          }
        },
        "required": [
          "end_at",
          "rationale",
          "start_at"
        ],
        "title": "GetMyAiTokenSpendAggregates",
        "type": "object"
      },
      "GetOfficeLocationsRequestBody": {
        "description": "Retrieve the company's office locations and addresses. Use this to find office addresses when searching for hotels near an office or determining travel destinations.\n\nThe two shapes are complementary: ``office_locations`` has coordinates but no\nstreet address, and ``company_address`` has a street address but no coordinates.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "GetOfficeLocations",
        "type": "object"
      },
      "GetOfficeLocationsResult": {
        "properties": {
          "company_address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CompanyAddress"
              }
            ],
            "default": null,
            "description": "The company's primary registered address, if available. Street address only, with no coordinates.",
            "nullable": true
          },
          "office_locations": {
            "description": "Additional office locations configured for travel, each with a display name and coordinates but no street address. Use these coordinates to anchor a hotel search to an office.",
            "items": {
              "$ref": "#/components/schemas/OfficeLocationDetail"
            },
            "title": "Office Locations",
            "type": "array"
          }
        },
        "required": [
          "company_address",
          "office_locations"
        ],
        "title": "GetOfficeLocationsResult",
        "type": "object"
      },
      "GetOrgChartRequestBody": {
        "description": "Get org chart for a user, including reporting chain and direct reports.\n\nThis tool provides comprehensive org chart visibility including:\n- The user's position in the organization\n- Their direct reports (team members)\n- Their reporting chain (managers up the hierarchy)\n\nUse this tool whenever the user asks anything about their manager, team, or direct reports.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "user_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "Ramp user UUID to get the org chart for. Omit this field or pass null to get the org chart for the current user.",
            "nullable": true
          }
        },
        "required": [
          "rationale"
        ],
        "title": "GetOrgChart",
        "type": "object"
      },
      "GetOutstandingReimbursementsByCurrencyRequestBody": {
        "description": "Get approved and failed reimbursements that would be affected by a bank account currency change.",
        "properties": {
          "entity_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "Optional entity UUID to check entity-level reimbursements instead of the current user's.",
            "nullable": true
          },
          "new_currency": {
            "description": "The currency code of the new bank account (e.g. 'USD', 'EUR', 'GBP').",
            "title": "New Currency",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "new_currency",
          "rationale"
        ],
        "title": "GetOutstandingReimbursementsByCurrency",
        "type": "object"
      },
      "GetOutstandingReimbursementsSuccess": {
        "properties": {
          "failed_reimbursement_uuids": {
            "description": "UUIDs of failed reimbursements affected by the currency mismatch",
            "items": {
              "$ref": "#/components/schemas/EntityUUIDStr"
            },
            "title": "Failed Reimbursement Uuids",
            "type": "array"
          },
          "reimbursement_uuids": {
            "description": "UUIDs of approved reimbursements affected by the currency mismatch",
            "items": {
              "$ref": "#/components/schemas/EntityUUIDStr"
            },
            "title": "Reimbursement Uuids",
            "type": "array"
          }
        },
        "required": [
          "failed_reimbursement_uuids",
          "reimbursement_uuids"
        ],
        "title": "GetOutstandingReimbursementsSuccess",
        "type": "object"
      },
      "GetPendingRequestItemsRequestBody": {
        "description": "Get the follow-up items, such as documents, that Ramp requested for the financing application of the business you are acting on and that are not yet resolved.\n\nThe business can be your own, or a client business whose application your accounting\nfirm prepares (an assisted application). Use this when the user asks what documents or\nfollow-up items are outstanding. This does not change or submit any item.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "GetPendingRequestItems",
        "type": "object"
      },
      "GetPendingRequestItemsResult": {
        "properties": {
          "is_submission_ready": {
            "description": "Whether every outstanding item is complete and waiting on the customer, so the items can be submitted to Ramp.",
            "title": "Is Submission Ready",
            "type": "boolean"
          },
          "request_items": {
            "description": "Follow-up items Ramp requested that are not yet resolved, including items waiting on Ramp's review. Empty when nothing is outstanding.",
            "items": {
              "$ref": "#/components/schemas/RequestItemInfo"
            },
            "title": "Request Items",
            "type": "array"
          },
          "submission_due_date": {
            "default": null,
            "description": "Latest due date for submitting the items; null if none is set.",
            "nullable": true,
            "title": "Submission Due Date",
            "type": "string"
          },
          "total_count": {
            "description": "Number of request items returned.",
            "title": "Total Count",
            "type": "integer"
          }
        },
        "required": [
          "is_submission_ready",
          "request_items",
          "total_count"
        ],
        "title": "GetPendingRequestItemsResult",
        "type": "object"
      },
      "GetPendingTravelRequestsRequestBody": {
        "description": "Retrieves travel/booking requests that are pending approval from the current user.\n\nUse this when a user asks about travel requests they need to approve.\nReturns pending flight, hotel, and car rental booking requests that require action.",
        "properties": {
          "next_page_cursor": {
            "default": null,
            "description": "Cursor from the previous response. Omit for the first page and pass the returned value unchanged for subsequent pages.",
            "nullable": true,
            "title": "Next Page Cursor",
            "type": "string"
          },
          "page_size": {
            "default": 20,
            "description": "Number of pending travel requests to return per page.",
            "maximum": 50,
            "minimum": 1,
            "title": "Page Size",
            "type": "integer"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "GetPendingTravelRequests",
        "type": "object"
      },
      "GetPlanningBudgetRequestBody": {
        "description": "Read the business's planning budget: its lines, dimensions, and owners.\n\nOptionally includes per-period amounts or totals over a month range.\nA business has one planning budget. Lines are grouped by their values in\ndimension order: each prefix is a group, a skipped dimension shows as\n\"Unknown\", and a line whose values are a group's is that group's \"Other\".\nNodes are addressed by path, such as \"Engineering > Software\". Line owners come\nfrom their selected dimension values; they are not assigned directly to lines.\nEach line's amounts are its own; a group's amounts total the lines under it.\nAmounts are omitted unless requested, to keep large budgets small. Setting either totals\nmonth returns each line's planned, actual, committed, and remaining totals over\nthat range, with an open side extending to the budget's edge. Filter to a\ngroup or line and everything under it, or to nodes with a dimension value, and page\nthrough large budgets; `total_lines` counts every match. Fails if the\nbusiness has no planning budget yet.",
        "properties": {
          "cursor": {
            "default": null,
            "description": "The previous page's next_cursor; keep every other input unchanged. Edits between pages can shift lines across pages.",
            "nullable": true,
            "title": "Cursor",
            "type": "string"
          },
          "dimension_value": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DimensionValueByNameRequestBody"
              }
            ],
            "default": null,
            "description": "Returns only groups and lines whose own values include this value; nodes above and below them are not added. The dimension must be selected by the budget.",
            "nullable": true
          },
          "include_amounts": {
            "default": false,
            "description": "Include per-period planned and actual amounts.",
            "title": "Include Amounts",
            "type": "boolean"
          },
          "line_path_prefix": {
            "default": null,
            "description": "A group or line path, such as \"Engineering > Software\", matched case-insensitively. Returns that node and everything under it.",
            "nullable": true,
            "title": "Line Path Prefix",
            "type": "string"
          },
          "page_size": {
            "default": 100,
            "description": "Most lines to return per page.",
            "maximum": 500,
            "minimum": 1,
            "title": "Page Size",
            "type": "integer"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "totals_from_month": {
            "default": null,
            "description": "Any day in the first month to total.",
            "format": "date",
            "nullable": true,
            "title": "Totals From Month",
            "type": "string"
          },
          "totals_to_month": {
            "default": null,
            "description": "Any day in the last month to total, inclusive.",
            "format": "date",
            "nullable": true,
            "title": "Totals To Month",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "GetPlanningBudget",
        "type": "object"
      },
      "GetPlanningDimensionsRequestBody": {
        "description": "Read the planning budget's active dimensions, values, rules, and owners.\n\nReturns names and stable UUIDs, including the complete condition expressions.\nThe budget owns these definitions; they are not inferred from line names.\nReturns an empty catalog when the business has no planning budget yet.\nThis operation does not change data.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "GetPlanningDimensions",
        "type": "object"
      },
      "GetPluginMarketplaceStatusRequestBody": {
        "description": "List this business's plugins in the Ramp plugin marketplace, or get one plugin with its review status.\n\nWithout plugin_id, returns each plugin with its plugin_id, revision, and the name\nand status of its latest version. With plugin_id, returns the plugin, its versions,\nand the full content of its latest version, including the reviewer's decision and\nfeedback once it has been reviewed. Each version row has its version_id and the\nplugin's current revision, which are what a submit needs. Does not change anything.",
        "properties": {
          "cursor": {
            "default": null,
            "description": "next_cursor from a previous list response, to get the next page. Used only without plugin_id; a null next_cursor means the last page.",
            "nullable": true,
            "title": "Cursor",
            "type": "string"
          },
          "plugin_id": {
            "default": null,
            "description": "UUID of one plugin to return in full. Omit to list all plugins.",
            "format": "uuid",
            "nullable": true,
            "title": "Plugin Id",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "GetPluginMarketplaceStatus",
        "type": "object"
      },
      "GetPluginMarketplaceStatusResponse": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/PluginMarketplaceDetails"
          },
          {
            "$ref": "#/components/schemas/PluginsPage"
          }
        ],
        "title": "GetPluginMarketplaceStatusResponse"
      },
      "GetPolicyDetailsRequestBody": {
        "description": "Fetch detailed metadata for one workflow-backed policy by UUID, including display name, spend type, default status, and separation-of-duties configuration, plus whether policy changes require approval. Accepts either the policy UUID or the backing product workflow UUID returned by list-policies.",
        "properties": {
          "kind": {
            "allOf": [
              {
                "$ref": "#/components/schemas/OmniPolicyWorkflowKindRequestBody"
              }
            ],
            "description": "Which policy family to query. Must match the kind returned by ListPolicies for this UUID."
          },
          "policy_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UUIDStrRequestBody"
              }
            ],
            "description": "UUID of the policy to fetch. Accepts either the policy's own UUID or the UUID of its backing ProductWorkflow (the workflow builder URL path param)."
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "kind",
          "policy_uuid",
          "rationale"
        ],
        "title": "GetPolicyDetails",
        "type": "object"
      },
      "GetPolicyWorkflowBodyPublicSuccess": {
        "description": "Published or historical workflow body for a policy.",
        "properties": {
          "condition_operands": {
            "description": "Compact condition operand catalog derived from workflow state. Use variable_name for condition left operands.",
            "items": {
              "$ref": "#/components/schemas/WorkflowConditionOperand"
            },
            "title": "Condition Operands",
            "type": "array"
          },
          "from_historical_version": {
            "default": false,
            "description": "True when the body was loaded from a specific workflow version.",
            "title": "From Historical Version",
            "type": "boolean"
          },
          "identifier": {
            "default": null,
            "description": "Workflow identifier string (e.g. 'spend-request-approval-policy', 'submission-policy').",
            "nullable": true,
            "title": "Identifier",
            "type": "string"
          },
          "included_available_operands": {
            "default": false,
            "description": "True when the response includes the full workflow operand/object catalog. The default compact response omits it.",
            "title": "Included Available Operands",
            "type": "boolean"
          },
          "meta_data": {
            "description": "Workflow metadata.",
            "title": "Meta Data",
            "type": "object"
          },
          "no_approver_fallback_supported": {
            "default": false,
            "description": "Whether this business and workflow support the no-approver fallback.",
            "title": "No Approver Fallback Supported",
            "type": "boolean"
          },
          "option_catalogs": {
            "description": "Selectable options for the Ramp-defined object catalogs referenced by condition_operands and this workflow's action arguments, such as expense types, user roles, or relative approver roles. Catalogs absent from this list or marked search_required must be searched. Omitted for historical versions.",
            "items": {
              "$ref": "#/components/schemas/WorkflowOptionCatalog"
            },
            "title": "Option Catalogs",
            "type": "array"
          },
          "policy_uuid": {
            "description": "Canonical UUID of the resolved policy.",
            "title": "Policy Uuid",
            "type": "string"
          },
          "product_workflow_uuid": {
            "description": "UUID of the backing product workflow.",
            "title": "Product Workflow Uuid",
            "type": "string"
          },
          "workflow_json": {
            "description": "Compact workflow vertices describing the policy's branch structure ({vertices, fallback_vertices, state}). Large operand/object catalogs are omitted; use condition_operands as the compact condition operand catalog. Amount condition operands use major currency units, not cents; for example, $5,000 is represented as 5000. A money condition's currency is its currency field; a condition without one is USD. Hidden empty fallback arrays are omitted; consult workflow_outline for what is actually visible.",
            "title": "Workflow Json",
            "type": "object"
          },
          "workflow_outline": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WorkflowOutline"
              }
            ],
            "default": null,
            "description": "Derived index of the workflow steps the user actually sees in the workflow builder, with the container, parent_condition_uuid, branch_index, and position coordinates of each step. The nested workflow_json remains the source-of-truth DAG; fallback branches hidden from the builder are omitted here.",
            "nullable": true
          },
          "workflow_uuid": {
            "default": null,
            "description": "Workflow UUID of the body returned, when known.",
            "nullable": true,
            "title": "Workflow Uuid",
            "type": "string"
          }
        },
        "required": [
          "policy_uuid",
          "product_workflow_uuid",
          "workflow_json"
        ],
        "title": "GetPolicyWorkflowBodyPublicSuccess",
        "type": "object"
      },
      "GetPolicyWorkflowBodyRequestBody": {
        "description": "Fetch the published (or a specific historical) workflow body for a workflow-backed policy, including compact branch structure, condition operands, and a workflow outline of the visible builder steps. Accepts the policy UUID or the backing product workflow UUID from list-policies. Use this for workflow routing and thresholds, not for written policy document guidance.",
        "properties": {
          "kind": {
            "allOf": [
              {
                "$ref": "#/components/schemas/OmniPolicyWorkflowKindRequestBody"
              }
            ],
            "description": "Which policy family to query."
          },
          "policy_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UUIDStrRequestBody"
              }
            ],
            "description": "UUID of the policy whose workflow body to fetch. Accepts either the policy's own UUID or the backing ProductWorkflow UUID."
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "workflow_uuid": {
            "default": null,
            "description": "Optional Workflow UUID belonging to this policy. Selects an exact published or historical version or, in editor sessions, this policy's unpublished draft (the draft_workflow_uuid from draft tools). Omit for the current body, which may include unpublished changes in editor sessions.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "kind",
          "policy_uuid",
          "rationale"
        ],
        "title": "GetPolicyWorkflowBody",
        "type": "object"
      },
      "GetProcurementDraftRequestBody": {
        "description": "Refresh and canonically revalidate a procurement draft's visible form state.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "spend_request_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UUIDStrRequestBody"
              }
            ],
            "description": "Draft spend request UUID returned by draft_procurement_request."
          }
        },
        "required": [
          "rationale",
          "spend_request_uuid"
        ],
        "title": "GetProcurementDraft",
        "type": "object"
      },
      "GetPurchaseOrderDetailsRequestBody": {
        "description": "Get comprehensive details about a specific purchase order.\n\nUse this with the exact purchase order UUID from a tool result or page\ncontext. A unified_request_id or spend_request_uuid of a purchase-order\nrequest also resolves to its purchase order. Never pass a purchase order\nnumber, a bill or other entity's UUID, a placeholder, or a guessed value.",
        "properties": {
          "purchase_order_id": {
            "description": "Exact purchase_order_id copied from a tool result or page context. A unified_request_id or spend_request_uuid of a purchase-order request also resolves to its purchase order. Do not pass a PO number, a bill, transaction, or vendor UUID, the all-zero UUID, a placeholder, or a guessed or edited value.",
            "format": "uuid",
            "title": "Purchase Order Id",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "purchase_order_id",
          "rationale"
        ],
        "title": "GetPurchaseOrderDetails",
        "type": "object"
      },
      "GetPurchaseOrderLineItemTrackingCategoriesRequestBody": {
        "description": "Retrieve the tracking categories available for purchase order line items.\n\nReturns the accounting fields (e.g., GL Account, Class, Item) that can be\nset on individual line items of a purchase order. These are filtered to\nonly the categories allowed for line-item-level coding based on the\nbusiness's accounting provider configuration.\n\nTo get the selectable options for a specific category, pass its\n`tracking_category_uuid` to GetTrackingCategoryOptions.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "GetPurchaseOrderLineItemTrackingCategories",
        "type": "object"
      },
      "GetPurchaseOrderLineItemTrackingCategoriesResult": {
        "description": "Response containing tracking categories available for PO line items.",
        "properties": {
          "tracking_categories": {
            "description": "List of tracking categories allowed on PO line items",
            "items": {
              "$ref": "#/components/schemas/POLineItemTrackingCategoryInfo"
            },
            "title": "Tracking Categories",
            "type": "array"
          }
        },
        "required": [
          "tracking_categories"
        ],
        "title": "GetPurchaseOrderLineItemTrackingCategoriesResult",
        "type": "object"
      },
      "GetRFXDetailOutput": {
        "properties": {
          "available_actions": {
            "description": "Per-action availability for the acting user, including publish readiness blockers",
            "items": {
              "$ref": "#/components/schemas/RFXAvailableActionDetail"
            },
            "title": "Available Actions",
            "type": "array"
          },
          "close_date": {
            "default": null,
            "description": "RSVP deadline \u2014 vendors cannot accept invitations after this date",
            "format": "date",
            "nullable": true,
            "title": "Close Date",
            "type": "string"
          },
          "cover_sheet": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RFXCoverSheetDetail"
              }
            ],
            "default": null,
            "description": "Vendor-facing cover sheet; None when not configured",
            "nullable": true
          },
          "description": {
            "default": null,
            "nullable": true,
            "title": "Description",
            "type": "string"
          },
          "grading_mode": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RFXGradingMode"
              }
            ],
            "description": "How responses are graded: AI_ONLY uses automatically accepted AI grades; MANUAL_REVIEW records assigned users' review"
          },
          "name": {
            "description": "Name of the RFX",
            "title": "Name",
            "type": "string"
          },
          "pricing_sheet": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RFXPricingSheetDetail"
              }
            ],
            "default": null,
            "description": "Pricing sheet configuration; presence means vendor pricing is enabled for this RFX",
            "nullable": true
          },
          "publish_requires_approval": {
            "description": "True when publishing routes through an approval workflow (DRAFT moves to IN_REVIEW instead of PUBLISHED)",
            "title": "Publish Requires Approval",
            "type": "boolean"
          },
          "response_submission_deadline": {
            "default": null,
            "description": "Deadline for vendors to submit their responses (>= close_date)",
            "format": "date",
            "nullable": true,
            "title": "Response Submission Deadline",
            "type": "string"
          },
          "rfx_id": {
            "description": "UUID of the RFX",
            "title": "Rfx Id",
            "type": "string"
          },
          "rfx_type": {
            "description": "Type of RFX: RFI, RFP, or RFQ",
            "title": "Rfx Type",
            "type": "string"
          },
          "sections": {
            "description": "Questionnaire sections and fields, in vendor-facing order",
            "items": {
              "$ref": "#/components/schemas/RFXSectionDetail"
            },
            "title": "Sections",
            "type": "array"
          },
          "sourcing_event_id": {
            "description": "UUID of the parent sourcing event",
            "title": "Sourcing Event Id",
            "type": "string"
          },
          "status": {
            "description": "Lifecycle status: DRAFT, IN_REVIEW, PUBLISHED, GRADED, or CLOSED",
            "title": "Status",
            "type": "string"
          },
          "vendors": {
            "description": "All vendor invitations on this RFX, including drafts",
            "items": {
              "$ref": "#/components/schemas/RFXVendorInvitationDetail"
            },
            "title": "Vendors",
            "type": "array"
          }
        },
        "required": [
          "available_actions",
          "close_date",
          "cover_sheet",
          "description",
          "grading_mode",
          "name",
          "pricing_sheet",
          "publish_requires_approval",
          "response_submission_deadline",
          "rfx_id",
          "rfx_type",
          "sections",
          "sourcing_event_id",
          "status",
          "vendors"
        ],
        "title": "GetRFXDetailOutput",
        "type": "object"
      },
      "GetRFXDetailRequestBody": {
        "description": "Get the full configuration of one RFX: questionnaire sections and fields,\ncover sheet, pricing sheet, dates, vendor invitations with contacts, and the\nactions the acting user can currently perform.\n\nUse this to inspect or review a specific RFX before editing, inviting\nvendors, or publishing. The ``available_actions`` block is the publish\npreflight: it reports whether publish (and every other lifecycle action) is\ncurrently allowed and why not, and the ``vendors`` block lists the exact\ncontacts who would be notified on publish. For response contents or grading\nstate, use GetRFXVendorResponses, GetRFXResponseSummary, or\nGetRFXGradingOverview instead.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "rfx_id": {
            "description": "UUID of the RFX to inspect",
            "format": "uuid",
            "title": "Rfx Id",
            "type": "string"
          }
        },
        "required": [
          "rationale",
          "rfx_id"
        ],
        "title": "GetRFXDetail",
        "type": "object"
      },
      "GetRFXGradingOverviewOutput": {
        "properties": {
          "grading_insight": {
            "allOf": [
              {
                "$ref": "#/components/schemas/GradingInsightDetail"
              }
            ],
            "default": null,
            "description": "AI-generated grading insight comparing vendors; None when not yet generated",
            "nullable": true
          },
          "grading_mode": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RFXGradingMode"
              }
            ],
            "description": "How responses are graded: AI_ONLY uses automatically accepted AI grades; MANUAL_REVIEW records assigned users' review"
          },
          "rfx_id": {
            "description": "UUID of the RFX",
            "title": "Rfx Id",
            "type": "string"
          },
          "vendors": {
            "description": "Per-vendor grading state across sections",
            "items": {
              "$ref": "#/components/schemas/VendorGradingDetail"
            },
            "title": "Vendors",
            "type": "array"
          }
        },
        "required": [
          "grading_insight",
          "grading_mode",
          "rfx_id",
          "vendors"
        ],
        "title": "GetRFXGradingOverviewOutput",
        "type": "object"
      },
      "GetRFXGradingOverviewRequestBody": {
        "description": "Get grading outcomes for an RFX: AI-generated grading insights and\nrecommendations, per-vendor per-section grading status and aggregate\nscores, and any recorded field grades.\n\nUse this after grading wraps up to compare how vendors scored. The overview\nis only viewable once the RFX is GRADED or CLOSED; before that this tool\nreports it as unavailable. For the raw submitted answers, use\nGetRFXVendorResponses; for response and invitation progress counts, use\nGetRFXResponseSummary.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "rfx_id": {
            "description": "UUID of the RFX to inspect",
            "format": "uuid",
            "title": "Rfx Id",
            "type": "string"
          }
        },
        "required": [
          "rationale",
          "rfx_id"
        ],
        "title": "GetRFXGradingOverview",
        "type": "object"
      },
      "GetRFXResponseSummaryOutput": {
        "properties": {
          "close_date": {
            "default": null,
            "format": "date",
            "nullable": true,
            "title": "Close Date",
            "type": "string"
          },
          "description": {
            "default": null,
            "nullable": true,
            "title": "Description",
            "type": "string"
          },
          "grading_mode": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RFXGradingMode"
              }
            ],
            "description": "How responses are graded: AI_ONLY uses automatically accepted AI grades; MANUAL_REVIEW records assigned users' review"
          },
          "grading_overview_available": {
            "description": "Whether detailed grading overview data was available for this RFX",
            "title": "Grading Overview Available",
            "type": "boolean"
          },
          "invitation_summary": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RFXInvitationSummary"
              }
            ],
            "description": "Aggregate invitation and response counts for this RFX"
          },
          "name": {
            "description": "Name of the RFX",
            "title": "Name",
            "type": "string"
          },
          "recommendation_reasoning": {
            "default": null,
            "nullable": true,
            "title": "Recommendation Reasoning",
            "type": "string"
          },
          "recommended_vendor_name": {
            "default": null,
            "nullable": true,
            "title": "Recommended Vendor Name",
            "type": "string"
          },
          "rfx_id": {
            "description": "UUID of the RFX",
            "title": "Rfx Id",
            "type": "string"
          },
          "rfx_type": {
            "description": "Type of RFX, such as RFI, RFP, or RFQ",
            "title": "Rfx Type",
            "type": "string"
          },
          "sections": {
            "items": {
              "$ref": "#/components/schemas/RFXSectionSummary"
            },
            "title": "Sections",
            "type": "array"
          },
          "status": {
            "description": "Lifecycle status of the RFX",
            "title": "Status",
            "type": "string"
          },
          "takeaways": {
            "items": {
              "$ref": "#/components/schemas/RFXTakeawaySummary"
            },
            "title": "Takeaways",
            "type": "array"
          },
          "vendor_responses": {
            "items": {
              "$ref": "#/components/schemas/RFXVendorResponseSummary"
            },
            "title": "Vendor Responses",
            "type": "array"
          }
        },
        "required": [
          "grading_mode",
          "grading_overview_available",
          "invitation_summary",
          "name",
          "rfx_id",
          "rfx_type",
          "status"
        ],
        "title": "GetRFXResponseSummaryOutput",
        "type": "object"
      },
      "GetRFXResponseSummaryRequestBody": {
        "description": "Summarize vendor response and grading progress for a specific RFX.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "rfx_id": {
            "description": "UUID of the RFX to inspect",
            "format": "uuid",
            "title": "Rfx Id",
            "type": "string"
          }
        },
        "required": [
          "rationale",
          "rfx_id"
        ],
        "title": "GetRFXResponseSummary",
        "type": "object"
      },
      "GetRFXVendorResponsesRequestBody": {
        "description": "Return all submitted vendor responses for an RFX.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "rfx_id": {
            "description": "UUID of the RFX to inspect",
            "format": "uuid",
            "title": "Rfx Id",
            "type": "string"
          }
        },
        "required": [
          "rationale",
          "rfx_id"
        ],
        "title": "GetRFXVendorResponses",
        "type": "object"
      },
      "GetRampBusinessAccountBalanceOutput": {
        "properties": {
          "accounts": {
            "items": {
              "$ref": "#/components/schemas/RampBusinessAccountBalanceInfo"
            },
            "title": "Accounts",
            "type": "array"
          },
          "currency": {
            "title": "Currency",
            "type": "string"
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "total_available_balance": {
            "title": "Total Available Balance",
            "type": "number"
          },
          "total_statement_balance": {
            "title": "Total Statement Balance",
            "type": "number"
          }
        },
        "required": [
          "accounts",
          "currency",
          "message",
          "total_available_balance",
          "total_statement_balance"
        ],
        "title": "GetRampBusinessAccountBalanceOutput",
        "type": "object"
      },
      "GetRampBusinessAccountBalanceRequestBody": {
        "description": "Get the balance of Ramp Checking Accounts for the business.\n\nReturns the available balance, statement balance, and other details for all\nRamp Checking Accounts associated with the user's business. This includes\nyield/earnings information and account status.\n\nThis tool is intentionally limited to the stable user-facing fields for\nRamp Checking Accounts. Do not infer deprecated pending balances or current\nmonth accrued yield values from other treasury payloads when responding to\nthe user.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "GetRampBusinessAccountBalance",
        "type": "object"
      },
      "GetReceiptDetailsPublicResultJsonMode": {
        "properties": {
          "receipts": {
            "items": {
              "$ref": "#/components/schemas/PublicReceiptDetailJsonMode"
            },
            "title": "Receipts",
            "type": "array"
          }
        },
        "required": [
          "receipts"
        ],
        "title": "GetReceiptDetailsPublicResult",
        "type": "object"
      },
      "GetReceiptDetailsRequestBody": {
        "description": "Get structured extraction data for one or more receipts the caller can read by receipt UUID: merchant, date, amounts, taxes, fees, discounts, line items, and travel, delivery, or hotel details when extracted. Existing receipt and expense permissions apply within the authenticated business. Coworker receipts require receipt keyword search to be enabled; otherwise only own receipts are returned. Raw OCR text is not included.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "receipt_uuids": {
            "description": "List of receipt UUIDs to retrieve details for.",
            "items": {
              "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
            },
            "title": "Receipt Uuids",
            "type": "array"
          }
        },
        "required": [
          "rationale",
          "receipt_uuids"
        ],
        "title": "GetReceiptDetails",
        "type": "object"
      },
      "GetRecurringBillRequestBody": {
        "description": "Retrieve details of a recurring bill template including vendor, amount, recurrence schedule, and next payment date.\n\nBills in Ramp have two stages: draft bills (created/uploaded but not yet\nsubmitted; use the draft-bill tools) and bills (submitted; they move through\napproval, then scheduling, then payment). A draft keeps the same ID after\nsubmission, but draft-only tools stop working on it once submitted.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "recurring_bill_id": {
            "description": "The UUID of the recurring bill template to retrieve",
            "title": "Recurring Bill Id",
            "type": "string"
          }
        },
        "required": [
          "rationale",
          "recurring_bill_id"
        ],
        "title": "GetRecurringBill",
        "type": "object"
      },
      "GetReimbursementReceiptsRequestBody": {
        "description": "Retrieve receipts attached to a reimbursement.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "reimbursement_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "description": "UUID of the reimbursement. Look up the reimbursement to determine the UUID if it cannot be obtained from context.",
            "nullable": true
          }
        },
        "required": [
          "rationale",
          "reimbursement_uuid"
        ],
        "title": "GetReimbursementReceipts",
        "type": "object"
      },
      "GetReimbursementReceiptsSuccess": {
        "properties": {
          "receipts": {
            "items": {
              "$ref": "#/components/schemas/ReceiptInfo"
            },
            "title": "Receipts",
            "type": "array"
          }
        },
        "required": [
          "receipts"
        ],
        "title": "GetReimbursementReceiptsSuccess",
        "type": "object"
      },
      "GetReimbursementsForApprovalRequestBody": {
        "description": "Get employee reimbursements pending approval by the current user. Includes comments, policy assessment data, and recommended actions.",
        "properties": {
          "limit": {
            "default": 10,
            "title": "Limit",
            "type": "integer"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "GetReimbursementsForApproval",
        "type": "object"
      },
      "GetReimbursementsRequestBody": {
        "description": "List reimbursement history and current statuses, including older paid requests.\n\nSearch all visible reimbursements or filter by user, text, amount, tags,\ndates, approval status, and policy assessments.\n\nOmitting date filters searches history without a time cutoff. Results are\npaginated; continue with each returned next_page_cursor until it is null\nbefore treating the matching history as complete, preserving scope and filters.",
        "properties": {
          "from_date": {
            "default": null,
            "description": "Start date for filtering by when the reimbursement draft was created (YYYY-MM-DD format), not the expense/receipt transaction date. Do not set this when trying to match a newly uploaded receipt to an existing draft reimbursement; compare returned candidates' transaction_date instead.",
            "nullable": true,
            "title": "From Date",
            "type": "string"
          },
          "include_comments": {
            "default": false,
            "description": "Include comments for each returned reimbursement.",
            "title": "Include Comments",
            "type": "boolean"
          },
          "include_policy_assessment": {
            "default": false,
            "description": "Whether to include AI policy assessment data for each reimbursement. When true, each reimbursement will include a recommended approval action (approve/reject/review) and rationale based on policy analysis. Most useful when reviewing reimbursements for approval.",
            "title": "Include Policy Assessment",
            "type": "boolean"
          },
          "include_suggestions": {
            "default": false,
            "description": "Whether to include suggested memos, codings, and funds for each reimbursement. Only set to true when the user specifically needs autofill suggestions for missing items. Increases response time significantly.",
            "title": "Include Suggestions",
            "type": "boolean"
          },
          "next_page_cursor": {
            "default": null,
            "description": "Use this to get additional results after the first page. Copy the next_page_cursor value from a previous response to continue pagination",
            "nullable": true,
            "title": "Next Page Cursor",
            "type": "string"
          },
          "page_size": {
            "default": 50,
            "description": "Maximum number of reimbursements to return in one request. Use smaller numbers (10-25) for quick overviews, larger numbers (50-200) for comprehensive analysis",
            "maximum": 200,
            "minimum": 1,
            "title": "Page Size",
            "type": "integer"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "reimbursement_uuids": {
            "default": null,
            "description": "Filter by reimbursement UUIDs",
            "items": {
              "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
            },
            "nullable": true,
            "title": "Reimbursement Uuids",
            "type": "array"
          },
          "reimbursements_to_retrieve": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReimbursementSearchScopeRequestBody"
              }
            ],
            "default": "all_reimbursements",
            "description": "Which set of reimbursements to search: your own reimbursements, reimbursements awaiting your approval, or all reimbursements across the business"
          },
          "search_string": {
            "default": null,
            "description": "Search for reimbursements with matching merchant name, memo, or cardholder name. Do not set this when trying to match a newly uploaded receipt to a draft reimbursement; draft merchant names may be normalized differently from the receipt merchant.",
            "nullable": true,
            "title": "Search String",
            "type": "string"
          },
          "tags": {
            "default": null,
            "description": "Additional tag-based filters. Currently supported tags are User, ReimbursementStatus, ReimbursementType, SpendAllocation, and Merchant. You must provide actual UUIDs or enum values - use other tools to retrieve UUIDs if needed. If a user is asking about their own reimbursements, you must include the User tag with their UUID.",
            "items": {
              "$ref": "#/components/schemas/ReimbursementTagRequestBody"
            },
            "nullable": true,
            "title": "Tags",
            "type": "array"
          },
          "to_date": {
            "default": null,
            "description": "End date for filtering by when the reimbursement draft was created (YYYY-MM-DD format), not the expense/receipt transaction date. Do not set this when trying to match a newly uploaded receipt to an existing draft reimbursement; compare returned candidates' transaction_date instead.",
            "nullable": true,
            "title": "To Date",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "GetReimbursements",
        "type": "object"
      },
      "GetReimbursementsResult": {
        "description": "Response containing reimbursements and next page cursor.",
        "properties": {
          "next_page_cursor": {
            "default": null,
            "description": "Cursor for the next page of results",
            "nullable": true,
            "title": "Next Page Cursor",
            "type": "string"
          },
          "reimbursements": {
            "description": "List of reimbursement metadata",
            "items": {
              "$ref": "#/components/schemas/ReimbursementInfo"
            },
            "title": "Reimbursements",
            "type": "array"
          }
        },
        "required": [
          "reimbursements"
        ],
        "title": "GetReimbursementsResult",
        "type": "object"
      },
      "GetReportingFieldDetailsRequestBody": {
        "description": "Get full details for named fields of one semantic reporting dataset.\n\nReturns each field's full description, filter operators, filter value\nkind, enum values, search-tag category, aggregations, raw-table column,\nand `needs`: its query requirements, such as a required time range, split\nline items, required dimensions or filters, or rows that repeat when\ngrouped. Attributes with no value (null, empty, or false) other than\n`filterable` are left out. Fields that are easy to confuse with a requested\nfield are added after the requested fields. Unknown names are returned in\n`unknown_fields` with suggestions.",
        "properties": {
          "dataset": {
            "description": "Semantic dataset name the fields belong to, for example `spend`.",
            "title": "Dataset",
            "type": "string"
          },
          "fields": {
            "description": "Field names exactly as the dataset lists them, such as `category` or `spend_programs.name`. A join or role name alone is not a field.",
            "items": {
              "type": "string"
            },
            "maxItems": 50,
            "minItems": 1,
            "title": "Fields",
            "type": "array"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "dataset",
          "fields",
          "rationale"
        ],
        "title": "GetReportingFieldDetails",
        "type": "object"
      },
      "GetReportingFilterValuesRequestBody": {
        "description": "Find valid filter values for one semantic reporting dataset field.\n\nDataset metadata determines the source, category, and identifier namespace.\nUse values[].id unchanged for the returned dimension, preserving its type.\nZero matches must not remove a requested filter; complete=false is not exhaustive.",
        "properties": {
          "dataset": {
            "description": "Semantic report dataset name, e.g. spend; not an entity data source.",
            "maxLength": 200,
            "minLength": 1,
            "title": "Dataset",
            "type": "string"
          },
          "field": {
            "description": "Exact filterable field name from the dataset metadata, e.g. payee, user, spend_allocation, spend_type, or card_type. Joined fields retain their prefix.",
            "maxLength": 200,
            "minLength": 1,
            "title": "Field",
            "type": "string"
          },
          "limit": {
            "default": 10,
            "description": "Maximum entity matches; scalar enum/boolean matches are a finite set.",
            "maximum": 20,
            "minimum": 1,
            "title": "Limit",
            "type": "integer"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "search_term": {
            "description": "Name or value to match, e.g. Acme or Virtual. One field/value per call, with case-insensitive text matching. Blank lists the field's first values, up to limit.",
            "maxLength": 200,
            "title": "Search Term",
            "type": "string"
          }
        },
        "required": [
          "dataset",
          "field",
          "rationale",
          "search_term"
        ],
        "title": "GetReportingFilterValues",
        "type": "object"
      },
      "GetReportingSkillRequestBody": {
        "description": "Return the Ramp reporting skill: the required workflow for answering analytical questions (totals, trends, top-N, comparisons, breakdowns) and canonical ERP balance sheets, income statements, and trial balances. Describes dataset-driven workflows; cached guidance does not establish dataset access or historical coverage.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "GetReportingSkill",
        "type": "object"
      },
      "GetReportingSkillResult": {
        "properties": {
          "content": {
            "description": "Static workflow guidance in Markdown. Catalog/query requests check dataset access; statement execution also checks the connected ledger publication.",
            "title": "Content",
            "type": "string"
          },
          "hash": {
            "description": "Content hash of the rendered skill body.",
            "title": "Hash",
            "type": "string"
          },
          "name": {
            "description": "Skill name.",
            "title": "Name",
            "type": "string"
          },
          "platform": {
            "description": "Surface the skill body was rendered for.",
            "title": "Platform",
            "type": "string"
          }
        },
        "required": [
          "content",
          "hash",
          "name",
          "platform"
        ],
        "title": "GetReportingSkillResult",
        "type": "object"
      },
      "GetRequestsToReviewRequestBody": {
        "description": "Get requests that require the current user's review and approval.\n\nThis is the approval-queue wrapper over SearchUnifiedRequests. Use it when\nthe user is specifically asking what they need to review or approve right\nnow. For broader lookup by vendor, owner, status, or request name, prefer\nSearchUnifiedRequests instead. Only handles lookups, does not take any action.\nDoes not cover card transactions or reimbursements awaiting approval.",
        "properties": {
          "page_size": {
            "default": 50,
            "description": "Number of requests to return per page (1-100)",
            "maximum": 100,
            "minimum": 1,
            "title": "Page Size",
            "type": "integer"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "request_types": {
            "description": "Types of spend requests to include (defaults to all types: PURCHASE_ORDER, SPEND_ALLOCATION, APPROVAL_ONLY, PROCUREMENT_SPEND_ALLOCATION)",
            "items": {
              "$ref": "#/components/schemas/UnifiedSpendRequestTypeRequestBody"
            },
            "title": "Request Types",
            "type": "array"
          },
          "start": {
            "default": null,
            "description": "Pagination cursor for next page",
            "nullable": true,
            "title": "Start",
            "type": "string"
          },
          "thoughts": {
            "default": null,
            "description": "Deprecated and ignored; omit it.",
            "nullable": true,
            "title": "Thoughts",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "GetRequestsToReview",
        "type": "object"
      },
      "GetRewardsSummaryRequestBody": {
        "description": "Get the business's cashback rewards summary including available points, pending points, and redeemable balance.\n\nUse this tool when the user asks about their cashback balance, how many points they have,\nor wants to know how much they can redeem. Returns both point values and dollar equivalents.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "GetRewardsSummary",
        "type": "object"
      },
      "GetRouterSettingsRequestBody": {
        "description": "Get the business's Router model policy, overrides, departments, and budgets.\n\nThe layers apply in order: company, then department, then person. The most\nspecific layer wins. In an override, unblocked_models and unblocked_providers\nlist what that person or department may use even when an earlier layer blocks\nit. They do not limit the person to those models. They lift only a block saved\nunder the exact same name.\n\nA block on a name covers every name of that same model, including a managed\nalias that points to it, and the alias itself. A block on the first-party name\nalso covers its Bedrock copies. It does not cover the same model on another\nhost.\n\nThese results do not show which department a person is in.\n\nEach list holds at most 100 entries. When a has_more flag is true, the list is\npartial: tell the user, and ask again with core_user_uuids or department_query.",
        "properties": {
          "core_user_uuids": {
            "default": null,
            "description": "Only these people's overrides and budgets, plus the company budget.",
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "maxItems": 100,
            "minItems": 1,
            "nullable": true,
            "title": "Core User Uuids",
            "type": "array"
          },
          "department_query": {
            "default": null,
            "description": "Only departments whose name contains this text.",
            "maxLength": 100,
            "minLength": 1,
            "nullable": true,
            "title": "Department Query",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "GetRouterSettings",
        "type": "object"
      },
      "GetSimplifiedUserDetailRequestBody": {
        "description": "Get the current user's details.\n\nReturns multiple results for users that are part of multiple businesses.\nWhen authenticated via an agent key, also returns the active agent key identity.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "GetSimplifiedUserDetail",
        "type": "object"
      },
      "GetSourcingEventContextOutput": {
        "properties": {
          "awarded_vendor_uuid": {
            "default": null,
            "description": "Payee UUID of the awarded (winning) vendor once the event is DECIDED; None before an award",
            "nullable": true,
            "title": "Awarded Vendor Uuid",
            "type": "string"
          },
          "current_rfx": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SourcingEventCurrentRFXSummary"
              }
            ],
            "default": null,
            "nullable": true
          },
          "description": {
            "default": null,
            "nullable": true,
            "title": "Description",
            "type": "string"
          },
          "estimated_price_summary": {
            "default": null,
            "nullable": true,
            "title": "Estimated Price Summary",
            "type": "string"
          },
          "name": {
            "description": "Name of the sourcing event",
            "title": "Name",
            "type": "string"
          },
          "owner_name": {
            "default": null,
            "nullable": true,
            "title": "Owner Name",
            "type": "string"
          },
          "rfxs": {
            "items": {
              "$ref": "#/components/schemas/SourcingEventRFXSummary"
            },
            "title": "Rfxs",
            "type": "array"
          },
          "sourcing_event_id": {
            "description": "UUID of the sourcing event",
            "title": "Sourcing Event Id",
            "type": "string"
          },
          "status": {
            "description": "Lifecycle status of the sourcing event",
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "name",
          "sourcing_event_id",
          "status"
        ],
        "title": "GetSourcingEventContextOutput",
        "type": "object"
      },
      "GetSourcingEventContextRequestBody": {
        "description": "Get a compact summary of a sourcing event, its RFXs, and invited vendors.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "sourcing_event_id": {
            "description": "UUID of the sourcing event to inspect",
            "format": "uuid",
            "title": "Sourcing Event Id",
            "type": "string"
          }
        },
        "required": [
          "rationale",
          "sourcing_event_id"
        ],
        "title": "GetSourcingEventContext",
        "type": "object"
      },
      "GetSyncCommitFailureDetailsRequestBody": {
        "description": "Get object-level failure details for an accounting sync commit by UUID.\n\nUse this when a customer asks about failed accounting sync rows, including accounting transactions, reimbursements, bills, accounts receivable invoices, credit notes, payments, or refunds.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "sync_commit_uuid": {
            "description": "UUID of the sync commit whose failure details should be fetched.",
            "title": "Sync Commit Uuid",
            "type": "string"
          }
        },
        "required": [
          "rationale",
          "sync_commit_uuid"
        ],
        "title": "GetSyncCommitFailureDetails",
        "type": "object"
      },
      "GetSyncCommitFailureDetailsResult": {
        "description": "Object-level accounting sync failure details for investigating why a sync commit failed.\n\nUse this result to inspect the failed transactions, reimbursements, bills, payments, or other accounting objects attached to a sync commit when triaging customer-reported sync failures.",
        "properties": {
          "accrual_sync_errors": {
            "default": null,
            "items": {
              "additionalProperties": {
                "$ref": "#/components/schemas/JsonValue"
              },
              "type": "object"
            },
            "nullable": true,
            "title": "Accrual Sync Errors",
            "type": "array"
          },
          "amortization_sync_errors": {
            "default": null,
            "items": {
              "additionalProperties": {
                "$ref": "#/components/schemas/JsonValue"
              },
              "type": "object"
            },
            "nullable": true,
            "title": "Amortization Sync Errors",
            "type": "array"
          },
          "bank_deposit_sync_errors": {
            "default": null,
            "items": {
              "additionalProperties": {
                "$ref": "#/components/schemas/JsonValue"
              },
              "type": "object"
            },
            "nullable": true,
            "title": "Bank Deposit Sync Errors",
            "type": "array"
          },
          "banking_transaction_sync_errors": {
            "default": null,
            "items": {
              "additionalProperties": {
                "$ref": "#/components/schemas/JsonValue"
              },
              "type": "object"
            },
            "nullable": true,
            "title": "Banking Transaction Sync Errors",
            "type": "array"
          },
          "bill_payment_sync_errors": {
            "default": null,
            "items": {
              "additionalProperties": {
                "$ref": "#/components/schemas/JsonValue"
              },
              "type": "object"
            },
            "nullable": true,
            "title": "Bill Payment Sync Errors",
            "type": "array"
          },
          "bill_sync_errors": {
            "default": null,
            "items": {
              "additionalProperties": {
                "$ref": "#/components/schemas/JsonValue"
              },
              "type": "object"
            },
            "nullable": true,
            "title": "Bill Sync Errors",
            "type": "array"
          },
          "brokerage_order_sync_errors": {
            "default": null,
            "items": {
              "additionalProperties": {
                "$ref": "#/components/schemas/JsonValue"
              },
              "type": "object"
            },
            "nullable": true,
            "title": "Brokerage Order Sync Errors",
            "type": "array"
          },
          "credit_note_application_sync_errors": {
            "default": null,
            "items": {
              "additionalProperties": {
                "$ref": "#/components/schemas/JsonValue"
              },
              "type": "object"
            },
            "nullable": true,
            "title": "Credit Note Application Sync Errors",
            "type": "array"
          },
          "credit_note_sync_errors": {
            "default": null,
            "items": {
              "additionalProperties": {
                "$ref": "#/components/schemas/JsonValue"
              },
              "type": "object"
            },
            "nullable": true,
            "title": "Credit Note Sync Errors",
            "type": "array"
          },
          "customer_sync_errors": {
            "default": null,
            "items": {
              "additionalProperties": {
                "$ref": "#/components/schemas/JsonValue"
              },
              "type": "object"
            },
            "nullable": true,
            "title": "Customer Sync Errors",
            "type": "array"
          },
          "invoice_payment_sync_errors": {
            "default": null,
            "items": {
              "additionalProperties": {
                "$ref": "#/components/schemas/JsonValue"
              },
              "type": "object"
            },
            "nullable": true,
            "title": "Invoice Payment Sync Errors",
            "type": "array"
          },
          "invoice_sync_errors": {
            "default": null,
            "items": {
              "additionalProperties": {
                "$ref": "#/components/schemas/JsonValue"
              },
              "type": "object"
            },
            "nullable": true,
            "title": "Invoice Sync Errors",
            "type": "array"
          },
          "item_sync_errors": {
            "default": null,
            "items": {
              "additionalProperties": {
                "$ref": "#/components/schemas/JsonValue"
              },
              "type": "object"
            },
            "nullable": true,
            "title": "Item Sync Errors",
            "type": "array"
          },
          "managed_portfolio_activity_sync_errors": {
            "default": null,
            "items": {
              "additionalProperties": {
                "$ref": "#/components/schemas/JsonValue"
              },
              "type": "object"
            },
            "nullable": true,
            "title": "Managed Portfolio Activity Sync Errors",
            "type": "array"
          },
          "managed_portfolio_transfer_sync_errors": {
            "default": null,
            "items": {
              "additionalProperties": {
                "$ref": "#/components/schemas/JsonValue"
              },
              "type": "object"
            },
            "nullable": true,
            "title": "Managed Portfolio Transfer Sync Errors",
            "type": "array"
          },
          "payee_sync_errors": {
            "default": null,
            "items": {
              "additionalProperties": {
                "$ref": "#/components/schemas/JsonValue"
              },
              "type": "object"
            },
            "nullable": true,
            "title": "Payee Sync Errors",
            "type": "array"
          },
          "refund_sync_errors": {
            "default": null,
            "items": {
              "additionalProperties": {
                "$ref": "#/components/schemas/JsonValue"
              },
              "type": "object"
            },
            "nullable": true,
            "title": "Refund Sync Errors",
            "type": "array"
          },
          "reimbursement_payment_batch_sync_errors": {
            "default": null,
            "items": {
              "additionalProperties": {
                "$ref": "#/components/schemas/JsonValue"
              },
              "type": "object"
            },
            "nullable": true,
            "title": "Reimbursement Payment Batch Sync Errors",
            "type": "array"
          },
          "reimbursement_sync_errors": {
            "default": null,
            "items": {
              "additionalProperties": {
                "$ref": "#/components/schemas/JsonValue"
              },
              "type": "object"
            },
            "nullable": true,
            "title": "Reimbursement Sync Errors",
            "type": "array"
          },
          "repayment_sync_errors": {
            "default": null,
            "items": {
              "additionalProperties": {
                "$ref": "#/components/schemas/JsonValue"
              },
              "type": "object"
            },
            "nullable": true,
            "title": "Repayment Sync Errors",
            "type": "array"
          },
          "statement_credit_sync_errors": {
            "default": null,
            "items": {
              "additionalProperties": {
                "$ref": "#/components/schemas/JsonValue"
              },
              "type": "object"
            },
            "nullable": true,
            "title": "Statement Credit Sync Errors",
            "type": "array"
          },
          "sync_commit": {
            "additionalProperties": {
              "$ref": "#/components/schemas/JsonValue"
            },
            "description": "Sync commit failure summary.",
            "title": "Sync Commit",
            "type": "object"
          },
          "transaction_sync_errors": {
            "default": null,
            "items": {
              "additionalProperties": {
                "$ref": "#/components/schemas/JsonValue"
              },
              "type": "object"
            },
            "nullable": true,
            "title": "Transaction Sync Errors",
            "type": "array"
          },
          "transfer_sync_errors": {
            "default": null,
            "items": {
              "additionalProperties": {
                "$ref": "#/components/schemas/JsonValue"
              },
              "type": "object"
            },
            "nullable": true,
            "title": "Transfer Sync Errors",
            "type": "array"
          },
          "vendor_credit_sync_errors": {
            "default": null,
            "items": {
              "additionalProperties": {
                "$ref": "#/components/schemas/JsonValue"
              },
              "type": "object"
            },
            "nullable": true,
            "title": "Vendor Credit Sync Errors",
            "type": "array"
          },
          "wallet_tlem_sync_errors": {
            "default": null,
            "items": {
              "additionalProperties": {
                "$ref": "#/components/schemas/JsonValue"
              },
              "type": "object"
            },
            "nullable": true,
            "title": "Wallet Tlem Sync Errors",
            "type": "array"
          },
          "wallet_transfer_sync_errors": {
            "default": null,
            "items": {
              "additionalProperties": {
                "$ref": "#/components/schemas/JsonValue"
              },
              "type": "object"
            },
            "nullable": true,
            "title": "Wallet Transfer Sync Errors",
            "type": "array"
          }
        },
        "required": [
          "accrual_sync_errors",
          "amortization_sync_errors",
          "bank_deposit_sync_errors",
          "banking_transaction_sync_errors",
          "bill_payment_sync_errors",
          "bill_sync_errors",
          "brokerage_order_sync_errors",
          "credit_note_application_sync_errors",
          "credit_note_sync_errors",
          "customer_sync_errors",
          "invoice_payment_sync_errors",
          "invoice_sync_errors",
          "item_sync_errors",
          "managed_portfolio_activity_sync_errors",
          "managed_portfolio_transfer_sync_errors",
          "payee_sync_errors",
          "refund_sync_errors",
          "reimbursement_payment_batch_sync_errors",
          "reimbursement_sync_errors",
          "repayment_sync_errors",
          "statement_credit_sync_errors",
          "sync_commit",
          "transaction_sync_errors",
          "transfer_sync_errors",
          "vendor_credit_sync_errors",
          "wallet_tlem_sync_errors",
          "wallet_transfer_sync_errors"
        ],
        "title": "GetSyncCommitFailureDetailsResult",
        "type": "object"
      },
      "GetTrackingCategoriesRequestBody": {
        "description": "Retrieve active accounting tracking category metadata for transaction coding, such\nas departments, classes or business units, locations, projects, customers, and cost\ncenters. On Advisor Console, discovery without a transaction returns authorized\nclients' fields grouped by business and provider connection, including missing\nintegrations. These groups do not establish cross-client field equivalence. If passing\ntransaction_uuid, use an actual TransactionCanonical UUID from context or a prior\nlookup; omit it rather than passing a placeholder or natural-language reference.",
        "properties": {
          "include_hidden": {
            "default": false,
            "description": "Set to True to include hidden categories. By default, only visible categories are returned.",
            "title": "Include Hidden",
            "type": "boolean"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "transaction_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "Actual TransactionCanonical UUID of the transaction being coded, sourced from transaction context or a prior transaction lookup result. Must be a UUID string; omit this field if no transaction UUID is available. Never invent a placeholder or natural-language reference.",
            "nullable": true
          }
        },
        "required": [
          "rationale"
        ],
        "title": "GetTrackingCategories",
        "type": "object"
      },
      "GetTrackingCategoriesResult": {
        "description": "Response containing all active tracking categories.",
        "properties": {
          "businesses": {
            "default": null,
            "description": "Present only for Advisor Console cross-business discovery; omitted for single-business results. Accounting fields for every authorized business, partitioned by provider connection. An empty providers list means no connected provider was found. Category UUIDs apply only to their listed business and connection; matching names or types do not establish cross-business equivalence.",
            "items": {
              "$ref": "#/components/schemas/TrackingCategoryBusinessScope"
            },
            "nullable": true,
            "title": "Businesses",
            "type": "array"
          },
          "tracking_categories": {
            "description": "Active fields for single-business discovery. Empty when businesses is present: cross-business fields are partitioned under each business's providers.",
            "items": {
              "$ref": "#/components/schemas/TrackingCategoryMetadata"
            },
            "title": "Tracking Categories",
            "type": "array"
          }
        },
        "required": [
          "tracking_categories"
        ],
        "title": "GetTrackingCategoriesResult",
        "type": "object"
      },
      "GetTrackingCategoryOptionsRequestBody": {
        "description": "List specific departments, projects, or other options for a tracking category.\n\nPass `query_string` to narrow by name, synonym, or provider code. When semantic\nsearch finds nothing, the query falls back to literal name or code matching, so\na multi-word phrase can return no options even when one fits. Keep the query to\none short term; an empty result is not proof that no option fits: retry a shorter\nterm or omit `query_string` to list the options. Do not\ncall this tool when you already have the exact tracking_category_option_uuid from\nuser-provided context, suggested codings, or another tool result. This UUID\nidentifies the option, not the category. If the user message\nincludes `tracking_category_option_uuid=...`, do not call this tool just to\nconfirm the option. If you're coding a specific transaction or reimbursement,\npass its UUID so results respect conditional filtering (subsidiary,\ndepartment, location, etc.); skip it for generic lookups, including\nbill/invoice contexts. Setting `include_hidden=true` disables semantic search,\nso `query_string` then matches literal option names or codes only. Categories\ncan have millions of options \u2014 paginate via\n`next_page_cursor` when needed, keeping all other inputs unchanged between pages.",
        "properties": {
          "include_hidden": {
            "default": false,
            "description": "Include options unavailable in the UI and return each option's hidden_reason when known. This disables semantic search because semantic search cannot retain excluded options; query_string uses literal name or code matching instead.",
            "title": "Include Hidden",
            "type": "boolean"
          },
          "next_page_cursor": {
            "default": null,
            "description": "Opaque cursor, not an offset or page number. Pass only a non-null `next_page_cursor` from the previous response, with every other input unchanged. Null means no further page is available; semantic search results are capped at page_size and never paginate. Omit it when changing the query or filters.",
            "nullable": true,
            "title": "Next Page Cursor",
            "type": "integer"
          },
          "page_size": {
            "default": 50,
            "description": "Max options per page (1-100).",
            "minimum": 1,
            "title": "Page Size",
            "type": "integer"
          },
          "query_string": {
            "default": null,
            "description": "Filter options by name, natural-language synonym, or provider code (for example a custom GL code).",
            "nullable": true,
            "title": "Query String",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "reimbursement_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "Optional. UUID of the reimbursement being coded; applies conditional filtering by the reimbursement's user/department/etc.",
            "nullable": true
          },
          "tracking_category_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "description": "UUID of the tracking category to get options for. Obtain this from the session's tracking-category context or a registered category-listing tool. This is a category UUID, not an option UUID; integer IDs and category names are not accepted. Do not call this tool if the exact tracking_category_option_uuid is already available."
          },
          "transaction_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "Optional. UUID of the transaction being coded; applies conditional filtering by the transaction's user/department/etc.",
            "nullable": true
          }
        },
        "required": [
          "rationale",
          "tracking_category_uuid"
        ],
        "title": "GetTrackingCategoryOptions",
        "type": "object"
      },
      "GetTrackingCategoryOptionsResult": {
        "description": "Response containing tracking category options.",
        "properties": {
          "next_page_cursor": {
            "default": null,
            "description": "Opaque cursor for the next page, not an offset. Reuse it only with the exact same category, query, and filters. Null means no further page is available; semantic search results are capped at page_size and never paginate.",
            "nullable": true,
            "title": "Next Page Cursor",
            "type": "integer"
          },
          "options": {
            "description": "List of tracking category options for the specified category",
            "items": {
              "$ref": "#/components/schemas/TrackingCategoryOptionResult"
            },
            "title": "Options",
            "type": "array"
          }
        },
        "required": [
          "options"
        ],
        "title": "GetTrackingCategoryOptionsResult",
        "type": "object"
      },
      "GetTransactionMissingItemsRequestBody": {
        "description": "Check what receipts, memos, attendees, or accounting items are missing from a specific transaction, and where it stands. Lists only what is still required (e.g. receipts only above the submission policy's threshold), not whether a receipt is attached or a field is filled. Requirements that Policy Agent added from the written expense policy are listed separately with Policy Agent's reason.",
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "description": "Transaction UUID or transaction alias.",
            "nullable": true
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "id",
          "rationale"
        ],
        "title": "GetTransactionMissingItems",
        "type": "object"
      },
      "GetTransactionSuggestedMemosRequestBody": {
        "description": "Get AI-suggested memo/note options for a specific transaction.",
        "properties": {
          "id": {
            "description": "The ID of the transaction to retrieve suggested memos for.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "id",
          "rationale"
        ],
        "title": "GetTransactionSuggestedMemos",
        "type": "object"
      },
      "GetTransactionsResult": {
        "description": "Result from searching expense transactions.",
        "properties": {
          "applied_date_filter": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AppliedDateFilter"
              }
            ],
            "default": null,
            "description": "The UTC date window applied to this search; null when no date filter was sent.",
            "nullable": true
          },
          "next_page_cursor": {
            "nullable": true,
            "title": "Next Page Cursor",
            "type": "string"
          },
          "note": {
            "default": null,
            "description": "What this search does not cover and how to describe its result.",
            "nullable": true,
            "title": "Note",
            "type": "string"
          },
          "total_count": {
            "nullable": true,
            "title": "Total Count",
            "type": "integer"
          },
          "transactions": {
            "items": {
              "$ref": "#/components/schemas/TransactionInfo"
            },
            "title": "Transactions",
            "type": "array"
          }
        },
        "required": [
          "next_page_cursor",
          "total_count",
          "transactions"
        ],
        "title": "GetTransactionsResult",
        "type": "object"
      },
      "GetTravelerProfileRequestBody": {
        "description": "Retrieve a traveler profile and saved free-text flight and hotel preferences.\n\nIncludes identity, contact details, travel documents, and loyalty programs.\nDefaults to the acting user. Reading another traveler's profile requires their\nuser UUID and delegate or travel-manager permission; sensitive document fields\nare masked on delegated reads. Does not change saved preferences.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "traveler_user_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "Traveler user UUID when reading another person's profile for delegated booking. Requires delegate or travel-manager permission. Omit for self-booking.",
            "nullable": true
          }
        },
        "required": [
          "rationale"
        ],
        "title": "GetTravelerProfile",
        "type": "object"
      },
      "GetTravelerProfileResult": {
        "description": "Result of getting traveler profile.",
        "properties": {
          "has_profile": {
            "description": "Whether the user has a traveler profile",
            "title": "Has Profile",
            "type": "boolean"
          },
          "profile": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TravelerProfileDataSchema"
              }
            ],
            "default": null,
            "description": "The traveler profile data if it exists",
            "nullable": true
          }
        },
        "required": [
          "has_profile"
        ],
        "title": "GetTravelerProfileResult",
        "type": "object"
      },
      "GetTreasuryBalanceHistoryOutput": {
        "properties": {
          "balances": {
            "items": {
              "$ref": "#/components/schemas/DailyBalanceInfo"
            },
            "title": "Balances",
            "type": "array"
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "total_days": {
            "title": "Total Days",
            "type": "integer"
          }
        },
        "required": [
          "balances",
          "message",
          "total_days"
        ],
        "title": "GetTreasuryBalanceHistoryOutput",
        "type": "object"
      },
      "GetTreasuryBalanceHistoryRequestBody": {
        "description": "Get end-of-day UTC balances grouped by Treasury product.\n\nTotals cover the acting user's readable checking, self-directed investment,\nand managed investment accounts, not individual accounts or external banks.\nwallet_available_balance is available checking cash. Despite their legacy\nnames, brokerage_available_balance and managed_portfolio_available_balance\nare ledger position totals, including unavailable positions and valuation\nadjustments, not available cash or investment returns.\nCurrency is unknown (null): source totals are not currency-validated or\npartitioned, and the source's default-provider currency is not reliable.\nZero-filled days do not establish account existence or historical coverage.",
        "properties": {
          "end_date": {
            "description": "Inclusive UTC end date; use separate nonoverlapping ranges for longer history",
            "format": "date",
            "title": "End Date",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "start_date": {
            "description": "Inclusive UTC start date; at most 1,461 days per range",
            "format": "date",
            "title": "Start Date",
            "type": "string"
          }
        },
        "required": [
          "end_date",
          "rationale",
          "start_date"
        ],
        "title": "GetTreasuryBalanceHistory",
        "type": "object"
      },
      "GetTreasuryDocumentLinkOutput": {
        "properties": {
          "message": {
            "title": "Message",
            "type": "string"
          },
          "presigned_url": {
            "title": "Presigned Url",
            "type": "string"
          }
        },
        "required": [
          "message",
          "presigned_url"
        ],
        "title": "GetTreasuryDocumentLinkOutput",
        "type": "object"
      },
      "GetTreasuryDocumentLinkPublicRequestRequestBody": {
        "description": "Get a PDF download link for a monthly Ramp Checking Account statement by document UUID. The link expires after one hour. Records a document-access audit event; does not return or interpret PDF contents.",
        "properties": {
          "document_type": {
            "description": "Monthly Ramp Checking Account statements are supported.",
            "enum": [
              "MONTHLY_STATEMENT"
            ],
            "title": "Document Type",
            "type": "string"
          },
          "document_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UUIDStrRequestBody"
              }
            ],
            "description": "UUID of the statement to retrieve."
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "document_type",
          "document_uuid",
          "rationale"
        ],
        "title": "GetTreasuryDocumentLinkPublicRequest",
        "type": "object"
      },
      "GetTreasuryDocumentsDownloadLinkOutputJsonMode": {
        "properties": {
          "document_count": {
            "title": "Document Count",
            "type": "integer"
          },
          "filename": {
            "title": "Filename",
            "type": "string"
          },
          "presigned_url": {
            "description": "Download link valid for one hour.",
            "title": "Presigned Url",
            "type": "string"
          }
        },
        "required": [
          "document_count",
          "filename",
          "presigned_url"
        ],
        "title": "GetTreasuryDocumentsDownloadLinkOutput",
        "type": "object"
      },
      "GetTreasuryDocumentsDownloadLinkPublicRequestRequestBody": {
        "description": "Get one ZIP download link for selected monthly Ramp Checking Account statements by document type and UUID. Accepts 1\u201350 selections, ignoring duplicates, with a 50 MiB limit on both the combined statements and ZIP. Creates a private bundle and records document-access audit events. The link expires after one hour; does not return or interpret PDF contents.",
        "properties": {
          "documents": {
            "description": "Statements to include in the ZIP, identified by document type and UUID.",
            "items": {
              "$ref": "#/components/schemas/TreasuryStatementPublicSelectionRequestBody"
            },
            "maxItems": 50,
            "minItems": 1,
            "title": "Documents",
            "type": "array"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "documents",
          "rationale"
        ],
        "title": "GetTreasuryDocumentsDownloadLinkPublicRequest",
        "type": "object"
      },
      "GetUnifiedRequestDetailsRequestBody": {
        "description": "Get one spend request the acting user can view.\nA unified request is Ramp's record of any request for approval to spend:\na purchase or purchase-order request, a funds or card request, or a travel\nspend request. It is not a generic ID lookup: travel booking request IDs\n(booking_request_id), transaction, card, bill, invoice, contract, vendor,\nand approval task IDs will not resolve.\n\nReturns its status, approval chain, comments, activity timeline, custom\nfields, agent-generated reports, and, for a submitted procurement request,\nhow the acting user can change it (change_options). With include_form_details,\nalso returns its form answers and every file in its Documents section, including\nform field uploads, with authorized, short-lived download URLs.\nAccepts a unified_request_id, its\nlinked spend_request_uuid, wbp_request_id, or purchase_order_id, or the\nrequest's display number (for example REQ-123). Purchase-order numbers\n(PO-...) are not accepted. A purchase order issued directly has no request,\nso its purchase_order_id is rejected; read the purchase order itself instead.\nWhen the identifier matches no request visible to the user, returns\nfound=false with a reason and how to continue; unknown and hidden requests\nare reported the same way.",
        "properties": {
          "include_form_details": {
            "default": false,
            "description": "Also return the request's custom-form answers, internal memo, and every document in its Documents section (request and form field uploads) with authorized download URLs. Set when you need the request's form data or its files.",
            "title": "Include Form Details",
            "type": "boolean"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "unified_request_id": {
            "description": "The exact unified_request_id, linked spend_request_uuid, wbp_request_id, or purchase_order_id from a tool result, tagged object, page context, or user-provided request, or the request's display number such as REQ-123. Only spend request identifiers resolve: do not pass a travel booking_request_id, a PO number, or a transaction, card, bill, invoice, contract, vendor, or approval task ID.",
            "title": "Unified Request Id",
            "type": "string"
          }
        },
        "required": [
          "rationale",
          "unified_request_id"
        ],
        "title": "GetUnifiedRequestDetails",
        "type": "object"
      },
      "GetUnifiedRequestDetailsResponse": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/UnifiedRequestDetailsOutput"
          },
          {
            "$ref": "#/components/schemas/UnifiedRequestNoMatch"
          }
        ],
        "title": "GetUnifiedRequestDetailsResponse"
      },
      "GetUserFundsRequestBody": {
        "description": "Retrieve funds (cards or budgets) and their balances, restrictions, locks, owners,\nor permitted spend. For a named person's funds, resolve their UUID with GetOrgChart\nand pass user_uuids. For the current user's funds, use MY_FUNDS. Search by fund name\nwith search_by_fund_display_name or look up a known UUID with fund_uuid.\nResults include each person's own Ramp Card limit (is_ramp_card_limit). Those rows\nalways list their owner in members, even without include_members, so a business-wide\nsearch can tell whose card limit each one is.\n\nFund balance_data is null when the viewer cannot see totals. When present, its remaining\namount is authoritative for cleared charges, pending authorizations, and applicable rollover.\nlimit_amount excludes rollover;\naccrued_rollover_amount is the opening carry, already included in remaining_amount.\nDo not add rollover or subtract spending again. Never infer that\na booking is included merely because it is confirmed: a postpaid booking with no charge or\npending authorization is a future charge and has not yet reduced the remaining balance.\n\nbalance_data.limit_amount is the active period limit, including temporary adjustments.\nrestrictions_data.limit_amount is the permanent limit restored after a temporary\nadjustment ends; it can differ from the active period limit.\n\nA fund with a lock can't be spent from until it is unlocked, even though it is ACTIVE\nand keeps its remaining amount. Never present a locked fund as available; mention it\nseparately with its lock reason, without quoting its remaining amount as money left\nunless the user asks what it holds once unlocked. A member lock blocks only that member.",
        "properties": {
          "agent_card_eligible": {
            "default": null,
            "description": "Filter to funds that can be used for agent (virtual) card payments. Set True to return only funds that are active AND have virtual cards enabled \u2014 the only funds an agent card can be minted on. Set False to return the funds that cannot. Leave unset to return funds regardless of agent-card eligibility. Every returned fund also carries an `agent_card_eligible` flag.",
            "nullable": true,
            "title": "Agent Card Eligible",
            "type": "boolean"
          },
          "cursor": {
            "default": null,
            "description": "Cursor from a previous response. Reuse the same filters when paginating.",
            "nullable": true,
            "title": "Cursor",
            "type": "string"
          },
          "for_transaction_id": {
            "default": null,
            "description": "When provided, returns the other funds this transaction could be reassigned to (not the fund it was charged to or declined against). All other parameters are ignored.",
            "nullable": true,
            "title": "For Transaction Id",
            "type": "string"
          },
          "fund_uuid": {
            "default": null,
            "description": "UUID of a specific fund to look up. Use this when you already have a fund UUID and want to retrieve its details or balance.",
            "nullable": true,
            "title": "Fund Uuid",
            "type": "string"
          },
          "fund_uuids": {
            "default": null,
            "description": "UUIDs of specific funds to look up in one call, for example the funds behind several cards. Combine with fund_uuid to add one more.",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "title": "Fund Uuids",
            "type": "array"
          },
          "funds_to_retrieve": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FundsToRetrieveRequestBody"
              }
            ],
            "default": null,
            "description": "Scope of funds to retrieve. Use MY_FUNDS ONLY when the user explicitly asks about 'my funds'. Use ALL_FUNDS for general searches (e.g., searching by fund name) or when no specific owner is mentioned. NEVER use this parameter when the user mentions a specific person - use user_uuids instead.",
            "nullable": true
          },
          "include_members": {
            "default": false,
            "description": "Set to True when the user asks about who has access to a fund, who owns a fund, or who are the members of a fund. Returns each user with their access role (OWNER, COOWNER, MEMBER, COORDINATOR) so the fund owner can be identified.",
            "title": "Include Members",
            "type": "boolean"
          },
          "include_restrictions": {
            "default": false,
            "description": "Set to True when the user asks about fund restrictions such as: merchant/vendor whitelists or blacklists, category whitelists or blacklists, transaction amount limits, auto-lock dates, expiration dates, or interval/reset dates. This adds a lot of context, so only include it if needed.",
            "title": "Include Restrictions",
            "type": "boolean"
          },
          "is_shared": {
            "default": null,
            "description": "Filter by whether the fund is shared. Use true when the user asks for shared funds only.",
            "nullable": true,
            "title": "Is Shared",
            "type": "boolean"
          },
          "page_size": {
            "default": 100,
            "description": "Maximum number of funds to return.",
            "maximum": 100,
            "minimum": 1,
            "title": "Page Size",
            "type": "integer"
          },
          "primary_card_eligible": {
            "default": null,
            "description": "Filter to funds that can be linked to a physical (primary) card. Set True to return only funds that are active AND enabled for primary-card spend \u2014 the only funds LinkFundToPrimaryCard accepts. Set False to return the funds that cannot. Leave unset to return funds regardless of primary-card eligibility. Every returned fund also carries a `primary_card_eligible` flag.",
            "nullable": true,
            "title": "Primary Card Eligible",
            "type": "boolean"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "search_by_fund_display_name": {
            "default": null,
            "description": "Text search to filter by the display name of the fund itself (e.g., 'office supplies', 'conference budget', 'equipment fund'). This searches what the fund is called, NOT who owns it. NEVER use this parameter when the user mentions a person's name - person names are not fund display names. If searching by owner/person, use user_uuids instead.",
            "nullable": true,
            "title": "Search By Fund Display Name",
            "type": "string"
          },
          "spend_intent_uuids": {
            "default": null,
            "description": "Filter to funds issued from the specified spend program UUIDs, not procurement-policy UUIDs.",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "title": "Spend Intent Uuids",
            "type": "array"
          },
          "state": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SpendAllocationStateRequestBody"
              }
            ],
            "default": null,
            "description": "Filter funds by state. Use ACTIVE to show only active funds, TERMINATED for terminated funds, or ARCHIVED for archived funds. If not provided, returns funds in all states.",
            "nullable": true
          },
          "user_uuids": {
            "default": null,
            "description": "REQUIRED when the user asks about a specific person's funds. Workflow: (1) First call GetOrgChart to find the person and get their UUID, (2) Then pass that UUID here. Use this for any query mentioning a person by name. Do NOT use funds_to_retrieve when asking about a specific person.",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "title": "User Uuids",
            "type": "array"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "GetUserFunds",
        "type": "object"
      },
      "GetUserRecentReimbursementsRequestBody": {
        "description": "Get the current user's recent reimbursements within a rolling date window.\n\nThis date-bounded lookup does not cover lifetime history.\nResults and `total_count` cover only the returned rows.\n\n`up_to_days` always restricts the time frame; `limit` caps the number of results within it.\nSet `limit` to null to return all reimbursements within the time frame.\n`include_rejected` controls whether to include rejected reimbursements in the results. By default, rejected reimbursements are excluded.\n`include_drafts` controls whether to include draft reimbursements in the results. By default, drafts are excluded.\n`use_submitted_date_ordering` controls the ordering of results. By default (False), results are ordered by transaction_date. Set to True to order by submitted_date instead.\n\nBy default, returns up to 10 reimbursements from the last 30 days.\n\nRead each amount from `amount_decimal`, which is already in `currency`'s major unit\nand needs no arithmetic. Ignore `amount_cents`; it is the same amount in minor units,\nkept only for backwards compatibility.",
        "properties": {
          "include_drafts": {
            "default": false,
            "title": "Include Drafts",
            "type": "boolean"
          },
          "include_rejected": {
            "default": false,
            "title": "Include Rejected",
            "type": "boolean"
          },
          "limit": {
            "default": 10,
            "nullable": true,
            "title": "Limit",
            "type": "integer"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "up_to_days": {
            "default": 30,
            "title": "Up To Days",
            "type": "integer"
          },
          "use_submitted_date_ordering": {
            "default": false,
            "title": "Use Submitted Date Ordering",
            "type": "boolean"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "GetUserRecentReimbursements",
        "type": "object"
      },
      "GetUserTransactionsRequestBody": {
        "description": "Search individual card transactions by settlement amount, currency, date, or merchant, with workflow details and reconciliation dates. Returns individual records, not aggregate totals or trends. Declines are excluded by default; state='declined' searches declined attempts, and amount_filter then matches the declined amount. Original merchant amounts and FX conversion are not supported by amount_filter. Missing-items filters and details follow the business's submission policy; request submitted_items to see what is actually attached or coded.",
        "properties": {
          "accounting_external_reference_id": {
            "default": null,
            "description": "Exact, case-sensitive sync reference ID an API-based accounting integration reported for the transaction's latest sync attempt with a reference (any status). Not native ERP record IDs (e.g. NetSuite, QuickBooks), earlier references, Ramp UUIDs, network references, or memo text. Errors if not enabled for the business.",
            "nullable": true,
            "title": "Accounting External Reference Id",
            "type": "string"
          },
          "amount_filter": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TransactionAmountFilterRequestBody"
              }
            ],
            "default": null,
            "description": "Amount predicate, ANDed with other filters; supply exact_amount or at least one of min_amount/max_amount. Zero-value statement amounts stay excluded. With state='declined', bounds must be nonzero.",
            "nullable": true
          },
          "card_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "Only this card's transactions, within the scope.",
            "nullable": true
          },
          "details_to_include_in_response": {
            "default": null,
            "description": "Expansion bundles: submitted_items = receipts, attendees, trip, selected accounting categories; card_details = card context; transaction_documentation_and_missing_items = missing requirements and open change request; policy_assessment_for_reviewers; suggestions_for_transaction_items = memo, coding, fund suggestions (model-ranked coding/fund ones only when page_size=1). Omit for basic data (amounts, merchant, memo, state, dates). Unfetched details are unknown, not absent.",
            "items": {
              "$ref": "#/components/schemas/DetailedFieldRequestBody"
            },
            "nullable": true,
            "title": "Details To Include In Response",
            "type": "array"
          },
          "end_at": {
            "default": null,
            "description": "Exclusive ISO 8601 end, after start_at; use the next midnight for whole days. Same offset rules as start_at.",
            "nullable": true,
            "title": "End At",
            "type": "string"
          },
          "filters": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FilterRequestBody"
              }
            ],
            "default": null,
            "description": "Structured filters, combined with AND.",
            "nullable": true
          },
          "include_count": {
            "default": true,
            "description": "Include total_count.",
            "title": "Include Count",
            "type": "boolean"
          },
          "next_page_cursor": {
            "default": null,
            "description": "Exact next_page_cursor from the prior response; keep all other parameters the same.",
            "nullable": true,
            "title": "Next Page Cursor",
            "type": "string"
          },
          "only_missing_fields_required_to_sync": {
            "default": false,
            "description": "Only unsynced transactions missing an accounting field required to sync (Accounting > Transactions 'Missing fields for sync'), regardless of submission policy; for close readiness or uncoded spend. Results list them in missing_fields_required_to_sync.",
            "title": "Only Missing Fields Required To Sync",
            "type": "boolean"
          },
          "only_missing_items": {
            "default": false,
            "description": "Only transactions with missing items (incomplete transactions, outstanding requirements) needing cardholder action.",
            "title": "Only Missing Items",
            "type": "boolean"
          },
          "page_size": {
            "default": 50,
            "description": "Max results per page.",
            "maximum": 200,
            "minimum": 1,
            "title": "Page Size",
            "type": "integer"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "reason_memo_merchant_or_user_name_text_search": {
            "default": null,
            "description": "Text search (>=3 chars) over merchant names, memos, and employee names; not trips, attendees, funds, or amounts.",
            "nullable": true,
            "title": "Reason Memo Merchant Or User Name Text Search",
            "type": "string"
          },
          "sort": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SortRequestBody"
              }
            ],
            "description": "Defaults to transaction_date desc.",
            "nullable": true
          },
          "start_at": {
            "default": null,
            "description": "Inclusive ISO 8601 start of transaction time. Omit the offset for the user's local time (2026-11-01T00:00:00 = local midnight); add Z or an offset only for an exact UTC window. Both bounds include an offset or neither; don't guess one. Not accounting date; use reporting for accounting-period totals.",
            "nullable": true,
            "title": "Start At",
            "type": "string"
          },
          "state": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TransactionStateFilterRequestBody"
              }
            ],
            "default": null,
            "description": "Card charge state (pending = authorized, cleared = settled), not approval status. Defaults to non-declined; 'all' never includes declines. For approvals use transactions_awaiting_my_approval and leave state unset.",
            "nullable": true
          },
          "transactions_to_retrieve": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TransactionSearchScopeRequestBody"
              }
            ],
            "description": "transactions_awaiting_my_approval: ones the user must review or approve; my_transactions: the user's own card charges. Every scope is limited to the user's authorized visibility; total_count counts authorized matches, and a final page alone does not prove whole-business coverage."
          }
        },
        "required": [
          "rationale",
          "transactions_to_retrieve"
        ],
        "title": "GetUserTransactions",
        "type": "object"
      },
      "GetUserTripsRequestBody": {
        "description": "Fetch trips for the acting user with optional filters.",
        "properties": {
          "cursor": {
            "default": null,
            "description": "Opaque bookmark returned by the API for pagination.",
            "nullable": true,
            "title": "Cursor",
            "type": "string"
          },
          "page_size": {
            "default": null,
            "description": "Optional number of trips to return per page.",
            "maximum": 100,
            "minimum": 1,
            "nullable": true,
            "title": "Page Size",
            "type": "integer"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "status": {
            "default": null,
            "description": "Optional trip status filter.",
            "enum": [
              "completed",
              "ongoing",
              "upcoming"
            ],
            "nullable": true,
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "GetUserTrips",
        "type": "object"
      },
      "GetVendorAgreementPublicResult": {
        "description": "Agreement detail exposed on the Developer API \u2014 extends AgreementSummary with timestamps and related data.",
        "properties": {
          "agreement_id": {
            "description": "UUID of the agreement",
            "title": "Agreement Id",
            "type": "string"
          },
          "auto_renewal": {
            "default": null,
            "description": "Whether the contract auto-renews",
            "nullable": true,
            "title": "Auto Renewal",
            "type": "boolean"
          },
          "contract_owners": {
            "description": "Contract owners",
            "items": {
              "$ref": "#/components/schemas/ContractOwnerSummary"
            },
            "title": "Contract Owners",
            "type": "array"
          },
          "created_at": {
            "description": "When the agreement was created",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "currency": {
            "default": null,
            "description": "ISO currency code",
            "nullable": true,
            "title": "Currency",
            "type": "string"
          },
          "days_remaining": {
            "default": null,
            "description": "Days remaining until the next renewal action date: last_date_to_action when present, otherwise end_date.",
            "nullable": true,
            "title": "Days Remaining",
            "type": "integer"
          },
          "days_until_end_date": {
            "default": null,
            "description": "Days remaining until the contract end or expiration date",
            "nullable": true,
            "title": "Days Until End Date",
            "type": "integer"
          },
          "days_until_last_date_to_action": {
            "default": null,
            "description": "Days remaining until the last date to action",
            "nullable": true,
            "title": "Days Until Last Date To Action",
            "type": "integer"
          },
          "description": {
            "default": null,
            "description": "Agreement description",
            "nullable": true,
            "title": "Description",
            "type": "string"
          },
          "detail_line_items": {
            "description": "Contract line items with unit and discount detail",
            "items": {
              "$ref": "#/components/schemas/DetailLineItemSummary"
            },
            "title": "Detail Line Items",
            "type": "array"
          },
          "documents": {
            "description": "Attached documents",
            "items": {
              "$ref": "#/components/schemas/DocumentSummary"
            },
            "title": "Documents",
            "type": "array"
          },
          "end_date": {
            "default": null,
            "description": "Contract end date",
            "format": "date",
            "nullable": true,
            "title": "End Date",
            "type": "string"
          },
          "has_price_benchmarks": {
            "default": null,
            "description": "Whether the agreement can be price benchmarked: true when at least one line item has a displayable peer price benchmark, false when it has no comparable pricing data, null when availability was not evaluated for this listing (listings not filtered to one vendor, or an evaluation failure) and must be checked by benchmarking the agreement.",
            "nullable": true,
            "title": "Has Price Benchmarks",
            "type": "boolean"
          },
          "is_active": {
            "description": "Whether the contract is currently active",
            "title": "Is Active",
            "type": "boolean"
          },
          "is_up_for_renewal": {
            "description": "Whether the contract is within the 90-day renewal window",
            "title": "Is Up For Renewal",
            "type": "boolean"
          },
          "last_date_to_action": {
            "default": null,
            "description": "Last date to action for the contract renewal workflow",
            "format": "date",
            "nullable": true,
            "title": "Last Date To Action",
            "type": "string"
          },
          "last_date_to_terminate": {
            "default": null,
            "description": "Raw contract field for the last date to action",
            "format": "date",
            "nullable": true,
            "title": "Last Date To Terminate",
            "type": "string"
          },
          "line_items": {
            "description": "Contract line items",
            "items": {
              "$ref": "#/components/schemas/LineItemSummary"
            },
            "title": "Line Items",
            "type": "array"
          },
          "linked_spend_requests": {
            "description": "Linked spend requests",
            "items": {
              "$ref": "#/components/schemas/SpendRequestSummary"
            },
            "title": "Linked Spend Requests",
            "type": "array"
          },
          "name": {
            "default": null,
            "description": "Agreement name",
            "nullable": true,
            "title": "Name",
            "type": "string"
          },
          "notifications_on": {
            "description": "Whether renewal notifications are enabled",
            "title": "Notifications On",
            "type": "boolean"
          },
          "payee_uuid": {
            "description": "Vendor UUID",
            "title": "Payee Uuid",
            "type": "string"
          },
          "payment_frequency": {
            "default": null,
            "description": "How often payments are made",
            "nullable": true,
            "title": "Payment Frequency",
            "type": "string"
          },
          "payment_term": {
            "default": null,
            "description": "Payment terms, e.g. Net 30",
            "nullable": true,
            "title": "Payment Term",
            "type": "string"
          },
          "renewal_history": {
            "description": "Prior agreements in the renewal chain",
            "items": {
              "$ref": "#/components/schemas/RenewalHistoryEntry"
            },
            "title": "Renewal History",
            "type": "array"
          },
          "renewal_status": {
            "default": null,
            "description": "Current renewal status",
            "nullable": true,
            "title": "Renewal Status",
            "type": "string"
          },
          "renewal_term": {
            "default": null,
            "description": "Length of the renewal term",
            "nullable": true,
            "title": "Renewal Term",
            "type": "string"
          },
          "start_date": {
            "default": null,
            "description": "Contract start date",
            "format": "date",
            "nullable": true,
            "title": "Start Date",
            "type": "string"
          },
          "termination_for_convenience": {
            "default": null,
            "description": "Termination for convenience clause summary",
            "nullable": true,
            "title": "Termination For Convenience",
            "type": "string"
          },
          "total_value": {
            "default": null,
            "description": "Total contract value",
            "nullable": true,
            "title": "Total Value",
            "type": "number"
          },
          "updated_at": {
            "description": "When the agreement was last updated",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          },
          "vendor_name": {
            "description": "Vendor name",
            "title": "Vendor Name",
            "type": "string"
          },
          "vendor_spend": {
            "allOf": [
              {
                "$ref": "#/components/schemas/VendorSpendSummary"
              }
            ],
            "default": null,
            "description": "The vendor's Ramp card and bill spend across the business, present only when include_vendor_spend was requested and spend has been computed.",
            "nullable": true
          }
        },
        "required": [
          "agreement_id",
          "created_at",
          "is_active",
          "is_up_for_renewal",
          "notifications_on",
          "payee_uuid",
          "updated_at",
          "vendor_name"
        ],
        "title": "GetVendorAgreementPublicResult",
        "type": "object"
      },
      "GetVendorAgreementRequestBody": {
        "description": "Retrieve details for a specific vendor agreement/contract by UUID. Returns contract metadata, terms, line items, contract owners, documents, linked spend requests, and renewal history.",
        "properties": {
          "payee_agreement_uuid": {
            "description": "UUID of the agreement/contract to retrieve",
            "title": "Payee Agreement Uuid",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "payee_agreement_uuid",
          "rationale"
        ],
        "title": "GetVendorAgreement",
        "type": "object"
      },
      "GetVendorBankingDetailsPublicResult": {
        "description": "Developer API projection of a vendor's on-file bank accounts.",
        "properties": {
          "bank_accounts": {
            "description": "Active bank accounts on file for the vendor; empty when none.",
            "items": {
              "$ref": "#/components/schemas/VendorBankAccountPublicSummary"
            },
            "title": "Bank Accounts",
            "type": "array"
          },
          "payee_uuid": {
            "description": "UUID of the vendor.",
            "title": "Payee Uuid",
            "type": "string"
          },
          "vendor_name": {
            "description": "Vendor name.",
            "title": "Vendor Name",
            "type": "string"
          }
        },
        "required": [
          "bank_accounts",
          "payee_uuid",
          "vendor_name"
        ],
        "title": "GetVendorBankingDetailsPublicResult",
        "type": "object"
      },
      "GetVendorBankingDetailsRequestBody": {
        "description": "List a vendor's active bank accounts on file. Returns each account's UUID, payment rail, currency, last four characters of the account number or IBAN, nickname, default flag, and verification status. Full account and routing numbers are never returned. The account UUID is the value a bill accepts as its vendor bank account. This is read-only; it cannot add, edit, or select bank accounts.",
        "properties": {
          "payee_uuid": {
            "description": "UUID of the vendor: `id` from search_vendors, `vendor_id` from list_bills or search_bills, or `payee_uuid` from a draft bill. Not an accounting or ERP vendor ID.",
            "title": "Payee Uuid",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "payee_uuid",
          "rationale"
        ],
        "title": "GetVendorBankingDetails",
        "type": "object"
      },
      "GetVendorDetailsRequestBody": {
        "description": "Retrieve structured profile details for one vendor UUID: ownership, spend summary,\nstatus, payment configuration, custom fields, default accounting field values\n(default_accounting_fields, including GL account), 1099 status, and optional field\nchange history. Structured fields only; no qualitative relationship context such as why\nthe vendor was chosen, negotiation or renewal history, or internal notes.\nFor who deactivated a vendor and why, request is_active history; a status change\nRamp made automatically carries its recorded reason.\nDraft profiles are included by default and marked is_draft=true: they are staged\nvendor records, not live vendor profiles. Draft status alone does not establish\nmissing permissions, incomplete onboarding, or payment readiness.\nFor a vendor in the business whose full profile the caller cannot read, returns\nonly name, description, website, and active status with access_limited=true.\nmetadata_flags are cached relationship hints and may be incomplete; the bill\nflag is updated asynchronously. A false flag does not prove that bills,\ncontracts, or purchase orders are absent and does not identify the source of\nrecorded spend. Describe missing records only within the scope of the search\nthat returned them.",
        "properties": {
          "history_fields": {
            "default": null,
            "description": "Core vendor profile fields to return change history for. Supported values: owners, name, description, website, vendor_type, is_active, spend_category, net_payment_terms, billing_frequency, next_billing_date, next_billing_amount, country, state, default_entity. If empty, no history is returned.",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "title": "History Fields",
            "type": "array"
          },
          "history_limit": {
            "default": 10,
            "description": "Maximum number of history changes to return per requested field (min 1, max 50).",
            "title": "History Limit",
            "type": "integer"
          },
          "history_since": {
            "default": null,
            "description": "Optional timestamp to filter history changes to this time or later.",
            "format": "date-time",
            "nullable": true,
            "title": "History Since",
            "type": "string"
          },
          "include_draft": {
            "default": true,
            "description": "Whether to include draft vendors when resolving the vendor UUID. Defaults to true so procurement request vendors can be inspected; draft profiles are marked is_draft=true. Set false to exclude drafts.",
            "title": "Include Draft",
            "type": "boolean"
          },
          "include_spend_breakdown": {
            "default": false,
            "description": "Also return spend_summary.l365d_by_source (last-365-day spend split by card, reimbursement, and bill pay) and l365d_cardholder_count. Use it to tell employee card use from a company contract.",
            "title": "Include Spend Breakdown",
            "type": "boolean"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "vendor_uuid": {
            "description": "UUID of the vendor/payee in Ramp.",
            "title": "Vendor Uuid",
            "type": "string"
          }
        },
        "required": [
          "rationale",
          "vendor_uuid"
        ],
        "title": "GetVendorDetails",
        "type": "object"
      },
      "GetVendorDetailsResponseJsonMode": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/LimitedVendorDetailsResultJsonMode"
          },
          {
            "$ref": "#/components/schemas/VendorDetailsResultJsonMode"
          }
        ],
        "title": "GetVendorDetailsResponse"
      },
      "GetVendorDocumentBulkStatusRequestBody": {
        "description": "Get bulk vendor document upload progress and current document review state.\n\nUse this after `BulkUploadVendorDocuments` to inspect the batch job status,\nunderstand whether any documents still need manual review, and inspect the\ncurrent document/vendor matching and extracted tax details.",
        "properties": {
          "batch_id": {
            "description": "Bulk upload batch ID returned by the bulk upload tool.",
            "title": "Batch Id",
            "type": "string"
          },
          "is_w_document": {
            "default": null,
            "description": "Optional filter to return only W-form documents (`true`) or only non-W-form documents (`false`).",
            "nullable": true,
            "title": "Is W Document",
            "type": "boolean"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "batch_id",
          "rationale"
        ],
        "title": "GetVendorDocumentBulkStatus",
        "type": "object"
      },
      "GetVendorDocumentBulkStatusResult": {
        "properties": {
          "batch_id": {
            "description": "Identifier of the bulk upload batch.",
            "title": "Batch Id",
            "type": "string"
          },
          "document_count": {
            "description": "Number of documents currently returned in the documents list.",
            "title": "Document Count",
            "type": "integer"
          },
          "documents": {
            "description": "Current status for documents in the bulk upload batch.",
            "items": {
              "$ref": "#/components/schemas/VendorDocumentBulkStatusItem"
            },
            "title": "Documents",
            "type": "array"
          },
          "documents_needing_attention_count": {
            "description": "Number of documents across the full batch that still need user attention in triage.",
            "title": "Documents Needing Attention Count",
            "type": "integer"
          },
          "documents_with_running_ocr_count": {
            "description": "Number of documents across the full batch with OCR jobs still in progress.",
            "title": "Documents With Running Ocr Count",
            "type": "integer"
          },
          "matched_document_count": {
            "description": "Number of documents across the full batch currently matched to a vendor.",
            "title": "Matched Document Count",
            "type": "integer"
          },
          "review_required": {
            "description": "Whether any documents in the full batch still require manual review.",
            "title": "Review Required",
            "type": "boolean"
          },
          "skipped_duplicate_filenames": {
            "description": "Filenames skipped because a duplicate document already exists.",
            "items": {
              "type": "string"
            },
            "title": "Skipped Duplicate Filenames",
            "type": "array"
          },
          "unmatched_document_count": {
            "description": "Number of documents across the full batch not yet matched to a vendor.",
            "title": "Unmatched Document Count",
            "type": "integer"
          },
          "upload_job": {
            "allOf": [
              {
                "$ref": "#/components/schemas/VendorDocumentBulkUploadJob"
              }
            ],
            "description": "Current lifecycle state of the batch upload job."
          }
        },
        "required": [
          "batch_id",
          "document_count",
          "documents",
          "documents_needing_attention_count",
          "documents_with_running_ocr_count",
          "matched_document_count",
          "review_required",
          "skipped_duplicate_filenames",
          "unmatched_document_count",
          "upload_job"
        ],
        "title": "GetVendorDocumentBulkStatusResult",
        "type": "object"
      },
      "GetVendorDocumentsRequestBody": {
        "additionalProperties": false,
        "description": "Find vendor-uploaded files and accessible attachments on their requests.\n\nUser-scoped calls also include files on visible submitted or approved requests,\nlinked through each request's vendor. Each file identifies its source and request.\nOther principal scopes search vendor uploads only. Separately stored agreements\nare not searched. No files are copied or changed.\n\nTwo modes:\n- **List mode**: omit `search_query` to list all documents (metadata only: filename, category, URL, dates). Use `document_category` to filter by type. Pass `document_category=null` to get everything.\n- **Content search mode**: provide `search_query` to search vendor-uploaded document text. Request attachments match filenames only and have no page snippets. Use `search_mode=\"bm25\"` for exact keyword matching or `\"hybrid\"` for broader semantic recall on vendor uploads.\n\nIncludes at most the 100 newest matching request attachments; if more match,\nnarrow the vendor, category, filename or upload-date filters.\n\nUse content search when looking for specific clauses, terms, or language inside documents rather than guessing from filenames. Pass only one `document_category` value per call \u2014 do not combine multiple categories in a single string.\nUse this for uploaded vendor files such as contracts, order forms,\nSOC 2 reports, and agreement text, not internal company policy guidance.\nUser-scoped calls exclude W-8 and W-9 forms: users must open those on the\nvendor's page in Ramp for tax permission and sensitive-access verification.",
        "properties": {
          "created_after": {
            "default": null,
            "description": "Only return documents uploaded after this date/time (inclusive). Use ISO 8601 format, e.g. '2024-01-01T00:00:00Z'.",
            "format": "date-time",
            "nullable": true,
            "title": "Created After",
            "type": "string"
          },
          "created_before": {
            "default": null,
            "description": "Only return documents uploaded before this date/time (inclusive). Use ISO 8601 format, e.g. '2025-01-01T00:00:00Z'.",
            "format": "date-time",
            "nullable": true,
            "title": "Created Before",
            "type": "string"
          },
          "document_category": {
            "default": null,
            "description": "Filter by document type. Examples: W9, W8, MSA, SOW, NDA, VENDOR_CONTRACT, ORDER_FORM, SOC_2, CERTIFICATE_OF_INSURANCE.",
            "nullable": true,
            "title": "Document Category",
            "type": "string"
          },
          "include_page_content": {
            "default": true,
            "description": "Whether to include extracted page text in results. Set to false for large result sets to reduce response size and fit more documents in context. Document metadata (filename, category, vendor, URL) is always included.",
            "title": "Include Page Content",
            "type": "boolean"
          },
          "payee_uuids": {
            "description": "UUIDs of the vendors/payees in Ramp. Provide multiple to search across several vendors.",
            "items": {
              "type": "string"
            },
            "title": "Payee Uuids",
            "type": "array"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "search_mode": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SearchModeRequestBody"
              }
            ],
            "default": "bm25",
            "description": "Search strategy: 'bm25' for keyword search, 'ann' for semantic/vector search, 'hybrid' for combined BM25 + ANN."
          },
          "search_query": {
            "default": null,
            "description": "Search vendor-uploaded document content (BM25 keyword, ANN semantic, or hybrid), falling back to filenames if unavailable. Request attachments always match this term against filenames only.",
            "nullable": true,
            "title": "Search Query",
            "type": "string"
          },
          "top_k": {
            "default": null,
            "description": "Maximum number of page-level search results to retrieve from the vector database. Default is 100. Increase for businesses with many documents (e.g. 200-500) to ensure comprehensive results. Only applies when search_query is provided.",
            "nullable": true,
            "title": "Top K",
            "type": "integer"
          },
          "vendor_names": {
            "description": "Use names for vendors whose UUIDs you don't have. Fuzzy name matches can include vendors outside payee_uuids.",
            "items": {
              "type": "string"
            },
            "title": "Vendor Names",
            "type": "array"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "GetVendorDocuments",
        "type": "object"
      },
      "GetVendorDocumentsResult": {
        "properties": {
          "documents": {
            "description": "Documents matching the query",
            "items": {
              "$ref": "#/components/schemas/VendorDocumentInfo"
            },
            "title": "Documents",
            "type": "array"
          },
          "has_more_request_attachments": {
            "default": false,
            "description": "More than 100 request attachments matched; narrow the vendor, category, filename, or date filters",
            "title": "Has More Request Attachments",
            "type": "boolean"
          },
          "scope": {
            "allOf": [
              {
                "$ref": "#/components/schemas/VendorDocumentSearchScope"
              }
            ],
            "default": "vendor_uploads_only",
            "description": "Document collections searched; see scope_description for search limits and exclusions."
          },
          "scope_description": {
            "default": "Vendor-uploaded documents only; separately stored agreements are not searched.",
            "title": "Scope Description",
            "type": "string"
          },
          "total_documents": {
            "description": "Total number of documents returned",
            "title": "Total Documents",
            "type": "integer"
          }
        },
        "required": [
          "total_documents"
        ],
        "title": "GetVendorDocumentsResult",
        "type": "object"
      },
      "GradingInsightDetail": {
        "properties": {
          "recommendation_reasoning": {
            "default": null,
            "description": "AI reasoning behind the recommendation",
            "nullable": true,
            "title": "Recommendation Reasoning",
            "type": "string"
          },
          "recommended_payee_uuid": {
            "default": null,
            "description": "Vendor payee UUID the AI recommends, when available",
            "nullable": true,
            "title": "Recommended Payee Uuid",
            "type": "string"
          },
          "status": {
            "description": "Generation status of the AI grading insight",
            "title": "Status",
            "type": "string"
          },
          "takeaways": {
            "description": "AI-generated cross-vendor takeaways",
            "items": {
              "$ref": "#/components/schemas/GradingTakeawayDetail"
            },
            "title": "Takeaways",
            "type": "array"
          },
          "top_score_payee_uuid": {
            "default": null,
            "description": "Vendor payee UUID with the top aggregate score, when available",
            "nullable": true,
            "title": "Top Score Payee Uuid",
            "type": "string"
          }
        },
        "required": [
          "recommendation_reasoning",
          "recommended_payee_uuid",
          "status",
          "takeaways",
          "top_score_payee_uuid"
        ],
        "title": "GradingInsightDetail",
        "type": "object"
      },
      "GradingTakeawayDetail": {
        "properties": {
          "category": {
            "description": "Takeaway category",
            "title": "Category",
            "type": "string"
          },
          "text": {
            "description": "AI-generated takeaway about the vendor responses",
            "title": "Text",
            "type": "string"
          }
        },
        "required": [
          "category",
          "text"
        ],
        "title": "GradingTakeawayDetail",
        "type": "object"
      },
      "GroundTransportationDataJsonMode": {
        "properties": {
          "company": {
            "default": null,
            "nullable": true,
            "title": "Company",
            "type": "string"
          },
          "dropoff_address": {
            "default": null,
            "nullable": true,
            "title": "Dropoff Address",
            "type": "string"
          },
          "dropoff_datetime": {
            "default": null,
            "nullable": true,
            "title": "Dropoff Datetime",
            "type": "string"
          },
          "pickup_address": {
            "default": null,
            "nullable": true,
            "title": "Pickup Address",
            "type": "string"
          },
          "pickup_datetime": {
            "default": null,
            "nullable": true,
            "title": "Pickup Datetime",
            "type": "string"
          },
          "product_name": {
            "default": null,
            "nullable": true,
            "title": "Product Name",
            "type": "string"
          }
        },
        "title": "GroundTransportationData",
        "type": "object"
      },
      "GroupRef": {
        "properties": {
          "group_type": {
            "title": "Group Type",
            "type": "string"
          },
          "name": {
            "nullable": true,
            "title": "Name",
            "type": "string"
          },
          "uuid": {
            "nullable": true,
            "title": "Uuid",
            "type": "string"
          }
        },
        "required": [
          "group_type",
          "name",
          "uuid"
        ],
        "title": "GroupRef",
        "type": "object"
      },
      "HavingClause": {
        "description": "Post-aggregation comparison against a selected measure output.",
        "properties": {
          "field": {
            "maxLength": 200,
            "minLength": 1,
            "title": "Field",
            "type": "string"
          },
          "op": {
            "$ref": "#/components/schemas/HavingOp"
          },
          "value": {
            "oneOf": [
              {
                "format": "date",
                "type": "string"
              },
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "items": {
                  "oneOf": [
                    {
                      "format": "date",
                      "type": "string"
                    },
                    {
                      "format": "date-time",
                      "type": "string"
                    },
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "integer"
                    },
                    {
                      "type": "number"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "type": "array"
              },
              {
                "type": "boolean"
              },
              {
                "type": "integer"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "title": "Value"
          }
        },
        "required": [
          "field",
          "op",
          "value"
        ],
        "title": "HavingClause",
        "type": "object"
      },
      "HavingOp": {
        "enum": [
          "eq",
          "gt",
          "gte",
          "in",
          "lt",
          "lte",
          "neq",
          "not_in"
        ],
        "title": "HavingOp",
        "type": "string"
      },
      "HelpCenterArticleKeyListRequestBody": {
        "items": {
          "$ref": "#/components/schemas/HelpCenterArticleKeyRequestBody"
        },
        "type": "array"
      },
      "HelpCenterArticleKeyRequestBody": {
        "maxLength": 1000,
        "pattern": "\\S",
        "type": "string"
      },
      "HelpCenterLink": {
        "properties": {
          "label": {
            "title": "Label",
            "type": "string"
          },
          "url": {
            "title": "Url",
            "type": "string"
          }
        },
        "required": [
          "label",
          "url"
        ],
        "title": "HelpCenterLink",
        "type": "object"
      },
      "HelpCenterQueryRequestBody": {
        "pattern": "\\S",
        "type": "string"
      },
      "HelpCenterQueryVariantListRequestBody": {
        "items": {
          "$ref": "#/components/schemas/HelpCenterQueryRequestBody"
        },
        "maxItems": 4,
        "minItems": 1,
        "type": "array"
      },
      "HelpCenterSnippet": {
        "description": "A relevant snippet from a help center article.",
        "properties": {
          "links": {
            "description": "Safe labeled destinations that appeared in this retrieved article section. Use exact labels and URLs; never reconstruct missing links.",
            "items": {
              "$ref": "#/components/schemas/HelpCenterLink"
            },
            "title": "Links",
            "type": "array"
          },
          "similarity_score": {
            "description": "Backend retrieval score; results are already ordered by relevance.",
            "title": "Similarity Score",
            "type": "number"
          },
          "snippet": {
            "description": "The relevant text snippet from the article",
            "title": "Snippet",
            "type": "string"
          },
          "title": {
            "description": "The title of the help center article",
            "title": "Title",
            "type": "string"
          },
          "url": {
            "description": "The public URL of the help center article. Some internal articles have an empty URL; never construct or guess a URL for them.",
            "title": "Url",
            "type": "string"
          }
        },
        "required": [
          "similarity_score",
          "snippet",
          "title",
          "url"
        ],
        "title": "HelpCenterSnippet",
        "type": "object"
      },
      "HotelBedDetail": {
        "description": "One bed configuration in the booked room.",
        "properties": {
          "count": {
            "description": "How many beds of this type.",
            "title": "Count",
            "type": "integer"
          },
          "description": {
            "default": null,
            "description": "Ready-to-display bed description, when provided.",
            "nullable": true,
            "title": "Description",
            "type": "string"
          },
          "type": {
            "description": "Bed type (e.g., 'KING').",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "count",
          "type"
        ],
        "title": "HotelBedDetail",
        "type": "object"
      },
      "HotelBookingCardDataV1": {
        "description": "Self-contained hotel booking review card payload.\n\nEverything the card renders lives here; clients must not reconstruct any\nof it from other result fields or earlier messages. Every ``*_display``\nfield is display-final: render verbatim.",
        "properties": {
          "address": {
            "default": null,
            "description": "Formatted hotel address for the card's location link; null when unavailable.",
            "nullable": true,
            "title": "Address",
            "type": "string"
          },
          "approval_display_description": {
            "default": null,
            "description": "Display-final secondary approval copy; render beneath the approval status. Null unless the booking uses soft approval.",
            "nullable": true,
            "title": "Approval Display Description",
            "type": "string"
          },
          "approval_display_status": {
            "default": null,
            "description": "Ready-to-display approval message; render verbatim.",
            "nullable": true,
            "title": "Approval Display Status",
            "type": "string"
          },
          "cancellation_timeline": {
            "description": "Display-final cancellation rows in display order.",
            "items": {
              "$ref": "#/components/schemas/HotelCardCancellationRowV1"
            },
            "title": "Cancellation Timeline",
            "type": "array"
          },
          "check_in_date_display": {
            "description": "Display-final check-in date, e.g. 'Wed Aug 12'.",
            "title": "Check In Date Display",
            "type": "string"
          },
          "check_out_date_display": {
            "description": "Display-final check-out date, e.g. 'Fri Aug 14'.",
            "title": "Check Out Date Display",
            "type": "string"
          },
          "deposit_required": {
            "default": null,
            "description": "Whether the hotel requires a deposit; null means unknown. POSTPAID alone does not imply a deposit.",
            "nullable": true,
            "title": "Deposit Required",
            "type": "boolean"
          },
          "fund": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BookingCardFundV1"
              }
            ],
            "default": null,
            "description": "Server-resolved booking fund line (selected > recommended > lone eligible); null when no fund resolves.",
            "nullable": true
          },
          "hotel_image_url": {
            "default": null,
            "description": "Provider-hosted hotel photo URL; null when the provider has no photo.",
            "nullable": true,
            "title": "Hotel Image Url",
            "type": "string"
          },
          "hotel_name": {
            "description": "Hotel name from the selected rate quote.",
            "title": "Hotel Name",
            "type": "string"
          },
          "hotel_star_rating_display": {
            "default": null,
            "description": "Display-final star rating, e.g. '5-star' or '4.5-star'; null when unknown.",
            "nullable": true,
            "title": "Hotel Star Rating Display",
            "type": "string"
          },
          "in_policy": {
            "description": "Whether the selected hotel rate is in travel policy.",
            "title": "In Policy",
            "type": "boolean"
          },
          "loyalty_programs": {
            "default": null,
            "description": "Matching saved traveler loyalty programs to render as a loyalty row; null when none apply.",
            "items": {
              "$ref": "#/components/schemas/BookingCardLoyaltyProgramV1"
            },
            "nullable": true,
            "title": "Loyalty Programs",
            "type": "array"
          },
          "nightly_rate_display": {
            "description": "Display-final all-in nightly price, e.g. '$110' or '$110.50'. A preview that cannot compute it emits no card.",
            "title": "Nightly Rate Display",
            "type": "string"
          },
          "payment_description": {
            "default": null,
            "description": "Deposit fallback when any term lacks a valid amount or timing; complete specifics remain in payment_terms.",
            "nullable": true,
            "title": "Payment Description",
            "type": "string"
          },
          "payment_display": {
            "default": null,
            "description": "Display-final payment timing; render verbatim.",
            "nullable": true,
            "title": "Payment Display",
            "type": "string"
          },
          "payment_terms": {
            "default": null,
            "description": "Provider-supplied deposit amounts, basis and timing. Missing details are unknown; never infer them from the stay total.",
            "items": {
              "$ref": "#/components/schemas/HotelPaymentTerm"
            },
            "nullable": true,
            "title": "Payment Terms",
            "type": "array"
          },
          "policy_violations": {
            "description": "Human-readable travel-policy violations, if any.",
            "items": {
              "type": "string"
            },
            "title": "Policy Violations",
            "type": "array"
          },
          "rate_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "description": "The quoted rate UUID; the id the confirm call is keyed to."
          },
          "refundability_display": {
            "default": null,
            "description": "Display-final refundability summary: 'Fully refundable', 'Partially refundable', or 'Non-refundable'; null when unknown.",
            "nullable": true,
            "title": "Refundability Display",
            "type": "string"
          },
          "room_name": {
            "default": null,
            "description": "Selected room name from the rate quote.",
            "nullable": true,
            "title": "Room Name",
            "type": "string"
          },
          "taxes_included": {
            "default": null,
            "description": "Whether the quoted total includes taxes, for the 'Taxes included' caption; null when unknowable.",
            "nullable": true,
            "title": "Taxes Included",
            "type": "boolean"
          },
          "total_amount_display": {
            "description": "Display-final total-stay price, e.g. '$220'. A preview that cannot compute it emits no card.",
            "title": "Total Amount Display",
            "type": "string"
          },
          "traveler_name_display": {
            "default": null,
            "description": "Display-final traveler full name, e.g. 'Kim Kavanroodi'; null when unavailable.",
            "nullable": true,
            "title": "Traveler Name Display",
            "type": "string"
          }
        },
        "required": [
          "check_in_date_display",
          "check_out_date_display",
          "hotel_name",
          "in_policy",
          "nightly_rate_display",
          "rate_id",
          "total_amount_display"
        ],
        "title": "HotelBookingCardDataV1",
        "type": "object"
      },
      "HotelBookingDetailInfo": {
        "description": "Hotel booking with property contact, stay shape, and room details.",
        "properties": {
          "address": {
            "default": null,
            "description": "Hotel address",
            "nullable": true,
            "title": "Address",
            "type": "string"
          },
          "approval_display_status": {
            "default": null,
            "description": "Ready-to-display approval message.",
            "nullable": true,
            "title": "Approval Display Status",
            "type": "string"
          },
          "beds": {
            "description": "Bed configuration of the booked room, when the property reported it.",
            "items": {
              "$ref": "#/components/schemas/HotelBedDetail"
            },
            "title": "Beds",
            "type": "array"
          },
          "board_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BoardType"
              }
            ],
            "default": null,
            "description": "Meal plan included in the rate: BREAKFAST, ALL_INCLUSIVE, or NONE.",
            "nullable": true
          },
          "booked_at": {
            "default": null,
            "description": "When the booking was created",
            "format": "date-time",
            "nullable": true,
            "title": "Booked At",
            "type": "string"
          },
          "booked_for_someone_else": {
            "default": null,
            "description": "True when the person traveling is not the user these bookings were retrieved for: they arranged this booking for a colleague or guest, so its itinerary is not theirs. False when they are the traveler. Null when not reported.",
            "nullable": true,
            "title": "Booked For Someone Else",
            "type": "boolean"
          },
          "booking_request_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "description": "Booking request UUID for an unfulfilled request; use it for request-status lookups. Use this typed ID when linking a pending, processing, failed, cancelled, or rejected request, with hotel_name as the entity-link label.",
            "nullable": true
          },
          "card_authorization_guidance": {
            "default": null,
            "description": "Pre-rendered explanation of how the stay is paid when ramp_handles_card_authorization is true, worded for the current user. Answer with it verbatim when the user asks how the stay is paid or whether they pay at the hotel, and do not say the traveler pays for the room or tax at the hotel.",
            "nullable": true,
            "title": "Card Authorization Guidance",
            "type": "string"
          },
          "check_in_date": {
            "default": null,
            "description": "Check-in date",
            "format": "date-time",
            "nullable": true,
            "title": "Check In Date",
            "type": "string"
          },
          "check_out_date": {
            "default": null,
            "description": "Check-out date",
            "format": "date-time",
            "nullable": true,
            "title": "Check Out Date",
            "type": "string"
          },
          "city": {
            "default": null,
            "description": "City where the hotel is located",
            "nullable": true,
            "title": "City",
            "type": "string"
          },
          "confirmation_number": {
            "default": null,
            "description": "Confirmation code the hotel recognizes for this reservation: the supplier's when known, else Ramp's. Null for an unfulfilled request or when the reservation record is incomplete.",
            "nullable": true,
            "title": "Confirmation Number",
            "type": "string"
          },
          "country": {
            "default": null,
            "description": "Country code of the property.",
            "nullable": true,
            "title": "Country",
            "type": "string"
          },
          "deposit_required": {
            "default": null,
            "description": "True when the hotel can charge a deposit, up to the full stay, soon after booking, even on a POSTPAID rate.",
            "nullable": true,
            "title": "Deposit Required",
            "type": "boolean"
          },
          "error_message": {
            "default": null,
            "description": "Error message if the booking request failed (status=FAILED)",
            "nullable": true,
            "title": "Error Message",
            "type": "string"
          },
          "has_associated_spend_event": {
            "default": null,
            "description": "Whether this confirmed booking has associated spend activity that currently affects the fund balance. When true, cleared charges and pending authorizations are already reflected in GetUserFunds and must not be subtracted again. When false for an entirely postpaid booking, do not claim the future hotel charge is already deducted.",
            "nullable": true,
            "title": "Has Associated Spend Event",
            "type": "boolean"
          },
          "hotel_name": {
            "default": null,
            "description": "Name of the selected hotel, as returned by the booking provider.",
            "nullable": true,
            "title": "Hotel Name",
            "type": "string"
          },
          "hotel_phone_number": {
            "default": null,
            "description": "Property phone number for contacting the hotel.",
            "nullable": true,
            "title": "Hotel Phone Number",
            "type": "string"
          },
          "hotel_room_booking_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "description": "Confirmed hotel room booking UUID; pass it to GetBookingDetails as hotel_room_booking_id. Use this typed ID when linking a persisted hotel booking, with hotel_name as the entity-link label.",
            "nullable": true
          },
          "is_non_refundable": {
            "default": null,
            "description": "True when the rate or its deposit terms are non-refundable, false when refundable or partially refundable, null when unknown. False does not mean free cancellation.",
            "nullable": true,
            "title": "Is Non Refundable",
            "type": "boolean"
          },
          "max_occupancy": {
            "default": null,
            "description": "Maximum guests the booked room type allows.",
            "nullable": true,
            "title": "Max Occupancy",
            "type": "integer"
          },
          "num_adults": {
            "default": null,
            "description": "Number of adults the stay was requested for",
            "nullable": true,
            "title": "Num Adults",
            "type": "integer"
          },
          "number_of_adults": {
            "default": null,
            "description": "Adults booked on this reservation, when Ramp stored its quote.",
            "nullable": true,
            "title": "Number Of Adults",
            "type": "integer"
          },
          "number_of_nights": {
            "default": null,
            "description": "Nights between check-in and check-out.",
            "nullable": true,
            "title": "Number Of Nights",
            "type": "integer"
          },
          "number_of_rooms": {
            "default": null,
            "description": "Number of rooms booked on this reservation.",
            "nullable": true,
            "title": "Number Of Rooms",
            "type": "integer"
          },
          "payment_currency": {
            "default": null,
            "description": "Currency for the prepaid and postpaid amounts.",
            "nullable": true,
            "title": "Payment Currency",
            "type": "string"
          },
          "payment_type": {
            "default": null,
            "description": "Hotel payment timing, such as PREPAID or POSTPAID. POSTPAID means the hotel expects payment after booking, typically at the property, unless ramp_handles_card_authorization is true.",
            "nullable": true,
            "title": "Payment Type",
            "type": "string"
          },
          "postal_code": {
            "default": null,
            "description": "Postal code of the property.",
            "nullable": true,
            "title": "Postal Code",
            "type": "string"
          },
          "postpaid_total_amount": {
            "default": null,
            "description": "Amount expected after booking, typically at the property. This future amount is not deducted from a fund merely because the booking is confirmed. When ramp_handles_card_authorization is true, the hotel charges it to the company card through Ramp's credit card authorization; the traveler does not pay it at the hotel or checkout.",
            "nullable": true,
            "title": "Postpaid Total Amount",
            "type": "string"
          },
          "prepaid_total_amount": {
            "default": null,
            "description": "Amount charged at booking. Zero means no booking-time payment was due.",
            "nullable": true,
            "title": "Prepaid Total Amount",
            "type": "string"
          },
          "ramp_handles_card_authorization": {
            "default": null,
            "description": "True when Ramp submits a credit card authorization to the hotel so the room and tax go on a company card; the traveler does not pay for them at the property. Never say this stay is paid at the hotel when true.",
            "nullable": true,
            "title": "Ramp Handles Card Authorization",
            "type": "boolean"
          },
          "room_type": {
            "default": null,
            "description": "Type of room booked (e.g., 'King Room')",
            "nullable": true,
            "title": "Room Type",
            "type": "string"
          },
          "state": {
            "default": null,
            "description": "State or province code of the property.",
            "nullable": true,
            "title": "State",
            "type": "string"
          },
          "status": {
            "default": null,
            "description": "Booking status. For confirmed bookings: reservation status. For unfulfilled requests: PENDING_APPROVAL, PROCESSING, FAILED, CANCELLED, or REJECTED.",
            "nullable": true,
            "title": "Status",
            "type": "string"
          },
          "trip_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "description": "ID of the associated trip (UUID or entity alias). To link to the trip, pass this ID to FindUrl as entity_uuid with entity_type='trip' and use the returned URL. Do not construct a URL from this ID.",
            "nullable": true
          },
          "trip_name": {
            "default": null,
            "description": "Name of the trip this booking is associated with",
            "nullable": true,
            "title": "Trip Name",
            "type": "string"
          }
        },
        "title": "HotelBookingDetailInfo",
        "type": "object"
      },
      "HotelBookingInfo": {
        "description": "Information about a hotel booking or pending hotel request.",
        "properties": {
          "address": {
            "default": null,
            "description": "Hotel address",
            "nullable": true,
            "title": "Address",
            "type": "string"
          },
          "approval_display_status": {
            "default": null,
            "description": "Ready-to-display approval message.",
            "nullable": true,
            "title": "Approval Display Status",
            "type": "string"
          },
          "booked_at": {
            "default": null,
            "description": "When the booking was created",
            "format": "date-time",
            "nullable": true,
            "title": "Booked At",
            "type": "string"
          },
          "booked_for_someone_else": {
            "default": null,
            "description": "True when the person traveling is not the user these bookings were retrieved for: they arranged this booking for a colleague or guest, so its itinerary is not theirs. False when they are the traveler. Null when not reported.",
            "nullable": true,
            "title": "Booked For Someone Else",
            "type": "boolean"
          },
          "booking_request_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "description": "Booking request UUID for an unfulfilled request; use it for request-status lookups. Use this typed ID when linking a pending, processing, failed, cancelled, or rejected request, with hotel_name as the entity-link label.",
            "nullable": true
          },
          "card_authorization_guidance": {
            "default": null,
            "description": "Pre-rendered explanation of how the stay is paid when ramp_handles_card_authorization is true, worded for the current user. Answer with it verbatim when the user asks how the stay is paid or whether they pay at the hotel, and do not say the traveler pays for the room or tax at the hotel.",
            "nullable": true,
            "title": "Card Authorization Guidance",
            "type": "string"
          },
          "check_in_date": {
            "default": null,
            "description": "Check-in date",
            "format": "date-time",
            "nullable": true,
            "title": "Check In Date",
            "type": "string"
          },
          "check_out_date": {
            "default": null,
            "description": "Check-out date",
            "format": "date-time",
            "nullable": true,
            "title": "Check Out Date",
            "type": "string"
          },
          "city": {
            "default": null,
            "description": "City where the hotel is located",
            "nullable": true,
            "title": "City",
            "type": "string"
          },
          "deposit_required": {
            "default": null,
            "description": "True when the hotel can charge a deposit, up to the full stay, soon after booking, even on a POSTPAID rate.",
            "nullable": true,
            "title": "Deposit Required",
            "type": "boolean"
          },
          "error_message": {
            "default": null,
            "description": "Error message if the booking request failed (status=FAILED)",
            "nullable": true,
            "title": "Error Message",
            "type": "string"
          },
          "has_associated_spend_event": {
            "default": null,
            "description": "Whether this confirmed booking has associated spend activity that currently affects the fund balance. When true, cleared charges and pending authorizations are already reflected in GetUserFunds and must not be subtracted again. When false for an entirely postpaid booking, do not claim the future hotel charge is already deducted.",
            "nullable": true,
            "title": "Has Associated Spend Event",
            "type": "boolean"
          },
          "hotel_name": {
            "default": null,
            "description": "Name of the selected hotel, as returned by the booking provider.",
            "nullable": true,
            "title": "Hotel Name",
            "type": "string"
          },
          "hotel_room_booking_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "description": "Confirmed hotel room booking UUID; pass it to GetBookingDetails as hotel_room_booking_id. Use this typed ID when linking a persisted hotel booking, with hotel_name as the entity-link label.",
            "nullable": true
          },
          "is_non_refundable": {
            "default": null,
            "description": "True when the rate or its deposit terms are non-refundable, false when refundable or partially refundable, null when unknown. False does not mean free cancellation.",
            "nullable": true,
            "title": "Is Non Refundable",
            "type": "boolean"
          },
          "num_adults": {
            "default": null,
            "description": "Number of adults the stay was requested for",
            "nullable": true,
            "title": "Num Adults",
            "type": "integer"
          },
          "payment_currency": {
            "default": null,
            "description": "Currency for the prepaid and postpaid amounts.",
            "nullable": true,
            "title": "Payment Currency",
            "type": "string"
          },
          "payment_type": {
            "default": null,
            "description": "Hotel payment timing, such as PREPAID or POSTPAID. POSTPAID means the hotel expects payment after booking, typically at the property, unless ramp_handles_card_authorization is true.",
            "nullable": true,
            "title": "Payment Type",
            "type": "string"
          },
          "postpaid_total_amount": {
            "default": null,
            "description": "Amount expected after booking, typically at the property. This future amount is not deducted from a fund merely because the booking is confirmed. When ramp_handles_card_authorization is true, the hotel charges it to the company card through Ramp's credit card authorization; the traveler does not pay it at the hotel or checkout.",
            "nullable": true,
            "title": "Postpaid Total Amount",
            "type": "string"
          },
          "prepaid_total_amount": {
            "default": null,
            "description": "Amount charged at booking. Zero means no booking-time payment was due.",
            "nullable": true,
            "title": "Prepaid Total Amount",
            "type": "string"
          },
          "ramp_handles_card_authorization": {
            "default": null,
            "description": "True when Ramp submits a credit card authorization to the hotel so the room and tax go on a company card; the traveler does not pay for them at the property. Never say this stay is paid at the hotel when true.",
            "nullable": true,
            "title": "Ramp Handles Card Authorization",
            "type": "boolean"
          },
          "room_type": {
            "default": null,
            "description": "Type of room booked (e.g., 'King Room')",
            "nullable": true,
            "title": "Room Type",
            "type": "string"
          },
          "status": {
            "default": null,
            "description": "Booking status. For confirmed bookings: reservation status. For unfulfilled requests: PENDING_APPROVAL, PROCESSING, FAILED, CANCELLED, or REJECTED.",
            "nullable": true,
            "title": "Status",
            "type": "string"
          },
          "trip_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "description": "ID of the associated trip (UUID or entity alias). To link to the trip, pass this ID to FindUrl as entity_uuid with entity_type='trip' and use the returned URL. Do not construct a URL from this ID.",
            "nullable": true
          },
          "trip_name": {
            "default": null,
            "description": "Name of the trip this booking is associated with",
            "nullable": true,
            "title": "Trip Name",
            "type": "string"
          }
        },
        "title": "HotelBookingInfo",
        "type": "object"
      },
      "HotelBookingResult": {
        "description": "Result of SubmitHotelBooking: quote-time preview plus booked output.\n\n- PREVIEW (booked=False): no booking is created; booking is null.\n- BOOKED (booked=True): confirm=true created a booking request.",
        "properties": {
          "address": {
            "description": "Formatted hotel address.",
            "title": "Address",
            "type": "string"
          },
          "all_in_nightly_amount": {
            "default": null,
            "description": "Unformatted tax-and-fee-inclusive amount per room per night for the selected rate, as in GetHotelRates.all_in_nightly_amount.",
            "nullable": true,
            "title": "All In Nightly Amount",
            "type": "string"
          },
          "approval_display_status": {
            "default": null,
            "description": "Ready-to-display approval message and source of truth for approval mode. Use this verbatim instead of inferring approval copy from requires_approval or policy status. 'Booking will be flagged for review' means soft approval, not that approval is unnecessary; 'Approval required before booking' means hard approval.",
            "nullable": true,
            "title": "Approval Display Status",
            "type": "string"
          },
          "approval_steps": {
            "description": "Human-readable approval steps required for this booking.",
            "items": {
              "type": "string"
            },
            "title": "Approval Steps",
            "type": "array"
          },
          "booked": {
            "description": "True when a booking request was created; False for a preview. This does not mean the hotel is confirmed. Use booking.status for fulfillment and approval_display_status to distinguish hard approval from a soft-approved hotel that was secured and flagged for review.",
            "title": "Booked",
            "type": "boolean"
          },
          "booking": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BookingRequestResult"
              }
            ],
            "default": null,
            "description": "Created booking details. Present only when booked=True.",
            "nullable": true
          },
          "cancellation_timeline": {
            "description": "Ordered cancellation windows. Each description applies from starts_at (inclusive) until deadline (exclusive), not after deadline.",
            "items": {
              "$ref": "#/components/schemas/HotelCancellationTimelineStep"
            },
            "title": "Cancellation Timeline",
            "type": "array"
          },
          "check_in_date": {
            "description": "Check-in date in YYYY-MM-DD format.",
            "title": "Check In Date",
            "type": "string"
          },
          "check_out_date": {
            "description": "Check-out date in YYYY-MM-DD format.",
            "title": "Check Out Date",
            "type": "string"
          },
          "currency": {
            "default": null,
            "description": "ISO 4217 currency of expected_total_amount and all_in_nightly_amount.",
            "nullable": true,
            "title": "Currency",
            "type": "string"
          },
          "deposit_required": {
            "default": null,
            "description": "Whether the hotel requires a deposit; null means unknown. POSTPAID alone does not imply a deposit.",
            "nullable": true,
            "title": "Deposit Required",
            "type": "boolean"
          },
          "display_card_data": {
            "allOf": [
              {
                "$ref": "#/components/schemas/HotelBookingCardDataV1"
              }
            ],
            "default": null,
            "description": "Self-contained booking review card payload, populated only on successful previews (booked=false) on card-enabled surfaces; null on booked=true results. Legacy AskRamp Web rendering payload; not a display acknowledgment. The same facts are available in review_details without a renderer.",
            "nullable": true
          },
          "eligible_funds": {
            "description": "Fund choices for this booking in a preview. These are not selected merely because they appear here; pass a fund_uuid as spend_allocation_id and preview again before presenting it as the booking fund. The traveler's funds come first. When booking for someone else, the booker's own funds follow when they may pay for it, marked is_booker_fund.",
            "items": {
              "$ref": "#/components/schemas/SuggestedFundInfo"
            },
            "title": "Eligible Funds",
            "type": "array"
          },
          "expected_total_amount": {
            "description": "Canonical unformatted quote amount. Copy this value verbatim into SubmitHotelBooking.expected_total_amount when confirming.",
            "title": "Expected Total Amount",
            "type": "string"
          },
          "fund_eligibility_status": {
            "default": null,
            "description": "Whether eligible funds were resolved, none were eligible, or the lookup failed (preview only).",
            "enum": [
              "lookup_failed",
              "none_eligible",
              "resolved"
            ],
            "nullable": true,
            "title": "Fund Eligibility Status",
            "type": "string"
          },
          "hotel_name": {
            "description": "Hotel name from the selected rate quote.",
            "title": "Hotel Name",
            "type": "string"
          },
          "in_policy": {
            "description": "Whether the selected hotel rate is in travel policy.",
            "title": "In Policy",
            "type": "boolean"
          },
          "loyalty_program_names_to_offer": {
            "description": "Exact loyalty program names to offer the traveler before confirmation. If this list is empty, do not offer to add a loyalty program.",
            "items": {
              "type": "string"
            },
            "title": "Loyalty Program Names To Offer",
            "type": "array"
          },
          "loyalty_programs": {
            "description": "Saved traveler loyalty programs that match this quote and will be submitted if confirmed.",
            "items": {
              "$ref": "#/components/schemas/ApplicableTravelerLoyaltyProgram"
            },
            "title": "Loyalty Programs",
            "type": "array"
          },
          "message": {
            "description": "Next-step guidance for the caller.",
            "title": "Message",
            "type": "string"
          },
          "nightly_rate": {
            "description": "Quoted nightly rate, including currency.",
            "title": "Nightly Rate",
            "type": "string"
          },
          "payment_description": {
            "default": null,
            "description": "Deposit fallback when any term lacks a valid amount or timing; complete specifics remain in payment_terms.",
            "nullable": true,
            "title": "Payment Description",
            "type": "string"
          },
          "payment_display": {
            "default": null,
            "description": "Display-final payment timing; render verbatim.",
            "nullable": true,
            "title": "Payment Display",
            "type": "string"
          },
          "payment_terms": {
            "default": null,
            "description": "Provider-supplied deposit amounts, basis and timing. Missing details are unknown; never infer them from the stay total.",
            "items": {
              "$ref": "#/components/schemas/HotelPaymentTerm"
            },
            "nullable": true,
            "title": "Payment Terms",
            "type": "array"
          },
          "policy_violations": {
            "description": "Human-readable travel-policy violations, if any.",
            "items": {
              "type": "string"
            },
            "title": "Policy Violations",
            "type": "array"
          },
          "preview_call_id": {
            "default": null,
            "description": "Protocol correlation ID of this completed preview tool call, not a quote or rate UUID. Null after submission or when the calling runtime supplies no correlation ID.",
            "nullable": true,
            "title": "Preview Call Id",
            "type": "string"
          },
          "rate_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "description": "The selected rate UUID this result quotes, echoed from the call; the id the confirm call is keyed to.",
            "nullable": true
          },
          "recommended_fund_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "description": "Preferred eligible fund UUID to pass as spend_allocation_id (preview only): the traveler's leading fund. The booker's own funds are never recommended.",
            "nullable": true
          },
          "requires_approval": {
            "description": "Whether this booking requires approval before fulfillment.",
            "title": "Requires Approval",
            "type": "boolean"
          },
          "review_card_attached": {
            "description": "True when this preview carries the review card payload that the connected AskRamp Web client renders automatically. The payload is omitted from model content; review_details holds the same facts.",
            "readOnly": true,
            "title": "Review Card Attached",
            "type": "boolean"
          },
          "review_details": {
            "allOf": [
              {
                "$ref": "#/components/schemas/HotelBookingCardDataV1"
              }
            ],
            "default": null,
            "description": "Authoritative structured preview, independent of client rendering. Includes stay, room, traveler, price, payment and cancellation terms, policy, approval, and funding. Null after submission or when display prices are unavailable; use the other returned preview facts without inventing missing details.",
            "nullable": true
          },
          "room_name": {
            "default": null,
            "description": "Selected room name from the rate quote.",
            "nullable": true,
            "title": "Room Name",
            "type": "string"
          },
          "selected_fund_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "description": "Fund UUID the caller explicitly selected by passing spend_allocation_id, echoed back; null when no fund was explicitly selected. On previews this fund is guaranteed present in eligible_funds (an ineligible selection errors instead), so clients can resolve its name and balance; it supersedes recommended_fund_uuid as the booking fund.",
            "nullable": true
          },
          "total_amount": {
            "description": "Quoted total booking amount.",
            "title": "Total Amount",
            "type": "string"
          }
        },
        "required": [
          "address",
          "booked",
          "check_in_date",
          "check_out_date",
          "expected_total_amount",
          "hotel_name",
          "in_policy",
          "message",
          "nightly_rate",
          "requires_approval",
          "review_card_attached",
          "total_amount"
        ],
        "title": "HotelBookingResult",
        "type": "object"
      },
      "HotelCancellationPolicyTimelineStep": {
        "properties": {
          "active": {
            "description": "Whether this policy step currently applies",
            "title": "Active",
            "type": "boolean"
          },
          "cancellation_fee": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MoneyAmountSchema"
              }
            ],
            "description": "Cancellation fee charged during this policy step"
          },
          "deadline": {
            "description": "Deadline for this cancellation policy step",
            "format": "date-time",
            "title": "Deadline",
            "type": "string"
          },
          "description": {
            "default": null,
            "description": "Additional user-facing detail for this cancellation policy step",
            "nullable": true,
            "title": "Description",
            "type": "string"
          },
          "refund_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MoneyAmountSchema"
              }
            ],
            "description": "Refund available during this policy step"
          },
          "title": {
            "description": "User-facing cancellation policy step title",
            "title": "Title",
            "type": "string"
          }
        },
        "required": [
          "active",
          "cancellation_fee",
          "deadline",
          "refund_amount",
          "title"
        ],
        "title": "HotelCancellationPolicyTimelineStep",
        "type": "object"
      },
      "HotelCancellationPreview": {
        "description": "Fresh, authoritative hotel cancellation terms shown before confirmation.",
        "properties": {
          "blocked_reason": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BookingUnavailableCancellationReason"
              }
            ],
            "default": null,
            "description": "Canonical reason cancellation is unavailable",
            "nullable": true
          },
          "booking_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MoneyAmountSchema"
              }
            ],
            "description": "Original booking amount"
          },
          "booking_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "description": "Public parent Ramp Travel booking UUID"
          },
          "booking_type": {
            "default": "HOTEL",
            "enum": [
              "HOTEL"
            ],
            "title": "Booking Type",
            "type": "string"
          },
          "booking_url": {
            "default": null,
            "description": "HTTPS URL for viewing the parent booking",
            "nullable": true,
            "title": "Booking Url",
            "type": "string"
          },
          "cancellation_cost": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MoneyAmountSchema"
              }
            ],
            "default": null,
            "description": "Amount charged for cancelling a pay-at-property stay; zero means no charge. Absent for prepaid stays or when the cost is unknown. For pay-at-property stays, refund_amount is not a refund of money paid.",
            "nullable": true
          },
          "cancellation_deadline": {
            "default": null,
            "description": "Current cancellation deadline, including its UTC offset",
            "format": "date-time",
            "nullable": true,
            "title": "Cancellation Deadline",
            "type": "string"
          },
          "cancellation_fee": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MoneyAmountSchema"
              }
            ],
            "default": null,
            "description": "Nonzero cancellation fee; None when there is no fee",
            "nullable": true
          },
          "cancellation_statement": {
            "description": "Canonical user-facing cancellation policy statement",
            "title": "Cancellation Statement",
            "type": "string"
          },
          "cancellation_timezone": {
            "description": "IANA timezone used for the hotel's cancellation policy",
            "title": "Cancellation Timezone",
            "type": "string"
          },
          "check_in_date": {
            "description": "Stay check-in date",
            "title": "Check In Date",
            "type": "string"
          },
          "check_out_date": {
            "description": "Stay check-out date",
            "title": "Check Out Date",
            "type": "string"
          },
          "hotel_address": {
            "description": "Hotel street address",
            "title": "Hotel Address",
            "type": "string"
          },
          "hotel_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "description": "Public hotel UUID"
          },
          "hotel_name": {
            "description": "Hotel name",
            "title": "Hotel Name",
            "type": "string"
          },
          "hotel_room_booking_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "description": "Hotel reservation UUID, distinct from the hotel and parent booking UUIDs",
            "nullable": true
          },
          "is_currently_cancellable": {
            "description": "Whether Core currently permits this booking to be cancelled",
            "title": "Is Currently Cancellable",
            "type": "boolean"
          },
          "is_pre_paid": {
            "description": "Whether the hotel booking was prepaid",
            "title": "Is Pre Paid",
            "type": "boolean"
          },
          "message": {
            "default": "No cancellation was requested. These are the current cancellation terms. The user must explicitly approve these exact terms in a new user-authored reply in a later turn before you cancel this hotel booking; never call SubmitHotelCancellation with confirm=true in the same turn. Only after that confirmation, call again with confirm=true and this exact preview_id.",
            "description": "Required next step for the agent",
            "title": "Message",
            "type": "string"
          },
          "policy_disclaimer": {
            "description": "Disclaimer to show with the cancellation terms",
            "title": "Policy Disclaimer",
            "type": "string"
          },
          "policy_timeline": {
            "description": "Authoritative hotel cancellation policy timeline",
            "items": {
              "$ref": "#/components/schemas/HotelCancellationPolicyTimelineStep"
            },
            "title": "Policy Timeline",
            "type": "array"
          },
          "preview_id": {
            "description": "Server-issued identifier for these exact terms. Pass it back unchanged as preview_id with confirm=true after the user explicitly approves.",
            "title": "Preview Id",
            "type": "string"
          },
          "refund_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MoneyAmountSchema"
              }
            ],
            "default": null,
            "description": "Expected refund amount and currency, when available",
            "nullable": true
          },
          "rendered_response": {
            "default": "",
            "description": "Authoritative cancellation copy in surface-neutral plain text. Display verbatim, without reconstructing or paraphrasing terms. Booking links are separate metadata, not part of this copy.",
            "title": "Rendered Response",
            "type": "string"
          },
          "support": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BookingSupportRouting"
              }
            ],
            "default": null,
            "description": "Booking-specific travel support channels, when available",
            "nullable": true
          },
          "traveler_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "description": "Traveler user UUID"
          },
          "traveler_is_acting_user": {
            "description": "Whether the stay's traveler is the acting user. Use this, not the traveler name, to tell whether the stay is the user's own.",
            "title": "Traveler Is Acting User",
            "type": "boolean"
          },
          "traveler_name": {
            "description": "Traveler full name",
            "title": "Traveler Name",
            "type": "string"
          }
        },
        "required": [
          "booking_amount",
          "booking_id",
          "cancellation_statement",
          "cancellation_timezone",
          "check_in_date",
          "check_out_date",
          "hotel_address",
          "hotel_id",
          "hotel_name",
          "is_currently_cancellable",
          "is_pre_paid",
          "policy_timeline",
          "preview_id",
          "traveler_id",
          "traveler_is_acting_user",
          "traveler_name"
        ],
        "title": "HotelCancellationPreview",
        "type": "object"
      },
      "HotelCancellationResponse": {
        "description": "Successful preview or cancellation result.",
        "properties": {
          "preview": {
            "allOf": [
              {
                "$ref": "#/components/schemas/HotelCancellationPreview"
              }
            ],
            "default": null,
            "description": "Fresh terms that require explicit confirmation",
            "nullable": true
          },
          "response_type": {
            "description": "Whether this response contains a preview or cancellation result",
            "enum": [
              "preview",
              "result"
            ],
            "title": "Response Type",
            "type": "string"
          },
          "result": {
            "allOf": [
              {
                "$ref": "#/components/schemas/HotelCancellationResult"
              }
            ],
            "default": null,
            "description": "Cancellation request outcome",
            "nullable": true
          }
        },
        "required": [
          "response_type"
        ],
        "title": "HotelCancellationResponse",
        "type": "object"
      },
      "HotelCancellationResult": {
        "properties": {
          "already_requested": {
            "description": "Whether this result came from an existing cancellation request",
            "title": "Already Requested",
            "type": "boolean"
          },
          "booking_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "description": "Public parent Ramp Travel booking UUID, once the booking exists",
            "nullable": true
          },
          "booking_request_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "description": "Booking request UUID when the booking is still being fulfilled",
            "nullable": true
          },
          "booking_type": {
            "default": "HOTEL",
            "enum": [
              "HOTEL"
            ],
            "title": "Booking Type",
            "type": "string"
          },
          "cancellation_state": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BookingCancellationState"
              }
            ],
            "description": "Canonical cancellation state; None means the request timed out",
            "nullable": true
          },
          "message": {
            "description": "Explicit user-facing cancellation outcome",
            "title": "Message",
            "type": "string"
          }
        },
        "required": [
          "already_requested",
          "cancellation_state",
          "message"
        ],
        "title": "HotelCancellationResult",
        "type": "object"
      },
      "HotelCancellationTimelineStep": {
        "properties": {
          "active": {
            "title": "Active",
            "type": "boolean"
          },
          "deadline": {
            "description": "Exclusive end of this cancellation window, in the hotel's timezone. A check-in title labels the end, not the start, of the final window.",
            "format": "date-time",
            "title": "Deadline",
            "type": "string"
          },
          "description": {
            "default": null,
            "nullable": true,
            "title": "Description",
            "type": "string"
          },
          "starts_at": {
            "default": null,
            "description": "Inclusive start of this window: the preceding row's deadline. Null for the first row, which has no earlier timeline boundary.",
            "format": "date-time",
            "nullable": true,
            "title": "Starts At",
            "type": "string"
          },
          "title": {
            "title": "Title",
            "type": "string"
          }
        },
        "required": [
          "active",
          "deadline",
          "title"
        ],
        "title": "HotelCancellationTimelineStep",
        "type": "object"
      },
      "HotelCardCancellationRowV1": {
        "description": "One display-final cancellation row of the booking review card.",
        "properties": {
          "active": {
            "description": "Whether this cancellation window is active.",
            "title": "Active",
            "type": "boolean"
          },
          "description": {
            "default": null,
            "description": "Display-final row description; null when the provider has none.",
            "nullable": true,
            "title": "Description",
            "type": "string"
          },
          "title": {
            "description": "Display-final row title; render verbatim.",
            "title": "Title",
            "type": "string"
          }
        },
        "required": [
          "active",
          "title"
        ],
        "title": "HotelCardCancellationRowV1",
        "type": "object"
      },
      "HotelFolioDataJsonMode": {
        "properties": {
          "line_items": {
            "default": null,
            "items": {
              "$ref": "#/components/schemas/HotelFolioLineItemStructuredDataJsonMode"
            },
            "nullable": true,
            "title": "Line Items",
            "type": "array"
          }
        },
        "title": "HotelFolioData",
        "type": "object"
      },
      "HotelFolioLineItemExpenseCategoryJsonMode": {
        "enum": [
          "ACCOMMODATION",
          "FOOD_AND_BEVERAGE",
          "INCIDENTAL",
          "MISCELLANEOUS"
        ],
        "title": "HotelFolioLineItemExpenseCategory",
        "type": "string"
      },
      "HotelFolioLineItemStructuredDataJsonMode": {
        "description": "Schema for storing line items of the hotel folio",
        "properties": {
          "amount": {
            "default": null,
            "description": "Amount of the line item",
            "format": "decimal",
            "nullable": true,
            "title": "Amount",
            "type": "string"
          },
          "description": {
            "default": null,
            "description": "Description of the line item",
            "nullable": true,
            "title": "Description",
            "type": "string"
          },
          "expense_category": {
            "allOf": [
              {
                "$ref": "#/components/schemas/HotelFolioLineItemExpenseCategoryJsonMode"
              }
            ],
            "default": null,
            "description": "Expense category that the line item belongs to",
            "nullable": true
          },
          "item_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/HotelFolioLineItemTypeJsonMode"
              }
            ],
            "default": null,
            "description": "Type of the line item",
            "nullable": true
          }
        },
        "title": "HotelFolioLineItemStructuredData",
        "type": "object"
      },
      "HotelFolioLineItemTypeJsonMode": {
        "enum": [
          "DISCOUNT",
          "FEE",
          "LINE_ITEM",
          "TAX",
          "TIP"
        ],
        "title": "HotelFolioLineItemType",
        "type": "string"
      },
      "HotelModifiability": {
        "description": "Three-state modifiability signal for a booked stay.\n\nCore-owned mirror of Atlas's ``AtlasHotelModifiability`` so the Atlas schema\ntype does not leak into the domain object. ``UNKNOWN`` remains distinct from\n``MODIFIABLE`` because modification options are authoritative for a specific\nproperty and date selection.",
        "enum": [
          "MODIFIABLE",
          "NOT_MODIFIABLE",
          "UNKNOWN"
        ],
        "title": "HotelModifiability",
        "type": "string"
      },
      "HotelPaymentAmount": {
        "properties": {
          "amount": {
            "format": "decimal",
            "title": "Amount",
            "type": "string"
          },
          "currency": {
            "title": "Currency",
            "type": "string"
          }
        },
        "required": [
          "amount",
          "currency"
        ],
        "title": "HotelPaymentAmount",
        "type": "object"
      },
      "HotelPaymentDueAfterBooking": {
        "properties": {
          "duration": {
            "title": "Duration",
            "type": "number"
          },
          "type": {
            "enum": [
              "after_booking"
            ],
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "duration",
          "type"
        ],
        "title": "HotelPaymentDueAfterBooking",
        "type": "object"
      },
      "HotelPaymentDueAtBooking": {
        "properties": {
          "type": {
            "enum": [
              "at_booking"
            ],
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "type"
        ],
        "title": "HotelPaymentDueAtBooking",
        "type": "object"
      },
      "HotelPaymentDueDate": {
        "properties": {
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "local_time": {
            "default": null,
            "nullable": true,
            "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
            "title": "Local Time",
            "type": "string"
          },
          "type": {
            "enum": [
              "date"
            ],
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "date",
          "type"
        ],
        "title": "HotelPaymentDueDate",
        "type": "object"
      },
      "HotelPaymentTerm": {
        "properties": {
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/HotelPaymentAmount"
              }
            ],
            "default": null,
            "nullable": true
          },
          "basis": {
            "allOf": [
              {
                "$ref": "#/components/schemas/HotelPaymentTermBasis"
              }
            ],
            "default": null,
            "nullable": true
          },
          "description": {
            "default": null,
            "nullable": true,
            "title": "Description",
            "type": "string"
          },
          "due": {
            "default": null,
            "discriminator": {
              "mapping": {
                "after_booking": "#/components/schemas/HotelPaymentDueAfterBooking",
                "at_booking": "#/components/schemas/HotelPaymentDueAtBooking",
                "date": "#/components/schemas/HotelPaymentDueDate"
              },
              "propertyName": "type"
            },
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/HotelPaymentDueAfterBooking"
              },
              {
                "$ref": "#/components/schemas/HotelPaymentDueAtBooking"
              },
              {
                "$ref": "#/components/schemas/HotelPaymentDueDate"
              }
            ],
            "title": "Due"
          },
          "is_refundable": {
            "default": null,
            "nullable": true,
            "title": "Is Refundable",
            "type": "boolean"
          },
          "nights": {
            "default": null,
            "nullable": true,
            "title": "Nights",
            "type": "integer"
          },
          "percent": {
            "default": null,
            "format": "decimal",
            "nullable": true,
            "title": "Percent",
            "type": "string"
          }
        },
        "title": "HotelPaymentTerm",
        "type": "object"
      },
      "HotelPaymentTermBasis": {
        "enum": [
          "amount",
          "full_stay",
          "nights",
          "percent"
        ],
        "title": "HotelPaymentTermBasis",
        "type": "string"
      },
      "HotelPhoneOptionV1": {
        "properties": {
          "card": {
            "description": "Ready GenUI `hotel` component for this rate; copy it unchanged.",
            "type": "object"
          },
          "in_policy": {
            "description": "The rate's policy verdict.",
            "nullable": true,
            "title": "In Policy",
            "type": "boolean"
          },
          "policy_violations": {
            "items": {
              "type": "string"
            },
            "title": "Policy Violations",
            "type": "array"
          },
          "rate_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "description": "Bookable rate UUID the card shows; pass it as SubmitHotelBooking.rate_id."
          },
          "reply_label": {
            "default": null,
            "description": "Ready suggested-reply label for picking this hotel: its shortened name and the card's all-in nightly price, at most 25 characters and without ':'. Null when the price has no display form.",
            "nullable": true,
            "title": "Reply Label",
            "type": "string"
          }
        },
        "required": [
          "card",
          "in_policy",
          "rate_id"
        ],
        "title": "HotelPhoneOptionV1",
        "type": "object"
      },
      "HotelPreviouslyBookedTagSchema": {
        "properties": {
          "booking_count": {
            "title": "Booking Count",
            "type": "integer"
          },
          "type": {
            "enum": [
              "CURRENTLY_BOOKED_BY_BUSINESS",
              "CURRENTLY_BOOKED_BY_USER",
              "PREVIOUSLY_BOOKED_BY_BUSINESS",
              "PREVIOUSLY_BOOKED_BY_USER"
            ],
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "booking_count",
          "type"
        ],
        "title": "HotelPreviouslyBookedTagSchema",
        "type": "object"
      },
      "HotelPropertyType": {
        "description": "Normalized lodging type across hotel providers, persisted on ``booking_platform.hotel``.",
        "enum": [
          "APARTMENT",
          "BED_AND_BREAKFAST",
          "CAMPGROUND",
          "GUEST_HOUSE",
          "HOSTEL",
          "HOTEL",
          "HOTEL_AND_HOSTEL",
          "MOTEL",
          "VACATION_RENTAL"
        ],
        "title": "HotelPropertyType",
        "type": "string"
      },
      "HotelRateOptionV1": {
        "properties": {
          "all_in_nightly_amount": {
            "description": "Tax-and-fee-inclusive amount per room per night.",
            "title": "All In Nightly Amount",
            "type": "string"
          },
          "all_in_nightly_amount_display": {
            "default": null,
            "description": "Display-final all-in nightly price (cents only when nonzero), e.g. '$110' or '$110.50'. Derived from all_in_nightly_amount; the canonical amount fields stay the source of truth.",
            "nullable": true,
            "title": "All In Nightly Amount Display",
            "type": "string"
          },
          "blocked_reasons": {
            "description": "Customer-facing reasons from the booking rules that block this rate, safe to show verbatim. Empty unless is_blocked.",
            "items": {
              "type": "string"
            },
            "title": "Blocked Reasons",
            "type": "array"
          },
          "cancellation_deadline": {
            "default": null,
            "description": "Cancellation deadline in the hotel's local timezone.",
            "format": "date-time",
            "nullable": true,
            "title": "Cancellation Deadline",
            "type": "string"
          },
          "cancellation_deadline_display": {
            "default": null,
            "description": "Display-final cancellation deadline date, e.g. 'Tue Aug 11'. Derived from cancellation_deadline, which stays canonical.",
            "nullable": true,
            "title": "Cancellation Deadline Display",
            "type": "string"
          },
          "cancellation_policy": {
            "default": null,
            "nullable": true,
            "title": "Cancellation Policy",
            "type": "string"
          },
          "currency": {
            "title": "Currency",
            "type": "string"
          },
          "deposit_required": {
            "default": null,
            "description": "Whether the hotel requires a deposit; null means unknown. POSTPAID alone does not imply a deposit.",
            "nullable": true,
            "title": "Deposit Required",
            "type": "boolean"
          },
          "earns_loyalty_points": {
            "title": "Earns Loyalty Points",
            "type": "boolean"
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "description": "Literal hotel rate UUID to pass as SubmitHotelBooking.rate_id."
          },
          "in_policy": {
            "nullable": true,
            "title": "In Policy",
            "type": "boolean"
          },
          "is_blocked": {
            "default": false,
            "description": "True when the company's booking rules block this rate, so it can't be booked. A hotel whose shown rate is blocked is listed after every other hotel; other rooms there may still be bookable.",
            "title": "Is Blocked",
            "type": "boolean"
          },
          "is_company_preferred": {
            "title": "Is Company Preferred",
            "type": "boolean"
          },
          "is_corporate_rate": {
            "title": "Is Corporate Rate",
            "type": "boolean"
          },
          "loyalty_eligible": {
            "title": "Loyalty Eligible",
            "type": "boolean"
          },
          "loyalty_program": {
            "default": null,
            "nullable": true,
            "title": "Loyalty Program",
            "type": "string"
          },
          "loyalty_required": {
            "title": "Loyalty Required",
            "type": "boolean"
          },
          "nightly_amount": {
            "description": "Pre-tax base amount per room per night.",
            "title": "Nightly Amount",
            "type": "string"
          },
          "payment_description": {
            "default": null,
            "description": "Deposit fallback when any term lacks a valid amount or timing; complete specifics remain in payment_terms.",
            "nullable": true,
            "title": "Payment Description",
            "type": "string"
          },
          "payment_display": {
            "default": null,
            "description": "Display-final payment timing; render verbatim.",
            "nullable": true,
            "title": "Payment Display",
            "type": "string"
          },
          "payment_terms": {
            "default": null,
            "description": "Provider-supplied deposit amounts, basis and timing. Missing details are unknown; never infer them from the stay total.",
            "items": {
              "$ref": "#/components/schemas/HotelPaymentTerm"
            },
            "nullable": true,
            "title": "Payment Terms",
            "type": "array"
          },
          "payment_type": {
            "title": "Payment Type",
            "type": "string"
          },
          "policy_violations": {
            "items": {
              "type": "string"
            },
            "title": "Policy Violations",
            "type": "array"
          },
          "recommendation_reason": {
            "default": null,
            "description": "One to two sentences addressed to the traveler explaining why this room rate was recommended. Populated only on rates in display_ui_recommended_cards or recommended_rates (both `rates` and `best_rate`); always null on all_rates. Always a standalone sentence that reads on its own card or in a card-less rate list.",
            "nullable": true,
            "title": "Recommendation Reason",
            "type": "string"
          },
          "refundability": {
            "default": null,
            "nullable": true,
            "title": "Refundability",
            "type": "string"
          },
          "room_amenities": {
            "items": {
              "type": "string"
            },
            "title": "Room Amenities",
            "type": "array"
          },
          "room_description": {
            "default": null,
            "nullable": true,
            "title": "Room Description",
            "type": "string"
          },
          "room_name": {
            "title": "Room Name",
            "type": "string"
          },
          "total_amount": {
            "title": "Total Amount",
            "type": "string"
          },
          "total_amount_display": {
            "default": null,
            "description": "Display-final total-stay price (cents only when nonzero), e.g. '$220'. Derived from total_amount; the canonical amount fields stay the source of truth.",
            "nullable": true,
            "title": "Total Amount Display",
            "type": "string"
          }
        },
        "required": [
          "all_in_nightly_amount",
          "currency",
          "earns_loyalty_points",
          "id",
          "in_policy",
          "is_company_preferred",
          "is_corporate_rate",
          "loyalty_eligible",
          "loyalty_required",
          "nightly_amount",
          "payment_type",
          "room_name",
          "total_amount"
        ],
        "title": "HotelRateOptionV1",
        "type": "object"
      },
      "HotelRateRecommendationFiltersRequestBody": {
        "description": "Soft rate-level traveler preferences used to rank recommended hotel rates.",
        "properties": {
          "accessible_room": {
            "default": false,
            "description": "Set true only when the traveler asks for an accessible, ADA, mobility, hearing, wheelchair, or roll-in shower room; a room matches when it is accessible. Also add any specific feature they need, such as a roll-in shower, to required_room_amenities. Leave false otherwise: accessible rooms then rank below comparable standard rooms.",
            "title": "Accessible Room",
            "type": "boolean"
          },
          "bed_types": {
            "default": null,
            "description": "Acceptable provider-neutral bed types, such as king or queen; a room matches when it has any of them.",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "title": "Bed Types",
            "type": "array"
          },
          "board_types": {
            "default": null,
            "description": "Acceptable meal plans (BREAKFAST, ALL_INCLUSIVE, or NONE); a rate matches when its meal plan is any of them.",
            "items": {
              "$ref": "#/components/schemas/BoardTypeRequestBody"
            },
            "nullable": true,
            "title": "Board Types",
            "type": "array"
          },
          "earns_loyalty_points": {
            "default": null,
            "description": "Whether the rate should earn hotel loyalty points.",
            "nullable": true,
            "title": "Earns Loyalty Points",
            "type": "boolean"
          },
          "max_all_in_nightly_amount": {
            "default": null,
            "description": "Maximum pre-tax base amount per room per night. The field retains its legacy all-in name for compatibility with existing callers.",
            "nullable": true,
            "oneOf": [
              {
                "minimum": 0.0,
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "title": "Max All In Nightly Amount"
          },
          "max_all_in_total_amount": {
            "default": null,
            "description": "Maximum all-in amount for the full stay.",
            "nullable": true,
            "oneOf": [
              {
                "minimum": 0.0,
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "title": "Max All In Total Amount"
          },
          "min_bed_count": {
            "default": null,
            "description": "Minimum number of beds. When bed_types is set, counts only those beds.",
            "minimum": 1,
            "nullable": true,
            "title": "Min Bed Count",
            "type": "integer"
          },
          "refundability": {
            "default": null,
            "description": "Acceptable refundability values, such as REFUNDABLE; a rate matches when its refundability is any of them.",
            "items": {
              "$ref": "#/components/schemas/RefundabilityRequestBody"
            },
            "nullable": true,
            "title": "Refundability",
            "type": "array"
          },
          "required_room_amenities": {
            "default": null,
            "description": "Room-level amenities the traveler requested; a room matches only when it has all of them. Do not copy property-level SearchHotels amenities such as a pool, parking, or fitness center into this field.",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "title": "Required Room Amenities",
            "type": "array"
          }
        },
        "title": "HotelRateRecommendationFilters",
        "type": "object"
      },
      "HotelRateSummarySortKey": {
        "enum": [
          "DISTANCE",
          "LOWEST_PRICE",
          "TIME",
          "WEIGHTED"
        ],
        "title": "HotelRateSummarySortKey",
        "type": "string"
      },
      "HotelRateSummarySortKeyRequestBody": {
        "enum": [
          "DISTANCE",
          "LOWEST_PRICE",
          "TIME",
          "WEIGHTED"
        ],
        "title": "HotelRateSummarySortKey",
        "type": "string"
      },
      "HotelRecommendationV1": {
        "properties": {
          "hotel": {
            "$ref": "#/components/schemas/HotelSearchOfferV1"
          },
          "reasons": {
            "description": "Why this hotel was recommended, e.g. matched preferences or policy status.",
            "items": {
              "type": "string"
            },
            "title": "Reasons",
            "type": "array"
          },
          "tradeoffs": {
            "description": "Caveats the traveler should know about, e.g. policy violations.",
            "items": {
              "type": "string"
            },
            "title": "Tradeoffs",
            "type": "array"
          }
        },
        "required": [
          "hotel"
        ],
        "title": "HotelRecommendationV1",
        "type": "object"
      },
      "HotelRecommendationsV1": {
        "properties": {
          "alternates": {
            "description": "Strong alternatives, in the order returned.",
            "items": {
              "$ref": "#/components/schemas/HotelRecommendationV1"
            },
            "title": "Alternates",
            "type": "array"
          },
          "best_match": {
            "allOf": [
              {
                "$ref": "#/components/schemas/HotelRecommendationV1"
              }
            ],
            "description": "Best hotel for the traveler's stated and saved preferences. Preserve it as the first recommendation in the returned order."
          }
        },
        "required": [
          "best_match"
        ],
        "title": "HotelRecommendationsV1",
        "type": "object"
      },
      "HotelRoomBed": {
        "properties": {
          "count": {
            "minimum": 1,
            "title": "Count",
            "type": "integer"
          },
          "type": {
            "description": "Normalized bed type, such as king or queen.",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "count",
          "type"
        ],
        "title": "HotelRoomBed",
        "type": "object"
      },
      "HotelRoomRates": {
        "properties": {
          "beds": {
            "items": {
              "$ref": "#/components/schemas/HotelRoomBed"
            },
            "title": "Beds",
            "type": "array"
          },
          "best_rate": {
            "$ref": "#/components/schemas/HotelRateOptionV1"
          },
          "rates": {
            "items": {
              "$ref": "#/components/schemas/HotelRateOptionV1"
            },
            "title": "Rates",
            "type": "array"
          },
          "room_amenities": {
            "items": {
              "type": "string"
            },
            "title": "Room Amenities",
            "type": "array"
          },
          "room_description": {
            "default": null,
            "nullable": true,
            "title": "Room Description",
            "type": "string"
          },
          "room_id": {
            "$ref": "#/components/schemas/UUIDStr"
          },
          "room_name": {
            "title": "Room Name",
            "type": "string"
          },
          "unmet_preferences": {
            "description": "Requested rate-preference filter names this rate does not satisfy. Populated only on recommended_rates: nonempty marks a best-available fallback recommendation, so tell the traveler which preferences it does not meet. Empty means every requested preference is met.",
            "items": {
              "type": "string"
            },
            "title": "Unmet Preferences",
            "type": "array"
          }
        },
        "required": [
          "best_rate",
          "room_id",
          "room_name"
        ],
        "title": "HotelRoomRates",
        "type": "object"
      },
      "HotelSearchOfferV1": {
        "properties": {
          "address": {
            "title": "Address",
            "type": "string"
          },
          "booking_tags": {
            "items": {
              "$ref": "#/components/schemas/HotelPreviouslyBookedTagSchema"
            },
            "title": "Booking Tags",
            "type": "array"
          },
          "chain": {
            "default": null,
            "nullable": true,
            "title": "Chain",
            "type": "string"
          },
          "chain_group": {
            "default": null,
            "description": "Parent hotel company of the brand, such as 'Marriott International' for a Moxy or Westin property.",
            "nullable": true,
            "title": "Chain Group",
            "type": "string"
          },
          "coworker_booking_count": {
            "default": 0,
            "title": "Coworker Booking Count",
            "type": "integer"
          },
          "hotel_amenities": {
            "items": {
              "type": "string"
            },
            "title": "Hotel Amenities",
            "type": "array"
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "description": "Hotel UUID."
          },
          "image_url": {
            "default": null,
            "nullable": true,
            "title": "Image Url",
            "type": "string"
          },
          "is_available": {
            "description": "Whether the hotel has an available rate for the requested stay.",
            "title": "Is Available",
            "type": "boolean"
          },
          "latitude": {
            "default": null,
            "nullable": true,
            "title": "Latitude",
            "type": "number"
          },
          "longitude": {
            "default": null,
            "nullable": true,
            "title": "Longitude",
            "type": "number"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "office_travel_mode": {
            "default": null,
            "nullable": true,
            "title": "Office Travel Mode",
            "type": "string"
          },
          "office_travel_time_minutes": {
            "default": null,
            "nullable": true,
            "title": "Office Travel Time Minutes",
            "type": "integer"
          },
          "property_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/HotelPropertyType"
              }
            ],
            "default": null,
            "description": "Normalized lodging type, such as HOTEL, HOSTEL, or VACATION_RENTAL; null when the provider did not classify the property.",
            "nullable": true
          },
          "rates": {
            "items": {
              "$ref": "#/components/schemas/HotelRateOptionV1"
            },
            "title": "Rates",
            "type": "array"
          },
          "review_rating": {
            "default": null,
            "nullable": true,
            "title": "Review Rating",
            "type": "string"
          },
          "star_rating": {
            "default": null,
            "nullable": true,
            "title": "Star Rating",
            "type": "string"
          }
        },
        "required": [
          "address",
          "id",
          "is_available",
          "name"
        ],
        "title": "HotelSearchOfferV1",
        "type": "object"
      },
      "HotelSortDirection": {
        "enum": [
          "ASC",
          "DESC"
        ],
        "title": "HotelSortDirection",
        "type": "string"
      },
      "HotelSortDirectionRequestBody": {
        "enum": [
          "ASC",
          "DESC"
        ],
        "title": "HotelSortDirection",
        "type": "string"
      },
      "HotelSortKey": {
        "enum": [
          "DISTANCE",
          "LOWEST_PRICE",
          "MOST_POPULAR",
          "STAR_RATING",
          "WEIGHTED"
        ],
        "title": "HotelSortKey",
        "type": "string"
      },
      "HotelSortKeyRequestBody": {
        "enum": [
          "DISTANCE",
          "LOWEST_PRICE",
          "MOST_POPULAR",
          "STAR_RATING",
          "WEIGHTED"
        ],
        "title": "HotelSortKey",
        "type": "string"
      },
      "HydratedSearchTagInfo": {
        "properties": {
          "description": {
            "items": {
              "type": "string"
            },
            "title": "Description",
            "type": "array"
          },
          "group_id": {
            "default": null,
            "nullable": true,
            "title": "Group Id",
            "type": "string"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "image_url": {
            "default": null,
            "nullable": true,
            "title": "Image Url",
            "type": "string"
          },
          "label": {
            "title": "Label",
            "type": "string"
          },
          "type": {
            "$ref": "#/components/schemas/SearchTagCategory"
          }
        },
        "required": [
          "id",
          "label",
          "type"
        ],
        "title": "HydratedSearchTagInfo",
        "type": "object"
      },
      "INRCounterpartyDetails": {
        "additionalProperties": true,
        "description": "Bank account details for Indian rupee payments.",
        "properties": {
          "account_name": {
            "description": "Name on the destination account.",
            "title": "Account Name",
            "type": "string"
          },
          "account_number": {
            "description": "Destination bank account number.",
            "title": "Account Number",
            "type": "string"
          },
          "bank_mailing_address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UnvalidatedMailingAddress"
              }
            ],
            "description": "Mailing address of the destination bank.",
            "title": "Bank Mailing Address"
          },
          "currency": {
            "default": "INR",
            "description": "Currency of the destination account.",
            "enum": [
              "INR"
            ],
            "title": "Currency",
            "type": "string"
          },
          "ifsc_code": {
            "description": "Indian Financial System Code.",
            "title": "Ifsc Code",
            "type": "string"
          },
          "mailing_address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UnvalidatedMailingAddress"
              }
            ],
            "default": null,
            "description": "Mailing address of the counterparty.",
            "nullable": true
          },
          "payment_method": {
            "default": "INTERNATIONAL",
            "description": "Payment method.",
            "enum": [
              "INTERNATIONAL"
            ],
            "title": "Payment Method",
            "type": "string"
          },
          "swift_bic": {
            "default": null,
            "description": "SWIFT bank identifier code.",
            "nullable": true,
            "title": "Swift Bic",
            "type": "string"
          },
          "type": {
            "default": "inr",
            "description": "Counterparty details type.",
            "enum": [
              "inr"
            ],
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "account_number",
          "ifsc_code"
        ],
        "title": "INRCounterpartyDetails",
        "type": "object"
      },
      "IdentityType": {
        "enum": [
          "EXTERNAL_AGENT",
          "HUMAN",
          "INTEGRATION_AGENT"
        ],
        "title": "IdentityType",
        "type": "string"
      },
      "Intent": {
        "description": "Defines how trend comparisons should be interpreted in the frontend.\n\n- POSITIVE: increase is good (\u2191 green), decrease is bad (\u2193 red)\n- NEGATIVE: increase is bad (\u2191 red), decrease is good (\u2193 green)\n- None: Neutral (no trend interpretation)",
        "enum": [
          "NEGATIVE",
          "POSITIVE"
        ],
        "title": "Intent",
        "type": "string"
      },
      "InventoryCabinClassRequestBody": {
        "enum": [
          "BASIC_ECONOMY",
          "BUSINESS",
          "ECONOMY",
          "FIRST",
          "PREMIUM_ECONOMY"
        ],
        "title": "InventoryCabinClass",
        "type": "string"
      },
      "InvestmentAccountBalanceInfo": {
        "properties": {
          "account_name": {
            "title": "Account Name",
            "type": "string"
          },
          "account_uuid": {
            "title": "Account Uuid",
            "type": "string"
          },
          "available_balance": {
            "title": "Available Balance",
            "type": "number"
          },
          "currency": {
            "$ref": "#/components/schemas/Currency"
          },
          "statement_balance": {
            "title": "Statement Balance",
            "type": "number"
          },
          "status": {
            "title": "Status",
            "type": "string"
          },
          "total_earnings": {
            "title": "Total Earnings",
            "type": "number"
          },
          "unavailable_balance": {
            "title": "Unavailable Balance",
            "type": "number"
          },
          "yield_rate": {
            "title": "Yield Rate",
            "type": "number"
          }
        },
        "required": [
          "account_name",
          "account_uuid",
          "available_balance",
          "currency",
          "statement_balance",
          "status",
          "total_earnings",
          "unavailable_balance",
          "yield_rate"
        ],
        "title": "InvestmentAccountBalanceInfo",
        "type": "object"
      },
      "InvitationCooldownStatus": {
        "properties": {
          "is_on_cooldown": {
            "description": "True when this invitation cannot receive another reminder yet",
            "title": "Is On Cooldown",
            "type": "boolean"
          },
          "rfx_vendor_invitation_id": {
            "description": "UUID of the vendor invitation",
            "title": "Rfx Vendor Invitation Id",
            "type": "string"
          }
        },
        "required": [
          "is_on_cooldown",
          "rfx_vendor_invitation_id"
        ],
        "title": "InvitationCooldownStatus",
        "type": "object"
      },
      "InviteClientToReviewFinancingApplicationRequestBody": {
        "description": "Email a client an invite to review the Ramp financing application your accounting firm prepared for it (an assisted application).\n\nRun this on the client business, not your firm's own business. The invite goes to the\nperson who will be the client's primary applicant. After accepting, the client reviews\nand completes the application; until then it stays in preparation by your firm. An\napplication has one primary applicant invite: if the client was already invited or has\njoined, no new invite is sent.",
        "properties": {
          "first_name": {
            "description": "First name of the client's primary applicant.",
            "minLength": 1,
            "title": "First Name",
            "type": "string"
          },
          "invitee_email": {
            "description": "Email address of the client's primary applicant, for example \"jane@acme.com\".",
            "format": "email",
            "title": "Invitee Email",
            "type": "string"
          },
          "last_name": {
            "description": "Last name of the client's primary applicant.",
            "minLength": 1,
            "title": "Last Name",
            "type": "string"
          },
          "partner_setup_enabled": {
            "description": "Who owns the client's Ramp account after the client accepts. When true (partner setup), your firm stays Owner and the client joins as Admin. When false, the client joins as Owner and your firm gives up Owner, keeping its other roles. Ask the user to choose; there is no default.",
            "title": "Partner Setup Enabled",
            "type": "boolean"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "first_name",
          "invitee_email",
          "last_name",
          "partner_setup_enabled",
          "rationale"
        ],
        "title": "InviteClientToReviewFinancingApplication",
        "type": "object"
      },
      "InviteInfo": {
        "properties": {
          "expires_at": {
            "default": null,
            "description": "When the invite expires, as an ISO 8601 timestamp.",
            "nullable": true,
            "title": "Expires At",
            "type": "string"
          },
          "financing_application_user_role": {
            "description": "\"PRIMARY_APPLICANT\": the person who reviews and submits the application. \"PREPARER\": a collaborator who helps fill it out.",
            "title": "Financing Application User Role",
            "type": "string"
          },
          "first_name": {
            "description": "First name of the invitee.",
            "title": "First Name",
            "type": "string"
          },
          "invite_uuid": {
            "description": "UUID of the invite.",
            "title": "Invite Uuid",
            "type": "string"
          },
          "invitee_email": {
            "description": "Email address the invite was sent to.",
            "title": "Invitee Email",
            "type": "string"
          },
          "last_name": {
            "description": "Last name of the invitee.",
            "title": "Last Name",
            "type": "string"
          },
          "last_sent_at": {
            "default": null,
            "description": "When the invite email was last sent, as an ISO 8601 timestamp; null if it has not been sent.",
            "nullable": true,
            "title": "Last Sent At",
            "type": "string"
          },
          "status": {
            "description": "\"PENDING\": not accepted yet. \"ACCEPTED\": the invitee joined.",
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "financing_application_user_role",
          "first_name",
          "invite_uuid",
          "invitee_email",
          "last_name",
          "status"
        ],
        "title": "InviteInfo",
        "type": "object"
      },
      "InviteVendorsToRFXOutput": {
        "properties": {
          "failed_count": {
            "description": "Number of vendors that failed to invite",
            "title": "Failed Count",
            "type": "integer"
          },
          "invited_count": {
            "description": "Number of vendors successfully invited",
            "title": "Invited Count",
            "type": "integer"
          },
          "results": {
            "description": "Per-vendor invitation results",
            "items": {
              "$ref": "#/components/schemas/VendorInviteResult"
            },
            "title": "Results",
            "type": "array"
          }
        },
        "required": [
          "failed_count",
          "invited_count",
          "results"
        ],
        "title": "InviteVendorsToRFXOutput",
        "type": "object"
      },
      "InviteVendorsToRFXRequestBody": {
        "description": "Invite vendors to an existing RFX so they can receive and respond to the questionnaire.\n\nEach vendor must be an existing payee in Ramp (draft payees are accepted),\nidentified by its payee UUID.\n\nThe default contact for each payee is used automatically. When a payee has\nno contacts and the RFX is still pre-publish (DRAFT or IN_REVIEW), the\nvendor is added as a DRAFT invitation \u2014 the RFX cannot be submitted for\nreview or published until the user resolves the draft by providing a\ncontact on the RFX detail page. Each per-vendor result includes a\n`status` of \"active\" or \"draft\" so the agent can tell the user which\nvendors still need contacts.\n\nExternal agent callers may only add vendors before the RFX is published.\nAdding a vendor after publish sends an invitation immediately and must be\ncompleted in Ramp.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "rfx_id": {
            "description": "UUID of the RFX to invite vendors to",
            "title": "Rfx Id",
            "type": "string"
          },
          "vendors": {
            "description": "List of vendors to invite, each identified by payee_uuid",
            "items": {
              "$ref": "#/components/schemas/VendorInviteRequestBody"
            },
            "title": "Vendors",
            "type": "array"
          }
        },
        "required": [
          "rationale",
          "rfx_id",
          "vendors"
        ],
        "title": "InviteVendorsToRFX",
        "type": "object"
      },
      "InvoiceBoundingRegionDetails": {
        "properties": {
          "business_id": {
            "title": "Business Id",
            "type": "integer"
          },
          "content": {
            "title": "Content",
            "type": "string"
          },
          "field_label": {
            "$ref": "#/components/schemas/InvoiceFieldLabel"
          },
          "invoice_id": {
            "title": "Invoice Id",
            "type": "integer"
          },
          "page_number": {
            "title": "Page Number",
            "type": "integer"
          },
          "polygon_coordinates": {
            "items": {
              "$ref": "#/components/schemas/NormalizedCoordinate"
            },
            "title": "Polygon Coordinates",
            "type": "array"
          },
          "provisional_bill_inventory_line_item_fields_log_entry_id": {
            "default": null,
            "nullable": true,
            "title": "Provisional Bill Inventory Line Item Fields Log Entry Id",
            "type": "integer"
          },
          "provisional_bill_line_item_fields_log_entry_id": {
            "default": null,
            "nullable": true,
            "title": "Provisional Bill Line Item Fields Log Entry Id",
            "type": "integer"
          }
        },
        "required": [
          "business_id",
          "content",
          "field_label",
          "invoice_id",
          "page_number",
          "polygon_coordinates"
        ],
        "title": "InvoiceBoundingRegionDetails",
        "type": "object"
      },
      "InvoiceFieldLabel": {
        "description": "An exhaustive list of field types whose bounding boxes are saved after OCR.\n\nThis is a Bill-Pay-vendored set of labels to reduce vendor lock-in.\nThe initial list was based on the list of fields provided by\nAzure Document Intelligence's invoice model, with some fields removed.\n\nhttps://github.com/Azure-Samples/document-intelligence-code-samples/blob/8ac994c2712f3104d00ca4224b0ded6fd1ecbf70/schema/2024-11-30-ga/invoice.md#supported-document-fields",
        "enum": [
          "AMOUNT",
          "AMOUNT_DUE",
          "BILLING_ADDRESS",
          "BILLING_ADDRESS_RECIPIENT",
          "CUSTOMER_ADDRESS",
          "CUSTOMER_ADDRESS_RECIPIENT",
          "CUSTOMER_ID",
          "CUSTOMER_NAME",
          "CUSTOMER_TAX_ID",
          "DESCRIPTION",
          "DISCOUNT",
          "DUE_DATE",
          "INVOICE_DATE",
          "INVOICE_NUMBER",
          "PAYMENT_TERM",
          "PRODUCT_CODE",
          "PURCHASE_ORDER_NUMBER",
          "QUANTITY",
          "REMITTANCE_ADDRESS",
          "REMITTANCE_ADDRESS_RECIPIENT",
          "SERVICE_ADDRESS",
          "SERVICE_ADDRESS_RECIPIENT",
          "SERVICE_END_DATE",
          "SERVICE_START_DATE",
          "SHIPPING_ADDRESS",
          "SHIPPING_ADDRESS_RECIPIENT",
          "SHIPPING_DATE",
          "SUBTOTAL",
          "TAX",
          "TAX_RATE",
          "UNIT",
          "UNIT_PRICE",
          "VENDOR_ADDRESS",
          "VENDOR_ADDRESS_RECIPIENT",
          "VENDOR_NAME",
          "VENDOR_TAX_ID"
        ],
        "title": "InvoiceFieldLabel",
        "type": "string"
      },
      "IssueFromSpendProgramRequestBody": {
        "description": "Issue spend allocations from an existing spend program.\n\nUse this tool when an admin wants to issue allocations from a spend program to\ndirectly named users, or to users matched by location, department, user custom\nfield, and dynamic user group targeting.",
        "properties": {
          "department_ids": {
            "description": "Department UUIDs for the segment match. Segment filters intersect with each other. user_ids are unioned with the segment match. If issue_to_all_users is True, leave all targeting arrays empty or omit them. If issue_to_all_users is False, provide at least one non-empty targeting field.",
            "items": {
              "type": "string"
            },
            "title": "Department Ids",
            "type": "array"
          },
          "display_name": {
            "default": null,
            "description": "Optional display name for each issued fund. If the admin provides a fund name, purpose, or a line like 'Name: ...', pass that value exactly. Omit only when the admin did not name the issued funds and wants them to inherit the spend program name.",
            "nullable": true,
            "title": "Display Name",
            "type": "string"
          },
          "dynamic_user_group_ids": {
            "description": "Dynamic user group UUIDs for the segment match. Segment filters intersect with each other. user_ids are unioned with the segment match. If issue_to_all_users is True, leave all targeting arrays empty or omit them. If issue_to_all_users is False, provide at least one non-empty targeting field.",
            "items": {
              "type": "string"
            },
            "title": "Dynamic User Group Ids",
            "type": "array"
          },
          "issue_to_all_users": {
            "default": false,
            "description": "Issue to every eligible user for the spend program. When True, all targeting arrays must be empty or omitted. When False, at least one targeting array must be non-empty.",
            "title": "Issue To All Users",
            "type": "boolean"
          },
          "location_ids": {
            "description": "Location UUIDs for the segment match. Segment filters intersect with each other. user_ids are unioned with the segment match. If issue_to_all_users is True, leave all targeting arrays empty or omit them. If issue_to_all_users is False, provide at least one non-empty targeting field.",
            "items": {
              "type": "string"
            },
            "title": "Location Ids",
            "type": "array"
          },
          "lock_date": {
            "default": null,
            "description": "Optional ISO 8601 date or datetime when each issued fund should lock. Pass this when the admin asks for an expiration, end, or lock date.",
            "nullable": true,
            "title": "Lock Date",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "spend_amount": {
            "default": null,
            "description": "Custom spend amount as a decimal string (for example, \"100.00\"). Only required for custom spend intents; omit for fixed spend intents.",
            "nullable": true,
            "title": "Spend Amount",
            "type": "string"
          },
          "spend_currency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CurrencyRequestBody"
              }
            ],
            "default": null,
            "description": "Currency code to use when issuing from a custom spend intent. Only required for custom spend intents; omit for fixed spend intents.",
            "nullable": true
          },
          "spend_intent_uuid": {
            "description": "UUID of the spend program to issue from.",
            "title": "Spend Intent Uuid",
            "type": "string"
          },
          "spend_interval": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SpendIntervalRequestBody"
              }
            ],
            "default": null,
            "description": "Custom spend interval to use when issuing from a custom spend intent. Only required for custom spend intents; omit for fixed spend intents.",
            "nullable": true
          },
          "user_custom_field_ids": {
            "description": "User custom field UUIDs for the segment match. Segment filters intersect with each other. user_ids are unioned with the segment match. If issue_to_all_users is True, leave all targeting arrays empty or omit them. If issue_to_all_users is False, provide at least one non-empty targeting field.",
            "items": {
              "type": "string"
            },
            "title": "User Custom Field Ids",
            "type": "array"
          },
          "user_ids": {
            "description": "UUIDs of users to issue to directly. Segment filters intersect with each other. user_ids are unioned with the segment match. If issue_to_all_users is True, leave all targeting arrays empty or omit them. If issue_to_all_users is False, provide at least one non-empty targeting field.",
            "items": {
              "type": "string"
            },
            "title": "User Ids",
            "type": "array"
          }
        },
        "required": [
          "rationale",
          "spend_intent_uuid"
        ],
        "title": "IssueFromSpendProgram",
        "type": "object"
      },
      "IssueFromSpendProgramResult": {
        "properties": {
          "async_fanout_job_uuid": {
            "default": null,
            "nullable": true,
            "title": "Async Fanout Job Uuid",
            "type": "string"
          },
          "issuance_type": {
            "$ref": "#/components/schemas/SpendAllocationSpendIntentIssueV2Type"
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "spend_allocation_ids": {
            "items": {
              "type": "string"
            },
            "title": "Spend Allocation Ids",
            "type": "array"
          },
          "spend_intent_uuid": {
            "title": "Spend Intent Uuid",
            "type": "string"
          }
        },
        "required": [
          "issuance_type",
          "message",
          "spend_intent_uuid"
        ],
        "title": "IssueFromSpendProgramResult",
        "type": "object"
      },
      "IssueOneOffFundsRequestBody": {
        "description": "Issue one-off funds (spend allocations) directly, bypassing approval flows.\n\nUse this tool when an admin wants to create new funds for one or more users\nwith a specific amount, interval, and optional restrictions, outside of spend\nprograms. This is also how an admin issues a virtual card to someone: set\nvirtual_card_only=True. Physical cards are never ordered by this tool.\n\nThe acting user must have the SPEND_ISSUE_SPEND_BYPASS_APPROVAL permission.",
        "properties": {
          "amount": {
            "description": "Spend limit as a decimal string (e.g. \"5000.00\"). Applies per recipient for individual funds, or as the total shared-fund limit.",
            "title": "Amount",
            "type": "string"
          },
          "categories_blacklist": {
            "default": null,
            "description": "MCC category IDs to block.",
            "items": {
              "type": "integer"
            },
            "nullable": true,
            "title": "Categories Blacklist",
            "type": "array"
          },
          "categories_whitelist": {
            "default": null,
            "description": "MCC category IDs to allow.",
            "items": {
              "type": "integer"
            },
            "nullable": true,
            "title": "Categories Whitelist",
            "type": "array"
          },
          "default_member_limit_amount": {
            "default": null,
            "description": "Optional per-member shared-fund spend limit as a decimal string (e.g. \"100.00\").",
            "nullable": true,
            "title": "Default Member Limit Amount",
            "type": "string"
          },
          "department_ids": {
            "default": null,
            "description": "Department UUIDs to share with.",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "title": "Department Ids",
            "type": "array"
          },
          "display_name": {
            "description": "Purpose/Name of the fund.",
            "title": "Display Name",
            "type": "string"
          },
          "dynamic_user_group_ids": {
            "default": null,
            "description": "Dynamic user group UUIDs.",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "title": "Dynamic User Group Ids",
            "type": "array"
          },
          "entity_id": {
            "default": null,
            "description": "Business entity UUID to issue the funds under. The fund uses the entity's issuing currency. Defaults to each user's entity (or the business's primary entity) when omitted.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "interval": {
            "default": "TOTAL",
            "description": "Spending interval: DAILY, WEEKLY, MONTHLY, QUARTERLY, YEARLY, or TOTAL.",
            "title": "Interval",
            "type": "string"
          },
          "is_shareable": {
            "default": false,
            "description": "False creates individual funds; True creates shared funds. Must be True when providing any member, department, location, custom-field, or dynamic-group sharing targets.",
            "title": "Is Shareable",
            "type": "boolean"
          },
          "location_ids": {
            "default": null,
            "description": "Location UUIDs to share with.",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "title": "Location Ids",
            "type": "array"
          },
          "lock_date": {
            "default": null,
            "description": "ISO 8601 datetime for fund expiry.",
            "nullable": true,
            "title": "Lock Date",
            "type": "string"
          },
          "member_ids": {
            "default": null,
            "description": "User UUIDs of additional shared-fund members, excluding the owner in user_ids.",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "title": "Member Ids",
            "type": "array"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "user_custom_field_ids": {
            "default": null,
            "description": "Custom field UUIDs for targeting.",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "title": "User Custom Field Ids",
            "type": "array"
          },
          "user_ids": {
            "description": "User UUIDs receiving separate funds, one per user. For one shared fund, supply exactly one owner here and additional members in member_ids.",
            "items": {
              "$ref": "#/components/schemas/UUIDStrRequestBody"
            },
            "title": "User Ids",
            "type": "array"
          },
          "vendor_blacklist": {
            "default": null,
            "description": "Merchant UUIDs to block. Cannot be combined with vendor_whitelist.",
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "nullable": true,
            "title": "Vendor Blacklist",
            "type": "array"
          },
          "vendor_whitelist": {
            "default": null,
            "description": "Merchant UUIDs to allow. Cannot be combined with vendor_blacklist.",
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "nullable": true,
            "title": "Vendor Whitelist",
            "type": "array"
          },
          "virtual_card_only": {
            "default": false,
            "description": "True issues a dedicated virtual card on each new fund and blocks spending with physical cards. False also allows physical-card spending; recipients who already have an active physical card may not get a separate virtual card.",
            "title": "Virtual Card Only",
            "type": "boolean"
          }
        },
        "required": [
          "amount",
          "display_name",
          "rationale",
          "user_ids"
        ],
        "title": "IssueOneOffFunds",
        "type": "object"
      },
      "IssueOneOffFundsResult": {
        "properties": {
          "display_name": {
            "title": "Display Name",
            "type": "string"
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "spend_allocation_ids": {
            "items": {
              "type": "string"
            },
            "title": "Spend Allocation Ids",
            "type": "array"
          },
          "virtual_card_pending_invite_user_ids": {
            "description": "For virtual_card_only issuance, the recipient user UUIDs whose virtual card is deferred until they accept their Ramp invite, so it does not exist yet.",
            "items": {
              "type": "string"
            },
            "title": "Virtual Card Pending Invite User Ids",
            "type": "array"
          }
        },
        "required": [
          "display_name",
          "message",
          "spend_allocation_ids"
        ],
        "title": "IssueOneOffFundsResult",
        "type": "object"
      },
      "IssuePurchaseOrderCopyRequestBody": {
        "description": "Issue a new approved purchase order copied from an existing purchase order.\n\nCopies the source purchase order's owner, vendor, entity, name, currency,\ndates, lines, accounting fields, custom fields, and purchase order fields,\nbut not its PO number. Any other field supplied here replaces the copied\nvalue; list fields such as line_items replace the copied list. Omitted or null\nfields keep the copied value, so a copied value can't be cleared. The source\npurchase order is not changed. Issuing makes the new purchase order live\nimmediately; depending on the business's settings, Ramp emails it to the\nvendor and syncs it to the ERP. Requires the Issue purchase orders\npermission.",
        "properties": {
          "accounting_selections": {
            "default": null,
            "description": "Header tracking category selections.",
            "items": {
              "$ref": "#/components/schemas/AccountingSelectionInputRequestBody"
            },
            "nullable": true,
            "title": "Accounting Selections",
            "type": "array"
          },
          "currency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CurrencyRequestBody"
              }
            ],
            "default": null,
            "description": "ISO 4217 currency code, e.g. USD.",
            "nullable": true
          },
          "custom_field_values": {
            "default": null,
            "description": "Header purchase order custom field values. Replaces any copied ones.",
            "items": {
              "$ref": "#/components/schemas/ColumnIdAndSimpleContentsRequestBody"
            },
            "nullable": true,
            "title": "Custom Field Values",
            "type": "array"
          },
          "document_id": {
            "default": null,
            "description": "Document to keep with the purchase order, such as a quote or contract, from the issue purchase order document upload link. Never sent to the vendor.",
            "format": "uuid",
            "nullable": true,
            "title": "Document Id",
            "type": "string"
          },
          "entity_uuid": {
            "default": null,
            "description": "Business entity UUID.",
            "format": "uuid",
            "nullable": true,
            "title": "Entity Uuid",
            "type": "string"
          },
          "line_items": {
            "default": null,
            "description": "Purchase order lines.",
            "items": {
              "$ref": "#/components/schemas/IssuePurchaseOrderLineInputRequestBody"
            },
            "maxItems": 200,
            "minItems": 1,
            "nullable": true,
            "title": "Line Items",
            "type": "array"
          },
          "memo": {
            "default": null,
            "description": "Memo shown on the purchase order.",
            "nullable": true,
            "title": "Memo",
            "type": "string"
          },
          "name": {
            "default": null,
            "description": "Purchase order name. Defaults to the source purchase order's name, or the vendor's name if it has none.",
            "minLength": 1,
            "nullable": true,
            "title": "Name",
            "type": "string"
          },
          "net_payment_terms": {
            "default": null,
            "description": "Payment terms in days, e.g. 30 for Net 30.",
            "minimum": 0,
            "nullable": true,
            "title": "Net Payment Terms",
            "type": "integer"
          },
          "owner_uuid": {
            "default": null,
            "description": "User who owns the new purchase order. Defaults to the source purchase order's owner, or the caller if it has none.",
            "format": "uuid",
            "nullable": true,
            "title": "Owner Uuid",
            "type": "string"
          },
          "promise_date": {
            "default": null,
            "description": "Date the vendor promised delivery.",
            "format": "date",
            "nullable": true,
            "title": "Promise Date",
            "type": "string"
          },
          "purchase_order_number": {
            "default": null,
            "description": "Custom PO number, normalized to the entity's PO number format. Omit to assign the next number automatically.",
            "minLength": 1,
            "nullable": true,
            "pattern": "\\S",
            "title": "Purchase Order Number",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "source_purchase_order_uuid": {
            "description": "UUID of the purchase order to copy.",
            "format": "uuid",
            "title": "Source Purchase Order Uuid",
            "type": "string"
          },
          "spend_end_date": {
            "default": null,
            "description": "End date of the purchase order's spend period.",
            "format": "date",
            "nullable": true,
            "title": "Spend End Date",
            "type": "string"
          },
          "spend_frequency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SpendIntervalRequestBody"
              }
            ],
            "default": null,
            "description": "Omit, or TOTAL, for a one-time purchase order. DAILY, WEEKLY, MONTHLY or ANNUAL makes it recurring: line amounts are then per period and spend_start_date and spend_end_date are required.",
            "nullable": true
          },
          "spend_start_date": {
            "default": null,
            "description": "Start date of the purchase order's spend period.",
            "format": "date",
            "nullable": true,
            "title": "Spend Start Date",
            "type": "string"
          },
          "three_way_match_enabled": {
            "default": null,
            "description": "Require receipts before bills against this PO can be paid.",
            "nullable": true,
            "title": "Three Way Match Enabled",
            "type": "boolean"
          },
          "vendor_uuid": {
            "default": null,
            "description": "Vendor (payee) UUID.",
            "format": "uuid",
            "nullable": true,
            "title": "Vendor Uuid",
            "type": "string"
          }
        },
        "required": [
          "rationale",
          "source_purchase_order_uuid"
        ],
        "title": "IssuePurchaseOrderCopy",
        "type": "object"
      },
      "IssuePurchaseOrderDocumentUploadLinkOutput": {
        "properties": {
          "expires_at": {
            "description": "When the link stops working.",
            "format": "date-time",
            "title": "Expires At",
            "type": "string"
          },
          "instructions": {
            "description": "How to upload the file.",
            "title": "Instructions",
            "type": "string"
          },
          "upload_url": {
            "description": "One-time URL that accepts the document file with POST.",
            "title": "Upload Url",
            "type": "string"
          }
        },
        "required": [
          "expires_at",
          "instructions",
          "upload_url"
        ],
        "title": "IssuePurchaseOrderDocumentUploadLinkOutput",
        "type": "object"
      },
      "IssuePurchaseOrderForBillRequestBody": {
        "description": "Issue an approved purchase order for an existing bill or draft bill that has no purchase order, and match the bill to it.\n\nThe purchase order copies the bill's vendor, entity, currency, lines, and\naccounting fields, and each line is matched to the bill line it came from.\nThe purchase order is issued only if the match succeeds. Issuing makes the\npurchase order live immediately; depending on the business's settings, Ramp\nemails it to the vendor and syncs it to the ERP. Requires the Issue purchase\norders permission.",
        "properties": {
          "bill_uuid": {
            "description": "UUID of the submitted bill or draft bill.",
            "format": "uuid",
            "title": "Bill Uuid",
            "type": "string"
          },
          "custom_field_values": {
            "default": null,
            "description": "Header purchase order custom field values. Replaces any copied ones.",
            "items": {
              "$ref": "#/components/schemas/ColumnIdAndSimpleContentsRequestBody"
            },
            "nullable": true,
            "title": "Custom Field Values",
            "type": "array"
          },
          "document_id": {
            "default": null,
            "description": "Document to keep with the purchase order, such as a quote or contract, from the issue purchase order document upload link. Never sent to the vendor.",
            "format": "uuid",
            "nullable": true,
            "title": "Document Id",
            "type": "string"
          },
          "memo": {
            "default": null,
            "description": "Memo shown on the purchase order.",
            "nullable": true,
            "title": "Memo",
            "type": "string"
          },
          "name": {
            "default": null,
            "description": "Purchase order name. Defaults to the vendor's name.",
            "minLength": 1,
            "nullable": true,
            "title": "Name",
            "type": "string"
          },
          "net_payment_terms": {
            "default": null,
            "description": "Payment terms in days, e.g. 30 for Net 30.",
            "minimum": 0,
            "nullable": true,
            "title": "Net Payment Terms",
            "type": "integer"
          },
          "owner_uuid": {
            "default": null,
            "description": "User who owns the purchase order. Defaults to the caller.",
            "format": "uuid",
            "nullable": true,
            "title": "Owner Uuid",
            "type": "string"
          },
          "promise_date": {
            "default": null,
            "description": "Date the vendor promised delivery.",
            "format": "date",
            "nullable": true,
            "title": "Promise Date",
            "type": "string"
          },
          "purchase_order_number": {
            "default": null,
            "description": "Custom PO number, normalized to the entity's PO number format. Omit to assign the next number automatically.",
            "minLength": 1,
            "nullable": true,
            "pattern": "\\S",
            "title": "Purchase Order Number",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "three_way_match_enabled": {
            "default": null,
            "description": "Require receipts before bills against this PO can be paid.",
            "nullable": true,
            "title": "Three Way Match Enabled",
            "type": "boolean"
          }
        },
        "required": [
          "bill_uuid",
          "rationale"
        ],
        "title": "IssuePurchaseOrderForBill",
        "type": "object"
      },
      "IssuePurchaseOrderLineInputRequestBody": {
        "properties": {
          "accounting_selections": {
            "default": null,
            "description": "Line-level tracking category selections.",
            "items": {
              "$ref": "#/components/schemas/AccountingSelectionInputRequestBody"
            },
            "nullable": true,
            "title": "Accounting Selections",
            "type": "array"
          },
          "custom_field_values": {
            "default": null,
            "description": "Line-level purchase order custom field values.",
            "items": {
              "$ref": "#/components/schemas/ColumnIdAndSimpleContentsRequestBody"
            },
            "nullable": true,
            "title": "Custom Field Values",
            "type": "array"
          },
          "description": {
            "default": null,
            "description": "What is being purchased on this line.",
            "nullable": true,
            "title": "Description",
            "type": "string"
          },
          "end_date": {
            "default": null,
            "description": "Service period end for this line.",
            "format": "date",
            "nullable": true,
            "title": "End Date",
            "type": "string"
          },
          "quantity": {
            "default": null,
            "description": "Number of units. Omit for a single amount (1). Required when the line has an Inventory Item accounting selection.",
            "nullable": true,
            "oneOf": [
              {
                "exclusiveMinimum": true,
                "minimum": 0.0,
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "title": "Quantity"
          },
          "receiving_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReceivingTypeRequestBody"
              }
            ],
            "default": "by_quantity",
            "description": "How the line is received: by quantity or by amount."
          },
          "start_date": {
            "default": null,
            "description": "Service period start for this line.",
            "format": "date",
            "nullable": true,
            "title": "Start Date",
            "type": "string"
          },
          "unit_price": {
            "description": "Unit price in major units of the purchase order currency, e.g. 250.00.",
            "oneOf": [
              {
                "minimum": 0.0,
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "title": "Unit Price"
          }
        },
        "required": [
          "unit_price"
        ],
        "title": "IssuePurchaseOrderLineInput",
        "type": "object"
      },
      "IssuePurchaseOrderRequestBody": {
        "description": "Issue an approved purchase order directly to a vendor, without a procurement request, program, or approval chain.\n\nUse only for spend that is already decided: a signed contract, a purchase\napproved outside Ramp, or a purchase order the user explicitly asks to issue.\nNew purchases that need approval go through a request instead. Issuing makes\nthe purchase order live immediately; depending on the business's settings,\nRamp emails it to the vendor and syncs it to the ERP. Requires the Issue\npurchase orders permission.",
        "properties": {
          "accounting_selections": {
            "default": null,
            "description": "Header tracking category selections.",
            "items": {
              "$ref": "#/components/schemas/AccountingSelectionInputRequestBody"
            },
            "nullable": true,
            "title": "Accounting Selections",
            "type": "array"
          },
          "currency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CurrencyRequestBody"
              }
            ],
            "description": "ISO 4217 currency code, e.g. USD."
          },
          "custom_field_values": {
            "default": null,
            "description": "Header purchase order custom field values. Replaces any copied ones.",
            "items": {
              "$ref": "#/components/schemas/ColumnIdAndSimpleContentsRequestBody"
            },
            "nullable": true,
            "title": "Custom Field Values",
            "type": "array"
          },
          "document_id": {
            "default": null,
            "description": "Document to keep with the purchase order, such as a quote or contract, from the issue purchase order document upload link. Never sent to the vendor.",
            "format": "uuid",
            "nullable": true,
            "title": "Document Id",
            "type": "string"
          },
          "entity_uuid": {
            "description": "Business entity UUID.",
            "format": "uuid",
            "title": "Entity Uuid",
            "type": "string"
          },
          "line_items": {
            "description": "Purchase order lines.",
            "items": {
              "$ref": "#/components/schemas/IssuePurchaseOrderLineInputRequestBody"
            },
            "maxItems": 200,
            "minItems": 1,
            "title": "Line Items",
            "type": "array"
          },
          "memo": {
            "default": null,
            "description": "Memo shown on the purchase order.",
            "nullable": true,
            "title": "Memo",
            "type": "string"
          },
          "name": {
            "default": null,
            "description": "Purchase order name. Defaults to the vendor's name.",
            "minLength": 1,
            "nullable": true,
            "title": "Name",
            "type": "string"
          },
          "net_payment_terms": {
            "default": null,
            "description": "Payment terms in days, e.g. 30 for Net 30.",
            "minimum": 0,
            "nullable": true,
            "title": "Net Payment Terms",
            "type": "integer"
          },
          "owner_uuid": {
            "default": null,
            "description": "User who owns the purchase order. Defaults to the caller.",
            "format": "uuid",
            "nullable": true,
            "title": "Owner Uuid",
            "type": "string"
          },
          "promise_date": {
            "default": null,
            "description": "Date the vendor promised delivery.",
            "format": "date",
            "nullable": true,
            "title": "Promise Date",
            "type": "string"
          },
          "purchase_order_number": {
            "default": null,
            "description": "Custom PO number, normalized to the entity's PO number format. Omit to assign the next number automatically.",
            "minLength": 1,
            "nullable": true,
            "pattern": "\\S",
            "title": "Purchase Order Number",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "spend_end_date": {
            "default": null,
            "description": "End date of the purchase order's spend period.",
            "format": "date",
            "nullable": true,
            "title": "Spend End Date",
            "type": "string"
          },
          "spend_frequency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SpendIntervalRequestBody"
              }
            ],
            "default": null,
            "description": "Omit, or TOTAL, for a one-time purchase order. DAILY, WEEKLY, MONTHLY or ANNUAL makes it recurring: line amounts are then per period and spend_start_date and spend_end_date are required.",
            "nullable": true
          },
          "spend_start_date": {
            "default": null,
            "description": "Start date of the purchase order's spend period.",
            "format": "date",
            "nullable": true,
            "title": "Spend Start Date",
            "type": "string"
          },
          "three_way_match_enabled": {
            "default": null,
            "description": "Require receipts before bills against this PO can be paid.",
            "nullable": true,
            "title": "Three Way Match Enabled",
            "type": "boolean"
          },
          "vendor_uuid": {
            "description": "Vendor (payee) UUID.",
            "format": "uuid",
            "title": "Vendor Uuid",
            "type": "string"
          }
        },
        "required": [
          "currency",
          "entity_uuid",
          "line_items",
          "rationale",
          "vendor_uuid"
        ],
        "title": "IssuePurchaseOrder",
        "type": "object"
      },
      "IssuedPurchaseOrder": {
        "properties": {
          "currency": {
            "title": "Currency",
            "type": "string"
          },
          "linked_bill_uuid": {
            "description": "The bill or draft bill the purchase order was matched to, if any.",
            "nullable": true,
            "title": "Linked Bill Uuid",
            "type": "string"
          },
          "purchase_order_number": {
            "description": "The PO number assigned to the issued purchase order.",
            "nullable": true,
            "title": "Purchase Order Number",
            "type": "string"
          },
          "purchase_order_uuid": {
            "title": "Purchase Order Uuid",
            "type": "string"
          },
          "three_way_match_enabled": {
            "description": "Whether the issued purchase order tracks receipts for three-way match. It is false when receipt tracking was requested but the business's plan does not include two- and three-way match for Ramp purchase orders.",
            "title": "Three Way Match Enabled",
            "type": "boolean"
          },
          "total_amount": {
            "description": "Total in major units of the purchase order currency.",
            "title": "Total Amount",
            "type": "number"
          }
        },
        "required": [
          "currency",
          "linked_bill_uuid",
          "purchase_order_number",
          "purchase_order_uuid",
          "three_way_match_enabled",
          "total_amount"
        ],
        "title": "IssuedPurchaseOrder",
        "type": "object"
      },
      "JoinCardinality": {
        "enum": [
          "many_to_one",
          "one_to_many",
          "one_to_one"
        ],
        "title": "JoinCardinality",
        "type": "string"
      },
      "JsonValue": {},
      "JsonValueJsonMode": {},
      "JsonValueRequestBody": {},
      "LatestSyncInfo": {
        "description": "The latest accounting sync commit and all count metrics exposed by the API.",
        "properties": {
          "created_at": {
            "description": "When the sync commit was created",
            "title": "Created At",
            "type": "string"
          },
          "download_url": {
            "default": null,
            "description": "Presigned download URL for the sync artifact, if one exists",
            "nullable": true,
            "title": "Download Url",
            "type": "string"
          },
          "id": {
            "description": "Sync commit UUID",
            "title": "Id",
            "type": "string"
          },
          "num_accruals": {
            "title": "Num Accruals",
            "type": "integer"
          },
          "num_applied_vendor_credits": {
            "title": "Num Applied Vendor Credits",
            "type": "integer"
          },
          "num_banking_transactions": {
            "title": "Num Banking Transactions",
            "type": "integer"
          },
          "num_bill_payments": {
            "title": "Num Bill Payments",
            "type": "integer"
          },
          "num_bills": {
            "title": "Num Bills",
            "type": "integer"
          },
          "num_brokerage_orders": {
            "title": "Num Brokerage Orders",
            "type": "integer"
          },
          "num_intended_accruals": {
            "title": "Num Intended Accruals",
            "type": "integer"
          },
          "num_intended_applied_vendor_credits": {
            "title": "Num Intended Applied Vendor Credits",
            "type": "integer"
          },
          "num_intended_banking_transactions": {
            "title": "Num Intended Banking Transactions",
            "type": "integer"
          },
          "num_intended_bill_payments": {
            "title": "Num Intended Bill Payments",
            "type": "integer"
          },
          "num_intended_bills": {
            "title": "Num Intended Bills",
            "type": "integer"
          },
          "num_intended_brokerage_orders": {
            "title": "Num Intended Brokerage Orders",
            "type": "integer"
          },
          "num_intended_items": {
            "title": "Num Intended Items",
            "type": "integer"
          },
          "num_intended_liability_reimbursements": {
            "title": "Num Intended Liability Reimbursements",
            "type": "integer"
          },
          "num_intended_payees": {
            "title": "Num Intended Payees",
            "type": "integer"
          },
          "num_intended_reimbursement_payment_batches": {
            "title": "Num Intended Reimbursement Payment Batches",
            "type": "integer"
          },
          "num_intended_reimbursements": {
            "title": "Num Intended Reimbursements",
            "type": "integer"
          },
          "num_intended_statement_credits": {
            "title": "Num Intended Statement Credits",
            "type": "integer"
          },
          "num_intended_tracking_category_options": {
            "title": "Num Intended Tracking Category Options",
            "type": "integer"
          },
          "num_intended_transactions": {
            "title": "Num Intended Transactions",
            "type": "integer"
          },
          "num_intended_transfers": {
            "title": "Num Intended Transfers",
            "type": "integer"
          },
          "num_intended_vendor_credits": {
            "title": "Num Intended Vendor Credits",
            "type": "integer"
          },
          "num_intended_wallet_transfers": {
            "title": "Num Intended Wallet Transfers",
            "type": "integer"
          },
          "num_items": {
            "title": "Num Items",
            "type": "integer"
          },
          "num_payees": {
            "title": "Num Payees",
            "type": "integer"
          },
          "num_reimbursement_payment_batches": {
            "title": "Num Reimbursement Payment Batches",
            "type": "integer"
          },
          "num_reimbursements": {
            "title": "Num Reimbursements",
            "type": "integer"
          },
          "num_statement_credits": {
            "title": "Num Statement Credits",
            "type": "integer"
          },
          "num_tracking_category_options": {
            "title": "Num Tracking Category Options",
            "type": "integer"
          },
          "num_transactions": {
            "title": "Num Transactions",
            "type": "integer"
          },
          "num_transfers": {
            "title": "Num Transfers",
            "type": "integer"
          },
          "num_vendor_credits": {
            "title": "Num Vendor Credits",
            "type": "integer"
          },
          "num_wallet_transfers": {
            "title": "Num Wallet Transfers",
            "type": "integer"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SyncCommitStatus"
              }
            ],
            "description": "Overall status of the sync commit",
            "nullable": true
          },
          "sync_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SyncType"
              }
            ],
            "default": null,
            "description": "Type of sync this commit represents",
            "nullable": true
          },
          "synced_via_accounting_api": {
            "description": "Whether the sync commit used the accounting API flow",
            "title": "Synced Via Accounting Api",
            "type": "boolean"
          },
          "type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SyncCommitType"
              }
            ],
            "default": null,
            "description": "How the sync was executed: direct sync, API, or CSV",
            "nullable": true
          }
        },
        "required": [
          "created_at",
          "id",
          "num_accruals",
          "num_applied_vendor_credits",
          "num_banking_transactions",
          "num_bill_payments",
          "num_bills",
          "num_brokerage_orders",
          "num_intended_accruals",
          "num_intended_applied_vendor_credits",
          "num_intended_banking_transactions",
          "num_intended_bill_payments",
          "num_intended_bills",
          "num_intended_brokerage_orders",
          "num_intended_items",
          "num_intended_liability_reimbursements",
          "num_intended_payees",
          "num_intended_reimbursement_payment_batches",
          "num_intended_reimbursements",
          "num_intended_statement_credits",
          "num_intended_tracking_category_options",
          "num_intended_transactions",
          "num_intended_transfers",
          "num_intended_vendor_credits",
          "num_intended_wallet_transfers",
          "num_items",
          "num_payees",
          "num_reimbursement_payment_batches",
          "num_reimbursements",
          "num_statement_credits",
          "num_tracking_category_options",
          "num_transactions",
          "num_transfers",
          "num_vendor_credits",
          "num_wallet_transfers",
          "status",
          "synced_via_accounting_api"
        ],
        "title": "LatestSyncInfo",
        "type": "object"
      },
      "LatestSyncRequestTypeRequestBody": {
        "description": "Sync types supported by latest-sync queries.",
        "enum": [
          "ACCRUAL_SYNC",
          "AMORTIZATION_ENTRY_REVISION_BATCH_SYNC",
          "AMORTIZATION_ENTRY_SYNC",
          "APPLIED_VENDOR_CREDIT_SYNC",
          "BANKING_TRANSACTION_SYNC",
          "BILL_PAYMENT_DELETE_SYNC",
          "BILL_PAYMENT_SYNC",
          "BILL_PAYMENT_VOID_SYNC",
          "BILL_SYNC",
          "BROKERAGE_ORDER_SYNC",
          "ITEM_RECEIPT_SYNC",
          "MANAGED_PORTFOLIO_ACTIVITY_SYNC",
          "MANAGED_PORTFOLIO_TRANSFER_SYNC",
          "REIMBURSEMENT_BATCH_SYNC",
          "REIMBURSEMENT_SYNC",
          "REPAYMENT_SYNC",
          "STATEMENT_CREDIT_SYNC",
          "TRANSACTION_SYNC",
          "TRANSACTION_SYNC_BILL_PAYMENT",
          "TRANSACTION_SYNC_PAID_BILL",
          "TRANSFER_SYNC",
          "VENDOR_CREDIT_APPLY_SYNC",
          "VENDOR_CREDIT_DELETE_SYNC",
          "VENDOR_CREDIT_SYNC",
          "VENDOR_CREDIT_UNAPPLY_SYNC",
          "WALLET_TLEM_SYNC",
          "WALLET_TRANSFER_SYNC"
        ],
        "title": "LatestSyncRequestType",
        "type": "string"
      },
      "LimitIncreaseFailure": {
        "description": "A denied shared-fund increase, returned without a tool-level exception.",
        "properties": {
          "error_type": {
            "enum": [
              "not_authorized"
            ],
            "title": "Error Type",
            "type": "string"
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "success": {
            "enum": [
              false
            ],
            "title": "Success",
            "type": "boolean"
          }
        },
        "required": [
          "error_type",
          "message",
          "success"
        ],
        "title": "LimitIncreaseFailure",
        "type": "object"
      },
      "LimitIncreaseRequestBody": {
        "description": "Increase the spending limit on a fund (spend allocation) or card. Rejects totals at or below the current active period limit. Recurring funds support one time (resets at the next interval) and recurring increases. One-time funds always use permanent, even when temporary is supplied, without type confirmation. Does not support date-limited increases.",
        "properties": {
          "action": {
            "default": "set",
            "description": "Whether to set the limit to the specified amount, or add the amount to the current limit.",
            "enum": [
              "add",
              "set"
            ],
            "title": "Action",
            "type": "string"
          },
          "amount": {
            "description": "The spending limit amount, in the major unit of the fund's own currency \u2014 pass a decimal string like \"5000.00\", never minor units, a currency symbol, or thousands separators. For 'set', supply the new total, not the increment or remaining balance; it must exceed the active period limit, including any temporary adjustment. For 'add', supply the positive increment to add to the current limit. Must be greater than zero.",
            "oneOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "title": "Amount"
          },
          "card_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "The card ID whose limit should be increased. Must provide either this or spend_allocation_id, not both.",
            "nullable": true
          },
          "expected_current_limit": {
            "default": null,
            "description": "The active period limit used to agree the increase, including any temporary adjustment, in major currency units as a decimal string such as \"2000.00\". Not the permanent reset limit or remaining balance. Required for action='add'; recommended for 'set'. A changed current limit rejects the request without writing; do not substitute a refreshed value without renewed user consent.",
            "nullable": true,
            "oneOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "title": "Expected Current Limit"
          },
          "increase_type": {
            "default": "unspecified",
            "description": "The type of limit increase. For recurring funds, ask 'one time or recurring': 'temporary' means one time, resetting at the next interval boundary; 'permanent' means recurring. Recurring funds require an explicit choice. One-time funds normalize every value, including 'temporary' and 'unspecified', to 'permanent' without type confirmation. Does not set an expiry date.",
            "enum": [
              "permanent",
              "temporary",
              "unspecified"
            ],
            "title": "Increase Type",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "reason": {
            "default": null,
            "description": "The user's business purpose or justification for the limit increase. Preserve the reason supplied by the user; do not replace it with a description of the amount or increase type.",
            "maxLength": 500,
            "nullable": true,
            "title": "Reason",
            "type": "string"
          },
          "spend_allocation_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "The spend allocation (fund) ID whose limit should be increased. Must provide either this or card_id, not both.",
            "nullable": true
          },
          "user_confirmed_increase_type": {
            "default": false,
            "description": "Whether the user has explicitly confirmed the increase type. Required for recurring funds; not required for one-time funds.",
            "title": "User Confirmed Increase Type",
            "type": "boolean"
          },
          "user_confirmed_limit_increase": {
            "default": false,
            "description": "Whether the user explicitly asked for or confirmed a fund limit increase. Do not infer confirmation from a currency correction, an over-limit reimbursement, a declined transaction, or a statement about the available budget.",
            "title": "User Confirmed Limit Increase",
            "type": "boolean"
          }
        },
        "required": [
          "amount",
          "rationale"
        ],
        "title": "LimitIncrease",
        "type": "object"
      },
      "LimitIncreaseResponse": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/LimitIncreaseFailure"
          },
          {
            "$ref": "#/components/schemas/LimitIncreaseResult"
          }
        ],
        "title": "LimitIncreaseResponse"
      },
      "LimitIncreaseResult": {
        "description": "Result of a limit increase operation",
        "properties": {
          "created_spend_request_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "nullable": true
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "new_limit": {
            "title": "New Limit",
            "type": "string"
          },
          "status": {
            "description": "\"success\" (limit was increased immediately), or \"request_pending\" (request submitted, awaiting approval)",
            "enum": [
              "request_pending",
              "success"
            ],
            "title": "Status",
            "type": "string"
          },
          "updated_fund_id": {
            "$ref": "#/components/schemas/EntityUUIDStr"
          }
        },
        "required": [
          "message",
          "new_limit",
          "status",
          "updated_fund_id"
        ],
        "title": "LimitIncreaseResult",
        "type": "object"
      },
      "LimitedVendorDetailsResultJsonMode": {
        "additionalProperties": false,
        "description": "Basic identifying fields for a vendor the caller can see but cannot read in full.",
        "properties": {
          "access_limited": {
            "default": true,
            "description": "Always true. The caller cannot read this vendor's full profile, so ownership, contacts, spend, payment terms, and custom fields are withheld; their absence does not mean they are empty.",
            "title": "Access Limited",
            "type": "boolean"
          },
          "description": {
            "default": null,
            "description": "Vendor description",
            "nullable": true,
            "title": "Description",
            "type": "string"
          },
          "is_active": {
            "description": "Whether the vendor is currently active",
            "title": "Is Active",
            "type": "boolean"
          },
          "name": {
            "description": "Vendor name",
            "title": "Name",
            "type": "string"
          },
          "vendor_uuid": {
            "description": "UUID of the vendor",
            "title": "Vendor Uuid",
            "type": "string"
          },
          "website": {
            "default": null,
            "description": "Vendor website URL",
            "nullable": true,
            "title": "Website",
            "type": "string"
          }
        },
        "required": [
          "is_active",
          "name",
          "vendor_uuid"
        ],
        "title": "LimitedVendorDetailsResult",
        "type": "object"
      },
      "LineItemCustomFieldValueInputRequestBody": {
        "additionalProperties": false,
        "properties": {
          "custom_field_id": {
            "description": "ID of the PO line-item custom field (the config's custom_field_id) this value is for.",
            "title": "Custom Field Id",
            "type": "string"
          },
          "value": {
            "description": "Value for the custom field. For a multi-select field, add one entry per selected value using the same custom_field_id. Omit the custom-field entry when the value is unknown; pass null only to clear an existing value.",
            "nullable": true,
            "oneOf": [
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "title": "Value"
          }
        },
        "required": [
          "custom_field_id",
          "value"
        ],
        "title": "LineItemCustomFieldValueInput",
        "type": "object"
      },
      "LineItemGrain": {
        "enum": [
          "split",
          "unsplit"
        ],
        "title": "LineItemGrain",
        "type": "string"
      },
      "LineItemOCRData": {
        "properties": {
          "amortization_end_date": {
            "default": null,
            "format": "date",
            "nullable": true,
            "title": "Amortization End Date",
            "type": "string"
          },
          "amortization_start_date": {
            "default": null,
            "format": "date",
            "nullable": true,
            "title": "Amortization Start Date",
            "type": "string"
          },
          "amortization_template_hint": {
            "default": null,
            "nullable": true,
            "title": "Amortization Template Hint",
            "type": "string"
          },
          "bounding_region_details": {
            "items": {
              "$ref": "#/components/schemas/InvoiceBoundingRegionDetails"
            },
            "title": "Bounding Region Details",
            "type": "array"
          },
          "po_match_reason": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProvisionalBillLineItemPurchaseOrderLineItemMatchReason"
              }
            ],
            "default": null,
            "nullable": true
          },
          "prepaid_account_hint": {
            "default": null,
            "nullable": true,
            "title": "Prepaid Account Hint",
            "type": "string"
          },
          "tracking_category_generated_hints": {
            "default": null,
            "items": {
              "$ref": "#/components/schemas/TrackingCategoryHint"
            },
            "nullable": true,
            "title": "Tracking Category Generated Hints",
            "type": "array"
          }
        },
        "title": "LineItemOCRData",
        "type": "object"
      },
      "LineItemSummary": {
        "properties": {
          "price_per_unit": {
            "default": null,
            "description": "Price per unit",
            "nullable": true,
            "title": "Price Per Unit",
            "type": "number"
          },
          "product_or_service_name": {
            "default": null,
            "description": "Name of the product or service",
            "nullable": true,
            "title": "Product Or Service Name",
            "type": "string"
          },
          "quantity": {
            "default": null,
            "description": "Quantity of units",
            "nullable": true,
            "title": "Quantity",
            "type": "number"
          },
          "total_price": {
            "default": null,
            "description": "Total line item amount",
            "nullable": true,
            "title": "Total Price",
            "type": "number"
          }
        },
        "title": "LineItemSummary",
        "type": "object"
      },
      "LineItemTrackingCategorySelectionInputRequestBody": {
        "additionalProperties": false,
        "properties": {
          "tracking_category_option_uuid": {
            "default": null,
            "description": "UUID of the selected option returned by GetTrackingCategoryOptions, when applicable. Pass null only when unsetting this tracking category.",
            "format": "uuid",
            "nullable": true,
            "title": "Tracking Category Option Uuid",
            "type": "string"
          },
          "tracking_category_uuid": {
            "default": null,
            "description": "UUID of the tracking category returned by GetTrackingCategories. Inferred from tracking_category_option_uuid when omitted.",
            "format": "uuid",
            "nullable": true,
            "title": "Tracking Category Uuid",
            "type": "string"
          }
        },
        "title": "LineItemTrackingCategorySelectionInput",
        "type": "object"
      },
      "LineItemTypeRequestBody": {
        "enum": [
          "EXPENSE",
          "ITEM"
        ],
        "title": "LineItemType",
        "type": "string"
      },
      "ListBillsRequestBody": {
        "description": "List and filter bills with optional search, pagination, and status filters.\n\nReturns bills for the current user's business. When called with no parameters,\nreturns the most recent bills. Supports optional text search across vendor name,\ninvoice number, and payment ID.\n\nBills in Ramp have two stages: draft bills (created/uploaded but not yet\nsubmitted; use the draft-bill tools) and bills (submitted; they move through\napproval, then scheduling, then payment). A draft keeps the same ID after\nsubmission, but draft-only tools stop working on it once submitted.\n\nArchived bills are excluded unless include_archived is true.",
        "properties": {
          "include_archived": {
            "default": false,
            "description": "Whether to include archived bills in results. Archived bills are excluded unless this is true. Set to true when the user asks about archived bills or asks what happened to a specific bill.",
            "title": "Include Archived",
            "type": "boolean"
          },
          "include_paid": {
            "default": true,
            "description": "Whether to include paid bills in results. Set to false to see only unpaid bills.",
            "title": "Include Paid",
            "type": "boolean"
          },
          "limit": {
            "default": 10,
            "description": "Maximum number of bills to return per page (1-50)",
            "maximum": 50,
            "minimum": 1,
            "title": "Limit",
            "type": "integer"
          },
          "page_cursor": {
            "default": null,
            "description": "Pagination cursor from a previous response's next_page_cursor. The only valid string values are encrypted cursor tokens from a previous response (long strings starting with 'gAAAAA'). For the first page, for no more results, or for anything that is not one of those encrypted tokens, pass None (never the string 'None').",
            "nullable": true,
            "title": "Page Cursor",
            "type": "string"
          },
          "query": {
            "default": null,
            "description": "Optional text search filter (minimum 3 characters). Searches across vendor name, invoice number, and payment ID. Examples: 'UPS', 'INV-1722'. Will find partial matches. When omitted, returns all bills.",
            "minLength": 3,
            "nullable": true,
            "title": "Query",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "ListBills",
        "type": "object"
      },
      "ListBudgetsOutput": {
        "description": "Response containing list of budgets.",
        "properties": {
          "budgets": {
            "items": {
              "$ref": "#/components/schemas/BudgetInfo"
            },
            "title": "Budgets",
            "type": "array"
          },
          "total_count": {
            "title": "Total Count",
            "type": "integer"
          }
        },
        "required": [
          "budgets",
          "total_count"
        ],
        "title": "ListBudgetsOutput",
        "type": "object"
      },
      "ListBudgetsRequestBody": {
        "description": "List the business's budgets in Ramp Budgets. Returns only the active budget by default; set include_inactive to also return historical budgets. Each budget includes its name, active state, time interval, and Ramp link. Financial planning budgets are not included.",
        "properties": {
          "include_inactive": {
            "default": false,
            "description": "When True, includes inactive (historical) budgets in addition to the active one.",
            "title": "Include Inactive",
            "type": "boolean"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "ListBudgets",
        "type": "object"
      },
      "ListBusinessAccountsOutput": {
        "properties": {
          "accounts": {
            "items": {
              "$ref": "#/components/schemas/BusinessAccountInfo"
            },
            "title": "Accounts",
            "type": "array"
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "total_count": {
            "title": "Total Count",
            "type": "integer"
          }
        },
        "required": [
          "accounts",
          "message",
          "total_count"
        ],
        "title": "ListBusinessAccountsOutput",
        "type": "object"
      },
      "ListBusinessAccountsRequestBody": {
        "description": "List all Ramp Checking Accounts (wallet accounts) for the user's business.\n\nReturns account details including balances, currency, yield rate, and status.\nUse this tool when the user asks about their checking accounts, wallet accounts,\nor wants to see an overview of their Ramp Checking Accounts.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "ListBusinessAccounts",
        "type": "object"
      },
      "ListBusinessEntitiesOutput": {
        "properties": {
          "business_entities": {
            "items": {
              "$ref": "#/components/schemas/BusinessEntityInfo"
            },
            "title": "Business Entities",
            "type": "array"
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "total_count": {
            "title": "Total Count",
            "type": "integer"
          }
        },
        "required": [
          "business_entities",
          "message",
          "total_count"
        ],
        "title": "ListBusinessEntitiesOutput",
        "type": "object"
      },
      "ListBusinessEntitiesRequestBody": {
        "description": "List business entities in the current business.\n\nReturns each entity's ID, name, primary flag, and registration country.\nUse this to resolve the current business's legal entity by name or to find\na business entity ID. Pass name_filter when resolving entity references in\nrequests and attachments.",
        "properties": {
          "name_filter": {
            "default": null,
            "description": "Optional filter to search business entities by name (case-insensitive partial match).",
            "nullable": true,
            "title": "Name Filter",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "ListBusinessEntities",
        "type": "object"
      },
      "ListCardsRequestBody": {
        "description": "List non-terminated cards for the current user or a visible target cardholder, including activation status, spendability, lock state, and shipping metadata. Results do not establish historical order cancellation.",
        "properties": {
          "cardholder_user_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "Optional standard user UUID for the cardholder whose cards should be listed (never a numeric user ID, email, name, or Slack ID). Provide this when an admin or manager asks about another employee's cards. Omit it to list the acting user's own cards.",
            "nullable": true
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "ListCards",
        "type": "object"
      },
      "ListDepartmentsOutput": {
        "description": "Response containing list of departments.",
        "properties": {
          "departments": {
            "items": {
              "$ref": "#/components/schemas/DepartmentInfo"
            },
            "title": "Departments",
            "type": "array"
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "total_count": {
            "title": "Total Count",
            "type": "integer"
          }
        },
        "required": [
          "departments",
          "message",
          "total_count"
        ],
        "title": "ListDepartmentsOutput",
        "type": "object"
      },
      "ListDepartmentsRequestBody": {
        "description": "List all departments in the company.\n\nReturns the departments available in the user's business, which can be\nused as inputs to workflows that require department references. Each\ndepartment includes organizational metadata: its owners (managers),\nactive member count, and managing external firm, if any.",
        "properties": {
          "name_filter": {
            "default": null,
            "description": "Optional filter to search departments by name (case-insensitive partial match).",
            "nullable": true,
            "title": "Name Filter",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "ListDepartments",
        "type": "object"
      },
      "ListMyRouterRequestsRequestBody": {
        "description": "List your recent Ramp Router requests, or get one request's details.\n\nShows only your requests in this business, including requests made with your\npersonal keys outside the business. Shows metadata only, never prompt or\nresponse content. Requests that Router rejects before routing, such as an\nunknown model name, are not logged.\n\nWithout event_id, lists your requests: where each went, which model served it,\nwhat it cost, and how long it took. Each row's id is the request's event_id.\nWhen next_cursor is not null, more requests match: ask again with it as cursor,\nwith the page's start_at and end_at, and with the same filters and order.\n\nWith event_id, returns that one request's details: why it failed or was slow,\nhow Router routed it, and what the routing saved. Send no other inputs with\nevent_id. For Switchyard and auto-routing requests, strategy_attribution\nexplains the choice: Switchyard's tier, score and the signals behind it, such\nas recent errors, edits or passing tests; or the auto-router's pick, each\nmodel's probability, and whether it was confident enough to switch.\n\nmodel is the model the caller asked for, or the slug of a coding workload.\nprovider_model is the model that served the request; it differs when Router\nrouted or upgraded the request. upgraded_from_model is set when an upgrade\nreplaced the model. status shows whether the request failed, and error_code\nsays why. routing holds the strategy and the candidate models and providers\nRouter chose between, with the served and baseline candidates.\nstrategy_attribution holds each strategy's receipt with its savings in USD.\n\ncost_usd is what the request cost the business, in USD. On the company's own\nprovider keys it is an estimate at list price. provider_list_cost_usd is the\nserved route's list price. routing_cost_delta_usd is the requested route's list\nprice minus cost_usd; it can be negative and is not the savings Router takes\ncredit for. request_metadata is metadata the caller attached.",
        "properties": {
          "api_key_id": {
            "default": null,
            "description": "Router id of a key.",
            "maxLength": 256,
            "minLength": 1,
            "nullable": true,
            "title": "Api Key Id",
            "type": "string"
          },
          "client": {
            "default": null,
            "description": "The harness, for example claude_code or codex. unattributed matches requests with no harness.",
            "maxLength": 64,
            "minLength": 1,
            "nullable": true,
            "title": "Client",
            "type": "string"
          },
          "cursor": {
            "default": null,
            "description": "next_cursor from the previous page.",
            "maxLength": 1024,
            "minLength": 1,
            "nullable": true,
            "title": "Cursor",
            "type": "string"
          },
          "end_at": {
            "default": null,
            "description": "End of the window, ISO 8601. Default: now.",
            "format": "date-time",
            "nullable": true,
            "title": "End At",
            "type": "string"
          },
          "event_id": {
            "default": null,
            "description": "Router event id of one request to get in detail.",
            "maxLength": 256,
            "minLength": 1,
            "nullable": true,
            "title": "Event Id",
            "type": "string"
          },
          "limit": {
            "default": 20,
            "description": "Most requests to return.",
            "maximum": 50,
            "minimum": 1,
            "title": "Limit",
            "type": "integer"
          },
          "model": {
            "default": null,
            "description": "The requested model.",
            "maxLength": 256,
            "minLength": 1,
            "nullable": true,
            "title": "Model",
            "type": "string"
          },
          "order": {
            "default": "desc",
            "description": "Sort order.",
            "enum": [
              "asc",
              "desc"
            ],
            "title": "Order",
            "type": "string"
          },
          "order_by": {
            "default": "timestamp",
            "description": "What to sort by.",
            "enum": [
              "cost",
              "latency",
              "timestamp",
              "total_tokens"
            ],
            "title": "Order By",
            "type": "string"
          },
          "provider": {
            "default": null,
            "description": "For example openai or anthropic.",
            "maxLength": 64,
            "minLength": 1,
            "nullable": true,
            "title": "Provider",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "reasoning_effort": {
            "default": null,
            "description": "For example high. unset matches no recorded effort.",
            "maxLength": 64,
            "minLength": 1,
            "nullable": true,
            "title": "Reasoning Effort",
            "type": "string"
          },
          "served_model": {
            "default": null,
            "description": "The model that served the request.",
            "maxLength": 256,
            "minLength": 1,
            "nullable": true,
            "title": "Served Model",
            "type": "string"
          },
          "start_at": {
            "default": null,
            "description": "Start of the window, ISO 8601. Default: 24 hours before end_at. The window can be at most 93 days.",
            "format": "date-time",
            "nullable": true,
            "title": "Start At",
            "type": "string"
          },
          "status": {
            "default": null,
            "description": "Any of these statuses, for example error.",
            "items": {
              "maxLength": 64,
              "minLength": 1,
              "type": "string"
            },
            "maxItems": 4,
            "minItems": 1,
            "nullable": true,
            "title": "Status",
            "type": "array"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "ListMyRouterRequests",
        "type": "object"
      },
      "ListMyRouterRequestsResponseJsonMode": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/RouterRequestLogDetailJsonMode"
          },
          {
            "$ref": "#/components/schemas/RouterRequestLogPageJsonMode"
          }
        ],
        "title": "ListMyRouterRequestsResponse"
      },
      "ListPlanningBudgetSpendRequestBody": {
        "description": "List the spend items behind the planning budget's actual and committed amounts.\n\nFilter to a line, a group and every line under it, or to unassigned spend: spend\nin the budget's scope that no line matched. Reflects the last recalculation, so\nvery recent spend may be missing. Items do not include tracking category\nselections. Fails if the business has no planning budget yet.",
        "properties": {
          "amount_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BudgetAmountTypeRequestBody"
              }
            ],
            "default": null,
            "nullable": true
          },
          "cursor": {
            "default": null,
            "description": "The previous page's next_cursor; keep every other input unchanged.",
            "nullable": true,
            "title": "Cursor",
            "type": "string"
          },
          "from_month": {
            "default": null,
            "description": "Any day in the first month to include.",
            "format": "date",
            "nullable": true,
            "title": "From Month",
            "type": "string"
          },
          "line_path": {
            "default": null,
            "description": "Line or group path, such as \"Engineering > Software\"; a group includes every line under it.",
            "nullable": true,
            "title": "Line Path",
            "type": "string"
          },
          "page_size": {
            "default": 20,
            "maximum": 50,
            "minimum": 1,
            "title": "Page Size",
            "type": "integer"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "sort_by": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BudgetSourceItemSortByRequestBody"
              }
            ],
            "default": "amount"
          },
          "sort_direction": {
            "default": "desc",
            "enum": [
              "asc",
              "desc"
            ],
            "title": "Sort Direction",
            "type": "string"
          },
          "to_month": {
            "default": null,
            "description": "Any day in the last month to include.",
            "format": "date",
            "nullable": true,
            "title": "To Month",
            "type": "string"
          },
          "unassigned_only": {
            "default": false,
            "description": "Only spend no line matched; excludes line_path.",
            "title": "Unassigned Only",
            "type": "boolean"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "ListPlanningBudgetSpend",
        "type": "object"
      },
      "ListPoliciesRequestBody": {
        "description": "List workflow-backed submission, approval, and spend-request policies for the business, with each policy's UUID, kind, spend type, default status, and workflow availability. Returns policy metadata only, not written policy document text. Call first when the target policy UUID isn't known, then use get-policy-details or get-policy-workflow-body.",
        "properties": {
          "kinds": {
            "description": "Optional filter: which policy families to include. Empty list = all.",
            "items": {
              "$ref": "#/components/schemas/OmniPolicyWorkflowKindRequestBody"
            },
            "title": "Kinds",
            "type": "array"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "ListPolicies",
        "type": "object"
      },
      "ListPoliciesSuccess": {
        "properties": {
          "policies": {
            "items": {
              "$ref": "#/components/schemas/PolicySummary"
            },
            "title": "Policies",
            "type": "array"
          },
          "total_returned": {
            "title": "Total Returned",
            "type": "integer"
          },
          "truncated": {
            "description": "True if more policies matched than were returned (the caller should narrow their filters or ask about a specific policy).",
            "title": "Truncated",
            "type": "boolean"
          }
        },
        "required": [
          "policies",
          "total_returned",
          "truncated"
        ],
        "title": "ListPoliciesSuccess",
        "type": "object"
      },
      "ListProcurementSpendIntentsRequestBody": {
        "description": "List published procurement spend programs the agent can draft against.",
        "properties": {
          "page_size": {
            "default": 50,
            "description": "Maximum spend programs to return.",
            "maximum": 100,
            "minimum": 1,
            "title": "Page Size",
            "type": "integer"
          },
          "query": {
            "default": null,
            "description": "Optional text filter for spend program name or description.",
            "nullable": true,
            "title": "Query",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "ListProcurementSpendIntents",
        "type": "object"
      },
      "ListProcurementSpendIntentsResult": {
        "properties": {
          "spend_intents": {
            "items": {
              "$ref": "#/components/schemas/ProcurementSpendIntentSummary"
            },
            "title": "Spend Intents",
            "type": "array"
          }
        },
        "required": [
          "spend_intents"
        ],
        "title": "ListProcurementSpendIntentsResult",
        "type": "object"
      },
      "ListRemainingBudgetAmountOutput": {
        "description": "Response containing remaining budget amount for the active budget.",
        "properties": {
          "budget_info": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RemainingBudgetAmountInfo"
              }
            ],
            "description": "Remaining amount for the reported budget period. None if no active budget exists, or when candidates are returned to disambiguate an entity.",
            "nullable": true
          },
          "candidates": {
            "description": "When `entity` matched multiple budget rows, the rows to choose from. Ask the user which one, then call again with `row_number` set to the chosen row.",
            "items": {
              "$ref": "#/components/schemas/BudgetEntityCandidate"
            },
            "title": "Candidates",
            "type": "array"
          },
          "message": {
            "description": "Human-readable summary of the remaining budget",
            "title": "Message",
            "type": "string"
          }
        },
        "required": [
          "budget_info",
          "message"
        ],
        "title": "ListRemainingBudgetAmountOutput",
        "type": "object"
      },
      "ListRemainingBudgetAmountRequestBody": {
        "description": "Get the budgeted, actual, committed, and remaining amounts for the acting user's active budget in Ramp Budgets, for either the whole budget (period_scope='full', the default) or only the current period (period_scope='current'). Pass entity to scope the answer to one budget row, such as a department or category. When the name matches several rows, the result lists candidate rows; call again with row_number set to the chosen row. Financial planning budgets are not included.",
        "properties": {
          "entity": {
            "default": null,
            "description": "Optional budget row/entity name to scope the answer to, e.g. 'Engineering' or 'Software'. Omit to report the whole budget. Ignored when row_number is provided.",
            "nullable": true,
            "title": "Entity",
            "type": "string"
          },
          "period_scope": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BudgetPeriodScopeRequestBody"
              }
            ],
            "default": "full",
            "description": "Time scope to report remaining budget for. Pick exactly one scope per call. Use 'full' (default) for the entire budget across its whole duration, e.g. when the user asks generally 'what is remaining in my budget'. Use 'current' for only the current period (this month/quarter/year), e.g. when the user asks 'what's remaining this month'. Only issue a second call with the other scope when the user explicitly asks to compare the full budget and the current period."
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "row_number": {
            "default": null,
            "description": "Exact budget row number to report. Use on a follow-up call after the tool returns candidate rows for an ambiguous entity.",
            "nullable": true,
            "title": "Row Number",
            "type": "integer"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "ListRemainingBudgetAmount",
        "type": "object"
      },
      "ListReportingDatasetFieldsRequestBody": {
        "description": "List the fields of one semantic reporting dataset as a compact index for\nchoosing fields.\n\nReturns the dataset's grain, default time dimension, supported query\nsettings, and any financial statement or AP operations contract, plus its\nmeasures, dimensions, and time dimensions, fields reached through joins\n(for example `spend_programs.name`), and related-record role fields (for\nexample `spender.email`). Some datasets list fields compactly: a field\nwith an `index_description` leaves out its full description, filter\noperators, filter value kind, aggregations, and raw-table column, which\nare returned when that field's details are requested by name. There,\n`needs` holds a field's query requirements, such as a required time range,\nsplit line items, required dimensions or filters, or rows that repeat when\ngrouped; requirements at their default are omitted, as are attributes with\nno value (null, empty, or false) other than `filterable`. Other datasets\nlist every field's full entry.",
        "properties": {
          "dataset": {
            "description": "Semantic dataset name to list fields for, for example `spend`.",
            "title": "Dataset",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "dataset",
          "rationale"
        ],
        "title": "ListReportingDatasetFields",
        "type": "object"
      },
      "ListReportingDatasetFieldsResult": {
        "properties": {
          "dataset": {
            "additionalProperties": {
              "$ref": "#/components/schemas/JsonValue"
            },
            "description": "Dataset metadata and its field index: base fields, fields reached through joins, and related-record role fields.",
            "title": "Dataset",
            "type": "object"
          }
        },
        "required": [
          "dataset"
        ],
        "title": "ListReportingDatasetFieldsResult",
        "type": "object"
      },
      "ListReportingDatasetsRequestBody": {
        "description": "List semantic reporting datasets available to the current user. Use this before building a semantic reporting query when you need to know which datasets exist and how each dataset is described at a high level.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "ListReportingDatasets",
        "type": "object"
      },
      "ListReportingDatasetsResult": {
        "properties": {
          "datasets": {
            "description": "Semantic reporting datasets the user can access and query.",
            "items": {
              "$ref": "#/components/schemas/CatalogDatasetSummary"
            },
            "title": "Datasets",
            "type": "array"
          }
        },
        "required": [
          "datasets"
        ],
        "title": "ListReportingDatasetsResult",
        "type": "object"
      },
      "ListRouterApiKeysRequestBody": {
        "description": "List Ramp Router API keys with their names, owners, status, and spend limits.\n\nThese are the keys people use to call Router. Does not list keys issued by\nOpenAI or Anthropic.\n\nRouter admins see every key, including service-account keys; other users see\nthe keys they own. Each key has its lock reasons and spend in the last 30 days.\nTerminated keys are left out.",
        "properties": {
          "next_page_cursor": {
            "default": null,
            "description": "next_page_cursor from the previous response. Omit for the first page.",
            "nullable": true,
            "title": "Next Page Cursor",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "ListRouterApiKeys",
        "type": "object"
      },
      "ListRouterMembersRequestBody": {
        "description": "List the people on the business's Router, with their role and status.\n\nList the people on the business's Router, by name, with their Ramp user\nUUID, email, Router role, and status.\n\nWhen has_more is true, the list is partial: tell the user, and narrow with q or\nrole.",
        "properties": {
          "limit": {
            "default": 50,
            "description": "Most people to return.",
            "maximum": 200,
            "minimum": 1,
            "title": "Limit",
            "type": "integer"
          },
          "q": {
            "default": null,
            "description": "Text in a person's name or email.",
            "maxLength": 200,
            "minLength": 1,
            "nullable": true,
            "title": "Q",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "role": {
            "default": null,
            "description": "Only people with this Router role.",
            "enum": [
              "admin",
              "free",
              "user"
            ],
            "nullable": true,
            "title": "Role",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "ListRouterMembers",
        "type": "object"
      },
      "ListRouterWorkloadsRequestBody": {
        "description": "List your Router coding models, the names you pick with /model in Claude Code or Codex.\n\nEach coding model (a Router workload) has a slug, which is the name to pick,\nand one strategy that decides which model serves each request:\n- switchyard: a capable model for hard requests and an efficient model for\n  easy ones;\n- classifier: Router picks from 2 to 6 models by each model's description;\n- model_list: models tried in order, the first that can serve wins;\n- benchmark: Router picks by weighted benchmark scores.\n\nEach coding model also has Flex (cost_efficient_routing_enabled), the\nprovider preference, requests_last_7_days, and \u2014 only when Router reports\nsubagent routing as available for the user \u2014 subagent_routing_mode and\nsubagent_routing_models (how Router routes a coding agent's subagent\nrequests and optional custom models per subagent class). When those fields\nare omitted, subagent routing is not available for the user. A null\nrequests_last_7_days means the count is not known, so treat the coding model\nas possibly in use. default_settings holds the same settings for requests\nthat pick a regular model instead of a slug; when they are not set, settings\nis null and note says what applies. Shows only your own coding models, not\ncompany ones.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "ListRouterWorkloads",
        "type": "object"
      },
      "ListSkCategoriesRequestBody": {
        "description": "List Ramp merchant categories and IDs for Agent Wallet and spend controls.\n\nEach category expands to its configured MCC allowlist.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "ListSkCategories",
        "type": "object"
      },
      "ListSkCategoriesResult": {
        "properties": {
          "categories": {
            "description": "All available Ramp merchant categories for spend controls",
            "items": {
              "$ref": "#/components/schemas/SkCategoryItem"
            },
            "title": "Categories",
            "type": "array"
          }
        },
        "required": [
          "categories"
        ],
        "title": "ListSkCategoriesResult",
        "type": "object"
      },
      "ListSourcingEventsOutput": {
        "properties": {
          "events": {
            "description": "Visible sourcing events for the acting user's business",
            "items": {
              "$ref": "#/components/schemas/SourcingEventListItem"
            },
            "title": "Events",
            "type": "array"
          },
          "next_page_cursor": {
            "default": null,
            "description": "Pass this value as page_cursor to fetch the next page, or None when there are no more results",
            "nullable": true,
            "title": "Next Page Cursor",
            "type": "string"
          }
        },
        "title": "ListSourcingEventsOutput",
        "type": "object"
      },
      "ListSourcingEventsRequestBody": {
        "description": "List sourcing events visible to the acting user.\n\nUse this first when the user refers to an existing sourcing event but you do not\nyet know which one they mean. The output is intentionally compact so the model\ncan match event names, owners, and current RFX details itself. Events in every\nlifecycle status are available across pages, including CLOSED events, so the\nagent can still find an event the user already finished running.",
        "properties": {
          "page_cursor": {
            "default": null,
            "description": "Pagination cursor from a previous response's next_page_cursor. Pass None for the first page or when there are no more results.",
            "nullable": true,
            "title": "Page Cursor",
            "type": "string"
          },
          "page_size": {
            "default": 100,
            "description": "Maximum number of sourcing events to return per page (1-100)",
            "maximum": 100,
            "minimum": 1,
            "title": "Page Size",
            "type": "integer"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "ListSourcingEvents",
        "type": "object"
      },
      "ListTravelerLoyaltyProgramsRequestBody": {
        "description": "List saved loyalty programs from the user's traveler profile. Use this directly for loyalty-only list/show/check requests; do not call GetTravelerProfile first.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "ListTravelerLoyaltyPrograms",
        "type": "object"
      },
      "ListTravelerLoyaltyProgramsResult": {
        "properties": {
          "has_profile": {
            "description": "Whether the user has a traveler profile.",
            "title": "Has Profile",
            "type": "boolean"
          },
          "loyalty_programs": {
            "description": "Saved loyalty programs on the traveler profile.",
            "items": {
              "$ref": "#/components/schemas/TravelerLoyaltyProgramDataSchema"
            },
            "title": "Loyalty Programs",
            "type": "array"
          }
        },
        "required": [
          "has_profile"
        ],
        "title": "ListTravelerLoyaltyProgramsResult",
        "type": "object"
      },
      "ListTreasuryAccountsOutput": {
        "properties": {
          "accounts": {
            "items": {
              "$ref": "#/components/schemas/TreasuryAccountInfo"
            },
            "title": "Accounts",
            "type": "array"
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "total_count": {
            "title": "Total Count",
            "type": "integer"
          }
        },
        "required": [
          "accounts",
          "message",
          "total_count"
        ],
        "title": "ListTreasuryAccountsOutput",
        "type": "object"
      },
      "ListTreasuryAccountsRequestBody": {
        "description": "List all Treasury accounts (Ramp Checking Accounts, Investment Accounts, Managed Portfolios).",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "ListTreasuryAccounts",
        "type": "object"
      },
      "ListTreasuryDocumentsOutputJsonMode": {
        "properties": {
          "documents": {
            "items": {
              "$ref": "#/components/schemas/TreasuryDocumentInfoJsonMode"
            },
            "title": "Documents",
            "type": "array"
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "next_cursor": {
            "default": null,
            "description": "Pass as cursor with the same filters for the next page; null when complete.",
            "nullable": true,
            "title": "Next Cursor",
            "type": "string"
          },
          "total_count": {
            "title": "Total Count",
            "type": "integer"
          }
        },
        "required": [
          "documents",
          "message",
          "next_cursor",
          "total_count"
        ],
        "title": "ListTreasuryDocumentsOutput",
        "type": "object"
      },
      "ListTreasuryDocumentsPublicRequestRequestBody": {
        "description": "List available monthly Ramp Checking Account statements, including document UUIDs, account names, and statement periods, filtered by overlapping date range: start_date includes statements ending on or after that date; end_date includes statements starting on or before that date; returns up to 50 results per page; pass next_cursor as cursor with the same filters to continue. Does not return PDF contents.",
        "properties": {
          "cursor": {
            "default": null,
            "description": "The previous page's next_cursor. Keep the same document type and date filters.",
            "nullable": true,
            "title": "Cursor",
            "type": "string"
          },
          "document_type": {
            "description": "Monthly Ramp Checking Account statements are supported.",
            "enum": [
              "MONTHLY_STATEMENT"
            ],
            "title": "Document Type",
            "type": "string"
          },
          "end_date": {
            "default": null,
            "description": "Include statements whose period starts on or before this date.",
            "format": "date",
            "nullable": true,
            "title": "End Date",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "start_date": {
            "default": null,
            "description": "Include statements whose period ends on or after this date.",
            "format": "date",
            "nullable": true,
            "title": "Start Date",
            "type": "string"
          }
        },
        "required": [
          "document_type",
          "rationale"
        ],
        "title": "ListTreasuryDocumentsPublicRequest",
        "type": "object"
      },
      "ListUnmatchedReceiptsRequestBody": {
        "description": "List the user's unmatched receipts (emailed, uploaded, etc.) with receipt UUIDs.",
        "properties": {
          "from_transaction_date": {
            "default": null,
            "description": "Optional inclusive lower bound on the receipt transaction date (YYYY-MM-DD).",
            "format": "date",
            "nullable": true,
            "title": "From Transaction Date",
            "type": "string"
          },
          "merchant": {
            "default": null,
            "description": "Optional case-insensitive substring of the receipt's merchant name.",
            "maxLength": 200,
            "nullable": true,
            "title": "Merchant",
            "type": "string"
          },
          "offset": {
            "default": 0,
            "description": "next_offset from a previous page; 0 for the first page.",
            "minimum": 0,
            "title": "Offset",
            "type": "integer"
          },
          "page_size": {
            "default": 20,
            "description": "Maximum receipts to return (at most 50).",
            "maximum": 50,
            "minimum": 1,
            "title": "Page Size",
            "type": "integer"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "to_transaction_date": {
            "default": null,
            "description": "Optional inclusive upper bound on the receipt transaction date (YYYY-MM-DD).",
            "format": "date",
            "nullable": true,
            "title": "To Transaction Date",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "ListUnmatchedReceipts",
        "type": "object"
      },
      "ListUnmatchedReceiptsResultJsonMode": {
        "properties": {
          "next_offset": {
            "default": null,
            "description": "Offset for the next page; null when there are no more receipts.",
            "nullable": true,
            "title": "Next Offset",
            "type": "integer"
          },
          "receipts": {
            "items": {
              "$ref": "#/components/schemas/UnmatchedReceiptJsonMode"
            },
            "title": "Receipts",
            "type": "array"
          }
        },
        "required": [
          "receipts"
        ],
        "title": "ListUnmatchedReceiptsResult",
        "type": "object"
      },
      "ListVendorAgreementsRequestBody": {
        "description": "List and filter vendor agreements/contracts across the business. Returns agreement details including dates, values, renewal status, line items, and days remaining. All filters are optional \u2014 omit all to list all agreements, or combine filters to narrow results.",
        "properties": {
          "auto_renews": {
            "default": null,
            "description": "Filter by auto-renewal flag",
            "nullable": true,
            "title": "Auto Renews",
            "type": "boolean"
          },
          "contract_owner_ids": {
            "default": null,
            "description": "Filter by contract owner user UUIDs",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "title": "Contract Owner Ids",
            "type": "array"
          },
          "department_ids": {
            "default": null,
            "description": "Filter by department UUIDs",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "title": "Department Ids",
            "type": "array"
          },
          "evaluate_price_benchmarks": {
            "default": false,
            "description": "Evaluate has_price_benchmarks for every returned agreement. Without this, availability is evaluated only when the listing is filtered to one vendor.",
            "title": "Evaluate Price Benchmarks",
            "type": "boolean"
          },
          "has_end_date": {
            "default": null,
            "description": "If true, only agreements with an end_date; if false, only those without",
            "nullable": true,
            "title": "Has End Date",
            "type": "boolean"
          },
          "include_archived": {
            "default": false,
            "description": "Include archived agreements in the results",
            "title": "Include Archived",
            "type": "boolean"
          },
          "include_vendor_spend": {
            "default": false,
            "description": "Attach each agreement's vendor_spend (the vendor's last-30-day, year-to-date, last-365-day, and all-time Ramp spend). Requires the global vendor read permission; otherwise vendor_spend stays null.",
            "title": "Include Vendor Spend",
            "type": "boolean"
          },
          "is_active": {
            "default": null,
            "description": "If true, only show contracts that haven't expired",
            "nullable": true,
            "title": "Is Active",
            "type": "boolean"
          },
          "is_up_for_renewal": {
            "default": null,
            "description": "If true, only show contracts within the 90-day renewal window",
            "nullable": true,
            "title": "Is Up For Renewal",
            "type": "boolean"
          },
          "limit": {
            "default": 25,
            "description": "Maximum number of results to return (max 100)",
            "minimum": 1,
            "title": "Limit",
            "type": "integer"
          },
          "max_days_remaining": {
            "default": null,
            "description": "Filter: days_remaining <= this value",
            "nullable": true,
            "title": "Max Days Remaining",
            "type": "integer"
          },
          "max_end_date": {
            "default": null,
            "description": "Filter: end_date <= this date",
            "format": "date",
            "nullable": true,
            "title": "Max End Date",
            "type": "string"
          },
          "max_last_date_to_terminate": {
            "default": null,
            "description": "Filter: last_date_to_terminate <= this date",
            "format": "date",
            "nullable": true,
            "title": "Max Last Date To Terminate",
            "type": "string"
          },
          "max_start_date": {
            "default": null,
            "description": "Filter: start_date <= this date",
            "format": "date",
            "nullable": true,
            "title": "Max Start Date",
            "type": "string"
          },
          "max_total_value": {
            "default": null,
            "description": "Filter: total_value <= this amount (in dollars)",
            "nullable": true,
            "oneOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "title": "Max Total Value"
          },
          "min_days_remaining": {
            "default": null,
            "description": "Filter: days_remaining >= this value (useful for 'expiring in next N days')",
            "nullable": true,
            "title": "Min Days Remaining",
            "type": "integer"
          },
          "min_end_date": {
            "default": null,
            "description": "Filter: end_date >= this date",
            "format": "date",
            "nullable": true,
            "title": "Min End Date",
            "type": "string"
          },
          "min_last_date_to_terminate": {
            "default": null,
            "description": "Filter: last_date_to_terminate >= this date",
            "format": "date",
            "nullable": true,
            "title": "Min Last Date To Terminate",
            "type": "string"
          },
          "min_start_date": {
            "default": null,
            "description": "Filter: start_date >= this date",
            "format": "date",
            "nullable": true,
            "title": "Min Start Date",
            "type": "string"
          },
          "min_total_value": {
            "default": null,
            "description": "Filter: total_value >= this amount (in dollars)",
            "nullable": true,
            "oneOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "title": "Min Total Value"
          },
          "payee_agreement_ids": {
            "default": null,
            "description": "Filter to specific agreements by UUID",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "title": "Payee Agreement Ids",
            "type": "array"
          },
          "payee_owner_ids": {
            "default": null,
            "description": "Filter by vendor owner user UUIDs (distinct from contract owners)",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "title": "Payee Owner Ids",
            "type": "array"
          },
          "payee_uuid": {
            "default": null,
            "description": "Filter by vendor UUID",
            "nullable": true,
            "title": "Payee Uuid",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "renewal_status": {
            "default": null,
            "description": "Filter by renewal status. Values: NOT_STARTED (active), PLANNING (draft), EVALUATING, TERMINATED, RENEWED, CANCELLED, INITIATED (requested), REJECTED, EXPIRED (ended)",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "title": "Renewal Status",
            "type": "array"
          },
          "sort_ascending": {
            "default": null,
            "description": "Sort direction. Default: true (ascending).",
            "nullable": true,
            "title": "Sort Ascending",
            "type": "boolean"
          },
          "sort_by": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayeeAgreementOrderingRequestBody"
              }
            ],
            "default": null,
            "description": "Sort results by: TOTAL_AMOUNT, NUM_DAYS_REMAINING, or END_DATE. Default: NUM_DAYS_REMAINING ascending.",
            "nullable": true
          },
          "vendor_name": {
            "default": null,
            "description": "Filter by vendor name (case-insensitive partial match)",
            "nullable": true,
            "title": "Vendor Name",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "ListVendorAgreements",
        "type": "object"
      },
      "ListVendorAgreementsResult": {
        "properties": {
          "agreements": {
            "description": "Candidate matching agreements, not a resolved selection. If multiple candidates plausibly match an unscoped request, ask the user which agreement they mean before acting on one. Result order does not indicate user intent.",
            "items": {
              "$ref": "#/components/schemas/AgreementSummary"
            },
            "title": "Agreements",
            "type": "array"
          },
          "avg_days_remaining": {
            "default": null,
            "description": "Average days remaining across ALL matching agreements",
            "nullable": true,
            "title": "Avg Days Remaining",
            "type": "number"
          },
          "benchmarkable_count": {
            "default": null,
            "description": "Number of evaluated matching agreements that can be price benchmarked; null when availability could not be evaluated.",
            "nullable": true,
            "title": "Benchmarkable Count",
            "type": "integer"
          },
          "benchmarkable_count_is_complete": {
            "default": true,
            "description": "False when the lookup evaluated only the first matching agreements, so benchmarkable_count is a lower bound and unlisted agreements may also be benchmarkable.",
            "title": "Benchmarkable Count Is Complete",
            "type": "boolean"
          },
          "required_action_if_multiple_candidates": {
            "default": "ask_user_to_select",
            "enum": [
              "ask_user_to_select"
            ],
            "title": "Required Action If Multiple Candidates",
            "type": "string"
          },
          "required_action_if_single_candidate": {
            "default": "get_exact_agreement_details_before_acting",
            "enum": [
              "get_exact_agreement_details_before_acting"
            ],
            "title": "Required Action If Single Candidate",
            "type": "string"
          },
          "result_usage": {
            "default": "candidate_agreements_not_a_resolved_selection",
            "enum": [
              "candidate_agreements_not_a_resolved_selection"
            ],
            "title": "Result Usage",
            "type": "string"
          },
          "total_count": {
            "description": "Total matching count (may exceed len(agreements) due to limit)",
            "title": "Total Count",
            "type": "integer"
          },
          "total_value": {
            "default": null,
            "description": "Sum of total_value across ALL matching agreements (not just this page)",
            "nullable": true,
            "title": "Total Value",
            "type": "number"
          }
        },
        "required": [
          "agreements",
          "total_count"
        ],
        "title": "ListVendorAgreementsResult",
        "type": "object"
      },
      "ListVendorContactsByPayeeRequestBody": {
        "description": "List contacts for a specific vendor by vendor UUID.\nReturns contact details including UUID, name, email, phone, and default status.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "vendor_uuid": {
            "description": "UUID of the vendor to list contacts for.",
            "format": "uuid",
            "title": "Vendor Uuid",
            "type": "string"
          }
        },
        "required": [
          "rationale",
          "vendor_uuid"
        ],
        "title": "ListVendorContactsByPayee",
        "type": "object"
      },
      "ListVendorContactsByPayeeResult": {
        "properties": {
          "contacts": {
            "description": "Contacts for the vendor",
            "items": {
              "$ref": "#/components/schemas/VendorContactResult"
            },
            "title": "Contacts",
            "type": "array"
          },
          "total_count": {
            "description": "Total number of contacts for the vendor",
            "title": "Total Count",
            "type": "integer"
          }
        },
        "required": [
          "contacts",
          "total_count"
        ],
        "title": "ListVendorContactsByPayeeResult",
        "type": "object"
      },
      "ListWalletTransfersOutput": {
        "properties": {
          "message": {
            "title": "Message",
            "type": "string"
          },
          "next_cursor": {
            "default": null,
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "total_count": {
            "title": "Total Count",
            "type": "integer"
          },
          "transfers": {
            "items": {
              "$ref": "#/components/schemas/WalletTransferInfo"
            },
            "title": "Transfers",
            "type": "array"
          }
        },
        "required": [
          "message",
          "total_count",
          "transfers"
        ],
        "title": "ListWalletTransfersOutput",
        "type": "object"
      },
      "ListWalletTransfersRequestBody": {
        "description": "List transfers for the user's business Ramp wallet accounts.\n\nReturns a list of transfers including deposits, withdrawals, and other\ntransactions with details like amount, status, and dates.",
        "properties": {
          "cursor": {
            "default": null,
            "description": "Cursor returned by the previous page's next_cursor. Preserve the same wallet account, date filters, and page size when continuing. Omit the cursor when changing accounts.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "from_date": {
            "default": null,
            "description": "Filter transfers from this date (inclusive)",
            "format": "date",
            "nullable": true,
            "title": "From Date",
            "type": "string"
          },
          "page_size": {
            "default": 20,
            "description": "Number of transfers to return per page (max 100)",
            "maximum": 100,
            "minimum": 1,
            "title": "Page Size",
            "type": "integer"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "to_date": {
            "default": null,
            "description": "Filter transfers up to this date (inclusive)",
            "format": "date",
            "nullable": true,
            "title": "To Date",
            "type": "string"
          },
          "wallet_account_uuid": {
            "default": null,
            "description": "Filter transfers to this Ramp wallet account UUID. Omit to list transfers across accessible wallet accounts.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "ListWalletTransfers",
        "type": "object"
      },
      "ListedCardActivationStatus": {
        "enum": [
          "active",
          "blocked",
          "needs_delivery_confirmation",
          "pending_delivery",
          "ready_to_activate"
        ],
        "title": "ListedCardActivationStatus",
        "type": "string"
      },
      "ListedCardInfo": {
        "properties": {
          "activation_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ListedCardActivationStatus"
              }
            ],
            "description": "The card's current activation or blocking status."
          },
          "active_locks": {
            "description": "All effective locks currently blocking this card.",
            "items": {
              "$ref": "#/components/schemas/CardLockInfo"
            },
            "title": "Active Locks",
            "type": "array"
          },
          "automatic_routing_enabled": {
            "default": false,
            "description": "Whether this card picks a fund per transaction instead of drawing from one linked fund.",
            "title": "Automatic Routing Enabled",
            "type": "boolean"
          },
          "blocking_task_count": {
            "default": 0,
            "description": "Number of active task-sanction locks blocking this card. One lock can cover several overdue items, so this is not the number of items.",
            "title": "Blocking Task Count",
            "type": "integer"
          },
          "can_activate": {
            "default": false,
            "description": "Whether the acting user is this card's cardholder and can activate it with ActivateCard or ConfirmCardDeliveryAndActivate. Only the cardholder can activate a card; when false, tell the user the cardholder must activate it from their own Ramp account.",
            "title": "Can Activate",
            "type": "boolean"
          },
          "can_lock": {
            "default": false,
            "description": "Whether the acting user may lock this card.",
            "title": "Can Lock",
            "type": "boolean"
          },
          "can_unlock": {
            "default": false,
            "description": "Whether LockOrUnlockCard with action=unlock would remove a lock on this card for the acting user. False when there is no regular card lock, a fraud lock needs step-up, a linked fund or member lock blocks it, or the acting user lacks authority over the lock. When false, follow each active lock's remediation_action.",
            "title": "Can Unlock",
            "type": "boolean"
          },
          "card_state": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CardState"
              }
            ],
            "default": null,
            "description": "Effective lifecycle state; an ACTIVE card with a lock is reported as SUSPENDED.",
            "nullable": true
          },
          "card_type": {
            "title": "Card Type",
            "type": "string"
          },
          "display_name": {
            "nullable": true,
            "title": "Display Name",
            "type": "string"
          },
          "estimated_delivery_business_days": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ShippingDeliveryEstimate"
              }
            ],
            "default": null,
            "description": "Expected transit time for a physical card's shipping method and destination, in business days after shipment. Null when unknown or for virtual cards.",
            "nullable": true
          },
          "fulfillment_status": {
            "default": null,
            "nullable": true,
            "title": "Fulfillment Status",
            "type": "string"
          },
          "fund_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "description": "UUID of the fund (spend allocation) whose balance and restrictions govern this card; matches GetUserFunds ids. Null when the card routes spend automatically across the cardholder's funds.",
            "nullable": true
          },
          "id": {
            "$ref": "#/components/schemas/EntityUUIDStr"
          },
          "in_renewal_window": {
            "default": false,
            "description": "Whether this physical card is expiring soon or expired and can be renewed from Home > Card Management > Renew card instead of being replaced.",
            "title": "In Renewal Window",
            "type": "boolean"
          },
          "is_locked": {
            "default": false,
            "description": "Whether any effective lock currently blocks this card.",
            "title": "Is Locked",
            "type": "boolean"
          },
          "is_physical": {
            "title": "Is Physical",
            "type": "boolean"
          },
          "is_primary": {
            "default": false,
            "description": "Whether this is the cardholder's primary card. An active or unactivated virtual primary also blocks a new primary-card order; this read does not establish promotion eligibility or preservation of the card's details, limits, or routing.",
            "title": "Is Primary",
            "type": "boolean"
          },
          "is_spendable": {
            "default": false,
            "description": "Whether the card can currently authorize transactions.",
            "title": "Is Spendable",
            "type": "boolean"
          },
          "last_four": {
            "description": "Last four digits of the card number; withheld for unactivated cards in SMS.",
            "nullable": true,
            "title": "Last Four",
            "type": "string"
          },
          "partially_activated": {
            "default": false,
            "title": "Partially Activated",
            "type": "boolean"
          },
          "routable_fund_ids": {
            "description": "For an automatically routed card, the active funds it can charge: the cardholder has access and the fund allows the Ramp card.",
            "items": {
              "$ref": "#/components/schemas/EntityUUIDStr"
            },
            "title": "Routable Fund Ids",
            "type": "array"
          },
          "shipping_eta": {
            "default": null,
            "description": "Carrier-estimated arrival date for a shipped physical card.",
            "format": "date-time",
            "nullable": true,
            "title": "Shipping Eta",
            "type": "string"
          },
          "shipping_tracking_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ShippingTrackingStatus"
              }
            ],
            "default": null,
            "description": "Physical-card tracking availability: 'available' means a carrier tracking number exists; 'pending' means the shipping method supports tracking but none has been assigned yet; 'unavailable' means this shipment's method and destination do not support tracking. Null when the shipping method or destination is unknown, or for virtual cards.",
            "nullable": true
          },
          "shipping_tracking_url": {
            "default": null,
            "description": "Carrier tracking link for a shipped physical card.",
            "nullable": true,
            "title": "Shipping Tracking Url",
            "type": "string"
          }
        },
        "required": [
          "activation_status",
          "active_locks",
          "automatic_routing_enabled",
          "blocking_task_count",
          "can_activate",
          "can_lock",
          "can_unlock",
          "card_state",
          "card_type",
          "display_name",
          "estimated_delivery_business_days",
          "fulfillment_status",
          "fund_id",
          "id",
          "in_renewal_window",
          "is_locked",
          "is_physical",
          "is_primary",
          "is_spendable",
          "last_four",
          "partially_activated",
          "routable_fund_ids",
          "shipping_eta",
          "shipping_tracking_status",
          "shipping_tracking_url"
        ],
        "title": "ListedCardInfo",
        "type": "object"
      },
      "LiveStatusBadge": {
        "description": "Punctuality of a booking, orthogonal to its phase.\n\nA flight can be boarding and delayed at once, so delay is a badge (paired with a\ndelay in minutes) rather than a state.",
        "enum": [
          "canceled",
          "delayed",
          "diverted",
          "early",
          "on_time",
          "unknown"
        ],
        "title": "LiveStatusBadge",
        "type": "string"
      },
      "LiveStatusSource": {
        "description": "Where the live status of a booking came from.",
        "enum": [
          "live",
          "scheduled",
          "stale",
          "unavailable"
        ],
        "title": "LiveStatusSource",
        "type": "string"
      },
      "LocalizedApprovalChainDetails": {
        "properties": {
          "current_outstanding": {
            "$ref": "#/components/schemas/CurrentOutstanding"
          },
          "diagnostics": {
            "items": {
              "$ref": "#/components/schemas/EnumWithLabel"
            },
            "title": "Diagnostics",
            "type": "array"
          },
          "freshness": {
            "$ref": "#/components/schemas/LocalizedApprovalChainFreshness"
          },
          "instance": {
            "$ref": "#/components/schemas/LocalizedApprovalInstanceSummary"
          },
          "policy": {
            "$ref": "#/components/schemas/PolicySnapshot"
          },
          "steps": {
            "items": {
              "$ref": "#/components/schemas/LocalizedChainStep"
            },
            "title": "Steps",
            "type": "array"
          },
          "timeline": {
            "items": {
              "$ref": "#/components/schemas/LocalizedTimelineEvent"
            },
            "title": "Timeline",
            "type": "array"
          },
          "timeline_truncated_count": {
            "default": 0,
            "title": "Timeline Truncated Count",
            "type": "integer"
          }
        },
        "required": [
          "current_outstanding",
          "diagnostics",
          "freshness",
          "instance",
          "policy",
          "steps",
          "timeline"
        ],
        "title": "LocalizedApprovalChainDetails",
        "type": "object"
      },
      "LocalizedApprovalChainFreshness": {
        "properties": {
          "state_fingerprint": {
            "title": "State Fingerprint",
            "type": "string"
          }
        },
        "required": [
          "state_fingerprint"
        ],
        "title": "LocalizedApprovalChainFreshness",
        "type": "object"
      },
      "LocalizedApprovalInstanceLineage": {
        "properties": {
          "diagnostics": {
            "items": {
              "$ref": "#/components/schemas/EnumWithLabel"
            },
            "title": "Diagnostics",
            "type": "array"
          },
          "entity_type": {
            "$ref": "#/components/schemas/ApprovalEntityType"
          },
          "entity_uuid": {
            "format": "uuid",
            "title": "Entity Uuid",
            "type": "string"
          },
          "instances": {
            "items": {
              "$ref": "#/components/schemas/LocalizedApprovalInstanceSummary"
            },
            "title": "Instances",
            "type": "array"
          }
        },
        "required": [
          "diagnostics",
          "entity_type",
          "entity_uuid",
          "instances"
        ],
        "title": "LocalizedApprovalInstanceLineage",
        "type": "object"
      },
      "LocalizedApprovalInstanceSummary": {
        "properties": {
          "approval_instance_uuid": {
            "format": "uuid",
            "title": "Approval Instance Uuid",
            "type": "string"
          },
          "created_at": {
            "title": "Created At",
            "type": "string"
          },
          "finalized_at": {
            "nullable": true,
            "title": "Finalized At",
            "type": "string"
          },
          "is_current": {
            "title": "Is Current",
            "type": "boolean"
          },
          "policy_display_name": {
            "nullable": true,
            "title": "Policy Display Name",
            "type": "string"
          },
          "requesting_user": {
            "$ref": "#/components/schemas/UserRef"
          },
          "spend_type": {
            "nullable": true,
            "title": "Spend Type",
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/EnumWithLabel"
          },
          "terminated_at": {
            "nullable": true,
            "title": "Terminated At",
            "type": "string"
          }
        },
        "required": [
          "approval_instance_uuid",
          "created_at",
          "finalized_at",
          "is_current",
          "policy_display_name",
          "requesting_user",
          "spend_type",
          "status",
          "terminated_at"
        ],
        "title": "LocalizedApprovalInstanceSummary",
        "type": "object"
      },
      "LocalizedBlankCanvasApproval": {
        "properties": {
          "approval_instance_uuid": {
            "format": "uuid",
            "title": "Approval Instance Uuid",
            "type": "string"
          },
          "approver_names_hidden": {
            "title": "Approver Names Hidden",
            "type": "boolean"
          },
          "created_at": {
            "title": "Created At",
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/EnumWithLabel"
          },
          "step": {
            "allOf": [
              {
                "$ref": "#/components/schemas/LocalizedBlankCanvasStep"
              }
            ],
            "nullable": true
          },
          "timeline": {
            "items": {
              "$ref": "#/components/schemas/LocalizedTimelineEvent"
            },
            "title": "Timeline",
            "type": "array"
          },
          "timeline_truncated_count": {
            "title": "Timeline Truncated Count",
            "type": "integer"
          },
          "waiting_on_users": {
            "items": {
              "$ref": "#/components/schemas/UserRef"
            },
            "title": "Waiting On Users",
            "type": "array"
          }
        },
        "required": [
          "approval_instance_uuid",
          "approver_names_hidden",
          "created_at",
          "status",
          "step",
          "timeline",
          "timeline_truncated_count",
          "waiting_on_users"
        ],
        "title": "LocalizedBlankCanvasApproval",
        "type": "object"
      },
      "LocalizedBlankCanvasApprovalChainDetails": {
        "properties": {
          "nodes": {
            "items": {
              "$ref": "#/components/schemas/LocalizedBlankCanvasNodeDetails"
            },
            "title": "Nodes",
            "type": "array"
          },
          "state_fingerprint": {
            "title": "State Fingerprint",
            "type": "string"
          },
          "status": {
            "title": "Status",
            "type": "string"
          },
          "truncated": {
            "title": "Truncated",
            "type": "boolean"
          },
          "workflow_execution_uuid": {
            "format": "uuid",
            "title": "Workflow Execution Uuid",
            "type": "string"
          },
          "workflow_kind": {
            "default": "BLANK_CANVAS",
            "enum": [
              "BLANK_CANVAS"
            ],
            "title": "Workflow Kind",
            "type": "string"
          }
        },
        "required": [
          "nodes",
          "state_fingerprint",
          "status",
          "truncated",
          "workflow_execution_uuid"
        ],
        "title": "LocalizedBlankCanvasApprovalChainDetails",
        "type": "object"
      },
      "LocalizedBlankCanvasExecutionLineage": {
        "properties": {
          "executions": {
            "items": {
              "$ref": "#/components/schemas/LocalizedBlankCanvasExecutionSummary"
            },
            "title": "Executions",
            "type": "array"
          },
          "truncated": {
            "title": "Truncated",
            "type": "boolean"
          },
          "workflow_kind": {
            "default": "BLANK_CANVAS",
            "enum": [
              "BLANK_CANVAS"
            ],
            "title": "Workflow Kind",
            "type": "string"
          }
        },
        "required": [
          "executions",
          "truncated"
        ],
        "title": "LocalizedBlankCanvasExecutionLineage",
        "type": "object"
      },
      "LocalizedBlankCanvasExecutionSummary": {
        "properties": {
          "created_at": {
            "default": null,
            "nullable": true,
            "title": "Created At",
            "type": "string"
          },
          "status": {
            "title": "Status",
            "type": "string"
          },
          "workflow_execution_uuid": {
            "format": "uuid",
            "title": "Workflow Execution Uuid",
            "type": "string"
          }
        },
        "required": [
          "status",
          "workflow_execution_uuid"
        ],
        "title": "LocalizedBlankCanvasExecutionSummary",
        "type": "object"
      },
      "LocalizedBlankCanvasNodeDetails": {
        "properties": {
          "action": {
            "nullable": true,
            "title": "Action",
            "type": "string"
          },
          "is_projected": {
            "title": "Is Projected",
            "type": "boolean"
          },
          "node_id": {
            "title": "Node Id",
            "type": "string"
          },
          "recorded_approvals": {
            "items": {
              "$ref": "#/components/schemas/LocalizedBlankCanvasApproval"
            },
            "title": "Recorded Approvals",
            "type": "array"
          },
          "title": {
            "nullable": true,
            "title": "Title",
            "type": "string"
          },
          "visit_status": {
            "$ref": "#/components/schemas/NodeVisitStatus"
          }
        },
        "required": [
          "action",
          "is_projected",
          "node_id",
          "recorded_approvals",
          "title",
          "visit_status"
        ],
        "title": "LocalizedBlankCanvasNodeDetails",
        "type": "object"
      },
      "LocalizedBlankCanvasStep": {
        "properties": {
          "adjustments": {
            "$ref": "#/components/schemas/LocalizedStepAdjustments"
          },
          "approvers": {
            "items": {
              "$ref": "#/components/schemas/LocalizedStepApprover"
            },
            "title": "Approvers",
            "type": "array"
          },
          "approvers_truncated_count": {
            "title": "Approvers Truncated Count",
            "type": "integer"
          },
          "block_uuid": {
            "format": "uuid",
            "title": "Block Uuid",
            "type": "string"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EnumWithLabel"
              }
            ],
            "nullable": true
          },
          "step_type": {
            "title": "Step Type",
            "type": "string"
          },
          "tags": {
            "items": {
              "$ref": "#/components/schemas/LocalizedStepTag"
            },
            "title": "Tags",
            "type": "array"
          }
        },
        "required": [
          "adjustments",
          "approvers",
          "approvers_truncated_count",
          "block_uuid",
          "status",
          "step_type",
          "tags"
        ],
        "title": "LocalizedBlankCanvasStep",
        "type": "object"
      },
      "LocalizedBlankCanvasTargetResolution": {
        "properties": {
          "lineage": {
            "allOf": [
              {
                "$ref": "#/components/schemas/LocalizedBlankCanvasExecutionLineage"
              }
            ],
            "nullable": true
          },
          "resolution": {
            "enum": [
              "AMBIGUOUS",
              "SELECTED"
            ],
            "title": "Resolution",
            "type": "string"
          },
          "selected_workflow_execution_uuid": {
            "format": "uuid",
            "nullable": true,
            "title": "Selected Workflow Execution Uuid",
            "type": "string"
          },
          "workflow_kind": {
            "default": "BLANK_CANVAS",
            "enum": [
              "BLANK_CANVAS"
            ],
            "title": "Workflow Kind",
            "type": "string"
          }
        },
        "required": [
          "lineage",
          "resolution",
          "selected_workflow_execution_uuid"
        ],
        "title": "LocalizedBlankCanvasTargetResolution",
        "type": "object"
      },
      "LocalizedChainStep": {
        "properties": {
          "adjustments": {
            "$ref": "#/components/schemas/LocalizedStepAdjustments"
          },
          "approvers": {
            "items": {
              "$ref": "#/components/schemas/LocalizedStepApprover"
            },
            "title": "Approvers",
            "type": "array"
          },
          "approvers_truncated_count": {
            "title": "Approvers Truncated Count",
            "type": "integer"
          },
          "block_uuid": {
            "format": "uuid",
            "title": "Block Uuid",
            "type": "string"
          },
          "order": {
            "title": "Order",
            "type": "integer"
          },
          "state": {
            "enum": [
              "COMPLETED",
              "CURRENT",
              "FUTURE"
            ],
            "title": "State",
            "type": "string"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EnumWithLabel"
              }
            ],
            "default": null,
            "nullable": true
          },
          "step_type": {
            "title": "Step Type",
            "type": "string"
          },
          "tags": {
            "items": {
              "$ref": "#/components/schemas/LocalizedStepTag"
            },
            "title": "Tags",
            "type": "array"
          }
        },
        "required": [
          "adjustments",
          "approvers",
          "approvers_truncated_count",
          "block_uuid",
          "order",
          "state",
          "step_type",
          "tags"
        ],
        "title": "LocalizedChainStep",
        "type": "object"
      },
      "LocalizedDelegateApprovalEvent": {
        "properties": {
          "created_at": {
            "title": "Created At",
            "type": "string"
          },
          "user_was_delegate_approver": {
            "title": "User Was Delegate Approver",
            "type": "boolean"
          },
          "user_who_approved": {
            "$ref": "#/components/schemas/UserRef"
          },
          "users_removed_by_approval": {
            "items": {
              "$ref": "#/components/schemas/UserRef"
            },
            "title": "Users Removed By Approval",
            "type": "array"
          }
        },
        "required": [
          "created_at",
          "user_was_delegate_approver",
          "user_who_approved",
          "users_removed_by_approval"
        ],
        "title": "LocalizedDelegateApprovalEvent",
        "type": "object"
      },
      "LocalizedStepAdjustments": {
        "properties": {
          "delegate_approval_events": {
            "items": {
              "$ref": "#/components/schemas/LocalizedDelegateApprovalEvent"
            },
            "title": "Delegate Approval Events",
            "type": "array"
          },
          "replaced_original_block_uuid": {
            "default": null,
            "format": "uuid",
            "nullable": true,
            "title": "Replaced Original Block Uuid",
            "type": "string"
          },
          "separation_of_duties": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SeparationOfDutiesAdjustment"
              }
            ],
            "default": null,
            "nullable": true
          }
        },
        "required": [
          "delegate_approval_events"
        ],
        "title": "LocalizedStepAdjustments",
        "type": "object"
      },
      "LocalizedStepApprover": {
        "properties": {
          "acted": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EnumWithLabel"
              }
            ],
            "default": null,
            "nullable": true
          },
          "acted_at": {
            "default": null,
            "nullable": true,
            "title": "Acted At",
            "type": "string"
          },
          "assignment": {
            "$ref": "#/components/schemas/ApproverAssignment"
          },
          "user": {
            "$ref": "#/components/schemas/UserRef"
          }
        },
        "required": [
          "assignment",
          "user"
        ],
        "title": "LocalizedStepApprover",
        "type": "object"
      },
      "LocalizedStepTag": {
        "properties": {
          "created_at": {
            "default": null,
            "nullable": true,
            "title": "Created At",
            "type": "string"
          },
          "created_by": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UserRef"
              }
            ],
            "default": null,
            "nullable": true
          },
          "reason": {
            "default": null,
            "nullable": true,
            "title": "Reason",
            "type": "string"
          },
          "tag": {
            "title": "Tag",
            "type": "string"
          }
        },
        "required": [
          "tag"
        ],
        "title": "LocalizedStepTag",
        "type": "object"
      },
      "LocalizedTimelineEvent": {
        "properties": {
          "acting_user": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UserRef"
              }
            ],
            "default": null,
            "nullable": true
          },
          "at": {
            "title": "At",
            "type": "string"
          },
          "block_uuid": {
            "default": null,
            "format": "uuid",
            "nullable": true,
            "title": "Block Uuid",
            "type": "string"
          },
          "event_type": {
            "$ref": "#/components/schemas/EnumWithLabel"
          },
          "notes": {
            "default": null,
            "nullable": true,
            "title": "Notes",
            "type": "string"
          }
        },
        "required": [
          "at",
          "event_type"
        ],
        "title": "LocalizedTimelineEvent",
        "type": "object"
      },
      "LockInfo": {
        "properties": {
          "acting_user_full_name": {
            "default": null,
            "nullable": true,
            "title": "Acting User Full Name",
            "type": "string"
          },
          "acting_user_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "nullable": true
          },
          "inserted_at": {
            "title": "Inserted At",
            "type": "string"
          },
          "missing_item_transactions": {
            "items": {
              "$ref": "#/components/schemas/MissingItemLockTransactionInfo"
            },
            "title": "Missing Item Transactions",
            "type": "array"
          },
          "reason": {
            "title": "Reason",
            "type": "string"
          },
          "type": {
            "$ref": "#/components/schemas/LockType"
          }
        },
        "required": [
          "acting_user_id",
          "inserted_at",
          "reason",
          "type"
        ],
        "title": "LockInfo",
        "type": "object"
      },
      "LockOrUnlockCardRequestBody": {
        "description": "Lock or unlock a card the acting user is authorized to manage. Locking prevents all transactions on it until unlocked.",
        "properties": {
          "action": {
            "enum": [
              "lock",
              "unlock"
            ],
            "title": "Action",
            "type": "string"
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "description": "The card UUID. For action=lock the card must report can_lock=true; for action=unlock it must report can_unlock=true."
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "action",
          "id",
          "rationale"
        ],
        "title": "LockOrUnlockCard",
        "type": "object"
      },
      "LockOrUnlockRouterApiKeyRequestBody": {
        "description": "Lock a Router API key so it stops serving requests, or unlock it.\n\nAdmins can lock or unlock any Router key in the business; other users only\ntheir own keys. Router can keep a key blocked for other reasons, such as a\nspend limit; the result lists them.",
        "properties": {
          "action": {
            "description": "lock stops the key from serving requests; unlock allows it again.",
            "enum": [
              "lock",
              "unlock"
            ],
            "title": "Action",
            "type": "string"
          },
          "api_key_id": {
            "description": "Ramp id of the Router API key.",
            "format": "uuid",
            "title": "Api Key Id",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "reason": {
            "default": null,
            "description": "Why the key is locked, shown in its activity. Lock only.",
            "maxLength": 500,
            "nullable": true,
            "title": "Reason",
            "type": "string"
          }
        },
        "required": [
          "action",
          "api_key_id",
          "rationale"
        ],
        "title": "LockOrUnlockRouterApiKey",
        "type": "object"
      },
      "LockOrUnlockSpendAllocationMemberRequestBody": {
        "description": "Lock or unlock a specific member's access to a fund (spend allocation).",
        "properties": {
          "action": {
            "enum": [
              "lock",
              "unlock"
            ],
            "title": "Action",
            "type": "string"
          },
          "id": {
            "description": "The UUID of the fund to lock or unlock the member from.",
            "title": "Id",
            "type": "string"
          },
          "member_id": {
            "description": "The UUID of the member whose access to lock or unlock.",
            "title": "Member Id",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "action",
          "id",
          "member_id",
          "rationale"
        ],
        "title": "LockOrUnlockSpendAllocationMember",
        "type": "object"
      },
      "LockOrUnlockSpendAllocationMemberResult": {
        "properties": {
          "action": {
            "title": "Action",
            "type": "string"
          },
          "display_name": {
            "title": "Display Name",
            "type": "string"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "member_id": {
            "title": "Member Id",
            "type": "string"
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "success": {
            "title": "Success",
            "type": "boolean"
          }
        },
        "required": [
          "action",
          "display_name",
          "id",
          "member_id",
          "message",
          "success"
        ],
        "title": "LockOrUnlockSpendAllocationMemberResult",
        "type": "object"
      },
      "LockOrUnlockSpendAllocationRequestBody": {
        "description": "Lock or unlock a fund (spend allocation) at the fund level, affecting all members.",
        "properties": {
          "action": {
            "enum": [
              "lock",
              "unlock"
            ],
            "title": "Action",
            "type": "string"
          },
          "id": {
            "description": "The UUID of the fund to lock or unlock.",
            "title": "Id",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "action",
          "id",
          "rationale"
        ],
        "title": "LockOrUnlockSpendAllocation",
        "type": "object"
      },
      "LockOrUnlockSpendAllocationResult": {
        "properties": {
          "action": {
            "title": "Action",
            "type": "string"
          },
          "display_name": {
            "title": "Display Name",
            "type": "string"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "success": {
            "title": "Success",
            "type": "boolean"
          }
        },
        "required": [
          "action",
          "display_name",
          "id",
          "message",
          "success"
        ],
        "title": "LockOrUnlockSpendAllocationResult",
        "type": "object"
      },
      "LockType": {
        "description": "The manner in which a spend allocation has been locked.\n\nRoughly related to authorizer restrictions",
        "enum": [
          "ARCHIVED_FUNDS_LOCK",
          "BEFORE_DATE",
          "MISSING_POLICY_ITEMS",
          "START_DATE",
          "SUSPENSION",
          "TASK_SANCTION",
          "TOTAL_ACTIVATION_REQUIRED"
        ],
        "title": "LockType",
        "type": "string"
      },
      "LoyaltyProgramCandidate": {
        "properties": {
          "program_name": {
            "description": "Supported loyalty program name to retry with.",
            "title": "Program Name",
            "type": "string"
          }
        },
        "required": [
          "program_name"
        ],
        "title": "LoyaltyProgramCandidate",
        "type": "object"
      },
      "LoyaltyProgramDataSchema": {
        "description": "Pydantic schema for loyalty program data.",
        "properties": {
          "display_name": {
            "title": "Display Name",
            "type": "string"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "logo": {
            "default": null,
            "nullable": true,
            "title": "Logo",
            "type": "string"
          }
        },
        "required": [
          "display_name",
          "id"
        ],
        "title": "LoyaltyProgramDataSchema",
        "type": "object"
      },
      "LoyaltyProgramInputRequestBody": {
        "description": "Input model for adding/updating a loyalty program.",
        "properties": {
          "loyalty_number": {
            "description": "The user's loyalty number for this program",
            "title": "Loyalty Number",
            "type": "string"
          },
          "loyalty_program_id": {
            "description": "Internal loyalty program ID. For natural-language loyalty program names, use SetTravelerLoyaltyProgram instead.",
            "title": "Loyalty Program Id",
            "type": "string"
          }
        },
        "required": [
          "loyalty_number",
          "loyalty_program_id"
        ],
        "title": "LoyaltyProgramInput",
        "type": "object"
      },
      "MXNCounterpartyDetails": {
        "additionalProperties": true,
        "description": "Bank account details for Mexican peso payments.",
        "properties": {
          "account_name": {
            "description": "Name on the destination account.",
            "title": "Account Name",
            "type": "string"
          },
          "bank_mailing_address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UnvalidatedMailingAddress"
              }
            ],
            "description": "Mailing address of the destination bank.",
            "title": "Bank Mailing Address"
          },
          "clabe": {
            "description": "Standardized Mexican bank account number.",
            "title": "Clabe",
            "type": "string"
          },
          "currency": {
            "default": "MXN",
            "description": "Currency of the destination account.",
            "enum": [
              "MXN"
            ],
            "title": "Currency",
            "type": "string"
          },
          "mailing_address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UnvalidatedMailingAddress"
              }
            ],
            "default": null,
            "description": "Mailing address of the counterparty.",
            "nullable": true
          },
          "payment_method": {
            "default": "INTERNATIONAL",
            "description": "Payment method.",
            "enum": [
              "INTERNATIONAL"
            ],
            "title": "Payment Method",
            "type": "string"
          },
          "type": {
            "default": "mxn",
            "description": "Counterparty details type.",
            "enum": [
              "mxn"
            ],
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "clabe"
        ],
        "title": "MXNCounterpartyDetails",
        "type": "object"
      },
      "ManageRFXCollaboratorsOutput": {
        "properties": {
          "added_count": {
            "description": "Number of newly added collaborators (already-present users are not double counted)",
            "title": "Added Count",
            "type": "integer"
          },
          "collaborators": {
            "description": "The full set of collaborators on the RFX after the changes",
            "items": {
              "$ref": "#/components/schemas/RFXCollaborator"
            },
            "title": "Collaborators",
            "type": "array"
          },
          "removed_count": {
            "description": "Number of collaborators removed",
            "title": "Removed Count",
            "type": "integer"
          }
        },
        "required": [
          "added_count",
          "collaborators",
          "removed_count"
        ],
        "title": "ManageRFXCollaboratorsOutput",
        "type": "object"
      },
      "ManageRFXCollaboratorsRequestBody": {
        "description": "Add and/or remove collaborators on an existing RFX (RFI, RFP, or RFQ).\n\nCollaborators can edit the RFX form and vendor list while it is in DRAFT and\ngrade vendor responses once it is PUBLISHED. Identify each collaborator by\ntheir user UUID \u2014 use `LookupUser` or `GetOrgChart` to resolve a person's\nname to their UUID first.\n\nBoth `add_user_uuids` and `remove_user_uuids` are optional; supply either or\nboth. Adding a user who is already a collaborator is a no-op. To apply the\nsame collaborators across several RFXs (for example multiple RFIs in one\nsourcing event), call this tool once per RFX with the same user UUIDs.",
        "properties": {
          "add_user_uuids": {
            "description": "UUIDs of users to add as collaborators",
            "items": {
              "$ref": "#/components/schemas/UUIDStrRequestBody"
            },
            "title": "Add User Uuids",
            "type": "array"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "remove_user_uuids": {
            "description": "UUIDs of users to remove as collaborators",
            "items": {
              "$ref": "#/components/schemas/UUIDStrRequestBody"
            },
            "title": "Remove User Uuids",
            "type": "array"
          },
          "rfx_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UUIDStrRequestBody"
              }
            ],
            "description": "UUID of the RFX to modify collaborators on"
          }
        },
        "required": [
          "rationale",
          "rfx_id"
        ],
        "title": "ManageRFXCollaborators",
        "type": "object"
      },
      "ManagedPortfolioAccountBalanceInfo": {
        "properties": {
          "account_name": {
            "title": "Account Name",
            "type": "string"
          },
          "account_uuid": {
            "title": "Account Uuid",
            "type": "string"
          },
          "available_balance": {
            "title": "Available Balance",
            "type": "number"
          },
          "currency": {
            "$ref": "#/components/schemas/Currency"
          },
          "market_value": {
            "title": "Market Value",
            "type": "number"
          },
          "statement_balance": {
            "title": "Statement Balance",
            "type": "number"
          },
          "status": {
            "title": "Status",
            "type": "string"
          },
          "total_earnings": {
            "title": "Total Earnings",
            "type": "number"
          },
          "unavailable_balance": {
            "title": "Unavailable Balance",
            "type": "number"
          },
          "yield_rate": {
            "title": "Yield Rate",
            "type": "number"
          }
        },
        "required": [
          "account_name",
          "account_uuid",
          "available_balance",
          "currency",
          "market_value",
          "statement_balance",
          "status",
          "total_earnings",
          "unavailable_balance",
          "yield_rate"
        ],
        "title": "ManagedPortfolioAccountBalanceInfo",
        "type": "object"
      },
      "ManagingExternalFirmInfo": {
        "description": "External firm that manages a department, if any.",
        "properties": {
          "display_name": {
            "title": "Display Name",
            "type": "string"
          },
          "firm_id": {
            "description": "UUID of the managing external firm.",
            "title": "Firm Id",
            "type": "string"
          }
        },
        "required": [
          "display_name",
          "firm_id"
        ],
        "title": "ManagingExternalFirmInfo",
        "type": "object"
      },
      "MappingReason": {
        "description": "Reason for creating an expense-accrual mapping.",
        "enum": [
          "AMORTIZED",
          "AUTOMATIC",
          "COWORKER",
          "MANUAL",
          "MISSING_CODINGS",
          "SUGGESTED"
        ],
        "title": "MappingReason",
        "type": "string"
      },
      "MarkRFXGradedOutput": {
        "properties": {
          "message": {
            "description": "Human-readable result",
            "title": "Message",
            "type": "string"
          },
          "rfx_id": {
            "description": "UUID of the RFX",
            "title": "Rfx Id",
            "type": "string"
          },
          "status": {
            "description": "Lifecycle status after the call; GRADED on success",
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "message",
          "rfx_id",
          "status"
        ],
        "title": "MarkRFXGradedOutput",
        "type": "object"
      },
      "MarkRFXGradedRequestBody": {
        "description": "Mark a PUBLISHED RFX as graded, which unlocks awarding.\n\nRequires at least one submitted vendor response. Moves the RFX from\nPUBLISHED to GRADED so the sourcing event can be awarded.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "rfx_id": {
            "description": "UUID of the PUBLISHED RFX to mark as graded",
            "format": "uuid",
            "title": "Rfx Id",
            "type": "string"
          }
        },
        "required": [
          "rationale",
          "rfx_id"
        ],
        "title": "MarkRFXGraded",
        "type": "object"
      },
      "MarkTransactionMissingReceiptRequestBody": {
        "description": "Flag a transaction as having no receipt.\n\nShould be called whenever the user says \"OOPS\" or if the user says something along the lines of \"I did not receive a receipt ...\". If the user already flagged the transaction as having no receipt, then you may need to call the ProvideNoReceiptReason tool.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "transaction_uuid": {
            "description": "What transaction are they talking about? If they said OOPS, they are referring to the latest transaction.",
            "nullable": true,
            "title": "Transaction Uuid",
            "type": "string"
          }
        },
        "required": [
          "rationale",
          "transaction_uuid"
        ],
        "title": "MarkTransactionMissingReceipt",
        "type": "object"
      },
      "MarkTransactionMissingReceiptResponse": {
        "properties": {
          "message": {
            "title": "Message",
            "type": "string"
          }
        },
        "required": [
          "message"
        ],
        "title": "MarkTransactionMissingReceiptResponse",
        "type": "object"
      },
      "MatchUserToTransactionRequestBody": {
        "description": "Match a user name to a Ramp user in the context of a transaction, for adding as an attendee.\n\nReturns business users ordered by text relevance, with exact-name match information and same-business manager names and UUIDs for the candidates and transaction cardholder, regardless of profile-read permissions. Manager chains are ordered from direct manager upward, exclude deleted users and may be truncated at 10 levels or broken links. Rank and shared ancestry do not prove identity or attendance. If no transaction ID is provided, the user's most recent transaction is used as context. Search is case-insensitive and matches partial names, email, department and location. Results may be incomplete; see has_more.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "search": {
            "description": "Name, partial name, or full name to search for (e.g., 'john', 'smith', 'john smith')",
            "title": "Search",
            "type": "string"
          },
          "transaction_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "UUID of the transaction to use as context for the search. If not provided, uses the user's most recent transaction.",
            "nullable": true
          }
        },
        "required": [
          "rationale",
          "search"
        ],
        "title": "MatchUserToTransaction",
        "type": "object"
      },
      "MatchedBillingSchema": {
        "properties": {
          "currency": {
            "default": null,
            "nullable": true,
            "title": "Currency",
            "type": "string"
          },
          "effective_cost_per_million_tokens": {
            "nullable": true,
            "title": "Effective Cost Per Million Tokens",
            "type": "number"
          },
          "excluded_non_token_rows": {
            "default": 0,
            "title": "Excluded Non Token Rows",
            "type": "integer"
          },
          "invalid_quantity_rows": {
            "default": 0,
            "title": "Invalid Quantity Rows",
            "type": "integer"
          },
          "is_complete": {
            "default": false,
            "title": "Is Complete",
            "type": "boolean"
          },
          "matched_token_count": {
            "default": 0,
            "title": "Matched Token Count",
            "type": "integer"
          },
          "rounded_quantity_rows": {
            "default": 0,
            "title": "Rounded Quantity Rows",
            "type": "integer"
          },
          "token_associated_billed_cost": {
            "nullable": true,
            "title": "Token Associated Billed Cost",
            "type": "number"
          },
          "unavailable_reason": {
            "default": null,
            "enum": [
              "incomplete_coverage",
              "no_data",
              "nonpositive_tokens",
              "not_ready",
              "source_unavailable",
              "unsupported_currency",
              "unsupported_scope",
              "unverified_provider"
            ],
            "nullable": true,
            "title": "Unavailable Reason",
            "type": "string"
          },
          "unclassified_token_count": {
            "default": 0,
            "title": "Unclassified Token Count",
            "type": "integer"
          },
          "unclassified_token_rows": {
            "default": 0,
            "title": "Unclassified Token Rows",
            "type": "integer"
          },
          "unknown_unit_rows": {
            "default": 0,
            "title": "Unknown Unit Rows",
            "type": "integer"
          },
          "unresolved_model_rows": {
            "default": 0,
            "title": "Unresolved Model Rows",
            "type": "integer"
          }
        },
        "title": "MatchedBillingSchema",
        "type": "object"
      },
      "MeasureRef": {
        "description": "Reference to a dataset measure, optionally restricted by filters.\n\n``filters`` make the measure conditional (\"sum of amount WHERE category =\nX\") without restricting the query's row set or any other selected\nmeasure. This is how one query produces side-by-side conditional columns,\ne.g. per-category spend totals grouped by employee. Filtered refs must set\n``name`` so each output column has a distinct, addressable name.\n\n``agg`` makes ``measure`` name a base-dataset field or catalog measure\nwhose record values are aggregated at query time, e.g. the median of\n``amount``. The catalog lists the aggregations each entry accepts.",
        "properties": {
          "agg": {
            "default": null,
            "description": "Optional query-time aggregation; measure then names a base-dataset field or catalog measure whose record values are aggregated. agg.type must be one of that entry's catalog aggregations; QUANTILE_NUMERIC also needs agg.percentile. Requires name.",
            "discriminator": {
              "mapping": {
                "AVG": "#/components/schemas/PlainAggregation",
                "MAX": "#/components/schemas/PlainAggregation",
                "MEDIAN_NUMERIC": "#/components/schemas/PlainAggregation",
                "MIN": "#/components/schemas/PlainAggregation",
                "QUANTILE_NUMERIC": "#/components/schemas/QuantileAggregation",
                "SUM": "#/components/schemas/PlainAggregation"
              },
              "propertyName": "type"
            },
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/PlainAggregation"
              },
              {
                "$ref": "#/components/schemas/QuantileAggregation"
              }
            ],
            "title": "Agg"
          },
          "display_name": {
            "default": null,
            "description": "Display label for the measure, independent of its output name. Defaults to the humanized output alias when name is set, otherwise the catalog measure label. References still use the output name.",
            "maxLength": 200,
            "minLength": 1,
            "nullable": true,
            "title": "Display Name",
            "type": "string"
          },
          "filters": {
            "default": [],
            "description": "Optional conjunctive filters restricting which records this one output column aggregates (compiled to a conditional aggregate). Base-dataset fields and declared source-backed relationship fields are supported; ordinary joined-dataset fields are not supported here.",
            "items": {
              "$ref": "#/components/schemas/FilterClause"
            },
            "maxItems": 10,
            "title": "Filters",
            "type": "array"
          },
          "measure": {
            "maxLength": 200,
            "minLength": 1,
            "title": "Measure",
            "type": "string"
          },
          "name": {
            "default": null,
            "description": "Snake_case output column name for this measure, describing what the filtered column contains: 'airline_spend', 'software_spend', 'marketing_dept_amount', 'flagged_txn_count', 'other_spend'. Required when filters are set or when the same measure is selected more than once; defaults to the measure name.",
            "maxLength": 200,
            "minLength": 1,
            "nullable": true,
            "pattern": "^[a-z][a-z0-9_]*$",
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "measure"
        ],
        "title": "MeasureRef",
        "type": "object"
      },
      "MemberInfo": {
        "properties": {
          "role": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SpendAllocationUserAccessRole"
              }
            ],
            "default": null,
            "nullable": true
          },
          "user_full_name": {
            "nullable": true,
            "title": "User Full Name",
            "type": "string"
          },
          "user_id": {
            "$ref": "#/components/schemas/EntityUUIDStr"
          }
        },
        "required": [
          "user_full_name",
          "user_id"
        ],
        "title": "MemberInfo",
        "type": "object"
      },
      "MemberLockInfo": {
        "properties": {
          "lock": {
            "$ref": "#/components/schemas/LockInfo"
          },
          "user_full_name": {
            "nullable": true,
            "title": "User Full Name",
            "type": "string"
          },
          "user_id": {
            "$ref": "#/components/schemas/EntityUUIDStr"
          }
        },
        "required": [
          "lock",
          "user_full_name",
          "user_id"
        ],
        "title": "MemberLockInfo",
        "type": "object"
      },
      "Merchant": {
        "example": {
          "id": "d38a988c-377a-421b-9017-0c8f40a4304e",
          "is_auto_approved": true,
          "merchant_name": "Google",
          "sk_category_name": "Advertising"
        },
        "properties": {
          "id": {
            "description": "Unique identifier for the merchant.",
            "format": "uuid",
            "type": "string"
          },
          "is_auto_approved": {
            "description": "Indicates if transactions from this merchant are exempt from receipt submission requirements.",
            "readOnly": true,
            "type": "boolean"
          },
          "merchant_name": {
            "description": "Display name of the merchant.",
            "type": "string"
          },
          "sk_category_name": {
            "description": "Category classification of the merchant.",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "id",
          "is_auto_approved",
          "merchant_name",
          "sk_category_name"
        ],
        "type": "object",
        "x-resource-name": "merchants"
      },
      "MerchantRestrictionActionRequestBody": {
        "enum": [
          "add",
          "remove"
        ],
        "title": "MerchantRestrictionAction",
        "type": "string"
      },
      "MerchantRestrictionListTypeRequestBody": {
        "enum": [
          "blacklist",
          "whitelist"
        ],
        "title": "MerchantRestrictionListType",
        "type": "string"
      },
      "MerchantRestrictionUpdateStatus": {
        "enum": [
          "request_pending",
          "success"
        ],
        "title": "MerchantRestrictionUpdateStatus",
        "type": "string"
      },
      "MerchantResult": {
        "properties": {
          "category": {
            "default": null,
            "description": "Expense category",
            "nullable": true,
            "title": "Category",
            "type": "string"
          },
          "domain": {
            "default": null,
            "description": "Merchant website domain",
            "nullable": true,
            "title": "Domain",
            "type": "string"
          },
          "id": {
            "description": "Merchant integer ID for use in merchant-aware policies and tools",
            "title": "Id",
            "type": "integer"
          },
          "logo_url": {
            "default": null,
            "description": "Merchant logo URL",
            "nullable": true,
            "title": "Logo Url",
            "type": "string"
          },
          "name": {
            "description": "Merchant display name",
            "title": "Name",
            "type": "string"
          },
          "uuid": {
            "description": "Merchant UUID for use with downstream tools",
            "title": "Uuid",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "uuid"
        ],
        "title": "MerchantResult",
        "type": "object"
      },
      "MetadataFlagsJsonMode": {
        "properties": {
          "has_bills": {
            "default": false,
            "description": "Cached bill relationship hint updated asynchronously. False does not prove no bills exist or identify the source of recorded spend.",
            "title": "Has Bills",
            "type": "boolean"
          },
          "has_contracts": {
            "default": false,
            "description": "Cached contract relationship hint that may be incomplete. False does not prove no contracts exist.",
            "title": "Has Contracts",
            "type": "boolean"
          },
          "has_purchase_orders": {
            "default": false,
            "description": "Cached purchase-order relationship hint that may be incomplete. False does not prove no purchase orders exist.",
            "title": "Has Purchase Orders",
            "type": "boolean"
          }
        },
        "title": "MetadataFlags",
        "type": "object"
      },
      "MetricKey": {
        "enum": [
          "creation_source"
        ],
        "title": "MetricKey",
        "type": "string"
      },
      "MetricWindowOverride": {
        "additionalProperties": false,
        "properties": {
          "end_at": {
            "format": "date-time",
            "title": "End At",
            "type": "string"
          },
          "metric": {
            "$ref": "#/components/schemas/MetricKey"
          },
          "start_at": {
            "format": "date-time",
            "title": "Start At",
            "type": "string"
          }
        },
        "required": [
          "end_at",
          "metric",
          "start_at"
        ],
        "title": "MetricWindowOverride",
        "type": "object"
      },
      "MileageReimbursementCreationSuccess": {
        "properties": {
          "distance": {
            "nullable": true,
            "title": "Distance",
            "type": "number"
          },
          "distance_units": {
            "$ref": "#/components/schemas/DistanceUnit"
          },
          "end_location": {
            "nullable": true,
            "title": "End Location",
            "type": "string"
          },
          "message": {
            "default": null,
            "description": "Set when an existing draft was returned instead of creating a new reimbursement.",
            "nullable": true,
            "title": "Message",
            "type": "string"
          },
          "missing_items": {
            "$ref": "#/components/schemas/ReimbursementMissingItemsInfo"
          },
          "reimbursement_link": {
            "description": "Ramp page for this reimbursement.",
            "nullable": true,
            "title": "Reimbursement Link",
            "type": "string"
          },
          "reimbursement_type": {
            "default": "MILEAGE",
            "enum": [
              "MILEAGE"
            ],
            "title": "Reimbursement Type",
            "type": "string"
          },
          "reimbursement_uuid": {
            "$ref": "#/components/schemas/EntityUUIDStr"
          },
          "start_location": {
            "nullable": true,
            "title": "Start Location",
            "type": "string"
          },
          "state": {
            "$ref": "#/components/schemas/DraftReimbursementState"
          },
          "suggested_codings": {
            "items": {
              "$ref": "#/components/schemas/SuggestedCodingsInfo"
            },
            "title": "Suggested Codings",
            "type": "array"
          },
          "suggested_funds": {
            "items": {
              "$ref": "#/components/schemas/FundInfo"
            },
            "title": "Suggested Funds",
            "type": "array"
          },
          "suggested_memos": {
            "items": {
              "type": "string"
            },
            "title": "Suggested Memos",
            "type": "array"
          },
          "validation_errors": {
            "items": {
              "$ref": "#/components/schemas/ReimbursementValidationErrorInfo"
            },
            "title": "Validation Errors",
            "type": "array"
          }
        },
        "required": [
          "distance",
          "distance_units",
          "end_location",
          "reimbursement_link",
          "reimbursement_uuid",
          "start_location",
          "state"
        ],
        "title": "MileageReimbursementCreationSuccess",
        "type": "object"
      },
      "MissingAccountingItem": {
        "properties": {
          "category_id": {
            "title": "Category Id",
            "type": "string"
          },
          "category_name": {
            "title": "Category Name",
            "type": "string"
          }
        },
        "required": [
          "category_id",
          "category_name"
        ],
        "title": "MissingAccountingItem",
        "type": "object"
      },
      "MissingItemLockTransactionInfo": {
        "properties": {
          "amount": {
            "title": "Amount",
            "type": "string"
          },
          "merchant_name": {
            "default": null,
            "nullable": true,
            "title": "Merchant Name",
            "type": "string"
          },
          "transaction_uuid": {
            "$ref": "#/components/schemas/EntityUUIDStr"
          }
        },
        "required": [
          "amount",
          "transaction_uuid"
        ],
        "title": "MissingItemLockTransactionInfo",
        "type": "object"
      },
      "MissingItemTransaction": {
        "properties": {
          "amount": {
            "default": null,
            "description": "Transaction amount",
            "nullable": true,
            "title": "Amount",
            "type": "string"
          },
          "currency_code": {
            "default": null,
            "description": "Currency code",
            "nullable": true,
            "title": "Currency Code",
            "type": "string"
          },
          "id": {
            "description": "Transaction UUID",
            "title": "Id",
            "type": "string"
          },
          "merchant_name": {
            "default": null,
            "description": "Merchant name",
            "nullable": true,
            "title": "Merchant Name",
            "type": "string"
          },
          "missing_accounting_fields": {
            "description": "Names of accounting fields the submission policy requires that are still empty",
            "items": {
              "type": "string"
            },
            "title": "Missing Accounting Fields",
            "type": "array"
          },
          "missing_memo": {
            "default": false,
            "description": "Whether memo is missing",
            "title": "Missing Memo",
            "type": "boolean"
          },
          "missing_receipt": {
            "default": false,
            "description": "Whether receipt is missing",
            "title": "Missing Receipt",
            "type": "boolean"
          },
          "transaction_date": {
            "default": null,
            "description": "Transaction date",
            "nullable": true,
            "title": "Transaction Date",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "title": "MissingItemTransaction",
        "type": "object"
      },
      "ModelFamilyCategorySchema": {
        "description": "The model families filter category.",
        "properties": {
          "display_name": {
            "title": "Display Name",
            "type": "string"
          },
          "values": {
            "items": {
              "$ref": "#/components/schemas/ModelFamilyValueSchema"
            },
            "title": "Values",
            "type": "array"
          }
        },
        "required": [
          "display_name",
          "values"
        ],
        "title": "ModelFamilyCategorySchema",
        "type": "object"
      },
      "ModelFamilyValueSchema": {
        "description": "A model family entry in the filter response.",
        "properties": {
          "display_name": {
            "title": "Display Name",
            "type": "string"
          },
          "key": {
            "title": "Key",
            "type": "string"
          },
          "providers": {
            "items": {
              "type": "string"
            },
            "title": "Providers",
            "type": "array"
          },
          "tier": {
            "title": "Tier",
            "type": "string"
          },
          "token_share_pct": {
            "title": "Token Share Pct",
            "type": "number"
          }
        },
        "required": [
          "display_name",
          "key",
          "providers",
          "tier",
          "token_share_pct"
        ],
        "title": "ModelFamilyValueSchema",
        "type": "object"
      },
      "ModifiabilityState": {
        "description": "Consistent read of whether a booking's fare/rate is modifiable.\n\nReuses the canonical booking enums rather than inventing new ones:\n`modification_eligibility` is the same `FlightModificationEligibility` the web\nAPI serializes (flights only), and `change_blocked_reason` reuses\n`BookingUnavailableCancellationReason` for the shared \"already cancelled /\ntrip already started\" lifecycle states that make a change pointless.",
        "properties": {
          "change_blocked_reason": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BookingUnavailableCancellationReason"
              }
            ],
            "default": null,
            "description": "Lifecycle restriction on in-app changes, such as a cancelled booking, a pending cancellation, or a started trip. This is separate from fare rules and support availability.",
            "nullable": true
          },
          "hotel_modifiability": {
            "allOf": [
              {
                "$ref": "#/components/schemas/HotelModifiability"
              }
            ],
            "default": null,
            "description": "Hotel modifiability (MODIFIABLE / NOT_MODIFIABLE / UNKNOWN); None for flights and other non-hotel bookings. UNKNOWN may still open the modification-options flow for an authoritative check.",
            "nullable": true
          },
          "is_modifiable": {
            "description": "Whether the booking can be modified (rebooked) on-app",
            "title": "Is Modifiable",
            "type": "boolean"
          },
          "modification_eligibility": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FlightModificationEligibility"
              }
            ],
            "default": null,
            "description": "Flight modifiability eligibility (MODIFIABLE_VIA_UI / MODIFIABLE_VIA_CHAT / PARTIALLY_MODIFIABLE / VOID_AND_REBOOK / NOT_MODIFIABLE); None for hotels and other non-flight bookings",
            "nullable": true
          }
        },
        "required": [
          "is_modifiable"
        ],
        "title": "ModifiabilityState",
        "type": "object"
      },
      "MoneyAmountSchema": {
        "properties": {
          "amount": {
            "title": "Amount",
            "type": "number"
          },
          "currency": {
            "title": "Currency",
            "type": "string"
          },
          "currency_sign": {
            "title": "Currency Sign",
            "type": "string"
          },
          "formatted_amount": {
            "title": "Formatted Amount",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "num_decimal_places": {
            "title": "Num Decimal Places",
            "type": "integer"
          }
        },
        "required": [
          "amount",
          "currency",
          "currency_sign",
          "formatted_amount",
          "name",
          "num_decimal_places"
        ],
        "title": "MoneyAmountSchema",
        "type": "object"
      },
      "MoveVMCounterpartyDetails": {
        "additionalProperties": true,
        "description": "Wallet details for MoveVM-compatible transfers.",
        "properties": {
          "account_name": {
            "description": "Name on the destination account.",
            "title": "Account Name",
            "type": "string"
          },
          "bank_mailing_address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UnvalidatedMailingAddress"
              }
            ],
            "description": "Mailing address of the destination bank.",
            "title": "Bank Mailing Address"
          },
          "currency": {
            "default": "USDC",
            "description": "Currency of the destination account.",
            "enum": [
              "USDC"
            ],
            "title": "Currency",
            "type": "string"
          },
          "mailing_address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UnvalidatedMailingAddress"
              }
            ],
            "default": null,
            "description": "Mailing address of the counterparty.",
            "nullable": true
          },
          "payment_method": {
            "default": "CRYPTO_TRANSFER",
            "description": "Payment method.",
            "enum": [
              "CRYPTO_TRANSFER"
            ],
            "title": "Payment Method",
            "type": "string"
          },
          "type": {
            "default": "mvm",
            "description": "Counterparty details type.",
            "enum": [
              "mvm"
            ],
            "title": "Type",
            "type": "string"
          },
          "wallet_address": {
            "description": "Destination wallet address.",
            "title": "Wallet Address",
            "type": "string"
          }
        },
        "required": [
          "wallet_address"
        ],
        "title": "MoveVMCounterpartyDetails",
        "type": "object"
      },
      "MppPaymentCredential": {
        "properties": {
          "credential": {
            "description": "Base64url value for Authorization: Payment <credential>. Send it to the merchant immediately.",
            "title": "Credential",
            "type": "string"
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UUIDStr"
              }
            ],
            "description": "Stable identifier for this MPP payment."
          }
        },
        "required": [
          "credential",
          "id"
        ],
        "title": "MppPaymentCredential",
        "type": "object"
      },
      "MppPaymentCredentialRequestRequestBody": {
        "additionalProperties": false,
        "properties": {
          "body_digest": {
            "default": null,
            "description": "Optional RFC 9530 body digest. Must match the challenge digest when both are present. The caller remains responsible for sending the matching body.",
            "maxLength": 255,
            "nullable": true,
            "title": "Body Digest",
            "type": "string"
          },
          "fund_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UUIDStrRequestBody"
              }
            ],
            "description": "UUID of the existing fund to pay from"
          },
          "selected_challenge_id": {
            "default": null,
            "description": "Challenge to select when multiple Stripe challenges are offered",
            "maxLength": 4096,
            "nullable": true,
            "title": "Selected Challenge Id",
            "type": "string"
          },
          "www_authenticate": {
            "description": "WWW-Authenticate headers from the merchant payment challenge",
            "items": {
              "type": "string"
            },
            "minItems": 1,
            "title": "Www Authenticate",
            "type": "array"
          }
        },
        "required": [
          "fund_id",
          "www_authenticate"
        ],
        "title": "MppPaymentCredentialRequest",
        "type": "object"
      },
      "NestedPage": {
        "properties": {
          "next": {
            "format": "uuid",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "next"
        ],
        "type": "object"
      },
      "NoCardStatementsResultJsonMode": {
        "additionalProperties": false,
        "description": "The business has no card statements yet.",
        "properties": {
          "summary": {
            "description": "Explains that no card statement has been issued yet, so there is no statement balance or due date.",
            "title": "Summary",
            "type": "string"
          }
        },
        "required": [
          "summary"
        ],
        "title": "NoCardStatementsResult",
        "type": "object"
      },
      "NodeVisitStatus": {
        "enum": [
          "FAILED",
          "IN_PROGRESS",
          "SKIPPED",
          "UNVISITED",
          "VISITED"
        ],
        "title": "NodeVisitStatus",
        "type": "string"
      },
      "NormalizedCoordinate": {
        "description": "Describes the location of a point on a page, relative to the width/height\nof the page. This allows us to display bounding boxes on a downloaded document\nwithout needing to know the original dimensions of the document.\n\n`normalized_x` and `normalized_y` should always be between 0 and 1 inclusive.\n\nThis model is used as a PydanticJSONB validator in InvoiceBoundingRegion,\nso changes must be backwards-compatible.",
        "properties": {
          "normalized_x": {
            "title": "Normalized X",
            "type": "number"
          },
          "normalized_y": {
            "title": "Normalized Y",
            "type": "number"
          }
        },
        "required": [
          "normalized_x",
          "normalized_y"
        ],
        "title": "NormalizedCoordinate",
        "type": "object"
      },
      "NotOnBudgetReason": {
        "description": "One reason a spend item isn't counted on the budget, with how to fix it.",
        "properties": {
          "category": {
            "description": "Machine-readable reason: 'no_active_budget', 'budget_not_started', 'outside_budget_dates', 'different_period', 'spend_not_coded', or 'no_matching_budget_row'.",
            "title": "Category",
            "type": "string"
          },
          "detail": {
            "description": "Plain-English explanation of this reason",
            "title": "Detail",
            "type": "string"
          },
          "fix": {
            "default": null,
            "description": "The single next step that would resolve this reason",
            "nullable": true,
            "title": "Fix",
            "type": "string"
          }
        },
        "required": [
          "category",
          "detail"
        ],
        "title": "NotOnBudgetReason",
        "type": "object"
      },
      "OfficeLocationDetail": {
        "description": "A travel office location: coordinates, no street address.",
        "properties": {
          "display_name": {
            "description": "Human-readable name for this office location",
            "nullable": true,
            "title": "Display Name",
            "type": "string"
          },
          "latitude": {
            "description": "Latitude coordinate, for the SearchHotels latitude field",
            "title": "Latitude",
            "type": "number"
          },
          "longitude": {
            "description": "Longitude coordinate, for the SearchHotels longitude field",
            "title": "Longitude",
            "type": "number"
          }
        },
        "required": [
          "display_name",
          "latitude",
          "longitude"
        ],
        "title": "OfficeLocationDetail",
        "type": "object"
      },
      "OmniPolicyWorkflowEditorOperation": {
        "enum": [
          "add_approval_step",
          "add_conditional_routing",
          "add_notify_step",
          "add_submission_conditional_routing",
          "add_submission_field_rule",
          "add_submission_field_rule_exception",
          "add_workflow_step",
          "exempt_submission_fields_requirement",
          "remove_submission_field_rule",
          "remove_submission_field_rule_exception",
          "remove_vertex",
          "replace_routing",
          "require_submission_fields",
          "set_fallback_approver",
          "set_no_approver_fallback",
          "set_submission_requirement",
          "show_submission_fields",
          "update_approval_condition",
          "update_submission_field_rule",
          "update_submission_fields_requirement"
        ],
        "title": "OmniPolicyWorkflowEditorOperation",
        "type": "string"
      },
      "OmniPolicyWorkflowKind": {
        "description": "Policy-family selector used as tool inputs.\n\nThe string values are stable contracts with the LLM (these strings appear\nverbatim in tool argument schemas and the agent uses them in calls).",
        "enum": [
          "approval_policy",
          "spend_request_policy",
          "submission_policy"
        ],
        "title": "OmniPolicyWorkflowKind",
        "type": "string"
      },
      "OmniPolicyWorkflowKindRequestBody": {
        "description": "Policy-family selector used as tool inputs.\n\nThe string values are stable contracts with the LLM (these strings appear\nverbatim in tool argument schemas and the agent uses them in calls).",
        "enum": [
          "approval_policy",
          "spend_request_policy",
          "submission_policy"
        ],
        "title": "OmniPolicyWorkflowKind",
        "type": "string"
      },
      "OnDemandDeliveryDataJsonMode": {
        "properties": {
          "company": {
            "default": null,
            "nullable": true,
            "title": "Company",
            "type": "string"
          },
          "fulfillment_type": {
            "default": null,
            "nullable": true,
            "title": "Fulfillment Type",
            "type": "string"
          },
          "location_address": {
            "default": null,
            "nullable": true,
            "title": "Location Address",
            "type": "string"
          },
          "order_datetime": {
            "default": null,
            "nullable": true,
            "title": "Order Datetime",
            "type": "string"
          }
        },
        "title": "OnDemandDeliveryData",
        "type": "object"
      },
      "OpenAIChatGPTEnterpriseMetadataSchema": {
        "properties": {
          "checked_scopes": {
            "items": {
              "$ref": "#/components/schemas/AiProviderConfigurationScope"
            },
            "title": "Checked Scopes",
            "type": "array"
          },
          "last_probed_at": {
            "format": "date-time",
            "title": "Last Probed At",
            "type": "string"
          },
          "monthly_prepaid_credits": {
            "default": "0",
            "nullable": true,
            "title": "Monthly Prepaid Credits",
            "type": "number"
          },
          "price_per_credit": {
            "default": "0.04",
            "title": "Price Per Credit",
            "type": "number"
          },
          "workplace_id": {
            "title": "Workplace Id",
            "type": "string"
          }
        },
        "required": [
          "last_probed_at",
          "monthly_prepaid_credits",
          "price_per_credit",
          "workplace_id"
        ],
        "title": "OpenAIChatGPTEnterpriseMetadataSchema",
        "type": "object"
      },
      "OpenAIConfigurationMetadataSchema": {
        "properties": {
          "chatgpt_enterprise": {
            "allOf": [
              {
                "$ref": "#/components/schemas/OpenAIChatGPTEnterpriseMetadataSchema"
              }
            ],
            "default": null,
            "nullable": true
          },
          "created_at": {
            "default": null,
            "format": "date-time",
            "nullable": true,
            "title": "Created At",
            "type": "string"
          },
          "key_id": {
            "default": null,
            "nullable": true,
            "title": "Key Id",
            "type": "string"
          },
          "last_used_at": {
            "default": null,
            "format": "date-time",
            "nullable": true,
            "title": "Last Used At",
            "type": "string"
          },
          "name": {
            "default": null,
            "nullable": true,
            "title": "Name",
            "type": "string"
          },
          "owner": {
            "allOf": [
              {
                "$ref": "#/components/schemas/OpenAIConfigurationOwnerMetadataSchema"
              }
            ],
            "default": null,
            "nullable": true
          },
          "platform_metadata": {
            "allOf": [
              {
                "$ref": "#/components/schemas/OpenAIPlatformAdminKeyMetadataSchema"
              }
            ],
            "default": null,
            "nullable": true
          },
          "provider": {
            "default": "OPENAI",
            "enum": [
              "OPENAI"
            ],
            "title": "Provider",
            "type": "string"
          },
          "redacted_value": {
            "default": null,
            "nullable": true,
            "title": "Redacted Value",
            "type": "string"
          }
        },
        "required": [
          "chatgpt_enterprise",
          "created_at",
          "key_id",
          "last_used_at",
          "name",
          "owner",
          "platform_metadata",
          "provider",
          "redacted_value"
        ],
        "title": "OpenAIConfigurationMetadataSchema",
        "type": "object"
      },
      "OpenAIConfigurationOwnerMetadataSchema": {
        "properties": {
          "id": {
            "default": null,
            "nullable": true,
            "title": "Id",
            "type": "string"
          },
          "name": {
            "default": null,
            "nullable": true,
            "title": "Name",
            "type": "string"
          },
          "role": {
            "default": null,
            "nullable": true,
            "title": "Role",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "role"
        ],
        "title": "OpenAIConfigurationOwnerMetadataSchema",
        "type": "object"
      },
      "OpenAIPlatformAdminKeyMetadataSchema": {
        "properties": {
          "created_at": {
            "default": null,
            "format": "date-time",
            "nullable": true,
            "title": "Created At",
            "type": "string"
          },
          "key_id": {
            "default": null,
            "nullable": true,
            "title": "Key Id",
            "type": "string"
          },
          "last_used_at": {
            "default": null,
            "format": "date-time",
            "nullable": true,
            "title": "Last Used At",
            "type": "string"
          },
          "name": {
            "default": null,
            "nullable": true,
            "title": "Name",
            "type": "string"
          },
          "owner": {
            "allOf": [
              {
                "$ref": "#/components/schemas/OpenAIConfigurationOwnerMetadataSchema"
              }
            ],
            "default": null,
            "nullable": true
          },
          "redacted_value": {
            "title": "Redacted Value",
            "type": "string"
          }
        },
        "required": [
          "created_at",
          "key_id",
          "last_used_at",
          "name",
          "owner",
          "redacted_value"
        ],
        "title": "OpenAIPlatformAdminKeyMetadataSchema",
        "type": "object"
      },
      "OpenChangeRequestInfo": {
        "properties": {
          "reason": {
            "default": null,
            "description": "What the reviewer asked the cardholder to change.",
            "nullable": true,
            "title": "Reason",
            "type": "string"
          },
          "requested_by_name": {
            "default": null,
            "description": "Who requested the changes, when known.",
            "nullable": true,
            "title": "Requested By Name",
            "type": "string"
          }
        },
        "title": "OpenChangeRequestInfo",
        "type": "object"
      },
      "OrderByClause": {
        "description": "Order by a selected dimension or measure (by semantic name).",
        "properties": {
          "dir": {
            "allOf": [
              {
                "$ref": "#/components/schemas/OrderDir"
              }
            ],
            "default": "desc"
          },
          "field": {
            "maxLength": 200,
            "minLength": 1,
            "title": "Field",
            "type": "string"
          }
        },
        "required": [
          "field"
        ],
        "title": "OrderByClause",
        "type": "object"
      },
      "OrderDir": {
        "enum": [
          "asc",
          "desc"
        ],
        "title": "OrderDir",
        "type": "string"
      },
      "OrgChartResponse": {
        "description": "Response containing org chart information for a user.",
        "properties": {
          "direct_reports": {
            "description": "List of users who directly report to the target user",
            "items": {
              "$ref": "#/components/schemas/OrgChartUserInfo"
            },
            "title": "Direct Reports",
            "type": "array"
          },
          "reporting_chain": {
            "description": "List of managers above the user, ordered from direct manager upward. May be truncated to the managers the caller is permitted to view; the last entry is not necessarily the top of the organization.",
            "items": {
              "$ref": "#/components/schemas/OrgChartUserInfo"
            },
            "title": "Reporting Chain",
            "type": "array"
          },
          "user": {
            "allOf": [
              {
                "$ref": "#/components/schemas/OrgChartUserInfo"
              }
            ],
            "description": "The target user's information"
          }
        },
        "required": [
          "direct_reports",
          "reporting_chain",
          "user"
        ],
        "title": "OrgChartResponse",
        "type": "object"
      },
      "OrgChartUserInfo": {
        "description": "User information for org chart display.",
        "properties": {
          "department_name": {
            "description": "User's department name",
            "nullable": true,
            "title": "Department Name",
            "type": "string"
          },
          "email": {
            "description": "User's email address",
            "title": "Email",
            "type": "string"
          },
          "first_name": {
            "description": "User's first name",
            "title": "First Name",
            "type": "string"
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "description": "User UUID"
          },
          "is_inactive": {
            "description": "Whether the user is inactive",
            "title": "Is Inactive",
            "type": "boolean"
          },
          "is_manager": {
            "description": "Whether the user has manager role",
            "title": "Is Manager",
            "type": "boolean"
          },
          "last_name": {
            "description": "User's last name",
            "title": "Last Name",
            "type": "string"
          },
          "location_name": {
            "description": "User's location name",
            "nullable": true,
            "title": "Location Name",
            "type": "string"
          },
          "profile_picture_url": {
            "description": "URL to user's profile picture",
            "nullable": true,
            "title": "Profile Picture Url",
            "type": "string"
          }
        },
        "required": [
          "department_name",
          "email",
          "first_name",
          "id",
          "is_inactive",
          "is_manager",
          "last_name",
          "location_name",
          "profile_picture_url"
        ],
        "title": "OrgChartUserInfo",
        "type": "object"
      },
      "OriginalProcurementRequest": {
        "description": "Approved purchase-order request being changed.",
        "properties": {
          "purchase_order_number": {
            "nullable": true,
            "title": "Purchase Order Number",
            "type": "string"
          },
          "spend_request_uuid": {
            "title": "Spend Request Uuid",
            "type": "string"
          },
          "unified_request_uuid": {
            "nullable": true,
            "title": "Unified Request Uuid",
            "type": "string"
          }
        },
        "required": [
          "purchase_order_number",
          "spend_request_uuid",
          "unified_request_uuid"
        ],
        "title": "OriginalProcurementRequest",
        "type": "object"
      },
      "OriginalProcurementRequestJsonMode": {
        "description": "Approved purchase-order request being changed.",
        "properties": {
          "purchase_order_number": {
            "nullable": true,
            "title": "Purchase Order Number",
            "type": "string"
          },
          "spend_request_uuid": {
            "title": "Spend Request Uuid",
            "type": "string"
          },
          "unified_request_uuid": {
            "nullable": true,
            "title": "Unified Request Uuid",
            "type": "string"
          }
        },
        "required": [
          "purchase_order_number",
          "spend_request_uuid",
          "unified_request_uuid"
        ],
        "title": "OriginalProcurementRequest",
        "type": "object"
      },
      "OwnerInfoJsonMode": {
        "properties": {
          "email": {
            "default": null,
            "description": "Email address of the owner",
            "nullable": true,
            "title": "Email",
            "type": "string"
          },
          "is_acting_user": {
            "default": null,
            "description": "Whether this owner is the authenticated requesting user, determined by user ID rather than a name match. None when there is no acting user.",
            "nullable": true,
            "title": "Is Acting User",
            "type": "boolean"
          },
          "name": {
            "description": "Full name of the vendor owner",
            "title": "Name",
            "type": "string"
          },
          "user_uuid": {
            "default": null,
            "description": "UUID of the owner's Ramp user; the value tools that change ownership take for a current owner.",
            "nullable": true,
            "title": "User Uuid",
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "title": "OwnerInfo",
        "type": "object"
      },
      "POLineItemTrackingCategoryInfo": {
        "description": "A tracking category available for PO line items.",
        "properties": {
          "input_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TrackingCategoryInputType"
              }
            ],
            "description": "Input type: SINGLE_CHOICE (select from options), BOOLEAN (yes/no), or FREE_FORM_TEXT (user enters text)"
          },
          "name": {
            "description": "Display name of the tracking category",
            "title": "Name",
            "type": "string"
          },
          "tracking_category_uuid": {
            "description": "UUID of the tracking category. Pass this to GetTrackingCategoryOptions to fetch selectable options.",
            "title": "Tracking Category Uuid",
            "type": "string"
          },
          "type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TrackingCategoryType"
              }
            ],
            "description": "Type of tracking category (e.g., GL_ACCOUNT, INVENTORY_ITEM, OTHER)"
          }
        },
        "required": [
          "input_type",
          "name",
          "tracking_category_uuid",
          "type"
        ],
        "title": "POLineItemTrackingCategoryInfo",
        "type": "object"
      },
      "PageInfo": {
        "properties": {
          "completion_status": {
            "description": "NOT_STARTED, IN_PROGRESS, or COMPLETED.",
            "title": "Completion Status",
            "type": "string"
          },
          "key": {
            "description": "Page identifier, for example \"business_info\".",
            "title": "Key",
            "type": "string"
          },
          "sections": {
            "description": "Sections of the page.",
            "items": {
              "$ref": "#/components/schemas/PageSectionInfo"
            },
            "title": "Sections",
            "type": "array"
          }
        },
        "required": [
          "completion_status",
          "key"
        ],
        "title": "PageInfo",
        "type": "object"
      },
      "PageSectionInfo": {
        "properties": {
          "completion_status": {
            "description": "NOT_STARTED, IN_PROGRESS, or COMPLETED.",
            "title": "Completion Status",
            "type": "string"
          },
          "key": {
            "description": "Section identifier, for example \"business_identity\".",
            "title": "Key",
            "type": "string"
          }
        },
        "required": [
          "completion_status",
          "key"
        ],
        "title": "PageSectionInfo",
        "type": "object"
      },
      "PaginatedResponseAgentAccountNumberResponse": {
        "example": {
          "data": [
            {
              "account_details": [
                {
                  "account_name": null,
                  "account_number": "123456789",
                  "currency": "USD",
                  "mailing_address": null,
                  "payment_method": "ACH",
                  "routing_number": "987654320",
                  "type": "ach"
                }
              ],
              "banking_account_id": "f6a0e5f1-45cc-4e36-9c47-b44c6422f5be",
              "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
              "name": "Agent account number"
            }
          ],
          "page": {
            "next": "https://api.ramp.com/developer/v1/<resources>?<new_params>"
          }
        },
        "properties": {
          "data": {
            "description": "Resources returned in this page.",
            "items": {
              "$ref": "#/components/schemas/AgentAccountNumberResponse"
            },
            "type": "array"
          },
          "page": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DeveloperAPINestedPage"
              }
            ],
            "description": "Pagination details for this response."
          }
        },
        "required": [
          "data",
          "page"
        ],
        "type": "object"
      },
      "PaginatedResponseAgentSchema": {
        "example": {
          "data": [
            {}
          ],
          "page": {
            "next": "https://api.ramp.com/developer/v1/<resources>?<new_params>"
          }
        },
        "properties": {
          "data": {
            "description": "Resources returned in this page.",
            "items": {
              "$ref": "#/components/schemas/Agent"
            },
            "type": "array"
          },
          "page": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DeveloperAPINestedPage"
              }
            ],
            "description": "Pagination details for this response."
          }
        },
        "required": [
          "data",
          "page"
        ],
        "type": "object"
      },
      "PaginatedResponseAiSpendApiKeyResourceSchema": {
        "example": {
          "data": [
            {
              "active_spend_limit": {
                "amount": {
                  "currency": "USD",
                  "value": 500000
                },
                "interval": "monthly"
              },
              "estimated_cost": {
                "currency": "USD",
                "value": 184250
              },
              "external_id": "key_abc123",
              "id": "0198f3c4-ece8-7a41-968f-7f399e397ef6",
              "name": "Production coding",
              "owner": {
                "email": "jamie.chen@example.com",
                "first_name": "Jamie",
                "id": "0198f3bd-bcb7-76a0-a68c-f99fd15df941",
                "last_name": "Chen"
              },
              "provider": "OPENAI",
              "provider_created_at": "2026-03-12T15:30:00Z",
              "provider_key_hint": "...a1b2",
              "provider_last_used_at": "2026-08-31T23:54:12Z",
              "status": "active",
              "synced_at": "2026-09-01T01:10:04Z",
              "tags": [
                {
                  "key": "Cost center",
                  "value": "Engineering"
                }
              ]
            }
          ],
          "page": {
            "next": "https://api.ramp.com/developer/v1/<resources>?<new_params>"
          }
        },
        "properties": {
          "data": {
            "description": "Resources returned in this page.",
            "items": {
              "$ref": "#/components/schemas/AiSpendApiKey"
            },
            "type": "array"
          },
          "page": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DeveloperAPINestedPage"
              }
            ],
            "description": "Pagination details for this response."
          }
        },
        "required": [
          "data",
          "page"
        ],
        "type": "object"
      },
      "PaginatedResponseAiSpendUsageResourceSchema": {
        "example": {
          "data": [
            {
              "cached_input_tokens": 20,
              "department_id": null,
              "estimated_cost": {
                "currency": "USD",
                "value": 124
              },
              "input_tokens": 150,
              "model": "claude-sonnet-4",
              "output_tokens": 30,
              "product": "claude_code",
              "provider": "ANTHROPIC",
              "usage_date": "2026-05-01",
              "user_email": null,
              "user_id": null,
              "web_search_requests": 3
            }
          ],
          "page": {
            "next": "https://api.ramp.com/developer/v1/<resources>?<new_params>"
          }
        },
        "properties": {
          "data": {
            "description": "Resources returned in this page.",
            "items": {
              "$ref": "#/components/schemas/AiSpendUsage"
            },
            "type": "array"
          },
          "page": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DeveloperAPINestedPage"
              }
            ],
            "description": "Pagination details for this response."
          }
        },
        "required": [
          "data",
          "page"
        ],
        "type": "object"
      },
      "PaginatedResponseApiApplicationDocumentResource": {
        "example": {
          "data": [
            {}
          ],
          "page": {
            "next": "https://api.ramp.com/developer/v1/<resources>?<new_params>"
          }
        },
        "properties": {
          "data": {
            "description": "Resources returned in this page.",
            "items": {
              "$ref": "#/components/schemas/ApiApplicationDocumentResource"
            },
            "type": "array"
          },
          "page": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DeveloperAPINestedPage"
              }
            ],
            "description": "Pagination details for this response."
          }
        },
        "required": [
          "data",
          "page"
        ],
        "type": "object"
      },
      "PaginatedResponseApiBankAccountResource": {
        "example": {
          "data": [
            {}
          ],
          "page": {
            "next": "https://api.ramp.com/developer/v1/<resources>?<new_params>"
          }
        },
        "properties": {
          "data": {
            "description": "Resources returned in this page.",
            "items": {
              "$ref": "#/components/schemas/ApiBankAccountResource"
            },
            "type": "array"
          },
          "page": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DeveloperAPINestedPage"
              }
            ],
            "description": "Pagination details for this response."
          }
        },
        "required": [
          "data",
          "page"
        ],
        "type": "object"
      },
      "PaginatedResponseApiMerchantResourceSchema": {
        "example": {
          "data": [
            {
              "id": "d38a988c-377a-421b-9017-0c8f40a4304e",
              "is_auto_approved": true,
              "merchant_name": "Google",
              "sk_category_name": "Advertising"
            }
          ],
          "page": {
            "next": "https://api.ramp.com/developer/v1/<resources>?<new_params>"
          }
        },
        "properties": {
          "data": {
            "description": "Resources returned in this page.",
            "items": {
              "$ref": "#/components/schemas/Merchant"
            },
            "type": "array"
          },
          "page": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DeveloperAPINestedPage"
              }
            ],
            "description": "Pagination details for this response."
          }
        },
        "required": [
          "data",
          "page"
        ],
        "type": "object"
      },
      "PaginatedResponseApiStatementResourceSchema": {
        "example": {
          "data": [
            {
              "balance_sections": [
                {
                  "charges": {
                    "amount": 180061925,
                    "currency_code": "USD"
                  },
                  "credits": {
                    "amount": 0,
                    "currency_code": "USD"
                  },
                  "ending_balance": {
                    "amount": 178098867,
                    "currency_code": "USD"
                  },
                  "entity_id": "9d8abf0f-389c-4a18-816e-a6e1c5784624",
                  "id": "6ff695fd-b09b-4529-a622-545d6c059129",
                  "opening_balance": {
                    "amount": 0,
                    "currency_code": "USD"
                  },
                  "payments": {
                    "amount": 1963058,
                    "currency_code": "USD"
                  }
                }
              ],
              "charges": {
                "amount": 180061925,
                "currency_code": "USD"
              },
              "credits": {
                "amount": 0,
                "currency_code": "USD"
              },
              "end_date": "2023-05-08T08:39:37+00:00",
              "ending_balance": {
                "amount": 178098867,
                "currency_code": "USD"
              },
              "id": "df44006c-410b-420e-80a2-1522a2e5b722",
              "opening_balance": {
                "amount": 0,
                "currency_code": "USD"
              },
              "payments": {
                "amount": 1963058,
                "currency_code": "USD"
              },
              "start_date": "2023-05-06T08:51:57+00:00",
              "statement_lines": [
                {
                  "id": "06a09605-b0b8-4c89-b29f-d12c6aabac58",
                  "type": "CARD_TRANSACTION"
                },
                {
                  "id": "0f01bc2d-04cf-407a-8442-bcbdaf1c07f8",
                  "type": "CARD_TRANSACTION"
                },
                {
                  "id": "2682717d-8231-46f2-9e02-c0f4f7ef410a",
                  "type": "TRANSFER_PAYMENT"
                },
                {
                  "id": "415fe9fb-1608-4cd6-ac8b-d2fbb85bdc11",
                  "type": "CARD_TRANSACTION"
                },
                {
                  "id": "4c7700b6-1ff9-4228-9b13-73b38d5a7623",
                  "type": "CARD_TRANSACTION"
                },
                {
                  "id": "61b89311-f0b3-4689-91ee-8edb72054de4",
                  "type": "CARD_TRANSACTION"
                },
                {
                  "id": "78c9eac8-67ae-443d-998a-f416e959225c",
                  "type": "CASHBACK"
                },
                {
                  "id": "af87a6bd-929a-4de6-85f3-0105a046a608",
                  "type": "CARD_TRANSACTION"
                }
              ],
              "statement_url": "https://customer-documents.ramp.com/card_statement/business_00000000-0000-4000-8000-000000000000/20230508_11111111-1111-7111-8111-111111111111.pdf?response-content-disposition=attachment%3B+filename%3D%222023-05-06-my-widget-store-overview.pdf%22&Expires=1704717900&Signature=EXAMPLESIGNATURE__&Key-Pair-Id=K1EXAMPLEKEYID&Hash-Algorithm=SHA256"
            }
          ],
          "page": {
            "next": "https://api.ramp.com/developer/v1/<resources>?<new_params>"
          }
        },
        "properties": {
          "data": {
            "description": "Resources returned in this page.",
            "items": {
              "$ref": "#/components/schemas/Statement"
            },
            "type": "array"
          },
          "page": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DeveloperAPINestedPage"
              }
            ],
            "description": "Pagination details for this response."
          }
        },
        "required": [
          "data",
          "page"
        ],
        "type": "object"
      },
      "PaginatedResponseAuditLogEventWithSpecificDetailsResourceSchema": {
        "example": {
          "data": [
            {
              "actor_details": {
                "actor_type": "ramp"
              },
              "actor_id": "c4e416c9-9239-42ac-a4ca-81ccef8c8053",
              "actor_type": "ramp",
              "additional_details": "Removed vendor owner",
              "event_details": {
                "references": [
                  {
                    "label": "Payee - Big Mouth Coffee Roasters",
                    "resource_name": "Vendor / Merchant",
                    "url": "/vendors/profile/bcf5d623-0429-4676-8750-e52e1f2e2d60/overview"
                  }
                ]
              },
              "event_time": "2025-10-03T06:26:57+00:00",
              "event_type": "Edited vendor field",
              "id": "0199a8c0-b40a-7c1e-bb8e-e8f850c29947",
              "primary_reference": {
                "id": "bcf5d623-0429-4676-8750-e52e1f2e2d60",
                "label": "Payee - Big Mouth Coffee Roasters",
                "resource_name": "Vendor / Merchant",
                "url": "/vendors/profile/bcf5d623-0429-4676-8750-e52e1f2e2d60/overview"
              },
              "user_details": null
            }
          ],
          "page": {
            "next": "https://api.ramp.com/developer/v1/<resources>?<new_params>"
          }
        },
        "properties": {
          "data": {
            "description": "Resources returned in this page.",
            "items": {
              "$ref": "#/components/schemas/AuditLogEventResource"
            },
            "type": "array"
          },
          "page": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DeveloperAPINestedPage"
              }
            ],
            "description": "Pagination details for this response."
          }
        },
        "required": [
          "data",
          "page"
        ],
        "type": "object"
      },
      "PatchAgentBillInventoryLineItemRequestBody": {
        "additionalProperties": false,
        "description": "Inventory (item) line item. Fields omitted on an existing line keep their saved value.",
        "properties": {
          "amount": {
            "default": null,
            "nullable": true,
            "oneOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              }
            ]
          },
          "bill_line_item_tracking_category_selections": {
            "description": "Accounting field values. Include at most one selection per tracking category.",
            "items": {
              "$ref": "#/components/schemas/AgentTrackingCategorySelectionRequestBody"
            },
            "type": "array"
          },
          "memo": {
            "default": null,
            "nullable": true,
            "type": "string"
          },
          "quantity": {
            "default": null,
            "nullable": true,
            "oneOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              }
            ]
          },
          "unit_price": {
            "default": null,
            "nullable": true,
            "oneOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              }
            ]
          },
          "uuid": {
            "default": null,
            "description": "UUID of an existing line item; null for a new line.",
            "nullable": true,
            "type": "string"
          }
        },
        "title": "PatchAgentBillInventoryLineItem",
        "type": "object"
      },
      "PatchAgentBillLineItemRequestBody": {
        "additionalProperties": false,
        "description": "Expense line item. Fields omitted on an existing line keep their saved value.",
        "properties": {
          "amount": {
            "default": null,
            "nullable": true,
            "oneOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              }
            ]
          },
          "bill_line_item_tracking_category_selections": {
            "description": "Accounting field values. Include at most one selection per tracking category.",
            "items": {
              "$ref": "#/components/schemas/AgentTrackingCategorySelectionRequestBody"
            },
            "type": "array"
          },
          "is_single_line_form": {
            "default": null,
            "description": "Collapsed form summary/coding row, not a billable line: its amount never contributes to the bill total. Preserve it alongside ordinary lines, not instead of them. For a new billable line, omit this field or set false. For an existing summary row, omission preserves true; explicitly set false to convert that row into a billable line.",
            "nullable": true,
            "type": "boolean"
          },
          "memo": {
            "default": null,
            "nullable": true,
            "type": "string"
          },
          "purchase_order_id": {
            "default": null,
            "description": "UUID of the linked purchase order.",
            "nullable": true,
            "type": "string"
          },
          "purchase_order_line_item_log_entry_uuid": {
            "default": null,
            "nullable": true,
            "type": "string"
          },
          "unit_price": {
            "default": null,
            "nullable": true,
            "oneOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              }
            ]
          },
          "unit_quantity": {
            "default": null,
            "nullable": true,
            "oneOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              }
            ]
          },
          "uuid": {
            "default": null,
            "description": "UUID of an existing line item; null for a new line.",
            "nullable": true,
            "type": "string"
          }
        },
        "title": "PatchAgentBillLineItem",
        "type": "object"
      },
      "PatchAgentDraftBillRequestBody": {
        "additionalProperties": false,
        "description": "Draft bill fields to change. Omitted fields are unchanged; null clears a field.",
        "properties": {
          "accounting_sync_date": {
            "format": "date",
            "nullable": true,
            "type": "string"
          },
          "bill_due_at": {
            "format": "date",
            "nullable": true,
            "type": "string"
          },
          "bill_inventory_line_items": {
            "description": "The full list of inventory lines; lines left out are deleted. On an existing line (by `uuid`), only send fields to change.",
            "items": {
              "$ref": "#/components/schemas/PatchAgentBillInventoryLineItemRequestBody"
            },
            "nullable": true,
            "type": "array"
          },
          "bill_issued_at": {
            "format": "date",
            "nullable": true,
            "type": "string"
          },
          "bill_line_items": {
            "description": "The full list of expense lines; lines left out are deleted. On an existing line (by `uuid`), only send fields to change.",
            "items": {
              "$ref": "#/components/schemas/PatchAgentBillLineItemRequestBody"
            },
            "nullable": true,
            "type": "array"
          },
          "bill_owner_user_uuids": {
            "description": "User UUIDs of the bill owners, whose managers can drive approval routing. Replaces all current owners; an empty list removes them. To add an owner, include the current owners from the draft's bill_owners. Omit to keep the current owners.",
            "items": {
              "$ref": "#/components/schemas/UUIDStrRequestBody"
            },
            "type": "array"
          },
          "bill_tracking_category_selections": {
            "description": "The full list of bill-level accounting field values; categories left out are removed. Include at most one selection per tracking category.",
            "items": {
              "$ref": "#/components/schemas/AgentTrackingCategorySelectionRequestBody"
            },
            "nullable": true,
            "type": "array"
          },
          "business_vendor_contact_uuid": {
            "nullable": true,
            "type": "string"
          },
          "entity_uuid": {
            "nullable": true,
            "type": "string"
          },
          "invoice_currency": {
            "description": "3-letter ISO 4217 currency code.",
            "nullable": true,
            "type": "string"
          },
          "invoice_number": {
            "nullable": true,
            "type": "string"
          },
          "invoices": {
            "description": "Attached invoice documents.",
            "items": {
              "$ref": "#/components/schemas/AgentDraftBillInvoiceRequestBody"
            },
            "nullable": true,
            "type": "array"
          },
          "memo": {
            "description": "Bill description.",
            "nullable": true,
            "type": "string"
          },
          "payee_uuid": {
            "description": "UUID of the vendor.",
            "nullable": true,
            "type": "string"
          },
          "payment_details": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AgentDraftBillPaymentDetailsRequestBody"
              }
            ],
            "nullable": true
          },
          "purchase_order_ids": {
            "description": "UUIDs of linked purchase orders.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "purchase_order_links": {
            "description": "Linked purchase orders with provenance; must match purchase_order_ids when both are set.",
            "items": {
              "$ref": "#/components/schemas/AgentPurchaseOrderLinkRequestBody"
            },
            "nullable": true,
            "type": "array"
          },
          "service_end_date": {
            "format": "date",
            "nullable": true,
            "type": "string"
          },
          "service_start_date": {
            "format": "date",
            "nullable": true,
            "type": "string"
          },
          "vendor_memo": {
            "description": "Vendor-facing memo or payment reference.",
            "nullable": true,
            "type": "string"
          }
        },
        "title": "PatchAgentDraftBill",
        "type": "object"
      },
      "PatchProvisionalBillRequestBody": {
        "description": "Update a draft bill: its fields, line items, accounting category coding, and draft payment details. Requires the current draft version and returns the new version; stale updates are rejected with the current version. Omitted fields remain unchanged, while null intentionally clears a nullable field. A successful update returns whether the resulting draft is ready for submission and any missing required fields or submission-policy blockers. Tracking-category and option identifiers accept integer DB ids or resolvable UUID strings. Submitted drafts and drafts with retainage (withholding) are not supported.",
        "properties": {
          "provisional_bill": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PatchAgentDraftBillRequestBody"
              }
            ],
            "description": "Draft bill fields to change, in the draft's `editable_payload` shape. Omitted fields are unchanged; null clears a nullable field. To change the payment method of a draft that has payments, also pass vendor_payments. An explicit payment_details.payment_date updates the single bank-transfer or check draft payment; null unschedules it. Changing other payment details or the bill total at the same time requires explicit vendor_payments. Split payments require explicit vendor_payments. When both date sources are supplied, their dates must agree."
          },
          "provisional_bill_id": {
            "description": "UUID of the draft bill to update",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "type": "string"
          },
          "vendor_payments": {
            "default": null,
            "description": "Draft payments. Replaces all existing draft payments. Omit to leave them unchanged except for an explicit bill-level date edit. Null is accepted only alongside explicit payment_details.payment_date and does not remove payments.",
            "items": {
              "$ref": "#/components/schemas/AgentDraftBillVendorPaymentRequestBody"
            },
            "nullable": true,
            "type": "array"
          },
          "version": {
            "description": "Expected current draft version. A stale value is rejected and the error returns the latest version.",
            "type": "string"
          }
        },
        "required": [
          "provisional_bill",
          "provisional_bill_id",
          "rationale",
          "version"
        ],
        "title": "PatchProvisionalBill",
        "type": "object"
      },
      "PatchProvisionalBillResult": {
        "properties": {
          "bill_url": {
            "default": null,
            "description": "Deep link to the patched draft bill in the Ramp web app.",
            "nullable": true,
            "title": "Bill Url",
            "type": "string"
          },
          "has_submission_policy_violations": {
            "default": false,
            "description": "Whether submission policy violations still prevent draft submission. These are separate from missing required fields.",
            "title": "Has Submission Policy Violations",
            "type": "boolean"
          },
          "is_ready_for_submission": {
            "default": null,
            "description": "Whether the patched draft is ready to submit. A false value means the draft must not be submitted. None is returned when readiness was not evaluated, such as for a no-op result.",
            "nullable": true,
            "title": "Is Ready For Submission",
            "type": "boolean"
          },
          "message": {
            "description": "Human-readable result summary",
            "title": "Message",
            "type": "string"
          },
          "missing_required_fields": {
            "default": [],
            "description": "Required draft fields that remain missing or incomplete after the update.",
            "items": {
              "type": "string"
            },
            "title": "Missing Required Fields",
            "type": "array"
          },
          "missing_requirements": {
            "default": [],
            "description": "Structured missing or incomplete requirements, each with a stable code and, for accounting fields, the specific tracking categories to set.",
            "items": {
              "$ref": "#/components/schemas/DraftBillMissingRequirement"
            },
            "title": "Missing Requirements",
            "type": "array"
          },
          "provisional_bill_id": {
            "description": "UUID of the draft bill that was updated",
            "title": "Provisional Bill Id",
            "type": "string"
          },
          "version": {
            "default": null,
            "description": "New draft bill version after the update, for optimistic concurrency on a later edit.",
            "nullable": true,
            "title": "Version",
            "type": "string"
          }
        },
        "required": [
          "message",
          "provisional_bill_id"
        ],
        "title": "PatchProvisionalBillResult",
        "type": "object"
      },
      "PayWithX402RequestBody": {
        "description": "Pay an x402 payment request from your business's stablecoin balance.\n\nFill the inputs from the merchant's 402 payment challenge. Returns a ready-to-send\npayment header to attach when retrying the original request.",
        "properties": {
          "accepted": {
            "allOf": [
              {
                "$ref": "#/components/schemas/X402AcceptedSolanaPaymentRequirementsRequestBody"
              }
            ],
            "description": "Exact chosen entry from the challenge's accepts array"
          },
          "extensions": {
            "default": null,
            "description": "Extensions object from the merchant's 402 challenge",
            "nullable": true,
            "title": "Extensions",
            "type": "object"
          },
          "idempotency_key": {
            "description": "Caller-generated UUID identifying this payment attempt",
            "format": "uuid",
            "title": "Idempotency Key",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "resource": {
            "allOf": [
              {
                "$ref": "#/components/schemas/X402ResourceRequestBody"
              }
            ],
            "description": "Resource object from the merchant's 402 challenge"
          }
        },
        "required": [
          "accepted",
          "idempotency_key",
          "rationale",
          "resource"
        ],
        "title": "PayWithX402",
        "type": "object"
      },
      "PayeeAgreementOrderingRequestBody": {
        "enum": [
          "AVERAGE_ANNUAL_VALUE",
          "CONTRACT_NAME",
          "CONTRACT_TYPE",
          "DEPARTMENT",
          "END_DATE",
          "LAST_DATE_TO_TERMINATE",
          "NUM_DAYS_REMAINING",
          "PAYEE_NAME",
          "PRICE_POSITION",
          "RENEWAL_STATUS",
          "START_DATE",
          "TOTAL_AMOUNT"
        ],
        "title": "PayeeAgreementOrdering",
        "type": "string"
      },
      "PayeeContactRequestBody": {
        "properties": {
          "contact_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayeeContactTypeRequestBody"
              }
            ],
            "default": null,
            "description": "Contact type",
            "nullable": true
          },
          "email": {
            "description": "Contact email address",
            "title": "Email",
            "type": "string"
          },
          "first_name": {
            "default": null,
            "description": "Contact first name",
            "maxLength": 40,
            "nullable": true,
            "title": "First Name",
            "type": "string"
          },
          "last_name": {
            "default": null,
            "description": "Contact last name",
            "maxLength": 40,
            "nullable": true,
            "title": "Last Name",
            "type": "string"
          },
          "notes": {
            "default": null,
            "description": "Additional notes about the contact",
            "nullable": true,
            "title": "Notes",
            "type": "string"
          },
          "phone_number": {
            "default": null,
            "description": "Contact phone number",
            "nullable": true,
            "title": "Phone Number",
            "type": "string"
          }
        },
        "required": [
          "email"
        ],
        "title": "PayeeContact",
        "type": "object"
      },
      "PayeeContactTypeRequestBody": {
        "enum": [
          "ACCOUNTS_PAYABLE",
          "ACCOUNTS_RECEIVABLE",
          "IT",
          "OTHER",
          "PROCUREMENT",
          "SALES",
          "SUPPORT"
        ],
        "title": "PayeeContactType",
        "type": "string"
      },
      "PayeeDeflectionMatchesJsonMode": {
        "properties": {
          "error": {
            "default": null,
            "nullable": true,
            "title": "Error",
            "type": "string"
          },
          "matches": {
            "items": {
              "discriminator": {
                "mapping": {
                  "restricted": "#/components/schemas/RestrictedProcurementDeflectionMatchJsonMode",
                  "visible": "#/components/schemas/VisibleProcurementDeflectionMatchJsonMode"
                },
                "propertyName": "visibility"
              },
              "oneOf": [
                {
                  "$ref": "#/components/schemas/RestrictedProcurementDeflectionMatchJsonMode"
                },
                {
                  "$ref": "#/components/schemas/VisibleProcurementDeflectionMatchJsonMode"
                }
              ]
            },
            "title": "Matches",
            "type": "array"
          },
          "payee_uuid": {
            "$ref": "#/components/schemas/UUIDStrJsonMode"
          }
        },
        "required": [
          "payee_uuid"
        ],
        "title": "PayeeDeflectionMatches",
        "type": "object"
      },
      "PayeeDocumentCategory": {
        "enum": [
          "ADDENDUM_OR_RIDER",
          "AMENDMENT",
          "BANK_LETTER",
          "CAIQ_LITE",
          "CERTIFICATE_OF_INSURANCE",
          "CONTRACT_OTHER",
          "DATA_PROTECTION_AGREEMENT",
          "ECOVADIS",
          "ENGAGEMENT_LETTER",
          "FAQ",
          "FORM_1099",
          "GDPR",
          "HIPAA",
          "INVOICE",
          "ISO_27001",
          "ISO_9001",
          "MSA",
          "NDA",
          "NMSDC_CERTIFICATION",
          "ORDER_FORM",
          "OTHER",
          "PAYMENT_INSTRUCTIONS",
          "PCI_DSS",
          "PEN_TEST_REPORT",
          "PRIVACY_POLICY",
          "PURCHASE_ORDER",
          "QUESTIONNAIRE",
          "QUOTE",
          "SECURITY_DOCUMENT",
          "SECURITY_EXHIBIT",
          "SIG",
          "SLA",
          "SOC_1_TYPE_1",
          "SOC_1_TYPE_2",
          "SOC_2",
          "SOW",
          "TAX_DOCUMENT",
          "TAX_DOCUMENT_INTL_COR",
          "TAX_DOCUMENT_INTL_GOV_FORM",
          "TAX_DOCUMENT_INTL_OTHER",
          "TAX_DOCUMENT_INTL_STATUTORY_FORM",
          "TOS",
          "VENDOR_CONTRACT",
          "VENDOR_CREDIT",
          "VOIDED_CHECK",
          "W8",
          "W9"
        ],
        "title": "PayeeDocumentCategory",
        "type": "string",
        "x-enum-descriptions": {
          "BANK_LETTER": "A bank letter used to verify bank account details.",
          "PURCHASE_ORDER": "A buyer-issued purchase order authorizing goods or services.",
          "QUESTIONNAIRE": "A vendor questionnaire document.",
          "TAX_DOCUMENT_INTL_COR": "A certificate establishing a vendor's tax residence.",
          "TAX_DOCUMENT_INTL_GOV_FORM": "A tax form issued by a government authority.",
          "TAX_DOCUMENT_INTL_OTHER": "An international tax document not covered by a more specific category.",
          "TAX_DOCUMENT_INTL_STATUTORY_FORM": "A tax form required by local law."
        }
      },
      "PayeeDocumentCategoryRequestBody": {
        "enum": [
          "ADDENDUM_OR_RIDER",
          "AMENDMENT",
          "BANK_LETTER",
          "CAIQ_LITE",
          "CERTIFICATE_OF_INSURANCE",
          "CONTRACT_OTHER",
          "DATA_PROTECTION_AGREEMENT",
          "ECOVADIS",
          "ENGAGEMENT_LETTER",
          "FAQ",
          "FORM_1099",
          "GDPR",
          "HIPAA",
          "INVOICE",
          "ISO_27001",
          "ISO_9001",
          "MSA",
          "NDA",
          "NMSDC_CERTIFICATION",
          "ORDER_FORM",
          "OTHER",
          "PAYMENT_INSTRUCTIONS",
          "PCI_DSS",
          "PEN_TEST_REPORT",
          "PRIVACY_POLICY",
          "PURCHASE_ORDER",
          "QUESTIONNAIRE",
          "QUOTE",
          "SECURITY_DOCUMENT",
          "SECURITY_EXHIBIT",
          "SIG",
          "SLA",
          "SOC_1_TYPE_1",
          "SOC_1_TYPE_2",
          "SOC_2",
          "SOW",
          "TAX_DOCUMENT",
          "TAX_DOCUMENT_INTL_COR",
          "TAX_DOCUMENT_INTL_GOV_FORM",
          "TAX_DOCUMENT_INTL_OTHER",
          "TAX_DOCUMENT_INTL_STATUTORY_FORM",
          "TOS",
          "VENDOR_CONTRACT",
          "VENDOR_CREDIT",
          "VOIDED_CHECK",
          "W8",
          "W9"
        ],
        "title": "PayeeDocumentCategory",
        "type": "string",
        "x-enum-descriptions": {
          "BANK_LETTER": "A bank letter used to verify bank account details.",
          "PURCHASE_ORDER": "A buyer-issued purchase order authorizing goods or services.",
          "QUESTIONNAIRE": "A vendor questionnaire document.",
          "TAX_DOCUMENT_INTL_COR": "A certificate establishing a vendor's tax residence.",
          "TAX_DOCUMENT_INTL_GOV_FORM": "A tax form issued by a government authority.",
          "TAX_DOCUMENT_INTL_OTHER": "An international tax document not covered by a more specific category.",
          "TAX_DOCUMENT_INTL_STATUTORY_FORM": "A tax form required by local law."
        }
      },
      "PayeeDocumentState": {
        "enum": [
          "ACTIVE",
          "PROCESSING",
          "PROCESSING_FAILED",
          "TRIAGE"
        ],
        "title": "PayeeDocumentState",
        "type": "string"
      },
      "PaymentMethodType": {
        "enum": [
          "AIRLINE_CREDIT",
          "CARD",
          "UATP"
        ],
        "title": "PaymentMethodType",
        "type": "string"
      },
      "PaymentTokenResult": {
        "properties": {
          "billing_address": {
            "$ref": "#/components/schemas/BillingAddress"
          },
          "cardholder_name": {
            "title": "Cardholder Name",
            "type": "string"
          },
          "cvv": {
            "title": "Cvv",
            "type": "string"
          },
          "expiration_month": {
            "title": "Expiration Month",
            "type": "string"
          },
          "expiration_year": {
            "title": "Expiration Year",
            "type": "string"
          },
          "pan": {
            "title": "Pan",
            "type": "string"
          }
        },
        "required": [
          "billing_address",
          "cardholder_name",
          "cvv",
          "expiration_month",
          "expiration_year",
          "pan"
        ],
        "title": "PaymentTokenResult",
        "type": "object"
      },
      "PendingWbpRequestFieldResolution": {
        "description": "Active background work that may fill requester-visible request fields.",
        "properties": {
          "async_job_uuid": {
            "format": "uuid",
            "title": "Async Job Uuid",
            "type": "string"
          },
          "field_write_keys": {
            "items": {
              "type": "string"
            },
            "title": "Field Write Keys",
            "type": "array"
          },
          "header_field_write_keys": {
            "items": {
              "type": "string"
            },
            "title": "Header Field Write Keys",
            "type": "array"
          },
          "line_item_field_write_keys": {
            "items": {
              "$ref": "#/components/schemas/PendingWbpRequestLineItemFieldWriteKey"
            },
            "title": "Line Item Field Write Keys",
            "type": "array"
          }
        },
        "required": [
          "async_job_uuid",
          "field_write_keys"
        ],
        "title": "PendingWbpRequestFieldResolution",
        "type": "object"
      },
      "PendingWbpRequestLineItemFieldWriteKey": {
        "description": "One PO line-item coding slot the active job may fill.",
        "properties": {
          "line_item_uuid": {
            "title": "Line Item Uuid",
            "type": "string"
          },
          "tracking_category_uuid": {
            "title": "Tracking Category Uuid",
            "type": "string"
          }
        },
        "required": [
          "line_item_uuid",
          "tracking_category_uuid"
        ],
        "title": "PendingWbpRequestLineItemFieldWriteKey",
        "type": "object"
      },
      "PerDiemDayInputRequestBody": {
        "properties": {
          "breakfast_provided": {
            "description": "Whether breakfast was provided (and should be deducted) on this day.",
            "title": "Breakfast Provided",
            "type": "boolean"
          },
          "date": {
            "description": "Calendar day this entry describes (YYYY-MM-DD).",
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "dinner_provided": {
            "description": "Whether dinner was provided (and should be deducted) on this day.",
            "title": "Dinner Provided",
            "type": "boolean"
          },
          "lodging_requested": {
            "default": false,
            "description": "Whether lodging is requested for this day.",
            "title": "Lodging Requested",
            "type": "boolean"
          },
          "lodging_requested_amount": {
            "default": null,
            "description": "Requested lodging amount for this day, as a decimal string. Null when not requested.",
            "nullable": true,
            "title": "Lodging Requested Amount",
            "type": "string"
          },
          "lunch_provided": {
            "description": "Whether lunch was provided (and should be deducted) on this day.",
            "title": "Lunch Provided",
            "type": "boolean"
          }
        },
        "required": [
          "breakfast_provided",
          "date",
          "dinner_provided",
          "lunch_provided"
        ],
        "title": "PerDiemDayInput",
        "type": "object"
      },
      "PlainAggregation": {
        "additionalProperties": false,
        "properties": {
          "type": {
            "enum": [
              "AVG",
              "MAX",
              "MEDIAN_NUMERIC",
              "MIN",
              "SUM"
            ],
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "type"
        ],
        "title": "PlainAggregation",
        "type": "object"
      },
      "PlainAggregationRequestBody": {
        "additionalProperties": false,
        "properties": {
          "type": {
            "enum": [
              "AVG",
              "MAX",
              "MEDIAN_NUMERIC",
              "MIN",
              "SUM"
            ],
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "type"
        ],
        "title": "PlainAggregation",
        "type": "object"
      },
      "PlanningBudgetLine": {
        "properties": {
          "amounts": {
            "description": "Per period, ordered by start; NULL unless amounts were requested.",
            "items": {
              "$ref": "#/components/schemas/PlanningPeriodAmount"
            },
            "nullable": true,
            "title": "Amounts",
            "type": "array"
          },
          "description": {
            "nullable": true,
            "title": "Description",
            "type": "string"
          },
          "dimensions": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "Dimension name to the line's own value, or a group's values; an omitted dimension matches any value.",
            "title": "Dimensions",
            "type": "object"
          },
          "is_group": {
            "description": "Groups total the lines sharing their values and have no plan of their own; edits target lines.",
            "title": "Is Group",
            "type": "boolean"
          },
          "owners": {
            "description": "Read-only owner names derived from the line's selected dimension values.",
            "items": {
              "type": "string"
            },
            "title": "Owners",
            "type": "array"
          },
          "path": {
            "description": "Node names from the root, joined by \" > \".",
            "title": "Path",
            "type": "string"
          },
          "totals": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PlanningTotals"
              }
            ],
            "description": "Over the requested month range; NULL unless a range was requested.",
            "nullable": true
          }
        },
        "required": [
          "amounts",
          "description",
          "dimensions",
          "is_group",
          "owners",
          "path",
          "totals"
        ],
        "title": "PlanningBudgetLine",
        "type": "object"
      },
      "PlanningBudgetView": {
        "properties": {
          "currency": {
            "$ref": "#/components/schemas/Currency"
          },
          "end_date": {
            "description": "Exclusive.",
            "format": "date",
            "nullable": true,
            "title": "End Date",
            "type": "string"
          },
          "lines": {
            "description": "This page of matching groups and lines, groups before their children. A group's amounts and totals include every line under it, whether or not those lines are on this page or match the filters.",
            "items": {
              "$ref": "#/components/schemas/PlanningBudgetLine"
            },
            "title": "Lines",
            "type": "array"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "next_cursor": {
            "default": null,
            "description": "Cursor for the next page of matching lines; NULL on the last page.",
            "nullable": true,
            "title": "Next Cursor",
            "type": "string"
          },
          "selected_dimensions": {
            "description": "Dimensions selected by this budget, in display order, with stable UUIDs.",
            "items": {
              "$ref": "#/components/schemas/Dimension"
            },
            "title": "Selected Dimensions",
            "type": "array"
          },
          "start_date": {
            "format": "date",
            "nullable": true,
            "title": "Start Date",
            "type": "string"
          },
          "total_lines": {
            "description": "Lines matching the filters across all pages, not only this page.",
            "title": "Total Lines",
            "type": "integer"
          },
          "totals_from": {
            "description": "Start of the range totals cover, widened to whole months.",
            "format": "date",
            "nullable": true,
            "title": "Totals From",
            "type": "string"
          },
          "totals_to": {
            "description": "Inclusive end of the range totals cover, widened to whole months; NULL when it reaches the budget's open-ended last month or no range was requested.",
            "format": "date",
            "nullable": true,
            "title": "Totals To",
            "type": "string"
          }
        },
        "required": [
          "currency",
          "end_date",
          "lines",
          "name",
          "start_date",
          "total_lines",
          "totals_from",
          "totals_to"
        ],
        "title": "PlanningBudgetView",
        "type": "object"
      },
      "PlanningPeriodAmount": {
        "properties": {
          "actual": {
            "title": "Actual",
            "type": "number"
          },
          "committed": {
            "title": "Committed",
            "type": "number"
          },
          "period_start": {
            "format": "date",
            "title": "Period Start",
            "type": "string"
          },
          "planned": {
            "description": "NULL means not planned.",
            "nullable": true,
            "title": "Planned",
            "type": "number"
          }
        },
        "required": [
          "actual",
          "committed",
          "period_start",
          "planned"
        ],
        "title": "PlanningPeriodAmount",
        "type": "object"
      },
      "PlanningSpendItem": {
        "properties": {
          "amount": {
            "description": "In the budget's currency.",
            "title": "Amount",
            "type": "number"
          },
          "amount_type": {
            "$ref": "#/components/schemas/BudgetAmountType"
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "department": {
            "nullable": true,
            "title": "Department",
            "type": "string"
          },
          "line_path": {
            "description": "NULL when no line matched the spend or its line was deleted.",
            "nullable": true,
            "title": "Line Path",
            "type": "string"
          },
          "location": {
            "nullable": true,
            "title": "Location",
            "type": "string"
          },
          "memo": {
            "nullable": true,
            "title": "Memo",
            "type": "string"
          },
          "on_deleted_line": {
            "description": "Still counted toward a line deleted since the last recalculation, which will reroute it; not unassigned spend.",
            "title": "On Deleted Line",
            "type": "boolean"
          },
          "payee": {
            "nullable": true,
            "title": "Payee",
            "type": "string"
          },
          "source": {
            "$ref": "#/components/schemas/BudgetContributionSource"
          },
          "spend_allocation": {
            "nullable": true,
            "title": "Spend Allocation",
            "type": "string"
          },
          "spend_type": {
            "description": "TRANSACTION, REIMBURSEMENT, or BILL for spend events.",
            "nullable": true,
            "title": "Spend Type",
            "type": "string"
          },
          "user": {
            "nullable": true,
            "title": "User",
            "type": "string"
          }
        },
        "required": [
          "amount",
          "amount_type",
          "date",
          "department",
          "line_path",
          "location",
          "memo",
          "on_deleted_line",
          "payee",
          "source",
          "spend_allocation",
          "spend_type",
          "user"
        ],
        "title": "PlanningSpendItem",
        "type": "object"
      },
      "PlanningSpendPage": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PlanningSpendItem"
            },
            "title": "Items",
            "type": "array"
          },
          "next_cursor": {
            "nullable": true,
            "title": "Next Cursor",
            "type": "string"
          },
          "total_count": {
            "description": "Items matching the filters across all pages.",
            "title": "Total Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "next_cursor",
          "total_count"
        ],
        "title": "PlanningSpendPage",
        "type": "object"
      },
      "PlanningTotals": {
        "properties": {
          "actual": {
            "title": "Actual",
            "type": "number"
          },
          "committed": {
            "title": "Committed",
            "type": "number"
          },
          "planned": {
            "description": "Planned total; NULL when nothing in range is planned.",
            "nullable": true,
            "title": "Planned",
            "type": "number"
          },
          "remaining": {
            "description": "Planned minus actual and committed; negative when over, NULL when unplanned.",
            "nullable": true,
            "title": "Remaining",
            "type": "number"
          }
        },
        "required": [
          "actual",
          "committed",
          "planned",
          "remaining"
        ],
        "title": "PlanningTotals",
        "type": "object"
      },
      "PluginActor": {
        "properties": {
          "kind": {
            "title": "Kind",
            "type": "string"
          },
          "user_ref": {
            "default": null,
            "nullable": true,
            "title": "User Ref",
            "type": "string"
          },
          "via": {
            "title": "Via",
            "type": "string"
          }
        },
        "required": [
          "kind",
          "user_ref",
          "via"
        ],
        "title": "PluginActor",
        "type": "object"
      },
      "PluginDemoSandbox": {
        "additionalProperties": false,
        "description": "What was requested and what an operator reported, not a grant of access to the sandbox.",
        "properties": {
          "business_uuid": {
            "default": null,
            "description": "The sandbox business, once an operator has created it.",
            "format": "uuid",
            "nullable": true,
            "title": "Business Uuid",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "login_url": {
            "default": null,
            "description": "The Glass login page, once the sandbox has been created. The owner's setup link arrives by email. Not proof of a working login.",
            "nullable": true,
            "title": "Login Url",
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/PluginMarketplaceSandboxStatus"
          }
        },
        "required": [
          "business_uuid",
          "id",
          "login_url",
          "status"
        ],
        "title": "PluginDemoSandbox",
        "type": "object"
      },
      "PluginDetail": {
        "properties": {
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "created_by": {
            "$ref": "#/components/schemas/PluginActor"
          },
          "draft_version_id": {
            "format": "uuid",
            "nullable": true,
            "title": "Draft Version Id",
            "type": "string"
          },
          "listing_status": {
            "title": "Listing Status",
            "type": "string"
          },
          "plugin_id": {
            "format": "uuid",
            "title": "Plugin Id",
            "type": "string"
          },
          "published_version_id": {
            "format": "uuid",
            "nullable": true,
            "title": "Published Version Id",
            "type": "string"
          },
          "publisher_id": {
            "format": "uuid",
            "title": "Publisher Id",
            "type": "string"
          },
          "review_version_id": {
            "format": "uuid",
            "nullable": true,
            "title": "Review Version Id",
            "type": "string"
          },
          "revision": {
            "title": "Revision",
            "type": "integer"
          },
          "slug": {
            "title": "Slug",
            "type": "string"
          },
          "suspension_reason": {
            "nullable": true,
            "title": "Suspension Reason",
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          }
        },
        "required": [
          "created_at",
          "created_by",
          "draft_version_id",
          "listing_status",
          "plugin_id",
          "published_version_id",
          "publisher_id",
          "review_version_id",
          "revision",
          "slug",
          "suspension_reason",
          "updated_at"
        ],
        "title": "PluginDetail",
        "type": "object"
      },
      "PluginDraftSaved": {
        "properties": {
          "draft": {
            "$ref": "#/components/schemas/PluginVersionDetails"
          },
          "plugin": {
            "$ref": "#/components/schemas/PluginDetail"
          }
        },
        "required": [
          "draft",
          "plugin"
        ],
        "title": "PluginDraftSaved",
        "type": "object"
      },
      "PluginListItem": {
        "properties": {
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "draft_version_id": {
            "format": "uuid",
            "nullable": true,
            "title": "Draft Version Id",
            "type": "string"
          },
          "latest_version_name": {
            "nullable": true,
            "title": "Latest Version Name",
            "type": "string"
          },
          "latest_version_status": {
            "nullable": true,
            "title": "Latest Version Status",
            "type": "string"
          },
          "listing_status": {
            "title": "Listing Status",
            "type": "string"
          },
          "plugin_id": {
            "format": "uuid",
            "title": "Plugin Id",
            "type": "string"
          },
          "published_version_id": {
            "format": "uuid",
            "nullable": true,
            "title": "Published Version Id",
            "type": "string"
          },
          "publisher_id": {
            "format": "uuid",
            "title": "Publisher Id",
            "type": "string"
          },
          "review_version_id": {
            "format": "uuid",
            "nullable": true,
            "title": "Review Version Id",
            "type": "string"
          },
          "revision": {
            "title": "Revision",
            "type": "integer"
          },
          "slug": {
            "title": "Slug",
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          }
        },
        "required": [
          "created_at",
          "draft_version_id",
          "latest_version_name",
          "latest_version_status",
          "listing_status",
          "plugin_id",
          "published_version_id",
          "publisher_id",
          "review_version_id",
          "revision",
          "slug",
          "updated_at"
        ],
        "title": "PluginListItem",
        "type": "object"
      },
      "PluginMarketplaceDetails": {
        "properties": {
          "latest_version": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PluginVersionDetails"
              }
            ],
            "nullable": true
          },
          "plugin": {
            "$ref": "#/components/schemas/PluginDetail"
          },
          "versions": {
            "items": {
              "$ref": "#/components/schemas/PluginVersionRow"
            },
            "title": "Versions",
            "type": "array"
          }
        },
        "required": [
          "latest_version",
          "plugin",
          "versions"
        ],
        "title": "PluginMarketplaceDetails",
        "type": "object"
      },
      "PluginMarketplaceSandboxStatus": {
        "enum": [
          "completed",
          "requested"
        ],
        "title": "PluginMarketplaceSandboxStatus",
        "type": "string"
      },
      "PluginReviewDecision": {
        "properties": {
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "feedback": {
            "nullable": true,
            "title": "Feedback",
            "type": "string"
          },
          "outcome": {
            "title": "Outcome",
            "type": "string"
          },
          "reviewer": {
            "$ref": "#/components/schemas/PluginReviewer"
          }
        },
        "required": [
          "created_at",
          "feedback",
          "outcome",
          "reviewer"
        ],
        "title": "PluginReviewDecision",
        "type": "object"
      },
      "PluginReviewer": {
        "description": "A reviewer can be a Ramp employee, so providers do not see who it is.",
        "properties": {
          "kind": {
            "title": "Kind",
            "type": "string"
          },
          "via": {
            "title": "Via",
            "type": "string"
          }
        },
        "required": [
          "kind",
          "via"
        ],
        "title": "PluginReviewer",
        "type": "object"
      },
      "PluginSkillRecord": {
        "properties": {
          "body": {
            "title": "Body",
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "frontmatter": {
            "additionalProperties": {
              "$ref": "#/components/schemas/JsonValue"
            },
            "title": "Frontmatter",
            "type": "object"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "position": {
            "title": "Position",
            "type": "integer"
          },
          "sha256": {
            "title": "Sha256",
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          },
          "version_id": {
            "format": "uuid",
            "title": "Version Id",
            "type": "string"
          }
        },
        "required": [
          "body",
          "created_at",
          "frontmatter",
          "id",
          "name",
          "position",
          "sha256",
          "updated_at",
          "version_id"
        ],
        "title": "PluginSkillRecord",
        "type": "object"
      },
      "PluginVersionContent": {
        "properties": {
          "attestations": {
            "additionalProperties": {
              "$ref": "#/components/schemas/JsonValue"
            },
            "title": "Attestations",
            "type": "object"
          },
          "auth_type": {
            "nullable": true,
            "title": "Auth Type",
            "type": "string"
          },
          "category": {
            "nullable": true,
            "title": "Category",
            "type": "string"
          },
          "content_digest": {
            "nullable": true,
            "title": "Content Digest",
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "decided_at": {
            "format": "date-time",
            "nullable": true,
            "title": "Decided At",
            "type": "string"
          },
          "demo_video_url": {
            "default": null,
            "nullable": true,
            "title": "Demo Video Url",
            "type": "string"
          },
          "description": {
            "nullable": true,
            "title": "Description",
            "type": "string"
          },
          "icon_url": {
            "nullable": true,
            "title": "Icon Url",
            "type": "string"
          },
          "mcp_url": {
            "nullable": true,
            "title": "Mcp Url",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "oauth_metadata_snapshot": {
            "additionalProperties": {
              "$ref": "#/components/schemas/JsonValue"
            },
            "nullable": true,
            "title": "Oauth Metadata Snapshot",
            "type": "object"
          },
          "oauth_redirect_uris": {
            "items": {
              "type": "string"
            },
            "title": "Oauth Redirect Uris",
            "type": "array"
          },
          "plugin_id": {
            "format": "uuid",
            "title": "Plugin Id",
            "type": "string"
          },
          "privacy_policy_url": {
            "nullable": true,
            "title": "Privacy Policy Url",
            "type": "string"
          },
          "published_at": {
            "format": "date-time",
            "nullable": true,
            "title": "Published At",
            "type": "string"
          },
          "reviewer_instructions": {
            "nullable": true,
            "title": "Reviewer Instructions",
            "type": "string"
          },
          "status": {
            "title": "Status",
            "type": "string"
          },
          "submitted_at": {
            "format": "date-time",
            "nullable": true,
            "title": "Submitted At",
            "type": "string"
          },
          "submitted_by": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PluginActor"
              }
            ],
            "nullable": true
          },
          "support_url": {
            "nullable": true,
            "title": "Support Url",
            "type": "string"
          },
          "tagline": {
            "nullable": true,
            "title": "Tagline",
            "type": "string"
          },
          "terms_url": {
            "nullable": true,
            "title": "Terms Url",
            "type": "string"
          },
          "test_cases": {
            "items": {
              "$ref": "#/components/schemas/JsonValue"
            },
            "title": "Test Cases",
            "type": "array"
          },
          "transport": {
            "title": "Transport",
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          },
          "version_id": {
            "format": "uuid",
            "title": "Version Id",
            "type": "string"
          },
          "version_number": {
            "title": "Version Number",
            "type": "integer"
          },
          "website_url": {
            "nullable": true,
            "title": "Website Url",
            "type": "string"
          }
        },
        "required": [
          "attestations",
          "auth_type",
          "category",
          "content_digest",
          "created_at",
          "decided_at",
          "description",
          "icon_url",
          "mcp_url",
          "name",
          "oauth_metadata_snapshot",
          "oauth_redirect_uris",
          "plugin_id",
          "privacy_policy_url",
          "published_at",
          "reviewer_instructions",
          "status",
          "submitted_at",
          "submitted_by",
          "support_url",
          "tagline",
          "terms_url",
          "test_cases",
          "transport",
          "updated_at",
          "version_id",
          "version_number",
          "website_url"
        ],
        "title": "PluginVersionContent",
        "type": "object"
      },
      "PluginVersionDetails": {
        "properties": {
          "aggregate_revision": {
            "title": "Aggregate Revision",
            "type": "integer"
          },
          "review_decision": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PluginReviewDecision"
              }
            ],
            "default": null,
            "nullable": true
          },
          "skills": {
            "items": {
              "$ref": "#/components/schemas/PluginSkillRecord"
            },
            "title": "Skills",
            "type": "array"
          },
          "version": {
            "$ref": "#/components/schemas/PluginVersionContent"
          }
        },
        "required": [
          "aggregate_revision",
          "skills",
          "version"
        ],
        "title": "PluginVersionDetails",
        "type": "object"
      },
      "PluginVersionRow": {
        "properties": {
          "content_digest": {
            "nullable": true,
            "title": "Content Digest",
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "decided_at": {
            "format": "date-time",
            "nullable": true,
            "title": "Decided At",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "plugin_id": {
            "format": "uuid",
            "title": "Plugin Id",
            "type": "string"
          },
          "published_at": {
            "format": "date-time",
            "nullable": true,
            "title": "Published At",
            "type": "string"
          },
          "revision": {
            "title": "Revision",
            "type": "integer"
          },
          "status": {
            "title": "Status",
            "type": "string"
          },
          "submitted_at": {
            "format": "date-time",
            "nullable": true,
            "title": "Submitted At",
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          },
          "version_id": {
            "format": "uuid",
            "title": "Version Id",
            "type": "string"
          },
          "version_number": {
            "title": "Version Number",
            "type": "integer"
          }
        },
        "required": [
          "content_digest",
          "created_at",
          "decided_at",
          "name",
          "plugin_id",
          "published_at",
          "revision",
          "status",
          "submitted_at",
          "updated_at",
          "version_id",
          "version_number"
        ],
        "title": "PluginVersionRow",
        "type": "object"
      },
      "PluginsPage": {
        "properties": {
          "next_cursor": {
            "nullable": true,
            "title": "Next Cursor",
            "type": "string"
          },
          "plugins": {
            "items": {
              "$ref": "#/components/schemas/PluginListItem"
            },
            "title": "Plugins",
            "type": "array"
          }
        },
        "required": [
          "next_cursor",
          "plugins"
        ],
        "title": "PluginsPage",
        "type": "object"
      },
      "PolicyAgentRequirement": {
        "properties": {
          "field_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PolicyFieldType"
              }
            ],
            "description": "The required field, such as ATTENDEE."
          },
          "reason": {
            "default": null,
            "description": "Policy Agent's explanation for requiring the field.",
            "nullable": true,
            "title": "Reason",
            "type": "string"
          }
        },
        "required": [
          "field_type"
        ],
        "title": "PolicyAgentRequirement",
        "type": "object"
      },
      "PolicyAnswer": {
        "properties": {
          "answer": {
            "title": "Answer",
            "type": "string"
          },
          "question": {
            "title": "Question",
            "type": "string"
          }
        },
        "required": [
          "answer",
          "question"
        ],
        "title": "PolicyAnswer",
        "type": "object"
      },
      "PolicyConfiguration": {
        "additionalProperties": false,
        "properties": {
          "configuration_id": {
            "maxLength": 128,
            "minLength": 1,
            "title": "Configuration Id",
            "type": "string"
          },
          "method": {
            "maxLength": 128,
            "minLength": 1,
            "title": "Method",
            "type": "string"
          }
        },
        "required": [
          "configuration_id",
          "method"
        ],
        "title": "PolicyConfiguration",
        "type": "object"
      },
      "PolicyConfigurationRequestBody": {
        "additionalProperties": false,
        "properties": {
          "configuration_id": {
            "maxLength": 128,
            "minLength": 1,
            "title": "Configuration Id",
            "type": "string"
          },
          "method": {
            "maxLength": 128,
            "minLength": 1,
            "title": "Method",
            "type": "string"
          }
        },
        "required": [
          "configuration_id",
          "method"
        ],
        "title": "PolicyConfiguration",
        "type": "object"
      },
      "PolicyDetailsSuccess": {
        "description": "Detailed metadata about a single policy.",
        "properties": {
          "allow_self_approvals": {
            "default": null,
            "description": "True if requesters can approve their own requests. Approval policies only; null for submission policies.",
            "nullable": true,
            "title": "Allow Self Approvals",
            "type": "boolean"
          },
          "blank_canvas_workflow_id": {
            "default": null,
            "description": "When the policy is backed by a blank canvas workflow (e.g. procurement spend-request policies) this is the workflow id.",
            "nullable": true,
            "title": "Blank Canvas Workflow Id",
            "type": "string"
          },
          "can_update_separation_of_duties": {
            "default": null,
            "description": "Whether the acting user may change allow_self_approvals or sod_fallback_absolute_group_uuid. If false, do not offer those changes. Approval policies only; null for submission policies.",
            "nullable": true,
            "title": "Can Update Separation Of Duties",
            "type": "boolean"
          },
          "description": {
            "description": "Plain-language description of what this policy governs.",
            "title": "Description",
            "type": "string"
          },
          "display_name": {
            "nullable": true,
            "title": "Display Name",
            "type": "string"
          },
          "is_default": {
            "title": "Is Default",
            "type": "boolean"
          },
          "kind": {
            "$ref": "#/components/schemas/OmniPolicyWorkflowKind"
          },
          "omni_policy_workflow_editor_supported_operations": {
            "description": "Typed Omni edit operations supported for this builder.",
            "items": {
              "$ref": "#/components/schemas/OmniPolicyWorkflowEditorOperation"
            },
            "title": "Omni Policy Workflow Editor Supported Operations",
            "type": "array"
          },
          "policy_uuid": {
            "$ref": "#/components/schemas/UUIDStr"
          },
          "product_workflow_uuid": {
            "default": null,
            "description": "UUID of the ProductWorkflow backing this policy. Pass this to typed draft tools or GetPolicyWorkflowBody only when workflow_body_available is true.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "require_approval_for_policy_changes": {
            "description": "Whether this policy currently requires approval for policy changes. If true, supported protected changes use the governed-change path instead of applying immediately. Always false for submission policies.",
            "title": "Require Approval For Policy Changes",
            "type": "boolean"
          },
          "sod_fallback_absolute_group_uuid": {
            "default": null,
            "description": "Absolute approval group that receives the approval when the requester would otherwise have self-approved. Approval policies only.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "spend_type": {
            "description": "Underlying spend type identifier.",
            "title": "Spend Type",
            "type": "string"
          },
          "workflow_body_available": {
            "default": true,
            "description": "True when GetPolicyWorkflowBody can fetch this policy's workflow body. If false, the policy is not backed by a ProductWorkflow.",
            "title": "Workflow Body Available",
            "type": "boolean"
          }
        },
        "required": [
          "description",
          "display_name",
          "is_default",
          "kind",
          "policy_uuid",
          "require_approval_for_policy_changes",
          "spend_type"
        ],
        "title": "PolicyDetailsSuccess",
        "type": "object"
      },
      "PolicyFieldType": {
        "enum": [
          "ACCOUNTING",
          "ATTENDEE",
          "MANAGER_REVIEW",
          "MEMO",
          "MILEAGE_REIMBURSEMENT_LOCATIONS",
          "PURCHASE_ORDER",
          "RECEIPT",
          "SPEND_ALLOCATION",
          "TRIP",
          "XML_RECEIPT"
        ],
        "title": "PolicyFieldType",
        "type": "string"
      },
      "PolicyListItem": {
        "additionalProperties": false,
        "description": "One immutable wallet policy version and its activation state.",
        "properties": {
          "active": {
            "title": "Active",
            "type": "boolean"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "policy": {
            "$ref": "#/components/schemas/CanonicalPolicy"
          }
        },
        "required": [
          "active",
          "created_at",
          "policy"
        ],
        "title": "PolicyListItem",
        "type": "object"
      },
      "PolicyListQueryRequestBody": {
        "additionalProperties": false,
        "description": "Bounded policy-history query.",
        "properties": {
          "limit": {
            "default": 100,
            "maximum": 100,
            "minimum": 1,
            "title": "Limit",
            "type": "integer"
          }
        },
        "title": "PolicyListQuery",
        "type": "object"
      },
      "PolicySnapshot": {
        "properties": {
          "allow_self_approvals": {
            "default": null,
            "nullable": true,
            "title": "Allow Self Approvals",
            "type": "boolean"
          },
          "display_name": {
            "default": null,
            "nullable": true,
            "title": "Display Name",
            "type": "string"
          },
          "instance_template_uuid": {
            "default": null,
            "format": "uuid",
            "nullable": true,
            "title": "Instance Template Uuid",
            "type": "string"
          },
          "is_stale": {
            "default": null,
            "nullable": true,
            "title": "Is Stale",
            "type": "boolean"
          },
          "live_template_uuid": {
            "default": null,
            "format": "uuid",
            "nullable": true,
            "title": "Live Template Uuid",
            "type": "string"
          },
          "policy_type": {
            "default": null,
            "nullable": true,
            "title": "Policy Type",
            "type": "string"
          },
          "product_workflow_uuid": {
            "default": null,
            "format": "uuid",
            "nullable": true,
            "title": "Product Workflow Uuid",
            "type": "string"
          },
          "spend_type": {
            "default": null,
            "nullable": true,
            "title": "Spend Type",
            "type": "string"
          },
          "workflow_builder_url": {
            "default": null,
            "nullable": true,
            "title": "Workflow Builder Url",
            "type": "string"
          }
        },
        "title": "PolicySnapshot",
        "type": "object"
      },
      "PolicySummary": {
        "description": "Compact summary of a single policy suitable for an LLM list view.",
        "properties": {
          "display_name": {
            "default": null,
            "description": "Human-readable policy name.",
            "nullable": true,
            "title": "Display Name",
            "type": "string"
          },
          "is_default": {
            "description": "Whether this is the default policy.",
            "title": "Is Default",
            "type": "boolean"
          },
          "kind": {
            "allOf": [
              {
                "$ref": "#/components/schemas/OmniPolicyWorkflowKind"
              }
            ],
            "description": "Policy family."
          },
          "policy_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UUIDStr"
              }
            ],
            "description": "UUID of the policy."
          },
          "spend_type": {
            "description": "Granular spend type (e.g. BILL_PAY, SPEND_REQUEST, COMBINED_SUBMISSION_POLICY). Useful disambiguator when multiple policies exist for the same kind.",
            "title": "Spend Type",
            "type": "string"
          },
          "workflow_body_available": {
            "default": true,
            "description": "True when GetPolicyWorkflowBody can fetch this policy's workflow body. If false, do not call GetPolicyWorkflowBody for this policy.",
            "title": "Workflow Body Available",
            "type": "boolean"
          }
        },
        "required": [
          "is_default",
          "kind",
          "policy_uuid",
          "spend_type"
        ],
        "title": "PolicySummary",
        "type": "object"
      },
      "PolicyWorkflowStepContainer": {
        "enum": [
          "condition_after",
          "condition_else",
          "condition_then",
          "fallback",
          "no_approver_fallback",
          "top_level"
        ],
        "title": "PolicyWorkflowStepContainer",
        "type": "string"
      },
      "PostAggregation": {
        "description": "Deprecated single-count second stage; ``second_stage`` generalizes it.\n\nFrozen contract: one retained ``dimension`` and a COUNT of the first-stage\ngroups that satisfy the query's aggregate predicates, named ``name``.",
        "properties": {
          "dimension": {
            "maxLength": 200,
            "minLength": 1,
            "title": "Dimension",
            "type": "string"
          },
          "display_name": {
            "default": null,
            "maxLength": 200,
            "minLength": 1,
            "nullable": true,
            "title": "Display Name",
            "type": "string"
          },
          "name": {
            "pattern": "^[a-z][a-z0-9_]*$",
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "dimension",
          "name"
        ],
        "title": "PostAggregation",
        "type": "object"
      },
      "PostCommentRequestBody": {
        "description": "Post a comment to a Ramp object's activity timeline or comment thread.\n\nSupports procurement/spend requests, transactions, bills, and reimbursements.\nPosts as the acting user, subject to their access to the object, and notifies\nmentioned users. Each successful call creates a new comment.\n\nIf there is any ambiguity as to whether the user's message is meant to be\nposted to the thread, ask them for confirmation first: 'Do you want me to post that\nas a comment reply on your [XYZ] transaction/reimbursement/bill/etc?'.\n\nHow can you determine if the user's message is meant to be a reply to a comment?\n  - If the only other messages in the conversation history are notifications about comments or mentions in Ramp, that is a very strong signal that the user's most recent message is meant to be a reply to the comment thread. In this case, you may use this tool immediately to post the comment without confirmation.\n  - If a recent assistant message is a notification about a comment or mention, that is a strong signal that the user's most recent message is meant to be a reply to that comment. Even if their reply seems irrelevant or unrelated to Ramp, you may ask \"Would you like me to post that as a comment on your...?\" - prefer asking the user instead of refusing to serve the request at all.",
        "properties": {
          "mention_user_uuids": {
            "description": "List of user UUIDs to @-mention in the comment. If the user is replying to a recent comment or mention notification from the assistant, you must use this to set the UUID of the user they are replying to. The mentioned users will be notified and their names will be prepended to the comment message as @-mentions. Extract user UUIDs from the context when the user wants to mention someone (e.g., 'tell Bob that...' -> find Bob's UUID and include it here). If the user's message includes Slack-formatted @-mentions, use the ResolveSlackMention tool to turn those into user UUIDs",
            "items": {
              "type": "string"
            },
            "title": "Mention User Uuids",
            "type": "array"
          },
          "message": {
            "description": "The comment message text. If the user sends 'its done' -> post 'its done' to the comment thread. If the user sends 'its done' -> DO NOT post 'The receipt has been uploaded.' or any other variation. Do not correct spelling or punctuation or grammar. Do not include user @-mentions in this field - use mention_user_uuids instead and they will be added automatically. You may also replace Slack-formatted @-mentions with a user's full name by resolving it with the ResolveSlackMention tool.",
            "title": "Message",
            "type": "string"
          },
          "message_format": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CommentMessageFormatRequestBody"
              }
            ],
            "default": "PLAIN_TEXT",
            "description": "PLAIN_TEXT (default) posts the message as written. MARKDOWN renders standard Markdown: **bold**, *italic*, [link text](https://example.com), bullet and numbered lists; single line breaks are kept."
          },
          "ramp_object_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RampObjectTypeRequestBody"
              }
            ],
            "description": "Type of the Ramp object. Valid options are: 'reimbursement', 'transaction', 'bill', 'card', 'spend_request', 'spend_intent', 'ticket', 'payee', 'booking_request', 'provisional_bill', or 'vendor_payment'."
          },
          "ramp_object_uuid": {
            "description": "UUID of the Ramp object to post a comment on. For a procurement request, use its spend_request_uuid with ramp_object_type='spend_request', not its unified_request_id, wbp_request_id, purchase_order_id, or display request number.",
            "title": "Ramp Object Uuid",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "message",
          "ramp_object_type",
          "ramp_object_uuid",
          "rationale"
        ],
        "title": "PostComment",
        "type": "object"
      },
      "PredicateMigration": {
        "description": "Immutable, bounded notice history; never interpreted as live field references.",
        "properties": {
          "original_fields": {
            "items": {
              "maxLength": 200,
              "minLength": 1,
              "type": "string"
            },
            "maxItems": 20,
            "minItems": 1,
            "title": "Original Fields",
            "type": "array"
          },
          "sources": {
            "items": {
              "enum": [
                "aggregate_filters",
                "having"
              ],
              "type": "string"
            },
            "maxItems": 2,
            "minItems": 1,
            "title": "Sources",
            "type": "array"
          },
          "version": {
            "default": 1,
            "enum": [
              1
            ],
            "title": "Version",
            "type": "integer"
          }
        },
        "required": [
          "original_fields",
          "sources"
        ],
        "title": "PredicateMigration",
        "type": "object"
      },
      "PrimaryEntityReferenceResource": {
        "properties": {
          "id": {
            "description": "Unique identifier of the entity reference",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "label": {
            "description": "Label of the entity reference",
            "type": "string"
          },
          "resource_name": {
            "enum": [
              "Accounting rule group",
              "Approvals",
              "Bill payment",
              "Bill template",
              "Billing contract",
              "Card",
              "Cash Manager recommendation",
              "Fixed asset class",
              "Fixed asset",
              "Forecast custom input",
              "Fund request",
              "Investment account",
              "Legal entity",
              "Managed portfolio transfer",
              "Payment run",
              "Plan",
              "Reimbursement",
              "SFTP Configurations",
              "Separation of duties",
              "Spend allocation",
              "Spend event",
              "Spend program",
              "Subscription",
              "Transaction",
              "Travel (Booking request)",
              "Travel (Trip)",
              "Treasury account",
              "User",
              "Vendor / Merchant",
              "WBX Policy",
              "WBX Request",
              "Wallet automation policy",
              "Wallet transfer",
              "Workflow (Base)",
              "Workflow"
            ],
            "readOnly": true,
            "type": "string",
            "x-enum-descriptions": {
              "Accounting rule group": "An accounting rule group.",
              "Billing contract": "A billing contract.",
              "Cash Manager recommendation": "Cash Manager recommendation",
              "Fixed asset": "Fixed asset",
              "Fixed asset class": "Fixed asset class",
              "Forecast custom input": "Forecast custom input",
              "Investment account": "Investment account",
              "Legal entity": "A business legal entity.",
              "Managed portfolio transfer": "Managed portfolio transfer",
              "Payment run": "Payment run",
              "Plan": "A financial plan.",
              "Spend program": "A spend program.",
              "Subscription": "A billing subscription.",
              "Wallet automation policy": "A treasury automation policy."
            }
          },
          "url": {
            "description": "URL of the entity reference",
            "type": "string"
          }
        },
        "required": [
          "id",
          "label",
          "resource_name",
          "url"
        ],
        "type": "object"
      },
      "ProcurementAttachedFileResult": {
        "properties": {
          "displayed_filename": {
            "nullable": true,
            "title": "Displayed Filename",
            "type": "string"
          },
          "field_id": {
            "title": "Field Id",
            "type": "string"
          },
          "file_uuid": {
            "title": "File Uuid",
            "type": "string"
          },
          "file_uuids": {
            "description": "Every file now saved on the field, including this one.",
            "items": {
              "type": "string"
            },
            "title": "File Uuids",
            "type": "array"
          },
          "spend_request_uuid": {
            "title": "Spend Request Uuid",
            "type": "string"
          }
        },
        "required": [
          "displayed_filename",
          "field_id",
          "file_uuid",
          "file_uuids",
          "spend_request_uuid"
        ],
        "title": "ProcurementAttachedFileResult",
        "type": "object"
      },
      "ProcurementBlanketPurchaseOrderQuestionJsonMode": {
        "properties": {
          "answer": {
            "description": "The draft's current answer.",
            "title": "Answer",
            "type": "boolean"
          },
          "description": {
            "nullable": true,
            "title": "Description",
            "type": "string"
          },
          "title": {
            "title": "Title",
            "type": "string"
          }
        },
        "required": [
          "answer",
          "description",
          "title"
        ],
        "title": "ProcurementBlanketPurchaseOrderQuestion",
        "type": "object"
      },
      "ProcurementChangeRequestAccountingFieldDiff": {
        "properties": {
          "display_name": {
            "title": "Display Name",
            "type": "string"
          },
          "field": {
            "title": "Field",
            "type": "string"
          },
          "field_type": {
            "default": "ACCOUNTING_FIELD",
            "enum": [
              "ACCOUNTING_FIELD"
            ],
            "title": "Field Type",
            "type": "string"
          },
          "is_custom_field": {
            "default": false,
            "title": "Is Custom Field",
            "type": "boolean"
          },
          "new_value": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProcurementChangeRequestAccountingFieldValues"
              }
            ],
            "nullable": true
          },
          "old_value": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProcurementChangeRequestAccountingFieldValues"
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "display_name",
          "field",
          "field_type",
          "is_custom_field",
          "new_value",
          "old_value"
        ],
        "title": "ProcurementChangeRequestAccountingFieldDiff",
        "type": "object"
      },
      "ProcurementChangeRequestAccountingFieldDiffJsonMode": {
        "properties": {
          "display_name": {
            "title": "Display Name",
            "type": "string"
          },
          "field": {
            "title": "Field",
            "type": "string"
          },
          "field_type": {
            "default": "ACCOUNTING_FIELD",
            "enum": [
              "ACCOUNTING_FIELD"
            ],
            "title": "Field Type",
            "type": "string"
          },
          "is_custom_field": {
            "default": false,
            "title": "Is Custom Field",
            "type": "boolean"
          },
          "new_value": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProcurementChangeRequestAccountingFieldValuesJsonMode"
              }
            ],
            "nullable": true
          },
          "old_value": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProcurementChangeRequestAccountingFieldValuesJsonMode"
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "display_name",
          "field",
          "field_type",
          "is_custom_field",
          "new_value",
          "old_value"
        ],
        "title": "ProcurementChangeRequestAccountingFieldDiff",
        "type": "object"
      },
      "ProcurementChangeRequestAccountingFieldValues": {
        "description": "Structured values for header accounting field diffs.",
        "properties": {
          "tracking_categories": {
            "default": null,
            "items": {
              "$ref": "#/components/schemas/ProcurementChangeRequestAccountingTrackingCategoryValue"
            },
            "nullable": true,
            "title": "Tracking Categories",
            "type": "array"
          }
        },
        "title": "ProcurementChangeRequestAccountingFieldValues",
        "type": "object"
      },
      "ProcurementChangeRequestAccountingFieldValuesJsonMode": {
        "description": "Structured values for header accounting field diffs.",
        "properties": {
          "tracking_categories": {
            "default": null,
            "items": {
              "$ref": "#/components/schemas/ProcurementChangeRequestAccountingTrackingCategoryValueJsonMode"
            },
            "nullable": true,
            "title": "Tracking Categories",
            "type": "array"
          }
        },
        "title": "ProcurementChangeRequestAccountingFieldValues",
        "type": "object"
      },
      "ProcurementChangeRequestAccountingTrackingCategoryValue": {
        "properties": {
          "tracking_category_id": {
            "title": "Tracking Category Id",
            "type": "integer"
          },
          "tracking_category_name": {
            "title": "Tracking Category Name",
            "type": "string"
          },
          "tracking_category_option_name": {
            "title": "Tracking Category Option Name",
            "type": "string"
          }
        },
        "required": [
          "tracking_category_id",
          "tracking_category_name",
          "tracking_category_option_name"
        ],
        "title": "ProcurementChangeRequestAccountingTrackingCategoryValue",
        "type": "object"
      },
      "ProcurementChangeRequestAccountingTrackingCategoryValueJsonMode": {
        "properties": {
          "tracking_category_id": {
            "title": "Tracking Category Id",
            "type": "integer"
          },
          "tracking_category_name": {
            "title": "Tracking Category Name",
            "type": "string"
          },
          "tracking_category_option_name": {
            "title": "Tracking Category Option Name",
            "type": "string"
          }
        },
        "required": [
          "tracking_category_id",
          "tracking_category_name",
          "tracking_category_option_name"
        ],
        "title": "ProcurementChangeRequestAccountingTrackingCategoryValue",
        "type": "object"
      },
      "ProcurementChangeRequestFieldsDiff": {
        "properties": {
          "fields": {
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/ProcurementChangeRequestAccountingFieldDiff"
                },
                {
                  "$ref": "#/components/schemas/ProcurementChangeRequestFilesFieldDiff"
                },
                {
                  "$ref": "#/components/schemas/ProcurementChangeRequestLegacyFieldDiff"
                },
                {
                  "$ref": "#/components/schemas/ProcurementChangeRequestLineItemFieldDiff"
                },
                {
                  "$ref": "#/components/schemas/ProcurementChangeRequestLinkFieldDiff"
                },
                {
                  "$ref": "#/components/schemas/ProcurementChangeRequestTextFieldDiff"
                }
              ]
            },
            "title": "Fields",
            "type": "array"
          }
        },
        "required": [
          "fields"
        ],
        "title": "ProcurementChangeRequestFieldsDiff",
        "type": "object"
      },
      "ProcurementChangeRequestFieldsDiffJsonMode": {
        "properties": {
          "fields": {
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/ProcurementChangeRequestAccountingFieldDiffJsonMode"
                },
                {
                  "$ref": "#/components/schemas/ProcurementChangeRequestFilesFieldDiffJsonMode"
                },
                {
                  "$ref": "#/components/schemas/ProcurementChangeRequestLegacyFieldDiffJsonMode"
                },
                {
                  "$ref": "#/components/schemas/ProcurementChangeRequestLineItemFieldDiffJsonMode"
                },
                {
                  "$ref": "#/components/schemas/ProcurementChangeRequestLinkFieldDiffJsonMode"
                },
                {
                  "$ref": "#/components/schemas/ProcurementChangeRequestTextFieldDiffJsonMode"
                }
              ]
            },
            "title": "Fields",
            "type": "array"
          }
        },
        "required": [
          "fields"
        ],
        "title": "ProcurementChangeRequestFieldsDiff",
        "type": "object"
      },
      "ProcurementChangeRequestFileFieldResponse": {
        "properties": {
          "original_filename": {
            "title": "Original Filename",
            "type": "string"
          },
          "url": {
            "title": "Url",
            "type": "string"
          }
        },
        "required": [
          "original_filename",
          "url"
        ],
        "title": "ProcurementChangeRequestFileFieldResponse",
        "type": "object"
      },
      "ProcurementChangeRequestFileFieldResponseJsonMode": {
        "properties": {
          "original_filename": {
            "title": "Original Filename",
            "type": "string"
          },
          "url": {
            "title": "Url",
            "type": "string"
          }
        },
        "required": [
          "original_filename",
          "url"
        ],
        "title": "ProcurementChangeRequestFileFieldResponse",
        "type": "object"
      },
      "ProcurementChangeRequestFilesFieldDiff": {
        "properties": {
          "display_name": {
            "title": "Display Name",
            "type": "string"
          },
          "field": {
            "title": "Field",
            "type": "string"
          },
          "field_type": {
            "default": "FILE",
            "enum": [
              "FILE"
            ],
            "title": "Field Type",
            "type": "string"
          },
          "is_custom_field": {
            "default": false,
            "title": "Is Custom Field",
            "type": "boolean"
          },
          "new_value": {
            "items": {
              "$ref": "#/components/schemas/ProcurementChangeRequestFileFieldResponse"
            },
            "nullable": true,
            "title": "New Value",
            "type": "array"
          },
          "old_value": {
            "items": {
              "$ref": "#/components/schemas/ProcurementChangeRequestFileFieldResponse"
            },
            "nullable": true,
            "title": "Old Value",
            "type": "array"
          }
        },
        "required": [
          "display_name",
          "field",
          "field_type",
          "is_custom_field",
          "new_value",
          "old_value"
        ],
        "title": "ProcurementChangeRequestFilesFieldDiff",
        "type": "object"
      },
      "ProcurementChangeRequestFilesFieldDiffJsonMode": {
        "properties": {
          "display_name": {
            "title": "Display Name",
            "type": "string"
          },
          "field": {
            "title": "Field",
            "type": "string"
          },
          "field_type": {
            "default": "FILE",
            "enum": [
              "FILE"
            ],
            "title": "Field Type",
            "type": "string"
          },
          "is_custom_field": {
            "default": false,
            "title": "Is Custom Field",
            "type": "boolean"
          },
          "new_value": {
            "items": {
              "$ref": "#/components/schemas/ProcurementChangeRequestFileFieldResponseJsonMode"
            },
            "nullable": true,
            "title": "New Value",
            "type": "array"
          },
          "old_value": {
            "items": {
              "$ref": "#/components/schemas/ProcurementChangeRequestFileFieldResponseJsonMode"
            },
            "nullable": true,
            "title": "Old Value",
            "type": "array"
          }
        },
        "required": [
          "display_name",
          "field",
          "field_type",
          "is_custom_field",
          "new_value",
          "old_value"
        ],
        "title": "ProcurementChangeRequestFilesFieldDiff",
        "type": "object"
      },
      "ProcurementChangeRequestLegacyFieldDiff": {
        "description": "Deprecated pre-field_type string diff; the only variant without field_type.",
        "properties": {
          "display_name": {
            "title": "Display Name",
            "type": "string"
          },
          "field": {
            "title": "Field",
            "type": "string"
          },
          "is_custom_field": {
            "default": false,
            "title": "Is Custom Field",
            "type": "boolean"
          },
          "new_value": {
            "nullable": true,
            "title": "New Value",
            "type": "string"
          },
          "old_value": {
            "nullable": true,
            "title": "Old Value",
            "type": "string"
          }
        },
        "required": [
          "display_name",
          "field",
          "is_custom_field",
          "new_value",
          "old_value"
        ],
        "title": "ProcurementChangeRequestLegacyFieldDiff",
        "type": "object"
      },
      "ProcurementChangeRequestLegacyFieldDiffJsonMode": {
        "description": "Deprecated pre-field_type string diff; the only variant without field_type.",
        "properties": {
          "display_name": {
            "title": "Display Name",
            "type": "string"
          },
          "field": {
            "title": "Field",
            "type": "string"
          },
          "is_custom_field": {
            "default": false,
            "title": "Is Custom Field",
            "type": "boolean"
          },
          "new_value": {
            "nullable": true,
            "title": "New Value",
            "type": "string"
          },
          "old_value": {
            "nullable": true,
            "title": "Old Value",
            "type": "string"
          }
        },
        "required": [
          "display_name",
          "field",
          "is_custom_field",
          "new_value",
          "old_value"
        ],
        "title": "ProcurementChangeRequestLegacyFieldDiff",
        "type": "object"
      },
      "ProcurementChangeRequestLineItemFieldDiff": {
        "properties": {
          "display_name": {
            "title": "Display Name",
            "type": "string"
          },
          "field": {
            "title": "Field",
            "type": "string"
          },
          "field_type": {
            "default": "LINE_ITEM",
            "enum": [
              "LINE_ITEM"
            ],
            "title": "Field Type",
            "type": "string"
          },
          "is_custom_field": {
            "default": false,
            "title": "Is Custom Field",
            "type": "boolean"
          },
          "new_value": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProcurementChangeRequestLineItemValues"
              }
            ],
            "nullable": true
          },
          "old_value": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProcurementChangeRequestLineItemValues"
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "display_name",
          "field",
          "field_type",
          "is_custom_field",
          "new_value",
          "old_value"
        ],
        "title": "ProcurementChangeRequestLineItemFieldDiff",
        "type": "object"
      },
      "ProcurementChangeRequestLineItemFieldDiffJsonMode": {
        "properties": {
          "display_name": {
            "title": "Display Name",
            "type": "string"
          },
          "field": {
            "title": "Field",
            "type": "string"
          },
          "field_type": {
            "default": "LINE_ITEM",
            "enum": [
              "LINE_ITEM"
            ],
            "title": "Field Type",
            "type": "string"
          },
          "is_custom_field": {
            "default": false,
            "title": "Is Custom Field",
            "type": "boolean"
          },
          "new_value": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProcurementChangeRequestLineItemValuesJsonMode"
              }
            ],
            "nullable": true
          },
          "old_value": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProcurementChangeRequestLineItemValuesJsonMode"
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "display_name",
          "field",
          "field_type",
          "is_custom_field",
          "new_value",
          "old_value"
        ],
        "title": "ProcurementChangeRequestLineItemFieldDiff",
        "type": "object"
      },
      "ProcurementChangeRequestLineItemValues": {
        "description": "Structured values for a line item, used in line item diffs.",
        "properties": {
          "amount": {
            "default": null,
            "nullable": true,
            "title": "Amount",
            "type": "string"
          },
          "custom_field_values": {
            "additionalProperties": {
              "type": "string"
            },
            "default": null,
            "nullable": true,
            "title": "Custom Field Values",
            "type": "object"
          },
          "description": {
            "default": null,
            "nullable": true,
            "title": "Description",
            "type": "string"
          },
          "due_date": {
            "default": null,
            "nullable": true,
            "title": "Due Date",
            "type": "string"
          },
          "end_date": {
            "default": null,
            "nullable": true,
            "title": "End Date",
            "type": "string"
          },
          "quantity": {
            "default": null,
            "nullable": true,
            "title": "Quantity",
            "type": "string"
          },
          "rate": {
            "default": null,
            "nullable": true,
            "title": "Rate",
            "type": "string"
          },
          "receiving_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReceivingType"
              }
            ],
            "default": null,
            "description": "Set only when a change order switches the line's receiving type.",
            "nullable": true
          },
          "retainage": {
            "default": null,
            "description": "Calculated retainage amount.",
            "nullable": true,
            "title": "Retainage",
            "type": "string"
          },
          "start_date": {
            "default": null,
            "nullable": true,
            "title": "Start Date",
            "type": "string"
          },
          "tracking_categories": {
            "additionalProperties": {
              "type": "string"
            },
            "default": null,
            "nullable": true,
            "title": "Tracking Categories",
            "type": "object"
          }
        },
        "title": "ProcurementChangeRequestLineItemValues",
        "type": "object"
      },
      "ProcurementChangeRequestLineItemValuesJsonMode": {
        "description": "Structured values for a line item, used in line item diffs.",
        "properties": {
          "amount": {
            "default": null,
            "nullable": true,
            "title": "Amount",
            "type": "string"
          },
          "custom_field_values": {
            "additionalProperties": {
              "type": "string"
            },
            "default": null,
            "nullable": true,
            "title": "Custom Field Values",
            "type": "object"
          },
          "description": {
            "default": null,
            "nullable": true,
            "title": "Description",
            "type": "string"
          },
          "due_date": {
            "default": null,
            "nullable": true,
            "title": "Due Date",
            "type": "string"
          },
          "end_date": {
            "default": null,
            "nullable": true,
            "title": "End Date",
            "type": "string"
          },
          "quantity": {
            "default": null,
            "nullable": true,
            "title": "Quantity",
            "type": "string"
          },
          "rate": {
            "default": null,
            "nullable": true,
            "title": "Rate",
            "type": "string"
          },
          "receiving_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReceivingTypeJsonMode"
              }
            ],
            "default": null,
            "description": "Set only when a change order switches the line's receiving type.",
            "nullable": true
          },
          "retainage": {
            "default": null,
            "description": "Calculated retainage amount.",
            "nullable": true,
            "title": "Retainage",
            "type": "string"
          },
          "start_date": {
            "default": null,
            "nullable": true,
            "title": "Start Date",
            "type": "string"
          },
          "tracking_categories": {
            "additionalProperties": {
              "type": "string"
            },
            "default": null,
            "nullable": true,
            "title": "Tracking Categories",
            "type": "object"
          }
        },
        "title": "ProcurementChangeRequestLineItemValues",
        "type": "object"
      },
      "ProcurementChangeRequestLinkFieldDiff": {
        "properties": {
          "display_name": {
            "title": "Display Name",
            "type": "string"
          },
          "field": {
            "title": "Field",
            "type": "string"
          },
          "field_type": {
            "default": "LINK",
            "enum": [
              "LINK"
            ],
            "title": "Field Type",
            "type": "string"
          },
          "is_custom_field": {
            "default": false,
            "title": "Is Custom Field",
            "type": "boolean"
          },
          "new_value": {
            "nullable": true,
            "title": "New Value",
            "type": "string"
          },
          "old_value": {
            "nullable": true,
            "title": "Old Value",
            "type": "string"
          }
        },
        "required": [
          "display_name",
          "field",
          "field_type",
          "is_custom_field",
          "new_value",
          "old_value"
        ],
        "title": "ProcurementChangeRequestLinkFieldDiff",
        "type": "object"
      },
      "ProcurementChangeRequestLinkFieldDiffJsonMode": {
        "properties": {
          "display_name": {
            "title": "Display Name",
            "type": "string"
          },
          "field": {
            "title": "Field",
            "type": "string"
          },
          "field_type": {
            "default": "LINK",
            "enum": [
              "LINK"
            ],
            "title": "Field Type",
            "type": "string"
          },
          "is_custom_field": {
            "default": false,
            "title": "Is Custom Field",
            "type": "boolean"
          },
          "new_value": {
            "nullable": true,
            "title": "New Value",
            "type": "string"
          },
          "old_value": {
            "nullable": true,
            "title": "Old Value",
            "type": "string"
          }
        },
        "required": [
          "display_name",
          "field",
          "field_type",
          "is_custom_field",
          "new_value",
          "old_value"
        ],
        "title": "ProcurementChangeRequestLinkFieldDiff",
        "type": "object"
      },
      "ProcurementChangeRequestTextFieldDiff": {
        "properties": {
          "display_name": {
            "title": "Display Name",
            "type": "string"
          },
          "field": {
            "title": "Field",
            "type": "string"
          },
          "field_type": {
            "default": "TEXT",
            "enum": [
              "TEXT"
            ],
            "title": "Field Type",
            "type": "string"
          },
          "is_custom_field": {
            "default": false,
            "title": "Is Custom Field",
            "type": "boolean"
          },
          "new_value": {
            "nullable": true,
            "title": "New Value",
            "type": "string"
          },
          "old_value": {
            "nullable": true,
            "title": "Old Value",
            "type": "string"
          }
        },
        "required": [
          "display_name",
          "field",
          "field_type",
          "is_custom_field",
          "new_value",
          "old_value"
        ],
        "title": "ProcurementChangeRequestTextFieldDiff",
        "type": "object"
      },
      "ProcurementChangeRequestTextFieldDiffJsonMode": {
        "properties": {
          "display_name": {
            "title": "Display Name",
            "type": "string"
          },
          "field": {
            "title": "Field",
            "type": "string"
          },
          "field_type": {
            "default": "TEXT",
            "enum": [
              "TEXT"
            ],
            "title": "Field Type",
            "type": "string"
          },
          "is_custom_field": {
            "default": false,
            "title": "Is Custom Field",
            "type": "boolean"
          },
          "new_value": {
            "nullable": true,
            "title": "New Value",
            "type": "string"
          },
          "old_value": {
            "nullable": true,
            "title": "Old Value",
            "type": "string"
          }
        },
        "required": [
          "display_name",
          "field",
          "field_type",
          "is_custom_field",
          "new_value",
          "old_value"
        ],
        "title": "ProcurementChangeRequestTextFieldDiff",
        "type": "object"
      },
      "ProcurementDeflectionObjectTypeJsonMode": {
        "enum": [
          "procurement_request",
          "purchase_order",
          "vendor_contract"
        ],
        "title": "ProcurementDeflectionObjectType",
        "type": "string"
      },
      "ProcurementDraftStateDetailsJsonMode": {
        "properties": {
          "fields": {
            "items": {
              "$ref": "#/components/schemas/AgentDraftFieldJsonMode"
            },
            "title": "Fields",
            "type": "array"
          },
          "fields_to_answer": {
            "items": {
              "type": "string"
            },
            "title": "Fields To Answer",
            "type": "array"
          },
          "manual_completion_required": {
            "default": false,
            "title": "Manual Completion Required",
            "type": "boolean"
          },
          "status": {
            "enum": [
              "has_validation_errors",
              "needs_input",
              "ready_to_submit"
            ],
            "title": "Status",
            "type": "string"
          },
          "validation_errors": {
            "items": {
              "$ref": "#/components/schemas/ProcurementValidationIssueJsonMode"
            },
            "title": "Validation Errors",
            "type": "array"
          }
        },
        "required": [
          "fields",
          "fields_to_answer",
          "status",
          "validation_errors"
        ],
        "title": "ProcurementDraftStateDetails",
        "type": "object"
      },
      "ProcurementDraftStateJsonMode": {
        "properties": {
          "change_request_state": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProcurementDraftStateDetailsJsonMode"
              }
            ],
            "default": null,
            "nullable": true
          },
          "draft": {
            "$ref": "#/components/schemas/ProcurementDraftSummaryJsonMode"
          },
          "draft_revision": {
            "description": "Version of this draft as of this response. Pass it back as draft_revision on the next update so your changes can replace values nobody else has edited since.",
            "title": "Draft Revision",
            "type": "integer"
          },
          "draft_state": {
            "$ref": "#/components/schemas/ProcurementDraftStateDetailsJsonMode"
          }
        },
        "required": [
          "draft",
          "draft_revision",
          "draft_state"
        ],
        "title": "ProcurementDraftState",
        "type": "object"
      },
      "ProcurementDraftSummaryJsonMode": {
        "properties": {
          "blanket_purchase_order_question": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProcurementBlanketPurchaseOrderQuestionJsonMode"
              }
            ],
            "default": null,
            "description": "The 'Request a blanket PO' question: approve the total, lines, and prices up front, then order against them through release POs. A blanket PO needs a vendor and a one-time frequency, and gets no bills, receipts, or cards of its own. Null when this request can't be a blanket PO.",
            "nullable": true
          },
          "change_request_diff": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProcurementChangeRequestFieldsDiffJsonMode"
              }
            ],
            "default": null,
            "description": "Changes from the original purchase order. Each line item includes only the values that changed; a line item with no new value was removed.",
            "nullable": true
          },
          "currency": {
            "nullable": true,
            "title": "Currency",
            "type": "string"
          },
          "estimated_total_question": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProcurementBlanketPurchaseOrderQuestionJsonMode"
              }
            ],
            "default": null,
            "description": "The 'Let approvers know the total is estimated' question. Null when this request doesn't offer it.",
            "nullable": true
          },
          "internal_memo": {
            "nullable": true,
            "title": "Internal Memo",
            "type": "string"
          },
          "line_items": {
            "items": {
              "$ref": "#/components/schemas/ProcurementLineItemSummaryJsonMode"
            },
            "title": "Line Items",
            "type": "array"
          },
          "original_request": {
            "allOf": [
              {
                "$ref": "#/components/schemas/OriginalProcurementRequestJsonMode"
              }
            ],
            "default": null,
            "nullable": true
          },
          "request_name": {
            "nullable": true,
            "title": "Request Name",
            "type": "string"
          },
          "spend_intent_uuid": {
            "nullable": true,
            "title": "Spend Intent Uuid",
            "type": "string"
          },
          "spend_request_uuid": {
            "title": "Spend Request Uuid",
            "type": "string"
          },
          "unified_request_uuid": {
            "nullable": true,
            "title": "Unified Request Uuid",
            "type": "string"
          },
          "vendor_name": {
            "default": null,
            "nullable": true,
            "title": "Vendor Name",
            "type": "string"
          },
          "virtual_card_question": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProcurementVirtualCardQuestionJsonMode"
              }
            ],
            "default": null,
            "nullable": true
          },
          "web_path": {
            "title": "Web Path",
            "type": "string"
          }
        },
        "required": [
          "currency",
          "internal_memo",
          "line_items",
          "request_name",
          "spend_intent_uuid",
          "spend_request_uuid",
          "unified_request_uuid",
          "web_path"
        ],
        "title": "ProcurementDraftSummary",
        "type": "object"
      },
      "ProcurementFileUploadLinkOutput": {
        "properties": {
          "expires_at": {
            "description": "When the link stops working.",
            "format": "date-time",
            "title": "Expires At",
            "type": "string"
          },
          "instructions": {
            "description": "How to upload the file.",
            "title": "Instructions",
            "type": "string"
          },
          "upload_url": {
            "description": "One-time URL that accepts the file with POST.",
            "title": "Upload Url",
            "type": "string"
          }
        },
        "required": [
          "expires_at",
          "instructions",
          "upload_url"
        ],
        "title": "ProcurementFileUploadLinkOutput",
        "type": "object"
      },
      "ProcurementLineItemDataRequestBody": {
        "description": "Editable fields for a purchase order line item.",
        "properties": {
          "amount": {
            "default": null,
            "description": "Total line amount. When unit_price is omitted, unit_price is derived as amount / quantity (quantity defaults to 1).",
            "nullable": true,
            "oneOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "title": "Amount"
          },
          "custom_field_values": {
            "items": {
              "$ref": "#/components/schemas/LineItemCustomFieldValueInputRequestBody"
            },
            "title": "Custom Field Values",
            "type": "array"
          },
          "description": {
            "default": null,
            "nullable": true,
            "title": "Description",
            "type": "string"
          },
          "due_date": {
            "format": "date",
            "nullable": true,
            "title": "Due Date",
            "type": "string"
          },
          "end_date": {
            "format": "date",
            "nullable": true,
            "title": "End Date",
            "type": "string"
          },
          "line_item_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/LineItemTypeRequestBody"
              }
            ],
            "default": null,
            "description": "Line item type. New lines default to EXPENSE when omitted; existing lines preserve their current type.",
            "nullable": true
          },
          "quantity": {
            "default": null,
            "description": "Quantity for an itemized line. String values are preferred. For simple amount-only lines, the service uses 1.",
            "nullable": true,
            "oneOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "title": "Quantity"
          },
          "start_date": {
            "format": "date",
            "nullable": true,
            "title": "Start Date",
            "type": "string"
          },
          "tracking_category_selections": {
            "items": {
              "$ref": "#/components/schemas/LineItemTrackingCategorySelectionInputRequestBody"
            },
            "title": "Tracking Category Selections",
            "type": "array"
          },
          "unit_price": {
            "default": null,
            "description": "Unit price for an itemized line. String values are preferred. For simple requests, use amount instead.",
            "nullable": true,
            "oneOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "title": "Unit Price"
          },
          "uuid": {
            "default": null,
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "withholding_rate": {
            "description": "Retainage rate as a fraction from 0 to less than 1, e.g. \"0.10\" for 10%. Omit to preserve the existing rate; null clears it.",
            "nullable": true,
            "oneOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "title": "Withholding Rate"
          }
        },
        "title": "ProcurementLineItemData",
        "type": "object"
      },
      "ProcurementLineItemSummaryJsonMode": {
        "properties": {
          "amount": {
            "format": "decimal",
            "nullable": true,
            "title": "Amount",
            "type": "string"
          },
          "description": {
            "nullable": true,
            "title": "Description",
            "type": "string"
          },
          "due_date": {
            "format": "date",
            "nullable": true,
            "title": "Due Date",
            "type": "string"
          },
          "end_date": {
            "format": "date",
            "nullable": true,
            "title": "End Date",
            "type": "string"
          },
          "line_item_type": {
            "nullable": true,
            "title": "Line Item Type",
            "type": "string"
          },
          "quantity": {
            "format": "decimal",
            "nullable": true,
            "title": "Quantity",
            "type": "string"
          },
          "start_date": {
            "format": "date",
            "nullable": true,
            "title": "Start Date",
            "type": "string"
          },
          "unit_price": {
            "format": "decimal",
            "nullable": true,
            "title": "Unit Price",
            "type": "string"
          },
          "uuid": {
            "nullable": true,
            "title": "Uuid",
            "type": "string"
          }
        },
        "required": [
          "amount",
          "description",
          "due_date",
          "end_date",
          "line_item_type",
          "quantity",
          "start_date",
          "unit_price",
          "uuid"
        ],
        "title": "ProcurementLineItemSummary",
        "type": "object"
      },
      "ProcurementPolicySection": {
        "properties": {
          "chunk_text": {
            "description": "Published policy text; answer only from this text",
            "nullable": true,
            "title": "Chunk Text",
            "type": "string"
          },
          "document_id": {
            "description": "Procurement policy document UUID, for citations",
            "nullable": true,
            "title": "Document Id",
            "type": "string"
          },
          "document_version_id": {
            "description": "Published document version UUID, for citations",
            "nullable": true,
            "title": "Document Version Id",
            "type": "string"
          },
          "section_header": {
            "description": "Section header; name it when citing the policy",
            "nullable": true,
            "title": "Section Header",
            "type": "string"
          },
          "section_id": {
            "description": "Section ID, for citations",
            "nullable": true,
            "title": "Section Id",
            "type": "string"
          }
        },
        "required": [
          "chunk_text",
          "document_id",
          "document_version_id",
          "section_header",
          "section_id"
        ],
        "title": "ProcurementPolicySection",
        "type": "object"
      },
      "ProcurementSpendIntentSummary": {
        "properties": {
          "allows_blanket_purchase_orders": {
            "default": false,
            "description": "Whether requests on this program can be blanket POs: an approved limit for one vendor that release POs order against later.",
            "title": "Allows Blanket Purchase Orders",
            "type": "boolean"
          },
          "description": {
            "nullable": true,
            "title": "Description",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "outcome_type": {
            "title": "Outcome Type",
            "type": "string"
          },
          "spend_intent_uuid": {
            "title": "Spend Intent Uuid",
            "type": "string"
          },
          "status": {
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "description",
          "name",
          "outcome_type",
          "spend_intent_uuid",
          "status"
        ],
        "title": "ProcurementSpendIntentSummary",
        "type": "object"
      },
      "ProcurementSubmittedRequest": {
        "properties": {
          "change_request_diff": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProcurementChangeRequestFieldsDiff"
              }
            ],
            "default": null,
            "description": "Changes from the original purchase order. Each line item includes only the values that changed; a line item with no new value was removed.",
            "nullable": true
          },
          "original_request": {
            "allOf": [
              {
                "$ref": "#/components/schemas/OriginalProcurementRequest"
              }
            ],
            "default": null,
            "nullable": true
          },
          "request_status": {
            "title": "Request Status",
            "type": "string"
          },
          "spend_request_uuid": {
            "title": "Spend Request Uuid",
            "type": "string"
          },
          "submitted_at": {
            "nullable": true,
            "title": "Submitted At",
            "type": "string"
          },
          "unified_request_uuid": {
            "nullable": true,
            "title": "Unified Request Uuid",
            "type": "string"
          },
          "web_path": {
            "title": "Web Path",
            "type": "string"
          }
        },
        "required": [
          "request_status",
          "spend_request_uuid",
          "submitted_at",
          "unified_request_uuid",
          "web_path"
        ],
        "title": "ProcurementSubmittedRequest",
        "type": "object"
      },
      "ProcurementSubmittedRequestStateJsonMode": {
        "properties": {
          "change_request_diff": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProcurementChangeRequestFieldsDiffJsonMode"
              }
            ],
            "default": null,
            "description": "Changes from the original purchase order. Each line item includes only the values that changed; a line item with no new value was removed.",
            "nullable": true
          },
          "internal_memo": {
            "nullable": true,
            "title": "Internal Memo",
            "type": "string"
          },
          "line_items": {
            "items": {
              "$ref": "#/components/schemas/ProcurementLineItemSummaryJsonMode"
            },
            "title": "Line Items",
            "type": "array"
          },
          "original_request": {
            "allOf": [
              {
                "$ref": "#/components/schemas/OriginalProcurementRequestJsonMode"
              }
            ],
            "default": null,
            "nullable": true
          },
          "request_name": {
            "nullable": true,
            "title": "Request Name",
            "type": "string"
          },
          "request_status": {
            "title": "Request Status",
            "type": "string"
          },
          "spend_end_date": {
            "format": "date",
            "nullable": true,
            "title": "Spend End Date",
            "type": "string"
          },
          "spend_request_uuid": {
            "title": "Spend Request Uuid",
            "type": "string"
          },
          "spend_start_date": {
            "format": "date",
            "nullable": true,
            "title": "Spend Start Date",
            "type": "string"
          },
          "submitted_at": {
            "nullable": true,
            "title": "Submitted At",
            "type": "string"
          },
          "unified_request_uuid": {
            "nullable": true,
            "title": "Unified Request Uuid",
            "type": "string"
          },
          "web_path": {
            "title": "Web Path",
            "type": "string"
          }
        },
        "required": [
          "change_request_diff",
          "internal_memo",
          "line_items",
          "original_request",
          "request_name",
          "request_status",
          "spend_end_date",
          "spend_request_uuid",
          "spend_start_date",
          "submitted_at",
          "unified_request_uuid",
          "web_path"
        ],
        "title": "ProcurementSubmittedRequestState",
        "type": "object"
      },
      "ProcurementValidationIssueJsonMode": {
        "properties": {
          "example": {
            "allOf": [
              {
                "$ref": "#/components/schemas/JsonValueJsonMode"
              }
            ],
            "default": null,
            "nullable": true
          },
          "expected": {
            "default": null,
            "nullable": true,
            "title": "Expected",
            "type": "string"
          },
          "field_id": {
            "default": null,
            "nullable": true,
            "title": "Field Id",
            "type": "string"
          },
          "label": {
            "default": null,
            "nullable": true,
            "title": "Label",
            "type": "string"
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "path": {
            "default": null,
            "nullable": true,
            "title": "Path",
            "type": "string"
          }
        },
        "required": [
          "message"
        ],
        "title": "ProcurementValidationIssue",
        "type": "object"
      },
      "ProcurementVirtualCardQuestionJsonMode": {
        "properties": {
          "description": {
            "nullable": true,
            "title": "Description",
            "type": "string"
          },
          "requested": {
            "description": "Whether this request explicitly asks for a virtual card. False removes that request but does not disable program-level automatic card creation.",
            "title": "Requested",
            "type": "boolean"
          },
          "required": {
            "description": "Whether the spend program marks this question as required.",
            "title": "Required",
            "type": "boolean"
          },
          "title": {
            "title": "Title",
            "type": "string"
          }
        },
        "required": [
          "description",
          "requested",
          "required",
          "title"
        ],
        "title": "ProcurementVirtualCardQuestion",
        "type": "object"
      },
      "ProvideNoReceiptReasonRequestBody": {
        "description": "Submit a reason explaining why a transaction has no receipt.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "reason": {
            "description": "The reason the user is providing for not having a receipt.",
            "title": "Reason",
            "type": "string"
          },
          "transaction_uuid": {
            "description": "What transaction are they talking about? If they said OOPS, they are referring to the latest transaction.",
            "nullable": true,
            "title": "Transaction Uuid",
            "type": "string"
          }
        },
        "required": [
          "rationale",
          "reason",
          "transaction_uuid"
        ],
        "title": "ProvideNoReceiptReason",
        "type": "object"
      },
      "ProvideNoReceiptReasonResponse": {
        "properties": {
          "message": {
            "title": "Message",
            "type": "string"
          }
        },
        "required": [
          "message"
        ],
        "title": "ProvideNoReceiptReasonResponse",
        "type": "object"
      },
      "ProviderType": {
        "enum": [
          "acumatica",
          "dynamics_bc",
          "dynamics_fo",
          "freshbooks",
          "fusion",
          "netsuite_rest",
          "quickbooks",
          "quickbooks_desktop",
          "restaurant_365",
          "s4hana",
          "sage",
          "universal_csv",
          "workday",
          "xero",
          "zoho_books"
        ],
        "title": "ProviderType",
        "type": "string"
      },
      "ProviderUsageMetadataSchema": {
        "properties": {
          "coverage_status": {
            "default": "unknown",
            "enum": [
              "complete",
              "incomplete",
              "unknown"
            ],
            "title": "Coverage Status",
            "type": "string"
          },
          "ingestion_status": {
            "default": "unknown",
            "enum": [
              "not_ready",
              "ready",
              "source_unavailable",
              "unknown",
              "unsupported_scope"
            ],
            "title": "Ingestion Status",
            "type": "string"
          },
          "matched_billing": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MatchedBillingSchema"
              }
            ],
            "default": null,
            "nullable": true
          },
          "matched_billing_supported": {
            "default": false,
            "title": "Matched Billing Supported",
            "type": "boolean"
          },
          "provider": {
            "description": "AI provider: one of OPENAI, ANTHROPIC, CURSOR, FIREWORKS, GCP, AWS, AZURE, RAMP, or the provider name reported for usage.",
            "title": "Provider",
            "type": "string"
          },
          "usage_supported": {
            "title": "Usage Supported",
            "type": "boolean"
          }
        },
        "required": [
          "provider",
          "usage_supported"
        ],
        "title": "ProviderUsageMetadataSchema",
        "type": "object"
      },
      "ProvisionX402WalletRequestBody": {
        "description": "Provision your business's x402 wallet after the user explicitly confirms.\n\nReturns the same sign-ready Solana wallet on repeated calls. Do not call this\ntool until an owner or admin confirms that the wallet should be provisioned.",
        "properties": {
          "confirmed": {
            "description": "Must be true to confirm that the user approved provisioning the business's x402 wallet.",
            "title": "Confirmed",
            "type": "boolean"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "confirmed",
          "rationale"
        ],
        "title": "ProvisionX402Wallet",
        "type": "object"
      },
      "ProvisionalBillLineItemPurchaseOrderLineItemMatchReason": {
        "description": "Reason a provisional bill line item was automatically matched to a PO line item.",
        "title": "ProvisionalBillLineItemPurchaseOrderLineItemMatchReason",
        "type": "string",
        "x-extensible-enum": [
          "DESCRIPTION_EMBEDDING_SIMILARITY",
          "EXACT_PRICE_AND_DESCRIPTION_SIMILARITY",
          "INVENTORY_ITEM_CODE",
          "INVENTORY_ITEM_CODE_AND_AMOUNT",
          "INVENTORY_ITEM_CODE_AND_QUANTITY",
          "LLM",
          "PO_NUMBER_ANCHOR",
          "SINGLE_ITEM_MATCH",
          "UNIT_PRICE_AND_QUANTITY_MATCH"
        ]
      },
      "ProvisionalBillReadinessBlocker": {
        "description": "Stable code for a missing or incomplete draft-readiness requirement.",
        "enum": [
          "BILL_DATE",
          "EXPENSE_LINE_ITEM_AMOUNTS",
          "INVENTORY_LINE_ITEM_QUANTITIES_OR_UNIT_PRICES",
          "INVOICE_CURRENCY",
          "POSITIVE_AMOUNT",
          "REQUIRED_ACCOUNTING_FIELDS",
          "VENDOR",
          "VENDOR_DETAILS"
        ],
        "title": "ProvisionalBillReadinessBlocker",
        "type": "string"
      },
      "PublicBookingDetails": {
        "description": "Detailed state for one booking or booking request.",
        "properties": {
          "approval": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BookingApprovalDetails"
              }
            ],
            "default": null,
            "description": "Approval-chain details when the request has an active approval chain.",
            "nullable": true
          },
          "booking_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "description": "Confirmed parent booking UUID, when a booking exists.",
            "nullable": true
          },
          "booking_request_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "description": "Booking request UUID, when the booking has a visible request.",
            "nullable": true
          },
          "booking_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BookingType"
              }
            ],
            "description": "Flight, hotel, or car.",
            "nullable": true
          },
          "cancellation_state": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BookingCancellationState"
              }
            ],
            "default": null,
            "description": "Authoritative latest cancellation state, or null when no cancellation has been requested. SUCCESS means the booking was successfully cancelled, even if request_status has not transitioned yet.",
            "nullable": true
          },
          "car": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CarBookingDetailInfo"
              }
            ],
            "default": null,
            "description": "Car-specific rental company, pickup, drop-off, and confirmation number details.",
            "nullable": true
          },
          "current_total_amount": {
            "default": null,
            "description": "Latest quoted total in its original currency.",
            "nullable": true,
            "title": "Current Total Amount",
            "type": "string"
          },
          "error_message": {
            "default": null,
            "description": "Booking-request error message, when present.",
            "nullable": true,
            "title": "Error Message",
            "type": "string"
          },
          "flight": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FlightBookingDetailInfo"
              }
            ],
            "default": null,
            "description": "Flight-specific itinerary and ticketing details. Confirmed bookings also carry per-segment flights, seat assignments, leg duration, stops, and fare brand.",
            "nullable": true
          },
          "flight_cancellation_terms": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PublicRecordedFlightCancellationTerms"
              }
            ],
            "default": null,
            "description": "Stored whole-flight-booking cancellation terms, not settlement evidence. Null means no supported historical terms are available, not that no refund or credit exists.",
            "nullable": true
          },
          "hotel": {
            "allOf": [
              {
                "$ref": "#/components/schemas/HotelBookingDetailInfo"
              }
            ],
            "default": null,
            "description": "Hotel-specific property, stay, payment timing, and associated spend details. Confirmed bookings also carry property contact and address details plus room and stay shape.",
            "nullable": true
          },
          "out_of_policy_reason": {
            "default": null,
            "description": "Reason supplied for an out-of-policy booking.",
            "nullable": true,
            "title": "Out Of Policy Reason",
            "type": "string"
          },
          "provider_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BookingProviderStatus"
              }
            ],
            "default": null,
            "description": "Optional stored Atlas hotel or per-segment flight evidence for investigations. Null when not requested; never replaces booking status or cancellation_state, and does not establish flight ticket validity.",
            "nullable": true
          },
          "reason": {
            "default": null,
            "description": "Optional booking reason.",
            "nullable": true,
            "title": "Reason",
            "type": "string"
          },
          "request_status": {
            "default": null,
            "description": "Current booking-request status, when a request exists. This is the original request lifecycle; use cancellation_state and the type-specific booking status for cancellation outcomes.",
            "nullable": true,
            "title": "Request Status",
            "type": "string"
          },
          "requested_at": {
            "default": null,
            "description": "When the booking was requested, when a request exists.",
            "format": "date-time",
            "nullable": true,
            "title": "Requested At",
            "type": "string"
          },
          "soft_approval_window_end": {
            "default": null,
            "description": "Display-final auto-approval deadline in the acting user's preferred timezone. Null unless this reservation has a pending soft review. This is not a departure time or evidence of flight ticket issuance.",
            "nullable": true,
            "title": "Soft Approval Window End",
            "type": "string"
          },
          "support": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BookingSupportRouting"
              }
            ],
            "default": null,
            "description": "Managing-partner support for this confirmed reservation, including established legacy-provider defaults. Null means routing is unknown or the request is unfulfilled; do not infer a partner or contacts.",
            "nullable": true
          }
        },
        "required": [
          "approval",
          "booking_id",
          "booking_request_id",
          "booking_type",
          "cancellation_state",
          "car",
          "current_total_amount",
          "error_message",
          "flight",
          "flight_cancellation_terms",
          "hotel",
          "out_of_policy_reason",
          "provider_status",
          "reason",
          "request_status",
          "requested_at",
          "soft_approval_window_end",
          "support"
        ],
        "title": "PublicBookingDetails",
        "type": "object"
      },
      "PublicFlightCancellationSummary": {
        "description": "Recorded quote amounts, not evidence of refund settlement or credit issuance.",
        "properties": {
          "airline": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FlightCancellationAirline"
              }
            ],
            "default": null,
            "description": "Booking airline, when a single airline is known.",
            "nullable": true
          },
          "credit": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiAmount"
              }
            ],
            "description": "Quoted airline credit; null when unknown.",
            "nullable": true
          },
          "credit_airline": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FlightCancellationAirline"
              }
            ],
            "default": null,
            "description": "Airline for the quoted credit, when known.",
            "nullable": true
          },
          "is_estimate": {
            "description": "Whether the amounts may differ at settlement.",
            "title": "Is Estimate",
            "type": "boolean"
          },
          "non_refundable": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiAmount"
              }
            ],
            "description": "Quoted amount returned as neither cash nor credit; null when unknown.",
            "nullable": true
          },
          "paid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiAmount"
              }
            ],
            "description": "Amount paid; null when unknown.",
            "nullable": true
          },
          "refund": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiAmount"
              }
            ],
            "description": "Quoted cash refund; null when unknown.",
            "nullable": true
          },
          "refund_destination": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FlightRefundDestination"
              }
            ],
            "default": null,
            "description": "Common refund destination, when known.",
            "nullable": true
          },
          "shape": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FlightCancellationShape"
              }
            ],
            "description": "How the quoted amounts split."
          }
        },
        "required": [
          "airline",
          "credit",
          "credit_airline",
          "is_estimate",
          "non_refundable",
          "paid",
          "refund",
          "refund_destination",
          "shape"
        ],
        "title": "PublicFlightCancellationSummary",
        "type": "object"
      },
      "PublicQueryReportingDatasetResult": {
        "description": "External contract for `reporting-query`.",
        "properties": {
          "may_be_truncated": {
            "deprecated": true,
            "description": "Deprecated compatibility field. Use response.result_metadata.is_truncated for confirmed truncation. Mirrors that value for new responses; historical responses without metadata use the query_limit heuristic. Missing result_metadata means completeness is unknown.",
            "title": "May Be Truncated",
            "type": "boolean"
          },
          "query_limit": {
            "description": "The enforced maximum row count for this response or page.",
            "title": "Query Limit",
            "type": "integer"
          },
          "query_scope": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SemanticQueryScope"
              }
            ],
            "description": "The complete or explicit top-N scope used for this query, or null when a legacy caller omitted scope.",
            "nullable": true
          },
          "response": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PublicSemanticQueryResponse"
              }
            ],
            "description": "Typed rows, column metadata, and execution plan for the report query."
          },
          "view": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SemanticReportView"
              }
            ],
            "default": null,
            "description": "The requested view, validated against this query, in saved-report view form. Null when the call did not supply view.",
            "nullable": true
          }
        },
        "required": [
          "may_be_truncated",
          "query_limit",
          "query_scope",
          "response",
          "view"
        ],
        "title": "PublicQueryReportingDatasetResult",
        "type": "object"
      },
      "PublicReceiptDetailJsonMode": {
        "properties": {
          "created_at": {
            "default": null,
            "nullable": true,
            "title": "Created At",
            "type": "string"
          },
          "extended_data": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ExtendedReceiptDataJsonMode"
              }
            ],
            "default": null,
            "nullable": true
          },
          "receipt_uuid": {
            "title": "Receipt Uuid",
            "type": "string"
          },
          "structured_data": {
            "allOf": [
              {
                "$ref": "#/components/schemas/StructuredReceiptDataJsonMode"
              }
            ],
            "default": null,
            "nullable": true
          }
        },
        "required": [
          "receipt_uuid"
        ],
        "title": "PublicReceiptDetail",
        "type": "object"
      },
      "PublicRecordedFlightCancellationTerms": {
        "description": "Saved cancellation quote terms; does not verify settlement or issuance.",
        "properties": {
          "captured_at": {
            "description": "When these cancellation terms were saved.",
            "format": "date-time",
            "title": "Captured At",
            "type": "string"
          },
          "source": {
            "default": "executed_cancellation_quote",
            "enum": [
              "executed_cancellation_quote"
            ],
            "title": "Source",
            "type": "string"
          },
          "summary": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PublicFlightCancellationSummary"
              }
            ],
            "description": "Recorded quote terms, not proof of cash settlement or credit issuance."
          }
        },
        "required": [
          "captured_at",
          "source",
          "summary"
        ],
        "title": "PublicRecordedFlightCancellationTerms",
        "type": "object"
      },
      "PublicSemanticQueryPlan": {
        "description": "`SemanticQueryPlanSchema` without the internal `business_ids`.",
        "properties": {
          "data_source": {
            "title": "Data Source",
            "type": "string"
          },
          "elapsed_ms": {
            "default": null,
            "nullable": true,
            "title": "Elapsed Ms",
            "type": "number"
          },
          "execution_kind": {
            "default": "sql",
            "enum": [
              "ap_operations_metric",
              "financial_statement",
              "sql"
            ],
            "title": "Execution Kind",
            "type": "string"
          },
          "joins": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/SemanticJoinPlanSchema"
            },
            "title": "Joins",
            "type": "array"
          },
          "time_grains": {
            "additionalProperties": {
              "$ref": "#/components/schemas/TimeGrain"
            },
            "default": {},
            "title": "Time Grains",
            "type": "object"
          },
          "time_range_end": {
            "default": null,
            "format": "date-time",
            "nullable": true,
            "title": "Time Range End",
            "type": "string"
          },
          "time_range_start": {
            "default": null,
            "format": "date-time",
            "nullable": true,
            "title": "Time Range Start",
            "type": "string"
          }
        },
        "required": [
          "data_source",
          "elapsed_ms",
          "execution_kind",
          "joins",
          "time_grains",
          "time_range_end",
          "time_range_start"
        ],
        "title": "PublicSemanticQueryPlan",
        "type": "object"
      },
      "PublicSemanticQueryResponse": {
        "description": "`SemanticQueryResponse` with a plan that omits internal identifiers.",
        "properties": {
          "columns": {
            "items": {
              "$ref": "#/components/schemas/SemanticColumnSchema"
            },
            "title": "Columns",
            "type": "array"
          },
          "comparison": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SemanticComparisonResult"
              }
            ],
            "default": null,
            "nullable": true
          },
          "dataset": {
            "title": "Dataset",
            "type": "string"
          },
          "financial_statement": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FinancialStatementMetadata"
              }
            ],
            "default": null,
            "nullable": true
          },
          "plan": {
            "$ref": "#/components/schemas/PublicSemanticQueryPlan"
          },
          "reporting_currency": {
            "title": "Reporting Currency",
            "type": "string"
          },
          "result_metadata": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SemanticQueryResultMetadata"
              }
            ],
            "default": null,
            "nullable": true
          },
          "table": {
            "$ref": "#/components/schemas/ReportDataTableSchemaV3"
          },
          "time_zone": {
            "default": "UTC",
            "title": "Time Zone",
            "type": "string"
          },
          "totals": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReportingTableRowV3"
              }
            ],
            "default": null,
            "nullable": true
          },
          "warnings": {
            "default": [],
            "items": {
              "type": "string"
            },
            "title": "Warnings",
            "type": "array"
          }
        },
        "required": [
          "columns",
          "comparison",
          "dataset",
          "financial_statement",
          "plan",
          "reporting_currency",
          "result_metadata",
          "table",
          "time_zone",
          "totals",
          "warnings"
        ],
        "title": "PublicSemanticQueryResponse",
        "type": "object"
      },
      "PublishRFXOutput": {
        "properties": {
          "message": {
            "description": "Human-readable result of the publish request",
            "title": "Message",
            "type": "string"
          },
          "rfx_id": {
            "description": "UUID of the RFX",
            "title": "Rfx Id",
            "type": "string"
          },
          "status": {
            "description": "Lifecycle status after the call: PUBLISHED, or IN_REVIEW when routed to approval",
            "title": "Status",
            "type": "string"
          },
          "submitted_for_approval": {
            "description": "True when a publish approval policy routed the RFX to IN_REVIEW instead of publishing; nothing was sent to vendors yet",
            "title": "Submitted For Approval",
            "type": "boolean"
          }
        },
        "required": [
          "message",
          "rfx_id",
          "status",
          "submitted_for_approval"
        ],
        "title": "PublishRFXOutput",
        "type": "object"
      },
      "PublishRFXRequestBody": {
        "description": "Publish an RFX, sending it externally to every ACTIVE invitation contact.\n\nPublishing notifies vendors outside Ramp, so check GetRFXDetail first: its\n``available_actions`` publish entry reports whether publish is currently\nallowed (and why not), and its ``vendors`` block lists the exact contacts\nwho will be notified. When a publish approval policy is configured, the RFX\nmoves to IN_REVIEW instead and nothing is sent to vendors yet \u2014 the\napproval then proceeds with the designated approvers in the Ramp app, and\nthe RFX publishes automatically once approved. Calling publish again while\npending approval or already published fails cleanly.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "rfx_id": {
            "description": "UUID of the RFX to publish",
            "format": "uuid",
            "title": "Rfx Id",
            "type": "string"
          }
        },
        "required": [
          "rationale",
          "rfx_id"
        ],
        "title": "PublishRFX",
        "type": "object"
      },
      "PurchaseOrderCreationSourceRequestBody": {
        "description": "Represents the creation source of a PurchaseOrder.\n\n- RAMP: PurchaseOrder created in Ramp\n- ACCOUNTING_PROVIDER: PurchaseOrder imported from an accounting provider\n- DEVELOPER_API: PurchaseOrder created via the Developer API\n- EXTERNAL_IMPORT: PurchaseOrder imported from a non-accounting external source",
        "enum": [
          "ACCOUNTING_PROVIDER",
          "DEVELOPER_API",
          "EXTERNAL_IMPORT",
          "RAMP"
        ],
        "title": "PurchaseOrderCreationSource",
        "type": "string"
      },
      "PurchaseOrderDetails": {
        "description": "Detailed information about a specific purchase order.",
        "properties": {
          "amount": {
            "default": "0",
            "title": "Amount",
            "type": "number"
          },
          "billed_amount": {
            "default": "0",
            "description": "Total of paid and open bills matched to this purchase order, in its currency, including bills linked to the order as a whole without line mapping. Line-item billed amounts only cover line-mapped bills.",
            "title": "Billed Amount",
            "type": "number"
          },
          "blanket_balances": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BlanketPurchaseOrderBalancesInfo"
              }
            ],
            "default": null,
            "description": "Set only on a blanket PO.",
            "nullable": true
          },
          "blanket_purchase_order": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BlanketParentPurchaseOrderInfo"
              }
            ],
            "default": null,
            "description": "On a release PO, the blanket PO it orders against. Null on every other purchase order.",
            "nullable": true
          },
          "created_date": {
            "default": null,
            "format": "date-time",
            "nullable": true,
            "title": "Created Date",
            "type": "string"
          },
          "currency": {
            "default": null,
            "nullable": true,
            "title": "Currency",
            "type": "string"
          },
          "documents": {
            "description": "Documents kept with the purchase order, such as quotes and contracts. File contents are not returned.",
            "items": {
              "$ref": "#/components/schemas/PurchaseOrderDocumentInfo"
            },
            "title": "Documents",
            "type": "array"
          },
          "has_more_release_purchase_orders": {
            "default": null,
            "description": "True when release_purchase_orders was cut off at its limit. Null when the list wasn't loaded.",
            "nullable": true,
            "title": "Has More Release Purchase Orders",
            "type": "boolean"
          },
          "has_pending_change_request": {
            "default": false,
            "description": "True when a submitted change request against this purchase order is awaiting approval; a new change request cannot be drafted until it is resolved.",
            "title": "Has Pending Change Request",
            "type": "boolean"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "is_blanket_purchase_order": {
            "default": false,
            "description": "True for a blanket PO: an approved limit with one vendor that release POs order against at its line prices. It has no bills, receipts, or cards of its own; billed_amount and line billed amounts stay 0.",
            "title": "Is Blanket Purchase Order",
            "type": "boolean"
          },
          "is_total_amount_estimated": {
            "default": false,
            "description": "True when the requester marked the total as an estimated maximum.",
            "title": "Is Total Amount Estimated",
            "type": "boolean"
          },
          "line_items": {
            "items": {
              "$ref": "#/components/schemas/PurchaseOrderLineItemInfo"
            },
            "title": "Line Items",
            "type": "array"
          },
          "linked_bills": {
            "description": "Bills and draft bills matched to this purchase order. status_summary and amount are authoritative; open a bill with GetBillDetails or GetDraftBillDetails only when viewer_can_open is true.",
            "items": {
              "$ref": "#/components/schemas/PurchaseOrderLinkedBillInfo"
            },
            "title": "Linked Bills",
            "type": "array"
          },
          "linked_item_receipts": {
            "items": {
              "$ref": "#/components/schemas/PurchaseOrderLinkedItemReceiptInfo"
            },
            "title": "Linked Item Receipts",
            "type": "array"
          },
          "linked_transactions": {
            "items": {
              "$ref": "#/components/schemas/PurchaseOrderLinkedTransactionInfo"
            },
            "title": "Linked Transactions",
            "type": "array"
          },
          "memo": {
            "default": null,
            "nullable": true,
            "title": "Memo",
            "type": "string"
          },
          "pending_change_request_uuid": {
            "default": null,
            "description": "spend_request_uuid of the pending change request, accepted by request-details lookups.",
            "nullable": true,
            "title": "Pending Change Request Uuid",
            "type": "string"
          },
          "promise_date": {
            "default": null,
            "nullable": true,
            "title": "Promise Date",
            "type": "string"
          },
          "purchase_order_number": {
            "default": null,
            "nullable": true,
            "title": "Purchase Order Number",
            "type": "string"
          },
          "release_purchase_orders": {
            "default": null,
            "description": "On a blanket PO, its submitted and approved release POs that you can view, newest first, at most 25. Null when the list wasn't loaded, including on other purchase orders; null does not mean the blanket PO has no release POs.",
            "items": {
              "$ref": "#/components/schemas/BlanketReleasePurchaseOrderInfo"
            },
            "nullable": true,
            "title": "Release Purchase Orders",
            "type": "array"
          },
          "remaining_amount": {
            "default": "0",
            "description": "amount minus billed_amount.",
            "title": "Remaining Amount",
            "type": "number"
          },
          "request_name": {
            "default": null,
            "nullable": true,
            "title": "Request Name",
            "type": "string"
          },
          "request_status": {
            "default": null,
            "nullable": true,
            "title": "Request Status",
            "type": "string"
          },
          "status": {
            "default": null,
            "nullable": true,
            "title": "Status",
            "type": "string"
          },
          "tax_amount": {
            "default": "0",
            "description": "Portion of amount that is tax, on the same recurrence basis as amount; amount minus this is the pre-tax subtotal. 0 when the purchase order has no tax.",
            "title": "Tax Amount",
            "type": "number"
          },
          "unified_request_id": {
            "default": null,
            "description": "Associated request ID, when available. Null if the purchase order has no associated request or was issued directly.",
            "nullable": true,
            "title": "Unified Request Id",
            "type": "string"
          },
          "vendor_name": {
            "default": null,
            "nullable": true,
            "title": "Vendor Name",
            "type": "string"
          },
          "vendor_uuid": {
            "default": null,
            "nullable": true,
            "title": "Vendor Uuid",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "title": "PurchaseOrderDetails",
        "type": "object"
      },
      "PurchaseOrderDocumentInfo": {
        "properties": {
          "category": {
            "$ref": "#/components/schemas/PayeeDocumentCategory"
          },
          "filename": {
            "title": "Filename",
            "type": "string"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "is_vendor_facing": {
            "description": "True when the document is attached to the purchase order sent to the vendor; false for internal request documents.",
            "title": "Is Vendor Facing",
            "type": "boolean"
          }
        },
        "required": [
          "category",
          "filename",
          "id",
          "is_vendor_facing"
        ],
        "title": "PurchaseOrderDocumentInfo",
        "type": "object"
      },
      "PurchaseOrderInfo": {
        "description": "Basic purchase order information for search results.",
        "properties": {
          "amount": {
            "default": "0",
            "title": "Amount",
            "type": "number"
          },
          "blanket_purchase_order_id": {
            "default": null,
            "description": "On a release PO, the purchase_order_id of the blanket PO it orders against. Null on every other purchase order.",
            "nullable": true,
            "title": "Blanket Purchase Order Id",
            "type": "string"
          },
          "currency": {
            "default": null,
            "nullable": true,
            "title": "Currency",
            "type": "string"
          },
          "display_name": {
            "default": null,
            "nullable": true,
            "title": "Display Name",
            "type": "string"
          },
          "is_blanket_purchase_order": {
            "default": false,
            "description": "True for a blanket PO: an approved limit with one vendor that release POs order against. It has no bills, receipts, or cards of its own.",
            "title": "Is Blanket Purchase Order",
            "type": "boolean"
          },
          "owner_name": {
            "default": null,
            "nullable": true,
            "title": "Owner Name",
            "type": "string"
          },
          "progress": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PurchaseOrderProgress"
              }
            ],
            "default": null,
            "description": "Billing and receiving progress; only present when include_progress was requested.",
            "nullable": true
          },
          "purchase_order_id": {
            "title": "Purchase Order Id",
            "type": "string"
          },
          "purchase_order_number": {
            "default": null,
            "nullable": true,
            "title": "Purchase Order Number",
            "type": "string"
          },
          "receipt_status": {
            "default": null,
            "description": "Receiving progress (NOT_RECEIVED, PARTIALLY_RECEIVED, FULLY_RECEIVED, OVER_RECEIVED). Null when the order does not track receiving, so null does not mean unreceived.",
            "nullable": true,
            "title": "Receipt Status",
            "type": "string"
          },
          "status": {
            "default": null,
            "nullable": true,
            "title": "Status",
            "type": "string"
          },
          "vendor_name": {
            "default": null,
            "nullable": true,
            "title": "Vendor Name",
            "type": "string"
          }
        },
        "required": [
          "purchase_order_id"
        ],
        "title": "PurchaseOrderInfo",
        "type": "object"
      },
      "PurchaseOrderItemReceiptLineItemInfo": {
        "properties": {
          "amount": {
            "default": null,
            "nullable": true,
            "title": "Amount",
            "type": "number"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "item_receipt_id": {
            "title": "Item Receipt Id",
            "type": "string"
          },
          "memo": {
            "default": null,
            "nullable": true,
            "title": "Memo",
            "type": "string"
          },
          "purchase_order_line_item_log_entry_uuid": {
            "default": null,
            "nullable": true,
            "title": "Purchase Order Line Item Log Entry Uuid",
            "type": "string"
          },
          "quantity": {
            "default": null,
            "nullable": true,
            "title": "Quantity",
            "type": "number"
          },
          "unit_price": {
            "default": null,
            "nullable": true,
            "title": "Unit Price",
            "type": "number"
          },
          "unit_quantity": {
            "default": null,
            "nullable": true,
            "title": "Unit Quantity",
            "type": "integer"
          }
        },
        "required": [
          "id",
          "item_receipt_id"
        ],
        "title": "PurchaseOrderItemReceiptLineItemInfo",
        "type": "object"
      },
      "PurchaseOrderLineItemInfo": {
        "properties": {
          "amount": {
            "default": "0",
            "title": "Amount",
            "type": "number"
          },
          "billed_amount": {
            "default": "0",
            "title": "Billed Amount",
            "type": "number"
          },
          "billed_quantity": {
            "default": "0",
            "title": "Billed Quantity",
            "type": "number"
          },
          "blanket_line": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BlanketPurchaseOrderLineInfo"
              }
            ],
            "default": null,
            "description": "Set only on a blanket PO line; null on other lines.",
            "nullable": true
          },
          "description": {
            "default": null,
            "nullable": true,
            "title": "Description",
            "type": "string"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "item_receipt_line_items": {
            "items": {
              "$ref": "#/components/schemas/PurchaseOrderItemReceiptLineItemInfo"
            },
            "title": "Item Receipt Line Items",
            "type": "array"
          },
          "quantity": {
            "default": null,
            "nullable": true,
            "title": "Quantity",
            "type": "number"
          },
          "received_amount": {
            "default": "0",
            "title": "Received Amount",
            "type": "number"
          },
          "received_quantity": {
            "default": "0",
            "title": "Received Quantity",
            "type": "number"
          },
          "release_line": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReleasePurchaseOrderLineInfo"
              }
            ],
            "default": null,
            "description": "Set only on a release PO line; null on other lines.",
            "nullable": true
          },
          "remaining_amount": {
            "default": "0",
            "title": "Remaining Amount",
            "type": "number"
          },
          "remaining_quantity": {
            "default": null,
            "nullable": true,
            "title": "Remaining Quantity",
            "type": "number"
          },
          "tax_amounts": {
            "description": "Tax charged on this line, one entry per tax rate, per occurrence like the line amount. Excluded from this line's amount and remaining amount. Tax is not a line item and cannot be matched to a bill line.",
            "items": {
              "$ref": "#/components/schemas/PurchaseOrderLineTaxAmountInfo"
            },
            "title": "Tax Amounts",
            "type": "array"
          },
          "tracking_category_selections": {
            "items": {
              "$ref": "#/components/schemas/PurchaseOrderLineTrackingCategorySelectionInfo"
            },
            "title": "Tracking Category Selections",
            "type": "array"
          },
          "unit_price": {
            "default": null,
            "nullable": true,
            "title": "Unit Price",
            "type": "number"
          }
        },
        "required": [
          "id"
        ],
        "title": "PurchaseOrderLineItemInfo",
        "type": "object"
      },
      "PurchaseOrderLineTaxAmountInfo": {
        "properties": {
          "amount": {
            "description": "Tax amount in the purchase order currency.",
            "title": "Amount",
            "type": "number"
          },
          "tax_rate": {
            "default": null,
            "description": "ERP tax rate as a decimal fraction (0.05 means 5%). The tax amount can be manually overridden, so it need not equal the line amount times this rate.",
            "nullable": true,
            "title": "Tax Rate",
            "type": "number"
          },
          "tax_rate_name": {
            "default": null,
            "nullable": true,
            "title": "Tax Rate Name",
            "type": "string"
          }
        },
        "required": [
          "amount"
        ],
        "title": "PurchaseOrderLineTaxAmountInfo",
        "type": "object"
      },
      "PurchaseOrderLineTrackingCategorySelectionInfo": {
        "properties": {
          "tracking_category_name": {
            "default": null,
            "nullable": true,
            "title": "Tracking Category Name",
            "type": "string"
          },
          "tracking_category_option_code": {
            "default": null,
            "description": "Stored ERP code of the selected option (e.g., GL account number '60100'), distinct from its remote ID; None if the option has no code",
            "nullable": true,
            "title": "Tracking Category Option Code",
            "type": "string"
          },
          "tracking_category_option_name": {
            "default": null,
            "nullable": true,
            "title": "Tracking Category Option Name",
            "type": "string"
          },
          "tracking_category_option_remote_id": {
            "default": null,
            "nullable": true,
            "title": "Tracking Category Option Remote Id",
            "type": "string"
          },
          "tracking_category_option_uuid": {
            "default": null,
            "nullable": true,
            "title": "Tracking Category Option Uuid",
            "type": "string"
          },
          "tracking_category_remote_type": {
            "default": null,
            "nullable": true,
            "title": "Tracking Category Remote Type",
            "type": "string"
          },
          "tracking_category_uuid": {
            "default": null,
            "nullable": true,
            "title": "Tracking Category Uuid",
            "type": "string"
          }
        },
        "title": "PurchaseOrderLineTrackingCategorySelectionInfo",
        "type": "object"
      },
      "PurchaseOrderLinkSchema": {
        "properties": {
          "provenance": {
            "enum": [
              "AUTO_MATCHED",
              "ISSUED_FROM_BILL",
              "PO_CONTEXT_PRESELECTED",
              "USER_SELECTED"
            ],
            "title": "Provenance",
            "type": "string"
          },
          "purchase_order_id": {
            "title": "Purchase Order Id",
            "type": "string"
          }
        },
        "required": [
          "provenance",
          "purchase_order_id"
        ],
        "title": "PurchaseOrderLinkSchema",
        "type": "object"
      },
      "PurchaseOrderLinkedBillInfo": {
        "properties": {
          "amount": {
            "default": null,
            "nullable": true,
            "title": "Amount",
            "type": "number"
          },
          "bill_id": {
            "title": "Bill Id",
            "type": "string"
          },
          "invoice_number": {
            "default": null,
            "nullable": true,
            "title": "Invoice Number",
            "type": "string"
          },
          "status_summary": {
            "default": null,
            "nullable": true,
            "title": "Status Summary",
            "type": "string"
          },
          "viewer_can_open": {
            "description": "Whether GetBillDetails or GetDraftBillDetails can return this bill for the acting user. When false, status_summary and amount are the authoritative details; do not call those tools for it. False does not mean the user has no access to the bill elsewhere in Ramp.",
            "title": "Viewer Can Open",
            "type": "boolean"
          }
        },
        "required": [
          "bill_id",
          "viewer_can_open"
        ],
        "title": "PurchaseOrderLinkedBillInfo",
        "type": "object"
      },
      "PurchaseOrderLinkedItemReceiptInfo": {
        "properties": {
          "item_receipt_id": {
            "title": "Item Receipt Id",
            "type": "string"
          },
          "item_receipt_number": {
            "default": null,
            "nullable": true,
            "title": "Item Receipt Number",
            "type": "string"
          },
          "received_at": {
            "default": null,
            "nullable": true,
            "title": "Received At",
            "type": "string"
          }
        },
        "required": [
          "item_receipt_id"
        ],
        "title": "PurchaseOrderLinkedItemReceiptInfo",
        "type": "object"
      },
      "PurchaseOrderLinkedTransactionInfo": {
        "properties": {
          "amount": {
            "default": null,
            "nullable": true,
            "title": "Amount",
            "type": "number"
          },
          "merchant_name": {
            "default": null,
            "nullable": true,
            "title": "Merchant Name",
            "type": "string"
          },
          "state": {
            "default": null,
            "nullable": true,
            "title": "State",
            "type": "string"
          },
          "transaction_id": {
            "title": "Transaction Id",
            "type": "string"
          }
        },
        "required": [
          "transaction_id"
        ],
        "title": "PurchaseOrderLinkedTransactionInfo",
        "type": "object"
      },
      "PurchaseOrderOwnerSummary": {
        "properties": {
          "name": {
            "description": "User full name",
            "title": "Name",
            "type": "string"
          },
          "user_uuid": {
            "description": "User UUID",
            "title": "User Uuid",
            "type": "string"
          }
        },
        "required": [
          "name",
          "user_uuid"
        ],
        "title": "PurchaseOrderOwnerSummary",
        "type": "object"
      },
      "PurchaseOrderProgress": {
        "description": "Order-level billing and receiving progress, in the order's currency.",
        "properties": {
          "billed_amount": {
            "description": "Paid and open bills matched to the order, including bills linked without line mapping.",
            "title": "Billed Amount",
            "type": "number"
          },
          "linked_bill_count": {
            "title": "Linked Bill Count",
            "type": "integer"
          },
          "linked_item_receipt_count": {
            "title": "Linked Item Receipt Count",
            "type": "integer"
          },
          "received_amount": {
            "description": "Received value per the purchase order's receiving records; 0 when the order does not track receiving.",
            "title": "Received Amount",
            "type": "number"
          },
          "remaining_amount": {
            "description": "amount minus billed_amount.",
            "title": "Remaining Amount",
            "type": "number"
          }
        },
        "required": [
          "billed_amount",
          "linked_bill_count",
          "linked_item_receipt_count",
          "received_amount",
          "remaining_amount"
        ],
        "title": "PurchaseOrderProgress",
        "type": "object"
      },
      "PurchaseOrderReceiptStatusRequestBody": {
        "description": "Represents the receipt status of the PO.\nA PO is considered to be `FULLY_RECEIVED` if and only if all of the PO line\nitems have been received.",
        "enum": [
          "FULLY_RECEIVED",
          "NOT_RECEIVED",
          "OVER_RECEIVED",
          "PARTIALLY_RECEIVED"
        ],
        "title": "PurchaseOrderReceiptStatus",
        "type": "string"
      },
      "PurchaseOrderSearchFiltersRequestBody": {
        "properties": {
          "blanket_purchase_order_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "purchase_order_id of a blanket PO. Returns only the release POs ordered against it.",
            "nullable": true
          },
          "is_blanket_purchase_order": {
            "default": null,
            "description": "True returns only blanket POs; False excludes them. Omit to return both.",
            "nullable": true,
            "title": "Is Blanket Purchase Order",
            "type": "boolean"
          },
          "payee_uuids": {
            "default": null,
            "description": "Exact Ramp vendor (payee) UUIDs; vendor names are not accepted here, so pass a name in search instead. Omit this field unless you have at least one UUID; do not pass an empty list for no payee filter.",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "title": "Payee Uuids",
            "type": "array"
          },
          "purchase_order_statuses": {
            "default": null,
            "description": "Exact purchase order statuses to include.",
            "items": {
              "$ref": "#/components/schemas/PurchaseOrderStatusToDisplayRequestBody"
            },
            "nullable": true,
            "title": "Purchase Order Statuses",
            "type": "array"
          },
          "receipt_statuses": {
            "default": null,
            "description": "Receiving statuses to include. Only purchase orders that track receiving (three-way match) have one, so this filter excludes the rest.",
            "items": {
              "$ref": "#/components/schemas/PurchaseOrderReceiptStatusRequestBody"
            },
            "nullable": true,
            "title": "Receipt Statuses",
            "type": "array"
          },
          "requires_user_action": {
            "default": null,
            "description": "True to only show purchase orders waiting on the acting user. Omit for no action filter.",
            "nullable": true,
            "title": "Requires User Action",
            "type": "boolean"
          },
          "search": {
            "default": null,
            "description": "Case-insensitive partial match on PO number (including imported and blanket PO numbers), request name, vendor name, or owner name, plus an exact match on a full request number, with or without its prefix. A digits-only term matches only PO and request numbers. Vendor names are not matched for EXTERNAL_IMPORT orders.",
            "nullable": true,
            "title": "Search",
            "type": "string"
          },
          "sources": {
            "default": null,
            "description": "Creation sources to include: RAMP (created in Ramp), DEVELOPER_API (created through the Developer API), ACCOUNTING_PROVIDER (synced from an ERP such as QuickBooks or NetSuite), and EXTERNAL_IMPORT (imported from another external source). Omitting this field searches only RAMP and DEVELOPER_API orders, so include ACCOUNTING_PROVIDER and EXTERNAL_IMPORT to find imported purchase orders, such as when looking up a PO number.",
            "items": {
              "$ref": "#/components/schemas/PurchaseOrderCreationSourceRequestBody"
            },
            "nullable": true,
            "title": "Sources",
            "type": "array"
          },
          "spend_request_owner_uuids": {
            "default": null,
            "description": "Exact owner user UUIDs for the linked spend request.",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "title": "Spend Request Owner Uuids",
            "type": "array"
          },
          "spend_request_statuses": {
            "default": null,
            "description": "Underlying spend request statuses to include.",
            "items": {
              "$ref": "#/components/schemas/SpendRequestStatusRequestBody"
            },
            "nullable": true,
            "title": "Spend Request Statuses",
            "type": "array"
          },
          "tags": {
            "default": null,
            "description": "Structured purchase-order search tags. For accounting category filters, first resolve SearchTagCategory.TrackingCategory via the search-tag lookup tool, then pass the returned tracking-category tags here.",
            "items": {
              "$ref": "#/components/schemas/PurchaseOrderSearchTagRequestBody"
            },
            "nullable": true,
            "title": "Tags",
            "type": "array"
          }
        },
        "title": "PurchaseOrderSearchFilters",
        "type": "object"
      },
      "PurchaseOrderSearchResult": {
        "description": "Search results for purchase orders.",
        "properties": {
          "has_more": {
            "default": false,
            "title": "Has More",
            "type": "boolean"
          },
          "next_page_cursor": {
            "default": null,
            "nullable": true,
            "title": "Next Page Cursor",
            "type": "string"
          },
          "purchase_orders": {
            "items": {
              "$ref": "#/components/schemas/PurchaseOrderInfo"
            },
            "title": "Purchase Orders",
            "type": "array"
          },
          "summary": {
            "title": "Summary",
            "type": "string"
          },
          "total_found": {
            "nullable": true,
            "title": "Total Found",
            "type": "integer"
          }
        },
        "required": [
          "purchase_orders",
          "summary",
          "total_found"
        ],
        "title": "PurchaseOrderSearchResult",
        "type": "object"
      },
      "PurchaseOrderSearchTagRequestBody": {
        "properties": {
          "id": {
            "description": "Tag identifier. Tracking-category tags require an integer option ID or UUID.",
            "title": "Id",
            "type": "string"
          },
          "type": {
            "enum": [
              "entity",
              "intake_spend_request_owner",
              "payee",
              "purchase_order_currency",
              "purchase_order_spend_intent",
              "purchase_order_spend_request",
              "tracking_category",
              "unified_request_coordinator"
            ],
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "PurchaseOrderSearchTag",
        "type": "object"
      },
      "PurchaseOrderStatusToDisplayRequestBody": {
        "description": "Describes the status of a PurchaseOrder that we display to users\n\nA PO created in Ramp can have the following statuses:\n- OPEN\n- PARTIALLY_BILLED\n- FULLY_BILLED\n- CLOSED\n\nAn Imported PO can have the following statuses:\n- OPEN\n- FULLY_BILLED\n- CLOSED\n- DELETED",
        "enum": [
          "CLOSED",
          "DELETED",
          "FULLY_BILLED",
          "OPEN",
          "PARTIALLY_BILLED"
        ],
        "title": "PurchaseOrderStatusToDisplay",
        "type": "string"
      },
      "PurchaseOrderTrackingCategorySelectionInputRequestBody": {
        "additionalProperties": false,
        "description": "A header-level (purchase-order) accounting selection.\n\nHeader selections are written as a complete set, so an option is always\nrequired; omit a category to leave it unset. The vendor/merchant category is\nderived from the payee at submit and cannot be set here.",
        "properties": {
          "tracking_category_option_uuid": {
            "description": "UUID of the selected option returned by GetTrackingCategoryOptions.",
            "format": "uuid",
            "title": "Tracking Category Option Uuid",
            "type": "string"
          },
          "tracking_category_uuid": {
            "description": "UUID of the tracking category returned by GetTrackingCategories.",
            "format": "uuid",
            "title": "Tracking Category Uuid",
            "type": "string"
          }
        },
        "required": [
          "tracking_category_option_uuid",
          "tracking_category_uuid"
        ],
        "title": "PurchaseOrderTrackingCategorySelectionInput",
        "type": "object"
      },
      "QuantileAggregation": {
        "additionalProperties": false,
        "properties": {
          "percentile": {
            "description": "The percentile as a fraction, e.g. 0.9 for p90.",
            "exclusiveMaximum": true,
            "exclusiveMinimum": true,
            "maximum": 1,
            "minimum": 0,
            "title": "Percentile",
            "type": "number"
          },
          "type": {
            "enum": [
              "QUANTILE_NUMERIC"
            ],
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "percentile",
          "type"
        ],
        "title": "QuantileAggregation",
        "type": "object"
      },
      "QuantileAggregationRequestBody": {
        "additionalProperties": false,
        "properties": {
          "percentile": {
            "description": "The percentile as a fraction, e.g. 0.9 for p90.",
            "exclusiveMaximum": true,
            "exclusiveMinimum": true,
            "maximum": 1,
            "minimum": 0,
            "title": "Percentile",
            "type": "number"
          },
          "type": {
            "enum": [
              "QUANTILE_NUMERIC"
            ],
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "percentile",
          "type"
        ],
        "title": "QuantileAggregation",
        "type": "object"
      },
      "QueryReportingDatasetRequestBody": {
        "description": "Query reporting data and return aggregate or individual-record rows.\nUse for analysis or validation. Does not save reports.\n\nUse exact catalog dimension/measure names and kinds, not display labels.\nFor SQL, groupable=false (also needs.groupable=false) detail fields need\ndimensions without measures; query totals separately.\nCatalog filters need filterable=true, ops from supported_filter_ops, and\nvalues matching filter_value_kind. Search tags need resolved IDs with\noriginal types, not names.\nFinancial-statement datasets accept `statement.time_window`, optional\nprovider-dimension `statement.filters`, and a response-size `limit`. They\nreturn fixed, canonically ordered account and calculated-total rows with\nprovider currency and publication metadata. These overlapping rows must\nnot be summed. SQL controls, comparisons, and top-N scope are unsupported;\nmissing or changed ledger publications return a failed-precondition error.\n\nFor SQL datasets, a `filters` clause whose\n`field` is a catalog field is a row predicate; one whose `field` is a\nselected measure output name (its `name` alias when present) is the\npreferred aggregate predicate and applies after grouping (HAVING), e.g.\n`{\"field\": \"txn_count\", \"op\": \"gt\", \"value\": 3}`. `having` and\n`aggregate_filters` remain supported equivalents, but are deprecated and\nmigrated into `filters`; `result_metadata.predicate_migration` records the\nmigration.\nOrder by any selected orderable dimension or measure output.\n\nFor complete SQL results, set `page_size` (1\u20131,000) to paginate. Pass\n`response.table.page.next` as `start` with the same `report_query`,\n`query_scope`, and `page_size` until it is null. Pages read live data, not\na snapshot. Financial statements and `second_stage` / `post_aggregation`\nqueries do not support pagination.\n\nA measure ref may carry its own `filters` plus a unique `name` to emit a\nconditional aggregate column (\"sumIf\"). Select the same measure several\ntimes with different filters for side-by-side cohort columns, e.g. one\nspend total per category grouped by user, including an \"other\" column via\na NOT_IN filter. Measure filters use the same field/op/value shape as\nquery filters but only base-dataset fields.\nA catalog entry with non-empty `aggregations` also accepts a ref with\n`agg` (`type` from `aggregations`) and a required `name`. If `covered_by`\nlists a measure for that agg, select that measure instead.\nUse `second_stage` whenever the question aggregates per-group results\nagain (days/months/vendors per X, average monthly spend per X, highest or\nlowest month per X, users over $X per month): retain `dimensions` and\ncompute `measures`, each `{\"agg\": SUM|AVG|MIN|MAX|COUNT, \"of\":\n<first-stage measure output name or null>, \"name\"}`, across the collapsed\ngroups, instead of post-processing first-stage rows yourself. COUNT\nwithout `of` counts groups that survive the aggregate predicates (a\nmeasure-output `filters` clause or the deprecated forms, which migrate\nlike any other query); only a stage made solely of such counts needs a\npredicate, so never add a threshold just to satisfy it when\nSUM/AVG/MIN/MAX or COUNT of an operand is present. For example, select\nuser plus `{\"field\": \"spend_date\", \"time_grain\": \"day\"}`, filter\ndaily_spend over $500, then use `{\"dimensions\": [\"user\"], \"measures\":\n[{\"agg\": \"COUNT\", \"name\": \"days_over_limit\"}]}`; retain `spend_date`\ninstead to count users over the threshold per day or month. For average\nmonthly spend per vendor, select vendor and month with `{\"measure\":\n\"amount\", \"name\": \"monthly_spend\"}` and use `{\"agg\": \"AVG\", \"of\":\n\"monthly_spend\", \"name\": \"avg_monthly_spend\"}`: an average of monthly\ntotals over the months that have spend (a month with no rows is not a\nzero), so present it as an average per active month or add a COUNT of\nmonths; MIN/MAX of the same operand give each vendor's lowest and highest\nmonth. Operands must be selected first-stage measure outputs (aliases\nallowed), never window measures. Order by retained dimensions or stage\nnames only; `limit` applies to the final rows; no `totals`. Use user with\namount for employee spend; only per-diem or meal questions need attendee\nwith amount_per_attendee, which allocates across Ramp employee attendees\nonly (external attendees are excluded) and falls back to the spending\nemployee when no attendee list exists. Keep the daily grain so day counts\nare by UTC calendar day. `post_aggregation` (`{\"dimension\", \"name\"}`) is\nthe deprecated equivalent of a single COUNT stage; do not use it for new\nqueries.\n\nUse `max_groups` for K named values plus Other independently on every\nselected non-time dimension, retaining all time buckets. Set\n`ranking_order_by` to selected first-stage measure scores. When the time\nrange is omitted, ranking covers all authorized data. Display `order_by`\nis separate. Omit `limit`; without `page_size`, ranked results have a\n1,000-row cap disclosed through result_metadata.is_truncated. Ranking\ncannot combine with aggregate predicates or second_stage.\n\nCovers Ramp data and canonical financial statements from authorized connected ERP books. Data is eventually consistent (may lag a few minutes).",
        "properties": {
          "page_size": {
            "default": null,
            "description": "Maximum rows per page (1\u20131000). Setting it paginates the result and requires query_scope='complete'.",
            "maximum": 1000,
            "minimum": 1,
            "nullable": true,
            "title": "Page Size",
            "type": "integer"
          },
          "query_scope": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SemanticQueryScopeRequestBody"
              }
            ],
            "default": null,
            "description": "Result-set scope. Use complete for all, each, every, or otherwise unrestricted results. Omit report_query.limit; complete overrides any supplied flat limit and uses 1000 rows per response unless page_size enables pagination. Use complete with max_groups; it preserves per-dimension ranking. Use top_n only when the user explicitly requested exactly N rows, and set report_query.limit to that N. Financial statements do not support top_n; complete preserves their canonical order. Omission preserves the query limit.",
            "nullable": true
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "report_query": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReportQuerySubmissionRequestBody"
              }
            ],
            "description": "Semantic ReportQuery to execute using the dataset's catalog contract. SQL datasets require at least one dimension or measure. Canonical financial statements require statement parameters instead of field selections."
          },
          "show_chart": {
            "default": false,
            "description": "Request an interactive Ramp chart in MCP Apps. Leave false for intermediate or exploratory queries. After exploration, set true on at most one query whose result you want to present. Combine dimensions in one query when appropriate. If the Ramp chart is shown, do not create a duplicate chart.",
            "title": "Show Chart",
            "type": "boolean"
          },
          "start": {
            "default": null,
            "description": "Opaque token from response.table.page.next. Omit for the first page. Requires page_size.",
            "nullable": true,
            "title": "Start",
            "type": "string"
          },
          "view": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SemanticReportViewSpecRequestBody"
              }
            ],
            "default": null,
            "description": "How a client that draws this result, such as a chart card, should display it. Choose it as for CreateSemanticReport, from the question's intent and this query's result shape. Display only: it never changes the query or its rows, and saves nothing. Omit when nothing renders the result. raw_table is not supported.",
            "nullable": true
          }
        },
        "required": [
          "rationale",
          "report_query"
        ],
        "title": "QueryReportingDataset",
        "type": "object"
      },
      "RFXAvailableActionDetail": {
        "properties": {
          "action": {
            "description": "Lifecycle or management action, such as publish or close",
            "title": "Action",
            "type": "string"
          },
          "allowed": {
            "description": "Whether the acting user can perform it now",
            "title": "Allowed",
            "type": "boolean"
          },
          "denial_reason": {
            "default": null,
            "description": "Why the action is currently unavailable, when denied",
            "nullable": true,
            "title": "Denial Reason",
            "type": "string"
          }
        },
        "required": [
          "action",
          "allowed",
          "denial_reason"
        ],
        "title": "RFXAvailableActionDetail",
        "type": "object"
      },
      "RFXCollaborator": {
        "properties": {
          "is_inactive": {
            "description": "Whether the collaborator's user account is deactivated",
            "title": "Is Inactive",
            "type": "boolean"
          },
          "name": {
            "description": "Full name of the collaborator",
            "title": "Name",
            "type": "string"
          },
          "user_uuid": {
            "description": "UUID of the collaborator user",
            "title": "User Uuid",
            "type": "string"
          }
        },
        "required": [
          "is_inactive",
          "name",
          "user_uuid"
        ],
        "title": "RFXCollaborator",
        "type": "object"
      },
      "RFXCoverSheetDetail": {
        "properties": {
          "attachments": {
            "items": {
              "$ref": "#/components/schemas/RFXSheetAttachmentDetail"
            },
            "title": "Attachments",
            "type": "array"
          },
          "body_markdown": {
            "default": null,
            "description": "Vendor-facing cover sheet body rendered as markdown",
            "nullable": true,
            "title": "Body Markdown",
            "type": "string"
          }
        },
        "required": [
          "attachments",
          "body_markdown"
        ],
        "title": "RFXCoverSheetDetail",
        "type": "object"
      },
      "RFXFieldDetail": {
        "properties": {
          "choices": {
            "description": "Choice values for single/multi select fields; empty otherwise",
            "items": {
              "type": "string"
            },
            "title": "Choices",
            "type": "array"
          },
          "description": {
            "default": null,
            "description": "Response guidance shown to vendors, when set",
            "nullable": true,
            "title": "Description",
            "type": "string"
          },
          "field_id": {
            "description": "Stable UUID of the questionnaire field",
            "title": "Field Id",
            "type": "string"
          },
          "field_type": {
            "description": "Field type, such as TEXT, PARAGRAPH, BOOLEAN, or TEXT_SINGLE_SELECT",
            "title": "Field Type",
            "type": "string"
          },
          "has_visibility_conditions": {
            "default": false,
            "description": "True when this field is conditionally shown based on an earlier field's answer",
            "title": "Has Visibility Conditions",
            "type": "boolean"
          },
          "label": {
            "description": "Field label shown to vendors",
            "title": "Label",
            "type": "string"
          },
          "required": {
            "description": "Whether vendors must answer this field",
            "title": "Required",
            "type": "boolean"
          }
        },
        "required": [
          "choices",
          "description",
          "field_id",
          "field_type",
          "has_visibility_conditions",
          "label",
          "required"
        ],
        "title": "RFXFieldDetail",
        "type": "object"
      },
      "RFXFormFieldResponseGradeState": {
        "enum": [
          "AUTO_ACCEPTED",
          "HUMAN_EDITED"
        ],
        "title": "RFXFormFieldResponseGradeState",
        "type": "string"
      },
      "RFXGradingMode": {
        "enum": [
          "AI_ONLY",
          "MANUAL_REVIEW"
        ],
        "title": "RFXGradingMode",
        "type": "string"
      },
      "RFXInvitationSummary": {
        "properties": {
          "accepted_vendor_count": {
            "description": "Number of active invited vendors that accepted this RFX",
            "title": "Accepted Vendor Count",
            "type": "integer"
          },
          "invited_vendor_count": {
            "description": "Number of active vendor invitations on this RFX",
            "title": "Invited Vendor Count",
            "type": "integer"
          },
          "responded_vendor_count": {
            "description": "Number of active invited vendors that submitted a response",
            "title": "Responded Vendor Count",
            "type": "integer"
          },
          "revoked_vendor_count": {
            "description": "Number of revoked vendor invitations on this RFX",
            "title": "Revoked Vendor Count",
            "type": "integer"
          }
        },
        "required": [
          "accepted_vendor_count",
          "invited_vendor_count",
          "responded_vendor_count",
          "revoked_vendor_count"
        ],
        "title": "RFXInvitationSummary",
        "type": "object"
      },
      "RFXPricingSheetDetail": {
        "properties": {
          "attachments": {
            "items": {
              "$ref": "#/components/schemas/RFXSheetAttachmentDetail"
            },
            "title": "Attachments",
            "type": "array"
          },
          "currency": {
            "description": "ISO-4217 currency vendors must quote in",
            "title": "Currency",
            "type": "string"
          },
          "guidance_markdown": {
            "default": null,
            "description": "Vendor-facing pricing guidance rendered as markdown",
            "nullable": true,
            "title": "Guidance Markdown",
            "type": "string"
          }
        },
        "required": [
          "attachments",
          "currency",
          "guidance_markdown"
        ],
        "title": "RFXPricingSheetDetail",
        "type": "object"
      },
      "RFXQuestionResponseDetail": {
        "properties": {
          "field_description": {
            "default": null,
            "description": "Optional helper text or description for the question",
            "nullable": true,
            "title": "Field Description",
            "type": "string"
          },
          "field_id": {
            "description": "Stable identifier of the question field",
            "title": "Field Id",
            "type": "string"
          },
          "field_label": {
            "description": "Question label shown in the RFX",
            "title": "Field Label",
            "type": "string"
          },
          "vendor_answers": {
            "description": "Vendor answers for this question",
            "items": {
              "$ref": "#/components/schemas/RFXVendorAnswerDetail"
            },
            "title": "Vendor Answers",
            "type": "array"
          }
        },
        "required": [
          "field_id",
          "field_label"
        ],
        "title": "RFXQuestionResponseDetail",
        "type": "object"
      },
      "RFXSectionDetail": {
        "properties": {
          "description": {
            "default": null,
            "description": "What this section covers, when set",
            "nullable": true,
            "title": "Description",
            "type": "string"
          },
          "fields": {
            "items": {
              "$ref": "#/components/schemas/RFXFieldDetail"
            },
            "title": "Fields",
            "type": "array"
          },
          "grader_emails": {
            "description": "Emails of users assigned to grade this section for MANUAL_REVIEW; empty for AI_ONLY",
            "items": {
              "type": "string"
            },
            "title": "Grader Emails",
            "type": "array"
          },
          "grading_weight": {
            "default": null,
            "description": "Integer grading weight (0-100) when section weights are configured",
            "nullable": true,
            "title": "Grading Weight",
            "type": "integer"
          },
          "label": {
            "description": "Section name",
            "nullable": true,
            "title": "Label",
            "type": "string"
          },
          "section_id": {
            "description": "UUID of the RFX section",
            "title": "Section Id",
            "type": "string"
          }
        },
        "required": [
          "description",
          "fields",
          "grader_emails",
          "grading_weight",
          "label",
          "section_id"
        ],
        "title": "RFXSectionDetail",
        "type": "object"
      },
      "RFXSectionFieldSpecRequestBody": {
        "description": "One questionnaire field, in the shape GetRFXDetail also reports.",
        "properties": {
          "choices": {
            "description": "Choice values; required for TEXT_SINGLE_SELECT and TEXT_MULTI_SELECT, invalid otherwise",
            "items": {
              "type": "string"
            },
            "title": "Choices",
            "type": "array"
          },
          "description": {
            "default": null,
            "description": "Response guidance shown to vendors",
            "nullable": true,
            "title": "Description",
            "type": "string"
          },
          "field_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CustomFormFieldTypeRequestBody"
              }
            ],
            "description": "Field type: TEXT, PARAGRAPH, NUMBER, BOOLEAN, DATE, FILE_UPLOAD, TEXT_SINGLE_SELECT, TEXT_MULTI_SELECT, ADDRESS, CONTACT, EMAIL, or LINK"
          },
          "label": {
            "description": "Field label shown to vendors",
            "minLength": 1,
            "title": "Label",
            "type": "string"
          },
          "required": {
            "default": false,
            "description": "Whether vendors must answer this field",
            "title": "Required",
            "type": "boolean"
          }
        },
        "required": [
          "field_type",
          "label"
        ],
        "title": "RFXSectionFieldSpec",
        "type": "object"
      },
      "RFXSectionResponseDetail": {
        "properties": {
          "questions": {
            "description": "Questions and vendor answers for this section",
            "items": {
              "$ref": "#/components/schemas/RFXQuestionResponseDetail"
            },
            "title": "Questions",
            "type": "array"
          },
          "rfx_section_id": {
            "description": "UUID of the RFX section",
            "title": "Rfx Section Id",
            "type": "string"
          },
          "section_name": {
            "description": "Section label",
            "title": "Section Name",
            "type": "string"
          },
          "vendor_grading_summaries": {
            "description": "Per-vendor aggregate grading information for this section",
            "items": {
              "$ref": "#/components/schemas/RFXVendorSectionGradingSummary"
            },
            "title": "Vendor Grading Summaries",
            "type": "array"
          }
        },
        "required": [
          "rfx_section_id",
          "section_name"
        ],
        "title": "RFXSectionResponseDetail",
        "type": "object"
      },
      "RFXSectionSpecRequestBody": {
        "description": "One questionnaire section: a label plus its ordered fields.",
        "properties": {
          "description": {
            "default": null,
            "description": "What this section covers",
            "nullable": true,
            "title": "Description",
            "type": "string"
          },
          "fields": {
            "description": "Fields in vendor-facing order",
            "items": {
              "$ref": "#/components/schemas/RFXSectionFieldSpecRequestBody"
            },
            "minItems": 1,
            "title": "Fields",
            "type": "array"
          },
          "label": {
            "description": "Section name; must be unique",
            "minLength": 1,
            "title": "Label",
            "type": "string"
          }
        },
        "required": [
          "fields",
          "label"
        ],
        "title": "RFXSectionSpec",
        "type": "object"
      },
      "RFXSectionSummary": {
        "properties": {
          "field_labels": {
            "items": {
              "type": "string"
            },
            "title": "Field Labels",
            "type": "array"
          },
          "grader_names": {
            "description": "Assigned grader names for MANUAL_REVIEW; empty for AI_ONLY",
            "items": {
              "type": "string"
            },
            "title": "Grader Names",
            "type": "array"
          },
          "grading_weight": {
            "default": null,
            "nullable": true,
            "title": "Grading Weight",
            "type": "integer"
          },
          "rfx_section_id": {
            "description": "UUID of the RFX section",
            "title": "Rfx Section Id",
            "type": "string"
          },
          "section_name": {
            "description": "Section label",
            "title": "Section Name",
            "type": "string"
          }
        },
        "required": [
          "rfx_section_id",
          "section_name"
        ],
        "title": "RFXSectionSummary",
        "type": "object"
      },
      "RFXSheetAttachmentDetail": {
        "properties": {
          "file_name": {
            "default": null,
            "description": "Original filename of the attachment, when available",
            "nullable": true,
            "title": "File Name",
            "type": "string"
          },
          "ramp_document_id": {
            "description": "UUID of the attached RampDocument",
            "title": "Ramp Document Id",
            "type": "string"
          }
        },
        "required": [
          "file_name",
          "ramp_document_id"
        ],
        "title": "RFXSheetAttachmentDetail",
        "type": "object"
      },
      "RFXTakeawaySummary": {
        "properties": {
          "category": {
            "description": "Takeaway category",
            "title": "Category",
            "type": "string"
          },
          "text": {
            "description": "Takeaway text",
            "title": "Text",
            "type": "string"
          }
        },
        "required": [
          "category",
          "text"
        ],
        "title": "RFXTakeawaySummary",
        "type": "object"
      },
      "RFXTypeRequestBody": {
        "enum": [
          "RFI",
          "RFP",
          "RFQ"
        ],
        "title": "RFXType",
        "type": "string"
      },
      "RFXVendorAnswerDetail": {
        "properties": {
          "answer_text": {
            "description": "Exact submitted answer text for this vendor",
            "title": "Answer Text",
            "type": "string"
          },
          "field_grading": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RFXVendorFieldGradingDetail"
              }
            ],
            "default": null,
            "description": "All field grades for this vendor answer, when grading is available",
            "nullable": true
          },
          "vendor_name": {
            "description": "Vendor name",
            "title": "Vendor Name",
            "type": "string"
          },
          "vendor_uuid": {
            "description": "UUID of the vendor payee",
            "title": "Vendor Uuid",
            "type": "string"
          }
        },
        "required": [
          "answer_text",
          "vendor_name",
          "vendor_uuid"
        ],
        "title": "RFXVendorAnswerDetail",
        "type": "object"
      },
      "RFXVendorFieldGradeDetail": {
        "properties": {
          "grade_state": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RFXFormFieldResponseGradeState"
              }
            ],
            "description": "Provenance state of the recorded grade"
          },
          "grading_score": {
            "description": "Recorded grade score",
            "title": "Grading Score",
            "type": "integer"
          },
          "grading_user_uuid": {
            "default": null,
            "description": "UUID of the user who recorded this grade for MANUAL_REVIEW; None for AI_ONLY",
            "nullable": true,
            "title": "Grading User Uuid",
            "type": "string"
          },
          "justification": {
            "default": null,
            "description": "Justification recorded with the grade, when set",
            "nullable": true,
            "title": "Justification",
            "type": "string"
          }
        },
        "required": [
          "grade_state",
          "grading_score"
        ],
        "title": "RFXVendorFieldGradeDetail",
        "type": "object"
      },
      "RFXVendorFieldGradingDetail": {
        "properties": {
          "custom_form_field_response_id": {
            "title": "Custom Form Field Response Id",
            "type": "integer"
          },
          "grades": {
            "items": {
              "$ref": "#/components/schemas/RFXVendorFieldGradeDetail"
            },
            "title": "Grades",
            "type": "array"
          }
        },
        "required": [
          "custom_form_field_response_id",
          "grades"
        ],
        "title": "RFXVendorFieldGradingDetail",
        "type": "object"
      },
      "RFXVendorInvitationDetail": {
        "properties": {
          "acceptance_status": {
            "description": "Vendor RSVP status: PENDING, ACCEPTED, or REJECTED",
            "title": "Acceptance Status",
            "type": "string"
          },
          "contact_email": {
            "default": null,
            "description": "Email of the invitation contact. On publish, this contact is notified externally. DRAFT invitations without a contact block publishing until resolved.",
            "nullable": true,
            "title": "Contact Email",
            "type": "string"
          },
          "contact_name": {
            "default": null,
            "description": "Name of the invitation contact, when set",
            "nullable": true,
            "title": "Contact Name",
            "type": "string"
          },
          "has_submitted_response": {
            "description": "Whether this invited vendor has submitted a response",
            "title": "Has Submitted Response",
            "type": "boolean"
          },
          "invitation_id": {
            "description": "UUID of the vendor invitation",
            "title": "Invitation Id",
            "type": "string"
          },
          "invitation_status": {
            "description": "Invitation lifecycle status: DRAFT, ACTIVE, or REVOKED",
            "title": "Invitation Status",
            "type": "string"
          },
          "vendor_name": {
            "description": "Vendor name",
            "title": "Vendor Name",
            "type": "string"
          },
          "vendor_uuid": {
            "default": null,
            "description": "UUID of the vendor payee, when available",
            "nullable": true,
            "title": "Vendor Uuid",
            "type": "string"
          }
        },
        "required": [
          "acceptance_status",
          "contact_email",
          "contact_name",
          "has_submitted_response",
          "invitation_id",
          "invitation_status",
          "vendor_name",
          "vendor_uuid"
        ],
        "title": "RFXVendorInvitationDetail",
        "type": "object"
      },
      "RFXVendorResponseSummary": {
        "properties": {
          "acceptance_status": {
            "description": "Vendor acceptance status",
            "title": "Acceptance Status",
            "type": "string"
          },
          "contact_name": {
            "default": null,
            "nullable": true,
            "title": "Contact Name",
            "type": "string"
          },
          "has_submitted_response": {
            "description": "Whether this vendor has submitted a response",
            "title": "Has Submitted Response",
            "type": "boolean"
          },
          "invitation_id": {
            "description": "UUID of the vendor invitation",
            "title": "Invitation Id",
            "type": "string"
          },
          "invitation_status": {
            "description": "Invitation lifecycle status",
            "title": "Invitation Status",
            "type": "string"
          },
          "response_id": {
            "default": null,
            "nullable": true,
            "title": "Response Id",
            "type": "string"
          },
          "response_status": {
            "default": null,
            "nullable": true,
            "title": "Response Status",
            "type": "string"
          },
          "section_responses": {
            "items": {
              "$ref": "#/components/schemas/RFXVendorSectionResponseSummary"
            },
            "title": "Section Responses",
            "type": "array"
          },
          "suggested_grading_status": {
            "default": null,
            "description": "AI grade-generation status for this response; this does not report overall or manual grading completion",
            "nullable": true,
            "title": "Suggested Grading Status",
            "type": "string"
          },
          "vendor_name": {
            "description": "Vendor name",
            "title": "Vendor Name",
            "type": "string"
          },
          "vendor_uuid": {
            "default": null,
            "nullable": true,
            "title": "Vendor Uuid",
            "type": "string"
          }
        },
        "required": [
          "acceptance_status",
          "has_submitted_response",
          "invitation_id",
          "invitation_status",
          "vendor_name"
        ],
        "title": "RFXVendorResponseSummary",
        "type": "object"
      },
      "RFXVendorResponsesOutput": {
        "properties": {
          "grading_mode": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RFXGradingMode"
              }
            ],
            "description": "How responses are graded: AI_ONLY uses automatically accepted AI grades; MANUAL_REVIEW records assigned users' review"
          },
          "grading_overview_available": {
            "description": "Whether detailed grading data was available for this RFX",
            "title": "Grading Overview Available",
            "type": "boolean"
          },
          "rfx_id": {
            "description": "UUID of the RFX",
            "title": "Rfx Id",
            "type": "string"
          },
          "sections": {
            "description": "All sections, questions, and vendor answers for submitted responses",
            "items": {
              "$ref": "#/components/schemas/RFXSectionResponseDetail"
            },
            "title": "Sections",
            "type": "array"
          },
          "submitted_vendor_count": {
            "description": "Number of submitted vendors included in this response",
            "title": "Submitted Vendor Count",
            "type": "integer"
          },
          "submitted_vendor_names": {
            "description": "Submitted vendors included in this response",
            "items": {
              "type": "string"
            },
            "title": "Submitted Vendor Names",
            "type": "array"
          }
        },
        "required": [
          "grading_mode",
          "grading_overview_available",
          "rfx_id",
          "submitted_vendor_count"
        ],
        "title": "RFXVendorResponsesOutput",
        "type": "object"
      },
      "RFXVendorSectionGradingSummary": {
        "properties": {
          "aggregate_grading_score": {
            "default": null,
            "description": "Aggregate section score for this vendor, when available",
            "nullable": true,
            "title": "Aggregate Grading Score",
            "type": "string"
          },
          "grading_status": {
            "description": "Overall grading status for this vendor section",
            "title": "Grading Status",
            "type": "string"
          },
          "vendor_name": {
            "description": "Vendor name",
            "title": "Vendor Name",
            "type": "string"
          },
          "vendor_uuid": {
            "description": "UUID of the vendor payee",
            "title": "Vendor Uuid",
            "type": "string"
          }
        },
        "required": [
          "grading_status",
          "vendor_name",
          "vendor_uuid"
        ],
        "title": "RFXVendorSectionGradingSummary",
        "type": "object"
      },
      "RFXVendorSectionResponseSummary": {
        "properties": {
          "aggregate_grading_score": {
            "default": null,
            "nullable": true,
            "title": "Aggregate Grading Score",
            "type": "string"
          },
          "grading_status": {
            "description": "Grading status for this vendor section",
            "title": "Grading Status",
            "type": "string"
          },
          "section_name": {
            "description": "Section label",
            "title": "Section Name",
            "type": "string"
          }
        },
        "required": [
          "grading_status",
          "section_name"
        ],
        "title": "RFXVendorSectionResponseSummary",
        "type": "object"
      },
      "RTPCounterpartyDetails": {
        "additionalProperties": true,
        "description": "Bank account details for real-time payments.",
        "properties": {
          "account_name": {
            "description": "Name on the destination account.",
            "title": "Account Name",
            "type": "string"
          },
          "account_number": {
            "description": "Destination bank account number.",
            "title": "Account Number",
            "type": "string"
          },
          "bank_mailing_address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UnvalidatedMailingAddress"
              }
            ],
            "description": "Mailing address of the destination bank.",
            "title": "Bank Mailing Address"
          },
          "currency": {
            "default": "USD",
            "description": "Currency of the destination account.",
            "enum": [
              "USD"
            ],
            "title": "Currency",
            "type": "string"
          },
          "mailing_address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UnvalidatedMailingAddress"
              }
            ],
            "default": null,
            "description": "Mailing address of the counterparty.",
            "nullable": true
          },
          "payment_method": {
            "default": "RTP",
            "description": "Payment method.",
            "enum": [
              "RTP"
            ],
            "title": "Payment Method",
            "type": "string"
          },
          "routing_number": {
            "description": "Destination bank routing number.",
            "title": "Routing Number",
            "type": "string"
          },
          "type": {
            "default": "rtp",
            "description": "Counterparty details type.",
            "enum": [
              "rtp"
            ],
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "account_number",
          "routing_number"
        ],
        "title": "RTPCounterpartyDetails",
        "type": "object"
      },
      "RampBusinessAccountBalanceInfo": {
        "properties": {
          "account_name": {
            "title": "Account Name",
            "type": "string"
          },
          "account_uuid": {
            "$ref": "#/components/schemas/UUIDStr"
          },
          "available_balance": {
            "title": "Available Balance",
            "type": "number"
          },
          "currency": {
            "title": "Currency",
            "type": "string"
          },
          "statement_balance": {
            "title": "Statement Balance",
            "type": "number"
          },
          "total_earnings": {
            "title": "Total Earnings",
            "type": "number"
          },
          "unavailable_balance": {
            "title": "Unavailable Balance",
            "type": "number"
          },
          "yield_rate": {
            "title": "Yield Rate",
            "type": "number"
          }
        },
        "required": [
          "account_name",
          "account_uuid",
          "available_balance",
          "currency",
          "statement_balance",
          "total_earnings",
          "unavailable_balance",
          "yield_rate"
        ],
        "title": "RampBusinessAccountBalanceInfo",
        "type": "object"
      },
      "RampObjectTypeRequestBody": {
        "description": "Types of Ramp objects that can have comment threads.",
        "enum": [
          "bill",
          "booking_request",
          "card",
          "payee",
          "provisional_bill",
          "reimbursement",
          "spend_intent",
          "spend_request",
          "ticket",
          "transaction",
          "vendor_payment"
        ],
        "title": "RampObjectType",
        "type": "string"
      },
      "RankingMigration": {
        "description": "Immutable, bounded notice history; never interpreted as live field references.",
        "properties": {
          "original_dimensions": {
            "items": {
              "maxLength": 200,
              "minLength": 1,
              "type": "string"
            },
            "maxItems": 5,
            "minItems": 1,
            "title": "Original Dimensions",
            "type": "array"
          },
          "original_limit": {
            "maximum": 1000,
            "minimum": 1,
            "title": "Original Limit",
            "type": "integer"
          },
          "source": {
            "default": "top_groups",
            "enum": [
              "top_groups"
            ],
            "title": "Source",
            "type": "string"
          },
          "version": {
            "default": 1,
            "enum": [
              1
            ],
            "title": "Version",
            "type": "integer"
          }
        },
        "required": [
          "original_dimensions",
          "original_limit"
        ],
        "title": "RankingMigration",
        "type": "object"
      },
      "ReceiptInfo": {
        "properties": {
          "created_at": {
            "default": null,
            "format": "date-time",
            "nullable": true,
            "title": "Created At",
            "type": "string"
          },
          "pdf_preview_url": {
            "default": null,
            "nullable": true,
            "title": "Pdf Preview Url",
            "type": "string"
          },
          "receipt_url": {
            "title": "Receipt Url",
            "type": "string"
          },
          "receipt_uuid": {
            "$ref": "#/components/schemas/EntityUUIDStr"
          },
          "transcription_status": {
            "default": null,
            "nullable": true,
            "title": "Transcription Status",
            "type": "string"
          },
          "upload_source": {
            "default": null,
            "nullable": true,
            "title": "Upload Source",
            "type": "string"
          },
          "user_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "nullable": true
          }
        },
        "required": [
          "receipt_url",
          "receipt_uuid"
        ],
        "title": "ReceiptInfo",
        "type": "object"
      },
      "ReceiptSearchMatchJsonMode": {
        "properties": {
          "currency_code": {
            "nullable": true,
            "title": "Currency Code",
            "type": "string"
          },
          "merchant": {
            "nullable": true,
            "title": "Merchant",
            "type": "string"
          },
          "ocr_excerpt": {
            "description": "Up to 2,000 characters of current OCR near query words, or the beginning when only the semantic leg matched.",
            "title": "Ocr Excerpt",
            "type": "string"
          },
          "owner_name": {
            "title": "Owner Name",
            "type": "string"
          },
          "owner_uuid": {
            "title": "Owner Uuid",
            "type": "string"
          },
          "receipt_date": {
            "format": "date",
            "nullable": true,
            "title": "Receipt Date",
            "type": "string"
          },
          "receipt_uuid": {
            "title": "Receipt Uuid",
            "type": "string"
          },
          "received_at": {
            "format": "date-time",
            "title": "Received At",
            "type": "string"
          },
          "reimbursement_uuid": {
            "nullable": true,
            "title": "Reimbursement Uuid",
            "type": "string"
          },
          "structured_data": {
            "allOf": [
              {
                "$ref": "#/components/schemas/StructuredReceiptDataJsonMode"
              }
            ],
            "description": "Extracted line items, amounts, taxes and tip when available. Missing extraction is unknown, not zero spending.",
            "nullable": true
          },
          "total_amount": {
            "description": "Receipt total in currency major units.",
            "format": "decimal",
            "nullable": true,
            "title": "Total Amount",
            "type": "string"
          },
          "transaction_uuid": {
            "nullable": true,
            "title": "Transaction Uuid",
            "type": "string"
          }
        },
        "required": [
          "currency_code",
          "merchant",
          "ocr_excerpt",
          "owner_name",
          "owner_uuid",
          "receipt_date",
          "receipt_uuid",
          "received_at",
          "reimbursement_uuid",
          "structured_data",
          "total_amount",
          "transaction_uuid"
        ],
        "title": "ReceiptSearchMatch",
        "type": "object"
      },
      "ReceiptUploadLinkOutput": {
        "properties": {
          "expires_at": {
            "description": "When the link stops working.",
            "format": "date-time",
            "title": "Expires At",
            "type": "string"
          },
          "instructions": {
            "description": "How to upload the file.",
            "title": "Instructions",
            "type": "string"
          },
          "upload_url": {
            "description": "One-time URL that accepts the receipt file with POST.",
            "title": "Upload Url",
            "type": "string"
          }
        },
        "required": [
          "expires_at",
          "instructions",
          "upload_url"
        ],
        "title": "ReceiptUploadLinkOutput",
        "type": "object"
      },
      "ReceiptUploadSuccess": {
        "properties": {
          "attached_to_transaction": {
            "description": "Whether the receipt was attached to a transaction",
            "title": "Attached To Transaction",
            "type": "boolean"
          },
          "receipt_uuid": {
            "description": "UUID of the created receipt",
            "title": "Receipt Uuid",
            "type": "string"
          }
        },
        "required": [
          "attached_to_transaction",
          "receipt_uuid"
        ],
        "title": "ReceiptUploadSuccess",
        "type": "object"
      },
      "ReceivingType": {
        "description": "How a purchase order line is received and matched: by quantity or by amount.",
        "enum": [
          "by_amount",
          "by_quantity"
        ],
        "title": "ReceivingType",
        "type": "string",
        "x-enum-descriptions": {
          "by_amount": "Received and matched by monetary amount against the line total.",
          "by_quantity": "Received and matched by quantity at the line's unit price."
        }
      },
      "ReceivingTypeJsonMode": {
        "description": "How a purchase order line is received and matched: by quantity or by amount.",
        "enum": [
          "by_amount",
          "by_quantity"
        ],
        "title": "ReceivingType",
        "type": "string",
        "x-enum-descriptions": {
          "by_amount": "Received and matched by monetary amount against the line total.",
          "by_quantity": "Received and matched by quantity at the line's unit price."
        }
      },
      "ReceivingTypeRequestBody": {
        "description": "How a purchase order line is received and matched: by quantity or by amount.",
        "enum": [
          "by_amount",
          "by_quantity"
        ],
        "title": "ReceivingType",
        "type": "string",
        "x-enum-descriptions": {
          "by_amount": "Received and matched by monetary amount against the line total.",
          "by_quantity": "Received and matched by quantity at the line's unit price."
        }
      },
      "RecentReimbursements": {
        "properties": {
          "reimbursements": {
            "items": {
              "$ref": "#/components/schemas/ReimbursementSummary"
            },
            "title": "Reimbursements",
            "type": "array"
          },
          "total_count": {
            "title": "Total Count",
            "type": "integer"
          }
        },
        "required": [
          "reimbursements",
          "total_count"
        ],
        "title": "RecentReimbursements",
        "type": "object"
      },
      "RecurrenceSchedule": {
        "properties": {
          "day_of_month": {
            "default": null,
            "nullable": true,
            "title": "Day Of Month",
            "type": "integer"
          },
          "frequency": {
            "default": null,
            "description": "e.g. MONTHLY, WEEKLY",
            "nullable": true,
            "title": "Frequency",
            "type": "string"
          },
          "interval": {
            "default": null,
            "description": "Interval between occurrences",
            "nullable": true,
            "title": "Interval",
            "type": "integer"
          },
          "start_date": {
            "default": null,
            "format": "date",
            "nullable": true,
            "title": "Start Date",
            "type": "string"
          }
        },
        "title": "RecurrenceSchedule",
        "type": "object"
      },
      "RecurringBillDetails": {
        "properties": {
          "amount": {
            "default": null,
            "nullable": true,
            "title": "Amount",
            "type": "number"
          },
          "bill_creation_end_date": {
            "default": null,
            "format": "date",
            "nullable": true,
            "title": "Bill Creation End Date",
            "type": "string"
          },
          "bill_creation_schedule": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecurrenceSchedule"
              }
            ],
            "default": null,
            "nullable": true
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "invoice_currency": {
            "default": null,
            "nullable": true,
            "title": "Invoice Currency",
            "type": "string"
          },
          "invoice_number": {
            "default": null,
            "nullable": true,
            "title": "Invoice Number",
            "type": "string"
          },
          "memo": {
            "default": null,
            "nullable": true,
            "title": "Memo",
            "type": "string"
          },
          "next_bill_date": {
            "default": null,
            "format": "date",
            "nullable": true,
            "title": "Next Bill Date",
            "type": "string"
          },
          "next_payment_date": {
            "default": null,
            "format": "date",
            "nullable": true,
            "title": "Next Payment Date",
            "type": "string"
          },
          "payment_currency": {
            "default": null,
            "nullable": true,
            "title": "Payment Currency",
            "type": "string"
          },
          "payment_schedule": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecurrenceSchedule"
              }
            ],
            "default": null,
            "nullable": true
          },
          "require_approvals": {
            "default": null,
            "nullable": true,
            "title": "Require Approvals",
            "type": "boolean"
          },
          "status": {
            "title": "Status",
            "type": "string"
          },
          "summary": {
            "title": "Summary",
            "type": "string"
          },
          "vendor_name": {
            "title": "Vendor Name",
            "type": "string"
          }
        },
        "required": [
          "id",
          "status",
          "summary",
          "vendor_name"
        ],
        "title": "RecurringBillDetails",
        "type": "object"
      },
      "RedeemStatementCreditRequestBody": {
        "description": "Redeem the business's available cashback points as a statement credit that pays down the Ramp card balance (shown as Pay card balance in Ramp). This is irreversible: show the available balance, confirm the points, currency, and entity with the user, and call only after explicit confirmation. Omit points_to_redeem to redeem all available points. Retrying with the same Idempotency-Key and inputs does not redeem twice.",
        "properties": {
          "currency": {
            "default": "USD",
            "description": "Currency for the redemption (e.g., USD)",
            "title": "Currency",
            "type": "string"
          },
          "entity_uuid": {
            "default": null,
            "description": "Entity UUID whose points will fund the statement credit. Optional for single-entity businesses (auto-resolves to the only entity). Required for multi-entity businesses \u2014 call ListBusinessEntities first to look up the available entities. Only pass a UUID returned by a prior tool call in this conversation \u2014 never invent or guess.",
            "format": "uuid",
            "nullable": true,
            "title": "Entity Uuid",
            "type": "string"
          },
          "points_to_redeem": {
            "default": null,
            "description": "Number of points to redeem. Omit or pass null to redeem all available points.",
            "nullable": true,
            "oneOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "title": "Points To Redeem"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "RedeemStatementCredit",
        "type": "object"
      },
      "RedeemStatementCreditResult": {
        "description": "Result from redeeming cashback points as a statement credit.",
        "properties": {
          "success": {
            "description": "Whether the redemption was successful",
            "title": "Success",
            "type": "boolean"
          },
          "summary": {
            "description": "Natural language summary for the user",
            "title": "Summary",
            "type": "string"
          }
        },
        "required": [
          "success",
          "summary"
        ],
        "title": "RedeemStatementCreditResult",
        "type": "object"
      },
      "RefundTo": {
        "enum": [
          "AIRLINE_CREDITS",
          "ORIGINAL_FORM_OF_PAYMENT"
        ],
        "title": "RefundTo",
        "type": "string"
      },
      "Refundability": {
        "enum": [
          "CHANGEABLE",
          "NON_REFUNDABLE",
          "PARTIALLY_REFUNDABLE",
          "REFUNDABLE",
          "UNKNOWN"
        ],
        "title": "Refundability",
        "type": "string"
      },
      "RefundabilityRequestBody": {
        "enum": [
          "CHANGEABLE",
          "NON_REFUNDABLE",
          "PARTIALLY_REFUNDABLE",
          "REFUNDABLE",
          "UNKNOWN"
        ],
        "title": "Refundability",
        "type": "string"
      },
      "ReimbursementAccountingSplitRequestRequestBody": {
        "properties": {
          "currency_code": {
            "description": "ISO 4217 currency code for the split lines.",
            "title": "Currency Code",
            "type": "string"
          },
          "line_items": {
            "description": "Complete replacement set of split lines. Preserve all existing lines and selections when changing only the total amount. Never pass an empty list; it would clear the current split-line allocation.",
            "items": {
              "$ref": "#/components/schemas/ReimbursementSplitLineItemRequestBody"
            },
            "minItems": 1,
            "title": "Line Items",
            "type": "array"
          }
        },
        "required": [
          "currency_code",
          "line_items"
        ],
        "title": "ReimbursementAccountingSplitRequest",
        "type": "object"
      },
      "ReimbursementAction": {
        "description": "Action to take on a reimbursement.",
        "enum": [
          "approve",
          "reject"
        ],
        "title": "ReimbursementAction",
        "type": "string"
      },
      "ReimbursementActionRequestBody": {
        "description": "Action to take on a reimbursement.",
        "enum": [
          "approve",
          "reject"
        ],
        "title": "ReimbursementAction",
        "type": "string"
      },
      "ReimbursementActionResult": {
        "properties": {
          "action_taken": {
            "$ref": "#/components/schemas/ReimbursementAction"
          },
          "already_applied": {
            "default": false,
            "description": "True when the reimbursement was already in the requested state (for example, the acting user already approved it), so no new action was taken.",
            "title": "Already Applied",
            "type": "boolean"
          },
          "decision_pending": {
            "default": false,
            "description": "True when the decision was accepted but is still being applied asynchronously, so the reimbursement status has not changed yet.",
            "title": "Decision Pending",
            "type": "boolean"
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "reimbursement_id": {
            "$ref": "#/components/schemas/EntityUUIDStr"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReimbursementStatusGroup"
              }
            ],
            "default": null,
            "description": "Reimbursement status observed after the call; see decision_pending when the decision is still being applied.",
            "nullable": true
          }
        },
        "required": [
          "action_taken",
          "message",
          "reimbursement_id"
        ],
        "title": "ReimbursementActionResult",
        "type": "object"
      },
      "ReimbursementCreationSuccess": {
        "properties": {
          "message": {
            "default": null,
            "description": "Set when an existing draft was returned instead of creating a new reimbursement.",
            "nullable": true,
            "title": "Message",
            "type": "string"
          },
          "missing_items": {
            "$ref": "#/components/schemas/ReimbursementMissingItemsInfo"
          },
          "reimbursement_link": {
            "description": "Ramp page for this reimbursement.",
            "nullable": true,
            "title": "Reimbursement Link",
            "type": "string"
          },
          "reimbursement_uuid": {
            "$ref": "#/components/schemas/EntityUUIDStr"
          },
          "state": {
            "$ref": "#/components/schemas/DraftReimbursementState"
          },
          "suggested_codings": {
            "items": {
              "$ref": "#/components/schemas/SuggestedCodingsInfo"
            },
            "title": "Suggested Codings",
            "type": "array"
          },
          "suggested_funds": {
            "items": {
              "$ref": "#/components/schemas/FundInfo"
            },
            "title": "Suggested Funds",
            "type": "array"
          },
          "suggested_memos": {
            "items": {
              "type": "string"
            },
            "title": "Suggested Memos",
            "type": "array"
          },
          "validation_errors": {
            "items": {
              "$ref": "#/components/schemas/ReimbursementValidationErrorInfo"
            },
            "title": "Validation Errors",
            "type": "array"
          }
        },
        "required": [
          "reimbursement_link",
          "reimbursement_uuid",
          "state"
        ],
        "title": "ReimbursementCreationSuccess",
        "type": "object"
      },
      "ReimbursementCustomRecordValue": {
        "properties": {
          "column_id": {
            "$ref": "#/components/schemas/UUIDStr"
          },
          "value": {
            "default": null,
            "nullable": true,
            "oneOf": [
              {
                "type": "boolean"
              },
              {
                "type": "integer"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "title": "Value"
          }
        },
        "required": [
          "column_id"
        ],
        "title": "ReimbursementCustomRecordValue",
        "type": "object"
      },
      "ReimbursementDateFilterType": {
        "enum": [
          "accounting_date",
          "reviewed_at",
          "submitted_at",
          "transaction_date"
        ],
        "title": "ReimbursementDateFilterType",
        "type": "string"
      },
      "ReimbursementForApproval": {
        "properties": {
          "amount": {
            "description": "Amount the business pays, including fees.",
            "title": "Amount",
            "type": "number"
          },
          "assessment": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReimbursementPolicyAssessment"
              }
            ],
            "nullable": true
          },
          "comments": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CommentThreadContext"
              }
            ],
            "default": null,
            "description": "Comment thread, including author, message, source, and timestamp. Null when unavailable; count 0 means checked and empty.",
            "nullable": true
          },
          "created_at": {
            "title": "Created At",
            "type": "string"
          },
          "currency": {
            "default": null,
            "description": "ISO-4217 currency code for amount. Null means unknown; do not assume USD.",
            "nullable": true,
            "title": "Currency",
            "type": "string"
          },
          "id": {
            "$ref": "#/components/schemas/EntityUUIDStr"
          },
          "memo": {
            "nullable": true,
            "title": "Memo",
            "type": "string"
          },
          "merchant_name": {
            "nullable": true,
            "title": "Merchant Name",
            "type": "string"
          },
          "user_name": {
            "title": "User Name",
            "type": "string"
          }
        },
        "required": [
          "amount",
          "assessment",
          "created_at",
          "id",
          "memo",
          "merchant_name",
          "user_name"
        ],
        "title": "ReimbursementForApproval",
        "type": "object"
      },
      "ReimbursementInfo": {
        "properties": {
          "amount": {
            "title": "Amount",
            "type": "number"
          },
          "attendee_user_uuids": {
            "description": "Saved Ramp attendee UUIDs. Include these with the saved guest names and managed IDs when replacing attendees.",
            "items": {
              "$ref": "#/components/schemas/EntityUUIDStr"
            },
            "title": "Attendee User Uuids",
            "type": "array"
          },
          "comments": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CommentThreadContext"
              }
            ],
            "default": null,
            "description": "Comment thread, including author, message, source, and timestamp. Null when not loaded or unavailable; count 0 means checked and empty.",
            "nullable": true
          },
          "currency": {
            "default": null,
            "description": "ISO-4217 currency code for `amount`. Sourced from `amount_details.currency` on the reimbursement dump. Null when the underlying reimbursement has no currency set \u2014 do not assume USD.",
            "nullable": true,
            "title": "Currency",
            "type": "string"
          },
          "estimated_payment_date": {
            "default": null,
            "description": "Estimated date the reimbursement payment will be delivered, when available. This is the same expected settlement date shown in the reimbursement payment timeline.",
            "format": "date",
            "nullable": true,
            "title": "Estimated Payment Date",
            "type": "string"
          },
          "external_attendee_ids": {
            "description": "Saved managed external attendee UUIDs. Include every ID to keep when replacing attendees; resubmission requires external_attendee_ids_enabled.",
            "items": {
              "$ref": "#/components/schemas/EntityUUIDStr"
            },
            "title": "External Attendee Ids",
            "type": "array"
          },
          "external_attendee_ids_enabled": {
            "default": false,
            "description": "Whether this business supports managed external attendee IDs. Name-only guests do not require this feature. Attendee edits are draft-only.",
            "title": "External Attendee Ids Enabled",
            "type": "boolean"
          },
          "fund": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FundInfo"
              }
            ],
            "default": null,
            "nullable": true
          },
          "memo": {
            "default": null,
            "nullable": true,
            "title": "Memo",
            "type": "string"
          },
          "merchant_name": {
            "default": null,
            "nullable": true,
            "title": "Merchant Name",
            "type": "string"
          },
          "missing_items": {
            "$ref": "#/components/schemas/ReimbursementMissingItemsInfo"
          },
          "non_ramp_attendees": {
            "description": "Saved name-only guests, exactly as entered. Include every name to keep when replacing attendees.",
            "items": {
              "type": "string"
            },
            "title": "Non Ramp Attendees",
            "type": "array"
          },
          "payee_amount": {
            "default": null,
            "description": "What the payee receives, from `payee_amount_details`. Differs from `amount` (what the business pays, fees included) on international reimbursements. Null when not yet computed.",
            "nullable": true,
            "title": "Payee Amount",
            "type": "number"
          },
          "payee_currency": {
            "default": null,
            "description": "ISO-4217 currency code for `payee_amount`.",
            "nullable": true,
            "title": "Payee Currency",
            "type": "string"
          },
          "pending_approvers": {
            "description": "Who the reimbursement is waiting on at its current approval step. Empty when it is not pending approval.",
            "items": {
              "$ref": "#/components/schemas/ReimbursementPendingApproverInfo"
            },
            "title": "Pending Approvers",
            "type": "array"
          },
          "policy_assessment": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReimbursementPolicyAssessment"
              }
            ],
            "default": null,
            "description": "Policy assessment data with AI-recommended approval action. Only populated when include_policy_assessment is requested.",
            "nullable": true
          },
          "reimbursement_link": {
            "default": null,
            "nullable": true,
            "title": "Reimbursement Link",
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/ReimbursementStatusGroup"
          },
          "submitted_at": {
            "default": null,
            "format": "date-time",
            "nullable": true,
            "title": "Submitted At",
            "type": "string"
          },
          "suggested_codings": {
            "items": {
              "$ref": "#/components/schemas/SuggestedCodingsInfo"
            },
            "title": "Suggested Codings",
            "type": "array"
          },
          "suggested_funds": {
            "items": {
              "$ref": "#/components/schemas/FundInfo"
            },
            "title": "Suggested Funds",
            "type": "array"
          },
          "suggested_memos": {
            "items": {
              "type": "string"
            },
            "title": "Suggested Memos",
            "type": "array"
          },
          "synced_at": {
            "default": null,
            "description": "Time when the reimbursement was synced to the customer's accounting system, in ISO8601 format. Null if not yet synced.",
            "format": "date-time",
            "nullable": true,
            "title": "Synced At",
            "type": "string"
          },
          "tracking_category_selections": {
            "items": {
              "$ref": "#/components/schemas/ReimbursementTrackingCategoryInfo"
            },
            "title": "Tracking Category Selections",
            "type": "array"
          },
          "transaction_date": {
            "default": null,
            "format": "date-time",
            "nullable": true,
            "title": "Transaction Date",
            "type": "string"
          },
          "user_id": {
            "$ref": "#/components/schemas/EntityUUIDStr"
          },
          "uuid": {
            "$ref": "#/components/schemas/EntityUUIDStr"
          }
        },
        "required": [
          "amount",
          "status",
          "tracking_category_selections",
          "user_id",
          "uuid"
        ],
        "title": "ReimbursementInfo",
        "type": "object"
      },
      "ReimbursementMissingItemsInfo": {
        "properties": {
          "missing_attendee": {
            "default": false,
            "title": "Missing Attendee",
            "type": "boolean"
          },
          "missing_fund": {
            "default": false,
            "title": "Missing Fund",
            "type": "boolean"
          },
          "missing_memo": {
            "default": false,
            "title": "Missing Memo",
            "type": "boolean"
          },
          "missing_mileage_locations": {
            "default": false,
            "title": "Missing Mileage Locations",
            "type": "boolean"
          },
          "missing_purchase_order": {
            "default": false,
            "title": "Missing Purchase Order",
            "type": "boolean"
          },
          "missing_receipt": {
            "default": false,
            "title": "Missing Receipt",
            "type": "boolean"
          },
          "missing_tracking_categories": {
            "items": {
              "$ref": "#/components/schemas/TrackingCategoryInfo"
            },
            "title": "Missing Tracking Categories",
            "type": "array"
          },
          "missing_trip": {
            "default": false,
            "title": "Missing Trip",
            "type": "boolean"
          }
        },
        "title": "ReimbursementMissingItemsInfo",
        "type": "object"
      },
      "ReimbursementPendingApproverInfo": {
        "description": "An approver the reimbursement is currently waiting on.",
        "properties": {
          "delegate_for": {
            "default": null,
            "description": "Name of the approver this person is approving on behalf of, when acting as a delegate.",
            "nullable": true,
            "title": "Delegate For",
            "type": "string"
          },
          "group_member_count": {
            "default": null,
            "description": "Set when the approval group is too large to list; any one of its members can approve.",
            "nullable": true,
            "title": "Group Member Count",
            "type": "integer"
          },
          "name": {
            "description": "Approver's full name, or the approval group name when `group_member_count` is set.",
            "title": "Name",
            "type": "string"
          },
          "role": {
            "default": null,
            "description": "Why they are an approver relative to the submitter, e.g. 'Manager', 'Department owner', or the approval group name. Null for a directly named approver.",
            "nullable": true,
            "title": "Role",
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "title": "ReimbursementPendingApproverInfo",
        "type": "object"
      },
      "ReimbursementPolicyAssessment": {
        "description": "Policy assessment data for reimbursement approval decisions.",
        "properties": {
          "recommended_action": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewRecommendedDecision"
              }
            ],
            "default": null,
            "description": "AI-recommended approval action (approve, reject, or review)",
            "nullable": true
          },
          "recommended_action_rationale": {
            "default": null,
            "description": "Human-readable explanation for the recommended action",
            "nullable": true,
            "title": "Recommended Action Rationale",
            "type": "string"
          }
        },
        "title": "ReimbursementPolicyAssessment",
        "type": "object"
      },
      "ReimbursementSearchScopeRequestBody": {
        "description": "Defines which reimbursements to search within the organization.",
        "enum": [
          "all_reimbursements",
          "my_reimbursements",
          "reimbursements_awaiting_my_approval"
        ],
        "title": "ReimbursementSearchScope",
        "type": "string"
      },
      "ReimbursementSplitLineItemRequestBody": {
        "properties": {
          "amount": {
            "description": "Amount assigned to this split line.",
            "oneOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "title": "Amount"
          },
          "memo": {
            "default": null,
            "description": "Optional memo for this split line.",
            "nullable": true,
            "title": "Memo",
            "type": "string"
          },
          "tracking_category_selections": {
            "description": "Complete line-level accounting category selections for this line. Pass [] when the line has no selections.",
            "items": {
              "$ref": "#/components/schemas/ReimbursementTrackingCategorySelectionRequestBody"
            },
            "title": "Tracking Category Selections",
            "type": "array"
          }
        },
        "required": [
          "amount",
          "tracking_category_selections"
        ],
        "title": "ReimbursementSplitLineItem",
        "type": "object"
      },
      "ReimbursementStatusGroup": {
        "description": "Abstraction over ReimbursementStateEnum that groups states by their status.\nThis is done because multiple Reimbursement States map to conceptually the same status.\nIE we have different ways of paying/approving/... reimbursements so they all map to the same status.\n\nThese statuses are exposed as search tags via ReimbursementStatusSearchTag.",
        "enum": [
          "APPROVED",
          "AWAITING_OFF_RAMP_PAYMENT",
          "AWAITING_PAYMENT",
          "DO_NOT_DISPLAY",
          "DRAFT",
          "PAID",
          "PAID_OUTSIDE_RAMP",
          "PAYMENT_ERROR",
          "PENDING",
          "PROCESSING",
          "REJECTED"
        ],
        "title": "ReimbursementStatusGroup",
        "type": "string"
      },
      "ReimbursementStatusGroupRequestBody": {
        "description": "Abstraction over ReimbursementStateEnum that groups states by their status.\nThis is done because multiple Reimbursement States map to conceptually the same status.\nIE we have different ways of paying/approving/... reimbursements so they all map to the same status.\n\nThese statuses are exposed as search tags via ReimbursementStatusSearchTag.",
        "enum": [
          "APPROVED",
          "AWAITING_OFF_RAMP_PAYMENT",
          "AWAITING_PAYMENT",
          "DO_NOT_DISPLAY",
          "DRAFT",
          "PAID",
          "PAID_OUTSIDE_RAMP",
          "PAYMENT_ERROR",
          "PENDING",
          "PROCESSING",
          "REJECTED"
        ],
        "title": "ReimbursementStatusGroup",
        "type": "string"
      },
      "ReimbursementSummary": {
        "properties": {
          "amount_cents": {
            "title": "Amount Cents",
            "type": "integer"
          },
          "amount_decimal": {
            "default": null,
            "description": "The same amount in the major unit of `currency`, rounded to that currency's precision and rendered as an exact decimal string. Prefer this over `amount_cents`: it needs no minor-unit conversion.",
            "nullable": true,
            "title": "Amount Decimal",
            "type": "string"
          },
          "attendee_user_uuids": {
            "description": "Saved Ramp attendee UUIDs. Include these with the saved guest names and managed IDs when replacing attendees.",
            "items": {
              "$ref": "#/components/schemas/EntityUUIDStr"
            },
            "title": "Attendee User Uuids",
            "type": "array"
          },
          "currency": {
            "default": null,
            "description": "ISO 4217 code `amount_decimal` is denominated in, with an at-rest stablecoin normalized to its pegged fiat.",
            "nullable": true,
            "title": "Currency",
            "type": "string"
          },
          "custom_record_values": {
            "items": {
              "$ref": "#/components/schemas/ReimbursementCustomRecordValue"
            },
            "title": "Custom Record Values",
            "type": "array"
          },
          "external_attendee_ids": {
            "description": "Saved managed external attendee UUIDs. Include every ID to keep when replacing attendees; resubmission requires external_attendee_ids_enabled.",
            "items": {
              "$ref": "#/components/schemas/EntityUUIDStr"
            },
            "title": "External Attendee Ids",
            "type": "array"
          },
          "external_attendee_ids_enabled": {
            "default": false,
            "description": "Whether this business supports managed external attendee IDs. Name-only guests do not require this feature. Attendee edits are draft-only.",
            "title": "External Attendee Ids Enabled",
            "type": "boolean"
          },
          "fund": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FundInfo"
              }
            ],
            "default": null,
            "nullable": true
          },
          "id": {
            "$ref": "#/components/schemas/EntityUUIDStr"
          },
          "memo": {
            "nullable": true,
            "title": "Memo",
            "type": "string"
          },
          "merchant_name": {
            "nullable": true,
            "title": "Merchant Name",
            "type": "string"
          },
          "non_ramp_attendees": {
            "description": "Saved name-only guests, exactly as entered. Include every name to keep when replacing attendees.",
            "items": {
              "type": "string"
            },
            "title": "Non Ramp Attendees",
            "type": "array"
          },
          "pending_approvers": {
            "description": "Outstanding approvers at the current step of the latest approval chain. Empty when no pending approval chain or approvers are found.",
            "items": {
              "$ref": "#/components/schemas/ReimbursementPendingApproverInfo"
            },
            "title": "Pending Approvers",
            "type": "array"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReimbursementStatusGroup"
              }
            ],
            "default": null,
            "nullable": true
          },
          "submitted_date": {
            "nullable": true,
            "title": "Submitted Date",
            "type": "string"
          },
          "tracking_category_selections": {
            "items": {
              "$ref": "#/components/schemas/TrackingCategoryInfo"
            },
            "title": "Tracking Category Selections",
            "type": "array"
          },
          "transaction_date": {
            "nullable": true,
            "title": "Transaction Date",
            "type": "string"
          },
          "trip_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "nullable": true
          }
        },
        "required": [
          "amount_cents",
          "id",
          "memo",
          "merchant_name",
          "submitted_date",
          "transaction_date"
        ],
        "title": "ReimbursementSummary",
        "type": "object"
      },
      "ReimbursementTagRequestBody": {
        "description": "Tag filter for reimbursements search.\n\nFor user, spend allocation, and merchant tags, the tag_id should be the UUID of the entity.\nFor reimbursement status and type tags, the tag_id should be the enum value of the status or type.\n\nIMPORTANT: You must provide actual UUIDs or enum values as tag_id. Do NOT use empty strings, placeholder values,\nor generic identifiers - these will cause errors. If you don't know a UUID, use other available tools to retrieve it first.\n\nAvailable reimbursement statuses: DRAFT, PENDING, APPROVED, AWAITING_PAYMENT, PROCESSING, PAID, REJECTED, PAYMENT_ERROR\nAvailable reimbursement types: OUT_OF_POCKET, MILEAGE, PER_DIEM",
        "properties": {
          "tag_id": {
            "description": "The UUID or enum value for the tag",
            "title": "Tag Id",
            "type": "string"
          },
          "tag_type": {
            "description": "The type of search tag category",
            "enum": [
              "merchant",
              "reimbursement_status",
              "reimbursement_type",
              "spend_allocation",
              "user"
            ],
            "title": "Tag Type",
            "type": "string"
          }
        },
        "required": [
          "tag_id",
          "tag_type"
        ],
        "title": "ReimbursementTag",
        "type": "object"
      },
      "ReimbursementTrackingCategoryInfo": {
        "description": "A reimbursement's selected value for one accounting field, with what set it.",
        "properties": {
          "category_input_type": {
            "$ref": "#/components/schemas/TrackingCategoryInputType"
          },
          "category_name": {
            "title": "Category Name",
            "type": "string"
          },
          "category_type": {
            "$ref": "#/components/schemas/TrackingCategoryType"
          },
          "category_uuid": {
            "$ref": "#/components/schemas/EntityUUIDStr"
          },
          "option_selection": {
            "default": null,
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/TrackingCategoryOptionInfo"
              },
              {
                "type": "string"
              }
            ],
            "title": "Option Selection"
          },
          "resolution_reason": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ResolutionReason"
              }
            ],
            "default": null,
            "description": "Recorded source of the selected option, e.g. MANUAL, a rule type (MAPPING_RULE, ADVANCED_RULE, SPEND_ALLOCATION_RULE, USER_LEVEL_EMPLOYEE_RULE), SUGGESTED_CODING (AI), or DEFAULT_VALUE. Null means the source is unknown, not that no automation applied.",
            "nullable": true
          },
          "rule_name": {
            "default": null,
            "description": "Name of the rule that set the option, when a rule set it.",
            "nullable": true,
            "title": "Rule Name",
            "type": "string"
          }
        },
        "required": [
          "category_input_type",
          "category_name",
          "category_type",
          "category_uuid"
        ],
        "title": "ReimbursementTrackingCategoryInfo",
        "type": "object"
      },
      "ReimbursementTrackingCategorySelectionRequestBody": {
        "description": "A tracking category assignment with both category and option.\n\nThe canonical write field names are `category_uuid` and `option_selection`.\nResponse-copied aliases are normalized when they identify the same values\nunambiguously.",
        "properties": {
          "category_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "description": "Tracking Categories (e.g. Department/Project/Booking) UUID value from a valid source. Alias `tracking_category_uuid` accepted from read responses. From suggested_codings, use only after the user accepts the suggestion."
          },
          "option_selection": {
            "description": "For BOOLEAN/SINGLE_CHOICE, pass the selected option's UUID exactly as returned in accounting option data, never its name, code, label, or a guessed UUID. For FREE_FORM_TEXT, pass the actual text instead. Null and blank values are invalid and cannot clear an existing selection.",
            "minLength": 1,
            "title": "Option Selection",
            "type": "string"
          },
          "prefilled_suggested_coding_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "UUID of the suggested coding that was shown to the user as a prefill. Only set when the user is accepting a prefilled suggestion.",
            "nullable": true
          }
        },
        "required": [
          "category_uuid",
          "option_selection"
        ],
        "title": "ReimbursementTrackingCategorySelection",
        "type": "object"
      },
      "ReimbursementValidationErrorInfo": {
        "properties": {
          "error_type": {
            "title": "Error Type",
            "type": "string"
          },
          "field": {
            "default": null,
            "nullable": true,
            "title": "Field",
            "type": "string"
          },
          "fund_remaining_balance": {
            "default": null,
            "description": "Remaining balance available from the selected fund, converted to the reimbursement currency when possible and expressed in fund_remaining_balance_currency.",
            "nullable": true,
            "title": "Fund Remaining Balance",
            "type": "number"
          },
          "fund_remaining_balance_currency": {
            "default": null,
            "description": "ISO 4217 currency code for fund_remaining_balance. Always use the balance to resolve the fund limit: apply it directly when this matches the reimbursement currency, or account for currency conversion when it differs.",
            "nullable": true,
            "title": "Fund Remaining Balance Currency",
            "type": "string"
          },
          "is_employee_account_requirement": {
            "default": false,
            "description": "True when this is a requirement on the employee's account (bank account or compliance screening) rather than on this reimbursement. It also applies to the employee's other reimbursements, and editing or resubmitting this reimbursement does not resolve it.",
            "title": "Is Employee Account Requirement",
            "type": "boolean"
          },
          "message": {
            "title": "Message",
            "type": "string"
          }
        },
        "required": [
          "error_type",
          "message"
        ],
        "title": "ReimbursementValidationErrorInfo",
        "type": "object"
      },
      "ReimbursementsForApproval": {
        "properties": {
          "reimbursements": {
            "items": {
              "$ref": "#/components/schemas/ReimbursementForApproval"
            },
            "title": "Reimbursements",
            "type": "array"
          },
          "total_count": {
            "description": "Upper bound on reimbursements awaiting this user's approval. Items beyond the returned page are counted before the actionable-approval filter, so the true actionable total may be lower; when it exceeds the returned list, say at most that many remain.",
            "title": "Total Count",
            "type": "integer"
          }
        },
        "required": [
          "reimbursements",
          "total_count"
        ],
        "title": "ReimbursementsForApproval",
        "type": "object"
      },
      "RelatedRowsColumn": {
        "additionalProperties": false,
        "properties": {
          "field": {
            "maxLength": 200,
            "pattern": "^[a-z][a-z0-9_]*\\.[a-z][a-z0-9_]*$",
            "title": "Field",
            "type": "string"
          }
        },
        "required": [
          "field"
        ],
        "title": "RelatedRowsColumn",
        "type": "object"
      },
      "RelatedRowsColumnRequestBody": {
        "additionalProperties": false,
        "properties": {
          "field": {
            "maxLength": 200,
            "pattern": "^[a-z][a-z0-9_]*\\.[a-z][a-z0-9_]*$",
            "title": "Field",
            "type": "string"
          }
        },
        "required": [
          "field"
        ],
        "title": "RelatedRowsColumn",
        "type": "object"
      },
      "RelativeDate": {
        "description": "Legacy reporting date offset, resolved in UTC when the report runs.\n\nWeeks start on Monday. Last 30 days uses day offsets -30 through 0,\nsnapped to the beginning and end of the day respectively.",
        "properties": {
          "offset": {
            "title": "Offset",
            "type": "integer"
          },
          "snap_to_beginning_of_unit": {
            "default": false,
            "title": "Snap To Beginning Of Unit",
            "type": "boolean"
          },
          "snap_to_end_of_unit": {
            "default": false,
            "title": "Snap To End Of Unit",
            "type": "boolean"
          },
          "unit": {
            "$ref": "#/components/schemas/RelativeDateUnit"
          }
        },
        "required": [
          "offset",
          "unit"
        ],
        "title": "RelativeDate",
        "type": "object"
      },
      "RelativeDateUnit": {
        "enum": [
          "day",
          "month",
          "quarter",
          "week",
          "year"
        ],
        "title": "RelativeDateUnit",
        "type": "string"
      },
      "ReleasePurchaseOrderLineInfo": {
        "properties": {
          "blanket_purchase_order_line_item_id": {
            "description": "The id of the blanket PO line this release PO line orders from.",
            "title": "Blanket Purchase Order Line Item Id",
            "type": "string"
          }
        },
        "required": [
          "blanket_purchase_order_line_item_id"
        ],
        "title": "ReleasePurchaseOrderLineInfo",
        "type": "object"
      },
      "RemainingBudgetAmountInfo": {
        "description": "Remaining amount information for the reported budget period.",
        "properties": {
          "actuals_amount": {
            "description": "Amount actually spent (actuals) in the reported period",
            "title": "Actuals Amount",
            "type": "number"
          },
          "budget_amount": {
            "description": "Total amount budgeted for the reported period",
            "nullable": true,
            "title": "Budget Amount",
            "type": "number"
          },
          "budget_name": {
            "description": "Name of the active budget",
            "title": "Budget Name",
            "type": "string"
          },
          "committed_amount": {
            "description": "Amount committed (approved but not yet charged)",
            "title": "Committed Amount",
            "type": "number"
          },
          "entity_label": {
            "default": null,
            "description": "The specific budget row/entity these amounts are for (e.g. 'Engineering' or 'Engineering / Software'). None when the amounts cover the whole budget.",
            "nullable": true,
            "title": "Entity Label",
            "type": "string"
          },
          "period_end_date": {
            "description": "End date of the reported budget period (ISO format)",
            "nullable": true,
            "title": "Period End Date",
            "type": "string"
          },
          "period_label": {
            "description": "Human-readable label for the reported budget period (e.g., 'Jan 2025' for a single month, or 'Q2 2025' for the full budget span)",
            "nullable": true,
            "title": "Period Label",
            "type": "string"
          },
          "period_start_date": {
            "description": "Start date of the reported budget period (ISO format)",
            "nullable": true,
            "title": "Period Start Date",
            "type": "string"
          },
          "remaining_amount": {
            "description": "budget_amount minus actuals_amount minus committed_amount. Positive is the amount left to spend; negative is the amount over budget.",
            "nullable": true,
            "title": "Remaining Amount",
            "type": "number"
          },
          "time_interval": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TimeInterval"
              }
            ],
            "description": "Budget time interval (e.g., MONTHLY, QUARTERLY, YEARLY)"
          }
        },
        "required": [
          "actuals_amount",
          "budget_amount",
          "budget_name",
          "committed_amount",
          "period_end_date",
          "period_label",
          "period_start_date",
          "remaining_amount",
          "time_interval"
        ],
        "title": "RemainingBudgetAmountInfo",
        "type": "object"
      },
      "RemediationAction": {
        "description": "Represents an action that can be taken to remediate a declined transaction.\n\nUsed by AI agents (Omni Chat, Ramp Assist) to understand what actions are available\nto resolve a decline, and by UI components (decline drawer) to display remediation\noptions to users.\n\nEach decline evaluation can return one or more RemediationActions, allowing the\nsystem to suggest contextual fixes based on the specific decline reason and the\nuser's permissions.",
        "properties": {
          "action_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RemediationActionType"
              }
            ],
            "description": "The type of remediation action (e.g., UNLOCK_CARD, INCREASE_LIMIT)"
          },
          "ai_guidance": {
            "description": "Instructions for AI agents on how to execute this remediation",
            "title": "Ai Guidance",
            "type": "string"
          },
          "description": {
            "description": "Human-readable description for display in UI",
            "title": "Description",
            "type": "string"
          },
          "remediation_hints": {
            "description": "Contextual data needed to perform the remediation (e.g., card_uuid, suggested_new_limit)",
            "title": "Remediation Hints",
            "type": "object"
          }
        },
        "required": [
          "action_type",
          "ai_guidance",
          "description",
          "remediation_hints"
        ],
        "title": "RemediationAction",
        "type": "object"
      },
      "RemediationActionType": {
        "title": "RemediationActionType",
        "type": "string",
        "x-extensible-enum": [
          "ACTIVATE_CARD",
          "ADD_CATEGORY_TO_WHITELIST",
          "ADD_MERCHANT_TO_WHITELIST",
          "COMPLETE_MISSING_POLICY_ITEMS",
          "CONFIRM_CARD_DELIVERY_AND_ACTIVATE",
          "CONTACT_CARDHOLDER",
          "CONTACT_FINANCE_TEAM",
          "CONTACT_SUPPORT",
          "INCREASE_LIMIT",
          "INCREASE_TRANSACTION_AMOUNT_LIMIT",
          "LINK_SPEND_ALLOCATION",
          "NO_ACTION_REQUIRED",
          "REACTIVATE_USER",
          "REMOVE_CATEGORY_FROM_BLACKLIST",
          "REMOVE_MERCHANT_FROM_BLACKLIST",
          "RETRY_AT_MERCHANT",
          "RETRY_WITH_CORRECT_ADDRESS",
          "ROUTE_TO_FUND",
          "UNLOCK_CARD",
          "UNLOCK_FRAUD_LOCKED_CARD",
          "UNLOCK_SPEND_ALLOCATION",
          "UNLOCK_SPEND_ALLOCATION_MEMBER",
          "VISIT_RAMP_DASHBOARD"
        ]
      },
      "RemindBillApproversRequestBody": {
        "description": "Remind next approvers for bills awaiting approval.\n\nUse this tool when the user wants to nudge approvers for specific bill UUIDs.\nThe bills should be awaiting approval; use get-bills-for-approval first if the\nuser has not identified the bill UUIDs.",
        "properties": {
          "bill_uuids": {
            "description": "Bill UUIDs whose next approvers should be reminded.",
            "items": {
              "$ref": "#/components/schemas/UUIDStrRequestBody"
            },
            "maxItems": 20,
            "minItems": 1,
            "title": "Bill Uuids",
            "type": "array"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "bill_uuids",
          "rationale"
        ],
        "title": "RemindBillApprovers",
        "type": "object"
      },
      "RemoveRouterApiKeyLimitRequestBody": {
        "description": "Remove the USD spend limit on Ramp Router API keys.\n\nDoes not remove a limit on an OpenAI or Anthropic provider key. Returns the\nremoved limits, with no_budget for each key that had none.\n\nA key's owner can remove the limit on their own key. An admin can remove the\nlimit on any key. A key owner who is not an admin cannot change or remove a\nlimit an admin set.\n\nBefore calling, show the user the keys and the limits that will be removed. Get\nan explicit yes in this conversation. Never set confirmed to true without that\nyes. Without confirmed, the call is rejected and nothing changes.",
        "properties": {
          "api_key_ids": {
            "description": "Ramp ids of Router API keys; not OpenAI or Anthropic provider key ids.",
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "maxItems": 100,
            "minItems": 1,
            "title": "Api Key Ids",
            "type": "array"
          },
          "confirmed": {
            "description": "Must be true to confirm that the user approved removing the exact limits.",
            "title": "Confirmed",
            "type": "boolean"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "api_key_ids",
          "confirmed",
          "rationale"
        ],
        "title": "RemoveRouterApiKeyLimit",
        "type": "object"
      },
      "RemoveTravelerLoyaltyProgramRequestBody": {
        "description": "Remove a saved loyalty program from the user's traveler profile.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "traveler_loyalty_program_id": {
            "description": "Saved loyalty program ID from list of loyalty programs returned by ListTravelerLoyaltyPrograms",
            "title": "Traveler Loyalty Program Id",
            "type": "string"
          }
        },
        "required": [
          "rationale",
          "traveler_loyalty_program_id"
        ],
        "title": "RemoveTravelerLoyaltyProgram",
        "type": "object"
      },
      "RemoveTravelerLoyaltyProgramResult": {
        "properties": {
          "message": {
            "description": "Description of the result",
            "title": "Message",
            "type": "string"
          },
          "success": {
            "description": "Whether the loyalty program was changed.",
            "title": "Success",
            "type": "boolean"
          }
        },
        "required": [
          "message",
          "success"
        ],
        "title": "RemoveTravelerLoyaltyProgramResult",
        "type": "object"
      },
      "RemoveUserFromSharedFundPublicRequestRequestBody": {
        "description": "Remove a user from a shared fund using user_email.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "spend_allocation_uuid": {
            "description": "UUID of the shared fund",
            "title": "Spend Allocation Uuid",
            "type": "string"
          },
          "user_email": {
            "description": "Email of the user to remove",
            "title": "User Email",
            "type": "string"
          }
        },
        "required": [
          "rationale",
          "spend_allocation_uuid",
          "user_email"
        ],
        "title": "RemoveUserFromSharedFundPublicRequest",
        "type": "object"
      },
      "RemoveUserFromSharedFundPublicResult": {
        "properties": {
          "message": {
            "title": "Message",
            "type": "string"
          },
          "spend_allocation_uuid": {
            "default": null,
            "description": "UUID of the spend allocation",
            "nullable": true,
            "title": "Spend Allocation Uuid",
            "type": "string"
          }
        },
        "required": [
          "message"
        ],
        "title": "RemoveUserFromSharedFundPublicResult",
        "type": "object"
      },
      "RenameDepartmentOutput": {
        "description": "Response containing the renamed department.",
        "properties": {
          "department_id": {
            "description": "UUID of the renamed department.",
            "title": "Department Id",
            "type": "string"
          },
          "department_name": {
            "description": "The department's new name.",
            "title": "Department Name",
            "type": "string"
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "previous_department_name": {
            "title": "Previous Department Name",
            "type": "string"
          }
        },
        "required": [
          "department_id",
          "department_name",
          "message",
          "previous_department_name"
        ],
        "title": "RenameDepartmentOutput",
        "type": "object"
      },
      "RenameDepartmentRequestBody": {
        "description": "Rename an existing department in the company.\n\nDepartment names must be unique within the business (case-insensitive).",
        "properties": {
          "department_id": {
            "description": "UUID of the department to rename.",
            "title": "Department Id",
            "type": "string"
          },
          "department_name": {
            "description": "New name for the department.",
            "title": "Department Name",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "department_id",
          "department_name",
          "rationale"
        ],
        "title": "RenameDepartment",
        "type": "object"
      },
      "RenewalHistoryEntry": {
        "properties": {
          "auto_renewal": {
            "default": null,
            "description": "Whether the contract auto-renews",
            "nullable": true,
            "title": "Auto Renewal",
            "type": "boolean"
          },
          "currency": {
            "default": null,
            "description": "ISO currency code",
            "nullable": true,
            "title": "Currency",
            "type": "string"
          },
          "end_date": {
            "default": null,
            "description": "Contract end date",
            "format": "date",
            "nullable": true,
            "title": "End Date",
            "type": "string"
          },
          "name": {
            "default": null,
            "description": "Agreement name",
            "nullable": true,
            "title": "Name",
            "type": "string"
          },
          "renewal_status": {
            "default": null,
            "description": "Renewal status",
            "nullable": true,
            "title": "Renewal Status",
            "type": "string"
          },
          "start_date": {
            "default": null,
            "description": "Contract start date",
            "format": "date",
            "nullable": true,
            "title": "Start Date",
            "type": "string"
          },
          "total_value": {
            "default": null,
            "description": "Total contract value",
            "nullable": true,
            "title": "Total Value",
            "type": "number"
          }
        },
        "title": "RenewalHistoryEntry",
        "type": "object"
      },
      "RepaymentRequestResult": {
        "properties": {
          "docstring": {
            "default": "Result of requesting repayment on a transaction. transaction_id is the UUID of the transaction, success indicates whether the request completed, and message provides details.",
            "title": "Docstring",
            "type": "string"
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "success": {
            "title": "Success",
            "type": "boolean"
          },
          "transaction_id": {
            "title": "Transaction Id",
            "type": "string"
          }
        },
        "required": [
          "message",
          "success",
          "transaction_id"
        ],
        "title": "RepaymentRequestResult",
        "type": "object"
      },
      "ReplaceProcurementDocumentRequestBody": {
        "description": "Upload a file as the new version of a document on a procurement request.\n\nOnly works while the request is submitted and pending approval. Approved\nrequests need a change order instead. The acting user must be able to edit\nthe request, for example an approver on its approval chain. Earlier versions\nare kept. Works for files uploaded to the request and for files uploaded as\nintake-form answers. Documents out for e-signature can't be replaced.",
        "properties": {
          "content_type": {
            "description": "MIME type of the new version, for example \"application/pdf\".",
            "minLength": 1,
            "title": "Content Type",
            "type": "string"
          },
          "document_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UUIDStrRequestBody"
              }
            ],
            "description": "UUID of the document on the procurement request, as listed in the request's attachments, with source request or form_field."
          },
          "file_content_base64": {
            "description": "Base64-encoded content of the new version.",
            "title": "File Content Base64",
            "type": "string"
          },
          "filename": {
            "description": "Filename of the new version, with extension, for example \"msa.docx\".",
            "minLength": 1,
            "title": "Filename",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "content_type",
          "document_id",
          "file_content_base64",
          "filename",
          "rationale"
        ],
        "title": "ReplaceProcurementDocument",
        "type": "object"
      },
      "ReplaceProcurementDocumentResult": {
        "properties": {
          "document_id": {
            "description": "UUID of the procurement request document that was replaced.",
            "title": "Document Id",
            "type": "string"
          },
          "original_filename": {
            "description": "Filename of the uploaded file, now the document's latest version.",
            "title": "Original Filename",
            "type": "string"
          },
          "spend_request_id": {
            "description": "UUID of the spend request the document belongs to.",
            "title": "Spend Request Id",
            "type": "string"
          },
          "version_id": {
            "description": "UUID of the new document version.",
            "title": "Version Id",
            "type": "string"
          },
          "version_number": {
            "description": "Version number of the uploaded file. Earlier versions are kept.",
            "title": "Version Number",
            "type": "integer"
          }
        },
        "required": [
          "document_id",
          "original_filename",
          "spend_request_id",
          "version_id",
          "version_number"
        ],
        "title": "ReplaceProcurementDocumentResult",
        "type": "object"
      },
      "ReplacementBookingState": {
        "enum": [
          "FAILED",
          "FULFILLED",
          "PARTLY_CANCELLED",
          "PENDING"
        ],
        "title": "ReplacementBookingState",
        "type": "string"
      },
      "ReportDataTableFieldSortV2": {
        "properties": {
          "field": {
            "$ref": "#/components/schemas/ReportingDataTableColumn"
          },
          "order": {
            "$ref": "#/components/schemas/ReportDataTableSortOrder"
          }
        },
        "required": [
          "field",
          "order"
        ],
        "title": "ReportDataTableFieldSortV2",
        "type": "object"
      },
      "ReportDataTableGroupSortV2": {
        "properties": {
          "field": {
            "$ref": "#/components/schemas/ReportingDataTableColumn"
          },
          "order": {
            "$ref": "#/components/schemas/ReportDataTableSortOrder"
          }
        },
        "required": [
          "field",
          "order"
        ],
        "title": "ReportDataTableGroupSortV2",
        "type": "object"
      },
      "ReportDataTablePaginationResponseSchema": {
        "description": "Pagination information for the data table response.",
        "properties": {
          "next": {
            "nullable": true,
            "title": "Next",
            "type": "string"
          }
        },
        "required": [
          "next"
        ],
        "title": "ReportDataTablePaginationResponseSchema",
        "type": "object"
      },
      "ReportDataTableSchemaV3": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/ReportingTableRowV3"
            },
            "title": "Data",
            "type": "array"
          },
          "headers": {
            "items": {
              "$ref": "#/components/schemas/ReportingTableHeaderV3"
            },
            "title": "Headers",
            "type": "array"
          },
          "page": {
            "$ref": "#/components/schemas/ReportDataTablePaginationResponseSchema"
          },
          "sort": {
            "$ref": "#/components/schemas/ReportDataTableSortV2"
          },
          "total_count": {
            "title": "Total Count",
            "type": "integer"
          }
        },
        "required": [
          "data",
          "headers",
          "page",
          "sort",
          "total_count"
        ],
        "title": "ReportDataTableSchemaV3",
        "type": "object"
      },
      "ReportDataTableSortOrder": {
        "enum": [
          "asc",
          "desc"
        ],
        "title": "ReportDataTableSortOrder",
        "type": "string"
      },
      "ReportDataTableSortV2": {
        "properties": {
          "fields": {
            "items": {
              "$ref": "#/components/schemas/ReportDataTableFieldSortV2"
            },
            "title": "Fields",
            "type": "array"
          },
          "group_by": {
            "items": {
              "$ref": "#/components/schemas/ReportDataTableGroupSortV2"
            },
            "title": "Group By",
            "type": "array"
          }
        },
        "required": [
          "fields",
          "group_by"
        ],
        "title": "ReportDataTableSortV2",
        "type": "object"
      },
      "ReportParentMetadataSchema": {
        "properties": {
          "report_parent_last_updated_at_timestamp": {
            "format": "date-time",
            "title": "Report Parent Last Updated At Timestamp",
            "type": "string"
          },
          "sharer_owner_name": {
            "title": "Sharer Owner Name",
            "type": "string"
          }
        },
        "required": [
          "report_parent_last_updated_at_timestamp",
          "sharer_owner_name"
        ],
        "title": "ReportParentMetadataSchema",
        "type": "object"
      },
      "ReportQuery": {
        "properties": {
          "aggregate_filters": {
            "default": [],
            "description": "Deprecated: use a filters clause whose field is a selected measure output name instead. Numeric post-aggregation filters (SQL HAVING) on selected measure output names, including aliases, migrated into filters at compile time and reported in result_metadata.predicate_migration.",
            "items": {
              "$ref": "#/components/schemas/AggregateFilterClause"
            },
            "maxItems": 10,
            "title": "Aggregate Filters",
            "type": "array"
          },
          "ap_operations": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApOperationsMetricsRequest"
              }
            ],
            "default": null,
            "description": "Canonical AP metric parameters. Tenant, timezone and resource limits are server-owned; omit SQL controls.",
            "nullable": true
          },
          "calculations": {
            "default": [],
            "description": "Per-report measures defined by arithmetic over other measures in this query. Available only to accounts with calculated measures enabled; for other accounts a query that sets it fails with invalid_calculation (reason not_enabled), so leave it empty. When available, put a ratio, difference, share of a group, or change between two periods here rather than computing it from query results, so it is a column in the result and in a saved report. For a subset or a period, add the operand as a measure with filters (for a period, filter on the time dimension and give time_range fixed dates that cover both periods). A formula uses + - * /, unary minus, parentheses and numbers over the output names of selected measures and of other calculations. Every operand must already be in measures; nothing is added for you. Division by zero gives null. Examples: {name: po_utilization, formula: 'actual_spend_amount / po_amount'} (ratio; shows as a percent), {name: net_spend, formula: 'amount - cashback'} (difference; keeps the money unit), and {name: net_rate, formula: 'net_spend / amount'} (refers to the calculation net_spend). Units: money +/- money is money; same unit / same unit is a ratio (a 0-1 fraction shown as a percent; set format NUMBER for per-X counts such as 'txn_count / spender_count'); money / count is money; money x money and money + count are rejected. Not available with second_stage or post_aggregation, nor for window percentages, durations or date measures.",
            "items": {
              "$ref": "#/components/schemas/CalculatedMeasure"
            },
            "maxItems": 10,
            "title": "Calculations",
            "type": "array"
          },
          "comparison": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SemanticComparisonRequest"
              }
            ],
            "default": null,
            "description": "Optional previous-period comparison. Omitted or null disables it. Requires measures and a time_range with both start and end; not available with post_aggregation. Every measure is compared per row.",
            "nullable": true
          },
          "dataset": {
            "maxLength": 200,
            "minLength": 1,
            "title": "Dataset",
            "type": "string"
          },
          "dimensions": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/FieldRef"
            },
            "maxItems": 50,
            "title": "Dimensions",
            "type": "array"
          },
          "filters": {
            "default": [],
            "description": "Conjunctive row filters. Text ops (contains, not_contains, starts_with, ends_with) are case-insensitive, take one string, and exist only on fields that list them in supported_filter_ops; neq, not_in, and not_contains keep rows with no value.",
            "items": {
              "$ref": "#/components/schemas/FilterClause"
            },
            "title": "Filters",
            "type": "array"
          },
          "having": {
            "default": [],
            "description": "Deprecated: use a filters clause whose field is a selected measure output name instead. Post-aggregation filters on selected measure output names, migrated into filters at compile time and reported in result_metadata.predicate_migration.",
            "items": {
              "$ref": "#/components/schemas/HavingClause"
            },
            "maxItems": 10,
            "title": "Having",
            "type": "array"
          },
          "limit": {
            "default": null,
            "description": "Flat row limit; defaults to 100 without max_groups. Mutually exclusive with max_groups.",
            "maximum": 1000,
            "minimum": 1,
            "nullable": true,
            "title": "Limit",
            "type": "integer"
          },
          "max_groups": {
            "default": null,
            "description": "Maximum named values per dimension, plus Other, independently for every selected non-time dimension. Time axes are exempt. Requires ranking_order_by. When time_range is omitted, ranking covers all authorized data. Omit limit; results use a separate 1,000-row safety cap with actual-truncation disclosure.",
            "maximum": 100,
            "minimum": 1,
            "nullable": true,
            "title": "Max Groups",
            "type": "integer"
          },
          "measures": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/MeasureRef"
            },
            "maxItems": 20,
            "title": "Measures",
            "type": "array"
          },
          "order_by": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/OrderByClause"
            },
            "title": "Order By",
            "type": "array"
          },
          "post_aggregation": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PostAggregation"
              }
            ],
            "default": null,
            "description": "Deprecated: prefer `second_stage`. Optional second aggregation stage. Retains the named dimension and counts first-stage groups that satisfy the query's aggregate predicates.",
            "nullable": true
          },
          "ranking_migration": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RankingMigration"
              }
            ],
            "default": null,
            "description": "Notice history populated when legacy top_groups input was migrated. Returned with normalized saved reports and echoed in result_metadata; do not author it for new queries.",
            "nullable": true
          },
          "ranking_order_by": {
            "default": [],
            "description": "Ordered list of 1\u20135 selected first-stage measure {field, dir} scores, shared by every ranked dimension. Supports mixed directions and aliases. Separate from final display order_by; may be empty when no non-time axis is ranked.",
            "items": {
              "$ref": "#/components/schemas/OrderByClause"
            },
            "maxItems": 5,
            "title": "Ranking Order By",
            "type": "array"
          },
          "reporting_currency": {
            "default": null,
            "description": "Optional ISO 4217 code to convert every money value to (e.g. 'USD', 'EUR', 'JPY'). Defaults to the business's reporting currency. The response echoes the resolved code as reporting_currency and per-column currency metadata.",
            "nullable": true,
            "pattern": "^[A-Z]{3}$",
            "title": "Reporting Currency",
            "type": "string"
          },
          "second_stage": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SecondStage"
              }
            ],
            "default": null,
            "description": "Optional second aggregation stage over the first-stage groups: retain `dimensions` ([] for one scalar row; otherwise selected first-stage dimensions; at least one other selected dimension is collapsed) and compute `measures`, each `{agg: SUM|AVG|MIN|MAX|COUNT, of: <first-stage measure output name or null>, name, display_name}`, across the collapsed groups. Each first-stage group weighs once: COUNT without `of` counts qualifying groups (and then requires an aggregate predicate); AVG is an average of existing groups, so AVG over months is per active month (a month with no rows is absent, not zero). Aggregate predicates on first-stage outputs qualify groups before this stage. Mutually exclusive with post_aggregation and max_groups; comparison requires `dimensions: []`.",
            "nullable": true
          },
          "settings": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ApAgingReportQuerySettings"
              },
              {
                "$ref": "#/components/schemas/ApEventsReportQuerySettings"
              },
              {
                "$ref": "#/components/schemas/ReportQuerySettings"
              },
              {
                "$ref": "#/components/schemas/SpendReportQuerySettings"
              }
            ],
            "title": "Settings"
          },
          "statement": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FinancialStatementQuery"
              }
            ],
            "default": null,
            "description": "Canonical financial-statement parameters, only for datasets advertising a financial_statement contract. Omit dimensions, measures, generic filters, ranking, sorting, comparison, and reporting_currency.",
            "nullable": true
          },
          "time_range": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SemanticTimeRange"
              }
            ],
            "default": null,
            "nullable": true
          },
          "time_zone": {
            "default": null,
            "description": "IANA timezone of the report, for example 'America/Los_Angeles'. Timestamp days, groups, and relative ranges use this zone; calendar dates do not shift. Defaults to UTC. Set it only when the user asks for a timezone; never infer one.",
            "nullable": true,
            "title": "Time Zone",
            "type": "string"
          },
          "top_groups": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TopGroupsClause"
              }
            ],
            "default": null,
            "description": "Legacy input: migrates to max_groups per dimension and ranking_order_by.",
            "nullable": true
          }
        },
        "required": [
          "dataset"
        ],
        "title": "ReportQuery",
        "type": "object"
      },
      "ReportQuerySettings": {
        "additionalProperties": false,
        "description": "Common execution settings; omitted values preserve legacy behavior.",
        "properties": {
          "line_item_grain": {
            "allOf": [
              {
                "$ref": "#/components/schemas/LineItemGrain"
              }
            ],
            "default": null,
            "nullable": true
          }
        },
        "title": "ReportQuerySettings",
        "type": "object"
      },
      "ReportQuerySubmissionRequestBody": {
        "additionalProperties": false,
        "properties": {
          "aggregate_filters": {
            "default": [],
            "description": "Deprecated: use a filters clause whose field is a selected measure output name instead. Numeric post-aggregation filters (SQL HAVING) on selected measure output names, including aliases, migrated into filters at compile time and reported in result_metadata.predicate_migration.",
            "items": {
              "additionalProperties": false,
              "description": "Numeric post-aggregation comparison against a selected measure output.",
              "properties": {
                "field": {
                  "maxLength": 200,
                  "minLength": 1,
                  "title": "Field",
                  "type": "string"
                },
                "op": {
                  "enum": [
                    "eq",
                    "gt",
                    "gte",
                    "lt",
                    "lte",
                    "neq"
                  ],
                  "title": "AggregateFilterOp",
                  "type": "string"
                },
                "value": {
                  "description": "Numeric threshold compared with the aggregated measure value.",
                  "oneOf": [
                    {
                      "type": "integer"
                    },
                    {
                      "type": "number"
                    }
                  ],
                  "title": "Value"
                }
              },
              "required": [
                "field",
                "op",
                "value"
              ],
              "title": "AggregateFilterClause",
              "type": "object"
            },
            "maxItems": 10,
            "title": "Aggregate Filters",
            "type": "array"
          },
          "ap_operations": {
            "additionalProperties": false,
            "default": null,
            "description": "Canonical AP metric parameters. Tenant, timezone and resource limits are server-owned; omit SQL controls.",
            "nullable": true,
            "properties": {
              "as_of": {
                "format": "date-time",
                "title": "As Of",
                "type": "string"
              },
              "end_at": {
                "default": null,
                "format": "date-time",
                "nullable": true,
                "title": "End At",
                "type": "string"
              },
              "metric_windows": {
                "items": {
                  "additionalProperties": false,
                  "properties": {
                    "end_at": {
                      "format": "date-time",
                      "title": "End At",
                      "type": "string"
                    },
                    "metric": {
                      "enum": [
                        "creation_source"
                      ],
                      "title": "MetricKey",
                      "type": "string"
                    },
                    "start_at": {
                      "format": "date-time",
                      "title": "Start At",
                      "type": "string"
                    }
                  },
                  "required": [
                    "end_at",
                    "metric",
                    "start_at"
                  ],
                  "title": "MetricWindowOverride",
                  "type": "object"
                },
                "title": "Metric Windows",
                "type": "array"
              },
              "start_at": {
                "default": null,
                "format": "date-time",
                "nullable": true,
                "title": "Start At",
                "type": "string"
              }
            },
            "required": [
              "as_of"
            ],
            "title": "ApOperationsMetricsRequest",
            "type": "object"
          },
          "calculations": {
            "default": [],
            "description": "Per-report measures defined by arithmetic over other measures in this query. Available only to accounts with calculated measures enabled; for other accounts a query that sets it fails with invalid_calculation (reason not_enabled), so leave it empty. When available, put a ratio, difference, share of a group, or change between two periods here rather than computing it from query results, so it is a column in the result and in a saved report. For a subset or a period, add the operand as a measure with filters (for a period, filter on the time dimension and give time_range fixed dates that cover both periods). A formula uses + - * /, unary minus, parentheses and numbers over the output names of selected measures and of other calculations. Every operand must already be in measures; nothing is added for you. Division by zero gives null. Examples: {name: po_utilization, formula: 'actual_spend_amount / po_amount'} (ratio; shows as a percent), {name: net_spend, formula: 'amount - cashback'} (difference; keeps the money unit), and {name: net_rate, formula: 'net_spend / amount'} (refers to the calculation net_spend). Units: money +/- money is money; same unit / same unit is a ratio (a 0-1 fraction shown as a percent; set format NUMBER for per-X counts such as 'txn_count / spender_count'); money / count is money; money x money and money + count are rejected. Not available with second_stage or post_aggregation, nor for window percentages, durations or date measures.",
            "items": {
              "additionalProperties": false,
              "description": "A measure computed from other selected measures, compiled in the same query.",
              "properties": {
                "display_name": {
                  "default": null,
                  "maxLength": 200,
                  "minLength": 1,
                  "nullable": true,
                  "title": "Display Name",
                  "type": "string"
                },
                "format": {
                  "default": null,
                  "description": "Display override: PERCENT or NUMBER for a ratio, CURRENCY or NUMBER for money. Omit to use the unit inferred from the formula.",
                  "enum": [
                    "CURRENCY",
                    "NUMBER",
                    "PERCENT"
                  ],
                  "nullable": true,
                  "title": "CalculatedMeasureFormat",
                  "type": "string"
                },
                "formula": {
                  "description": "Arithmetic over output names of selected measures or other calculations, e.g. 'paid_amount / total_amount'.",
                  "maxLength": 1000,
                  "minLength": 1,
                  "title": "Formula",
                  "type": "string"
                },
                "name": {
                  "description": "Output name; shares one namespace with measures and dimensions and may be used in order_by, aggregate filters, and other formulas.",
                  "maxLength": 200,
                  "minLength": 1,
                  "pattern": "^[a-z][a-z0-9_]*$",
                  "title": "Name",
                  "type": "string"
                }
              },
              "required": [
                "formula",
                "name"
              ],
              "title": "CalculatedMeasure",
              "type": "object"
            },
            "maxItems": 10,
            "title": "Calculations",
            "type": "array"
          },
          "dataset": {
            "maxLength": 200,
            "minLength": 1,
            "title": "Dataset",
            "type": "string"
          },
          "dimensions": {
            "default": [],
            "items": {
              "additionalProperties": false,
              "description": "Reference to a dimension, optionally time-bucketed.",
              "properties": {
                "field": {
                  "maxLength": 200,
                  "minLength": 1,
                  "title": "Field",
                  "type": "string"
                },
                "time_grain": {
                  "default": null,
                  "description": "Calendar grain for a time dimension. Null selects a grain automatically from the resolved time range.",
                  "enum": [
                    "day",
                    "month",
                    "quarter",
                    "week",
                    "year"
                  ],
                  "nullable": true,
                  "title": "TimeGrain",
                  "type": "string"
                },
                "week_starts_on": {
                  "default": null,
                  "description": "First day of the week when time_grain is week. Defaults to Monday.",
                  "enum": [
                    "monday",
                    "sunday"
                  ],
                  "nullable": true,
                  "title": "Week Starts On",
                  "type": "string"
                }
              },
              "required": [
                "field"
              ],
              "title": "FieldRef",
              "type": "object"
            },
            "maxItems": 50,
            "title": "Dimensions",
            "type": "array"
          },
          "filters": {
            "default": [],
            "description": "Conjunctive row filters. Text ops (contains, not_contains, starts_with, ends_with) are case-insensitive, take one string, and exist only on fields that list them in supported_filter_ops; neq, not_in, and not_contains keep rows with no value.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "field": {
                  "maxLength": 200,
                  "minLength": 1,
                  "title": "Field",
                  "type": "string"
                },
                "op": {
                  "enum": [
                    "contains",
                    "ends_with",
                    "eq",
                    "gt",
                    "gte",
                    "in",
                    "is_not_null",
                    "is_null",
                    "lt",
                    "lte",
                    "neq",
                    "not_contains",
                    "not_in",
                    "starts_with"
                  ],
                  "title": "FilterOp",
                  "type": "string"
                },
                "value": {
                  "default": null,
                  "nullable": true,
                  "oneOf": [
                    {
                      "format": "date",
                      "type": "string"
                    },
                    {
                      "format": "date-time",
                      "type": "string"
                    },
                    {
                      "items": {
                        "oneOf": [
                          {
                            "format": "date",
                            "type": "string"
                          },
                          {
                            "format": "date-time",
                            "type": "string"
                          },
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "integer"
                          },
                          {
                            "type": "number"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      },
                      "type": "array"
                    },
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "integer"
                    },
                    {
                      "type": "number"
                    },
                    {
                      "type": "string"
                    }
                  ],
                  "title": "Value"
                }
              },
              "required": [
                "field",
                "op"
              ],
              "title": "FilterClause",
              "type": "object"
            },
            "title": "Filters",
            "type": "array"
          },
          "having": {
            "default": [],
            "description": "Deprecated: use a filters clause whose field is a selected measure output name instead. Post-aggregation filters on selected measure output names, migrated into filters at compile time and reported in result_metadata.predicate_migration.",
            "items": {
              "additionalProperties": false,
              "description": "Post-aggregation comparison against a selected measure output.",
              "properties": {
                "field": {
                  "maxLength": 200,
                  "minLength": 1,
                  "title": "Field",
                  "type": "string"
                },
                "op": {
                  "enum": [
                    "eq",
                    "gt",
                    "gte",
                    "in",
                    "lt",
                    "lte",
                    "neq",
                    "not_in"
                  ],
                  "title": "HavingOp",
                  "type": "string"
                },
                "value": {
                  "oneOf": [
                    {
                      "format": "date",
                      "type": "string"
                    },
                    {
                      "format": "date-time",
                      "type": "string"
                    },
                    {
                      "items": {
                        "oneOf": [
                          {
                            "format": "date",
                            "type": "string"
                          },
                          {
                            "format": "date-time",
                            "type": "string"
                          },
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "integer"
                          },
                          {
                            "type": "number"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      },
                      "type": "array"
                    },
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "integer"
                    },
                    {
                      "type": "number"
                    },
                    {
                      "type": "string"
                    }
                  ],
                  "title": "Value"
                }
              },
              "required": [
                "field",
                "op",
                "value"
              ],
              "title": "HavingClause",
              "type": "object"
            },
            "maxItems": 10,
            "title": "Having",
            "type": "array"
          },
          "limit": {
            "default": null,
            "description": "Flat row limit; defaults to 100 without max_groups. Mutually exclusive with max_groups.",
            "maximum": 1000,
            "minimum": 1,
            "nullable": true,
            "title": "Limit",
            "type": "integer"
          },
          "max_groups": {
            "default": null,
            "description": "Maximum named values per dimension, plus Other, independently for every selected non-time dimension. Time axes are exempt. Requires ranking_order_by. When time_range is omitted, ranking covers all authorized data. Omit limit; results use a separate 1,000-row safety cap with actual-truncation disclosure.",
            "maximum": 100,
            "minimum": 1,
            "nullable": true,
            "title": "Max Groups",
            "type": "integer"
          },
          "measures": {
            "default": [],
            "items": {
              "additionalProperties": false,
              "description": "Reference to a dataset measure, optionally restricted by filters.\n\n``filters`` make the measure conditional (\"sum of amount WHERE category =\nX\") without restricting the query's row set or any other selected\nmeasure. This is how one query produces side-by-side conditional columns,\ne.g. per-category spend totals grouped by employee. Filtered refs must set\n``name`` so each output column has a distinct, addressable name.\n\n``agg`` makes ``measure`` name a base-dataset field or catalog measure\nwhose record values are aggregated at query time, e.g. the median of\n``amount``. The catalog lists the aggregations each entry accepts.",
              "properties": {
                "agg": {
                  "default": null,
                  "description": "Optional query-time aggregation; measure then names a base-dataset field or catalog measure whose record values are aggregated. agg.type must be one of that entry's catalog aggregations; QUANTILE_NUMERIC also needs agg.percentile. Requires name.",
                  "discriminator": {
                    "mapping": {
                      "AVG": "#/components/schemas/PlainAggregationRequestBody",
                      "MAX": "#/components/schemas/PlainAggregationRequestBody",
                      "MEDIAN_NUMERIC": "#/components/schemas/PlainAggregationRequestBody",
                      "MIN": "#/components/schemas/PlainAggregationRequestBody",
                      "QUANTILE_NUMERIC": "#/components/schemas/QuantileAggregationRequestBody",
                      "SUM": "#/components/schemas/PlainAggregationRequestBody"
                    },
                    "propertyName": "type"
                  },
                  "nullable": true,
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/PlainAggregationRequestBody"
                    },
                    {
                      "$ref": "#/components/schemas/QuantileAggregationRequestBody"
                    }
                  ],
                  "title": "Agg"
                },
                "display_name": {
                  "default": null,
                  "description": "Display label for the measure, independent of its output name. Defaults to the humanized output alias when name is set, otherwise the catalog measure label. References still use the output name.",
                  "maxLength": 200,
                  "minLength": 1,
                  "nullable": true,
                  "title": "Display Name",
                  "type": "string"
                },
                "filters": {
                  "default": [],
                  "description": "Optional conjunctive filters restricting which records this one output column aggregates (compiled to a conditional aggregate). Base-dataset fields and declared source-backed relationship fields are supported; ordinary joined-dataset fields are not supported here.",
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "field": {
                        "maxLength": 200,
                        "minLength": 1,
                        "title": "Field",
                        "type": "string"
                      },
                      "op": {
                        "enum": [
                          "contains",
                          "ends_with",
                          "eq",
                          "gt",
                          "gte",
                          "in",
                          "is_not_null",
                          "is_null",
                          "lt",
                          "lte",
                          "neq",
                          "not_contains",
                          "not_in",
                          "starts_with"
                        ],
                        "title": "FilterOp",
                        "type": "string"
                      },
                      "value": {
                        "default": null,
                        "nullable": true,
                        "oneOf": [
                          {
                            "format": "date",
                            "type": "string"
                          },
                          {
                            "format": "date-time",
                            "type": "string"
                          },
                          {
                            "items": {
                              "oneOf": [
                                {
                                  "format": "date",
                                  "type": "string"
                                },
                                {
                                  "format": "date-time",
                                  "type": "string"
                                },
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "integer"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            },
                            "type": "array"
                          },
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "integer"
                          },
                          {
                            "type": "number"
                          },
                          {
                            "type": "string"
                          }
                        ],
                        "title": "Value"
                      }
                    },
                    "required": [
                      "field",
                      "op"
                    ],
                    "title": "FilterClause",
                    "type": "object"
                  },
                  "maxItems": 10,
                  "title": "Filters",
                  "type": "array"
                },
                "measure": {
                  "maxLength": 200,
                  "minLength": 1,
                  "title": "Measure",
                  "type": "string"
                },
                "name": {
                  "default": null,
                  "description": "Snake_case output column name for this measure, describing what the filtered column contains: 'airline_spend', 'software_spend', 'marketing_dept_amount', 'flagged_txn_count', 'other_spend'. Required when filters are set or when the same measure is selected more than once; defaults to the measure name.",
                  "maxLength": 200,
                  "minLength": 1,
                  "nullable": true,
                  "pattern": "^[a-z][a-z0-9_]*$",
                  "title": "Name",
                  "type": "string"
                }
              },
              "required": [
                "measure"
              ],
              "title": "MeasureRef",
              "type": "object"
            },
            "maxItems": 20,
            "title": "Measures",
            "type": "array"
          },
          "order_by": {
            "default": [],
            "items": {
              "additionalProperties": false,
              "description": "Order by a selected dimension or measure (by semantic name).",
              "properties": {
                "dir": {
                  "default": "desc",
                  "enum": [
                    "asc",
                    "desc"
                  ],
                  "title": "OrderDir",
                  "type": "string"
                },
                "field": {
                  "maxLength": 200,
                  "minLength": 1,
                  "title": "Field",
                  "type": "string"
                }
              },
              "required": [
                "field"
              ],
              "title": "OrderByClause",
              "type": "object"
            },
            "title": "Order By",
            "type": "array"
          },
          "post_aggregation": {
            "additionalProperties": false,
            "default": null,
            "description": "Deprecated: prefer `second_stage`. Optional second aggregation stage. Retains the named dimension and counts first-stage groups that satisfy the query's aggregate predicates.",
            "nullable": true,
            "properties": {
              "dimension": {
                "maxLength": 200,
                "minLength": 1,
                "title": "Dimension",
                "type": "string"
              },
              "display_name": {
                "default": null,
                "maxLength": 200,
                "minLength": 1,
                "nullable": true,
                "title": "Display Name",
                "type": "string"
              },
              "name": {
                "pattern": "^[a-z][a-z0-9_]*$",
                "title": "Name",
                "type": "string"
              }
            },
            "required": [
              "dimension",
              "name"
            ],
            "title": "PostAggregation",
            "type": "object"
          },
          "predicate_migration": {
            "additionalProperties": false,
            "default": null,
            "description": "Compile-time notice that deprecated having/aggregate_filters clauses were migrated into filters. Derived only from the clauses migrated during compilation (submitted values are discarded), never persisted, and echoed as result_metadata.predicate_migration.",
            "nullable": true,
            "properties": {
              "original_fields": {
                "items": {
                  "maxLength": 200,
                  "minLength": 1,
                  "type": "string"
                },
                "maxItems": 20,
                "minItems": 1,
                "title": "Original Fields",
                "type": "array"
              },
              "sources": {
                "items": {
                  "enum": [
                    "aggregate_filters",
                    "having"
                  ],
                  "type": "string"
                },
                "maxItems": 2,
                "minItems": 1,
                "title": "Sources",
                "type": "array"
              },
              "version": {
                "default": 1,
                "enum": [
                  1
                ],
                "title": "Version",
                "type": "integer"
              }
            },
            "required": [
              "original_fields",
              "sources"
            ],
            "title": "PredicateMigration",
            "type": "object"
          },
          "ranking_migration": {
            "additionalProperties": false,
            "default": null,
            "description": "Notice history populated when legacy top_groups input was migrated. Returned with normalized saved reports and echoed in result_metadata; do not author it for new queries.",
            "nullable": true,
            "properties": {
              "original_dimensions": {
                "items": {
                  "maxLength": 200,
                  "minLength": 1,
                  "type": "string"
                },
                "maxItems": 5,
                "minItems": 1,
                "title": "Original Dimensions",
                "type": "array"
              },
              "original_limit": {
                "maximum": 1000,
                "minimum": 1,
                "title": "Original Limit",
                "type": "integer"
              },
              "source": {
                "default": "top_groups",
                "enum": [
                  "top_groups"
                ],
                "title": "Source",
                "type": "string"
              },
              "version": {
                "default": 1,
                "enum": [
                  1
                ],
                "title": "Version",
                "type": "integer"
              }
            },
            "required": [
              "original_dimensions",
              "original_limit"
            ],
            "title": "RankingMigration",
            "type": "object"
          },
          "ranking_order_by": {
            "default": [],
            "description": "Ordered list of 1\u20135 selected first-stage measure {field, dir} scores, shared by every ranked dimension. Supports mixed directions and aliases. Separate from final display order_by; may be empty when no non-time axis is ranked.",
            "items": {
              "additionalProperties": false,
              "description": "Order by a selected dimension or measure (by semantic name).",
              "properties": {
                "dir": {
                  "default": "desc",
                  "enum": [
                    "asc",
                    "desc"
                  ],
                  "title": "OrderDir",
                  "type": "string"
                },
                "field": {
                  "maxLength": 200,
                  "minLength": 1,
                  "title": "Field",
                  "type": "string"
                }
              },
              "required": [
                "field"
              ],
              "title": "OrderByClause",
              "type": "object"
            },
            "maxItems": 5,
            "title": "Ranking Order By",
            "type": "array"
          },
          "reporting_currency": {
            "default": null,
            "description": "Optional ISO 4217 code to convert every money value to (e.g. 'USD', 'EUR', 'JPY'). Defaults to the business's reporting currency. The response echoes the resolved code as reporting_currency and per-column currency metadata.",
            "nullable": true,
            "pattern": "^[A-Z]{3}$",
            "title": "Reporting Currency",
            "type": "string"
          },
          "second_stage": {
            "additionalProperties": false,
            "default": null,
            "description": "Optional second aggregation stage over the first-stage groups: retain `dimensions` ([] for one scalar row; otherwise selected first-stage dimensions; at least one other selected dimension is collapsed) and compute `measures`, each `{agg: SUM|AVG|MIN|MAX|COUNT, of: <first-stage measure output name or null>, name, display_name}`, across the collapsed groups. Each first-stage group weighs once: COUNT without `of` counts qualifying groups (and then requires an aggregate predicate); AVG is an average of existing groups, so AVG over months is per active month (a month with no rows is absent, not zero). Aggregate predicates on first-stage outputs qualify groups before this stage. Mutually exclusive with post_aggregation and max_groups; comparison requires `dimensions: []`.",
            "nullable": true,
            "properties": {
              "dimensions": {
                "description": "Selected first-stage dimensions to retain in the final result; use [] for one scalar row. At least one first-stage dimension must be collapsed.",
                "items": {
                  "type": "string"
                },
                "maxItems": 50,
                "title": "Dimensions",
                "type": "array"
              },
              "measures": {
                "description": "Aggregates computed over the collapsed first-stage groups.",
                "items": {
                  "additionalProperties": false,
                  "description": "One aggregate over the first-stage groups collapsed into a retained grain.\n\nOperands are first-stage group values, so every group weighs one: ``AVG``\nof a first-stage measure is an average of groups, not the raw-row average,\nand only groups that exist count. A time bucket with no rows is absent,\nnot zero, so ``AVG`` over months is an average per active month.",
                  "oneOf": [
                    {
                      "properties": {
                        "agg": {
                          "enum": [
                            "AVG",
                            "MAX",
                            "MIN",
                            "SUM"
                          ]
                        },
                        "of": {
                          "maxLength": 200,
                          "minLength": 1,
                          "type": "string"
                        }
                      },
                      "required": [
                        "of"
                      ]
                    },
                    {
                      "properties": {
                        "agg": {
                          "enum": [
                            "COUNT"
                          ]
                        }
                      }
                    }
                  ],
                  "properties": {
                    "agg": {
                      "description": "Aggregate applied across the first-stage groups collapsed into each retained-dimension row: SUM, AVG, MIN, MAX, or COUNT.",
                      "enum": [
                        "AVG",
                        "COUNT",
                        "MAX",
                        "MIN",
                        "SUM"
                      ],
                      "title": "Agg",
                      "type": "string"
                    },
                    "display_name": {
                      "default": null,
                      "maxLength": 200,
                      "minLength": 1,
                      "nullable": true,
                      "title": "Display Name",
                      "type": "string"
                    },
                    "name": {
                      "description": "Snake_case output column name, distinct from every selected first-stage dimension and measure output name.",
                      "pattern": "^[a-z][a-z0-9_]*$",
                      "title": "Name",
                      "type": "string"
                    },
                    "of": {
                      "default": null,
                      "description": "Selected first-stage measure output name (aliases allowed) to aggregate across groups. Omit (or null) with COUNT to count the qualifying groups themselves; with an operand, COUNT counts groups whose value is not null.",
                      "maxLength": 200,
                      "minLength": 1,
                      "nullable": true,
                      "title": "Of",
                      "type": "string"
                    }
                  },
                  "required": [
                    "agg",
                    "name"
                  ],
                  "title": "SecondStageMeasure",
                  "type": "object"
                },
                "maxItems": 20,
                "minItems": 1,
                "title": "Measures",
                "type": "array"
              }
            },
            "required": [
              "dimensions",
              "measures"
            ],
            "title": "SecondStage",
            "type": "object"
          },
          "settings": {
            "anyOf": [
              {
                "additionalProperties": false,
                "description": "AP Events settings; aging behavior still depends on the selected fields.",
                "properties": {
                  "ap_aging_age_by": {
                    "default": null,
                    "description": "AP Aging bucket basis, supported by ap_aging and ap_events. Omitted or null means due_date; bill_date uses ap_aging_bill_date_type.",
                    "enum": [
                      "bill_date",
                      "due_date"
                    ],
                    "nullable": true,
                    "title": "ApAgingAgeBy",
                    "type": "string"
                  },
                  "ap_aging_bill_date_type": {
                    "default": null,
                    "description": "AP Aging bill date for inclusion and prepayments, supported only by ap_aging and ap_events. Omitted or null means accounting_date. received_at is invoice-draft creation in America/New_York. Missing accounting or received dates fall back to the invoice date; vendor credits retain their accounting date. time_range does not set this basis.",
                    "enum": [
                      "accounting_date",
                      "issued_at",
                      "received_at"
                    ],
                    "nullable": true,
                    "title": "Ap Aging Bill Date Type",
                    "type": "string"
                  },
                  "ap_aging_paid_by": {
                    "default": null,
                    "description": "AP Aging bank payment cutoff, supported by ap_aging and ap_events. Omitted or null means debit_completion. credit_completion uses vendor payment completion; card/manual payments and allocations are unchanged.",
                    "enum": [
                      "credit_completion",
                      "debit_completion"
                    ],
                    "nullable": true,
                    "title": "ApAgingPaidBy",
                    "type": "string"
                  },
                  "line_item_grain": {
                    "default": null,
                    "enum": [
                      "split",
                      "unsplit"
                    ],
                    "nullable": true,
                    "title": "LineItemGrain",
                    "type": "string"
                  },
                  "reference_date": {
                    "default": null,
                    "description": "AP Aging as-of calendar date (YYYY-MM-DD), supported by ap_aging and ap_events. Omitted or null means today in America/New_York. Future dates are rejected when validating or executing a query. This changes aging balances and buckets; time_range only filters entity dates.",
                    "format": "date",
                    "nullable": true,
                    "title": "Reference Date",
                    "type": "string"
                  }
                },
                "title": "ApEventsReportQuerySettings",
                "type": "object"
              },
              {
                "additionalProperties": false,
                "description": "As-of AP Aging settings; stored null/unsplit inputs remain readable.",
                "properties": {
                  "ap_aging_age_by": {
                    "default": null,
                    "description": "AP Aging bucket basis, supported by ap_aging and ap_events. Omitted or null means due_date; bill_date uses ap_aging_bill_date_type.",
                    "enum": [
                      "bill_date",
                      "due_date"
                    ],
                    "nullable": true,
                    "title": "ApAgingAgeBy",
                    "type": "string"
                  },
                  "ap_aging_bill_date_type": {
                    "default": null,
                    "description": "AP Aging bill date for inclusion and prepayments, supported only by ap_aging and ap_events. Omitted or null means accounting_date. received_at is invoice-draft creation in America/New_York. Missing accounting or received dates fall back to the invoice date; vendor credits retain their accounting date. time_range does not set this basis.",
                    "enum": [
                      "accounting_date",
                      "issued_at",
                      "received_at"
                    ],
                    "nullable": true,
                    "title": "Ap Aging Bill Date Type",
                    "type": "string"
                  },
                  "ap_aging_paid_by": {
                    "default": null,
                    "description": "AP Aging bank payment cutoff, supported by ap_aging and ap_events. Omitted or null means debit_completion. credit_completion uses vendor payment completion; card/manual payments and allocations are unchanged.",
                    "enum": [
                      "credit_completion",
                      "debit_completion"
                    ],
                    "nullable": true,
                    "title": "ApAgingPaidBy",
                    "type": "string"
                  },
                  "line_item_grain": {
                    "default": "unsplit",
                    "enum": [
                      "split",
                      "unsplit"
                    ],
                    "nullable": true,
                    "title": "LineItemGrain",
                    "type": "string"
                  },
                  "reference_date": {
                    "default": null,
                    "description": "AP Aging as-of calendar date (YYYY-MM-DD), supported by ap_aging and ap_events. Omitted or null means today in America/New_York. Future dates are rejected when validating or executing a query. This changes aging balances and buckets; time_range only filters entity dates.",
                    "format": "date",
                    "nullable": true,
                    "title": "Reference Date",
                    "type": "string"
                  }
                },
                "title": "ApAgingReportQuerySettings",
                "type": "object"
              },
              {
                "additionalProperties": false,
                "description": "Common execution settings; omitted values preserve legacy behavior.",
                "properties": {
                  "line_item_grain": {
                    "default": null,
                    "enum": [
                      "split",
                      "unsplit"
                    ],
                    "nullable": true,
                    "title": "LineItemGrain",
                    "type": "string"
                  }
                },
                "title": "ReportQuerySettings",
                "type": "object"
              },
              {
                "additionalProperties": false,
                "description": "Spend-owned execution settings.",
                "properties": {
                  "line_item_grain": {
                    "default": null,
                    "enum": [
                      "split",
                      "unsplit"
                    ],
                    "nullable": true,
                    "title": "LineItemGrain",
                    "type": "string"
                  },
                  "spend_date_basis": {
                    "additionalProperties": false,
                    "default": null,
                    "description": "Per-spend-type dates used by the consolidated spend date dimension.",
                    "nullable": true,
                    "properties": {
                      "bill": {
                        "default": "paid_at",
                        "enum": [
                          "accounting_date",
                          "due_at",
                          "issued_at",
                          "paid_at"
                        ],
                        "title": "BillDateFilterType",
                        "type": "string"
                      },
                      "reimbursement": {
                        "default": "transaction_date",
                        "enum": [
                          "accounting_date",
                          "reviewed_at",
                          "submitted_at",
                          "transaction_date"
                        ],
                        "title": "ReimbursementDateFilterType",
                        "type": "string"
                      },
                      "transaction": {
                        "default": "transaction_time",
                        "enum": [
                          "accounting_date",
                          "cleared_at",
                          "transaction_time"
                        ],
                        "title": "TransactionDateFilterType",
                        "type": "string"
                      }
                    },
                    "title": "SpendDateBasis",
                    "type": "object"
                  }
                },
                "title": "SpendReportQuerySettings",
                "type": "object"
              }
            ],
            "title": "Settings"
          },
          "statement": {
            "additionalProperties": false,
            "default": null,
            "description": "Canonical financial-statement parameters, only for datasets advertising a financial_statement contract. Omit dimensions, measures, generic filters, ranking, sorting, comparison, and reporting_currency.",
            "nullable": true,
            "properties": {
              "filters": {
                "additionalProperties": false,
                "description": "Provider dimension IDs; omission includes all authorized values.",
                "properties": {
                  "class_ids": {
                    "default": null,
                    "items": {
                      "maxLength": 200,
                      "minLength": 1,
                      "type": "string"
                    },
                    "maxItems": 100,
                    "minItems": 1,
                    "nullable": true,
                    "title": "Class Ids",
                    "type": "array"
                  },
                  "customer_ids": {
                    "default": null,
                    "items": {
                      "maxLength": 200,
                      "minLength": 1,
                      "type": "string"
                    },
                    "maxItems": 100,
                    "minItems": 1,
                    "nullable": true,
                    "title": "Customer Ids",
                    "type": "array"
                  },
                  "department_ids": {
                    "default": null,
                    "items": {
                      "maxLength": 200,
                      "minLength": 1,
                      "type": "string"
                    },
                    "maxItems": 100,
                    "minItems": 1,
                    "nullable": true,
                    "title": "Department Ids",
                    "type": "array"
                  },
                  "location_ids": {
                    "default": null,
                    "items": {
                      "maxLength": 200,
                      "minLength": 1,
                      "type": "string"
                    },
                    "maxItems": 100,
                    "minItems": 1,
                    "nullable": true,
                    "title": "Location Ids",
                    "type": "array"
                  },
                  "subsidiary_ids": {
                    "default": null,
                    "items": {
                      "maxLength": 200,
                      "minLength": 1,
                      "type": "string"
                    },
                    "maxItems": 100,
                    "minItems": 1,
                    "nullable": true,
                    "title": "Subsidiary Ids",
                    "type": "array"
                  },
                  "vendor_ids": {
                    "default": null,
                    "items": {
                      "maxLength": 200,
                      "minLength": 1,
                      "type": "string"
                    },
                    "maxItems": 100,
                    "minItems": 1,
                    "nullable": true,
                    "title": "Vendor Ids",
                    "type": "array"
                  }
                },
                "title": "FinancialStatementFilters",
                "type": "object"
              },
              "time_window": {
                "description": "Balance sheet and trial balance require {as_of_date: YYYY-MM-DD}. Income statement requires {start_date: YYYY-MM-DD, end_date: YYYY-MM-DD}; both endpoints are inclusive.",
                "oneOf": [
                  {
                    "additionalProperties": false,
                    "description": "A cumulative balance through a single point in time (balance sheets).",
                    "properties": {
                      "as_of_date": {
                        "format": "date",
                        "title": "As Of Date",
                        "type": "string"
                      }
                    },
                    "required": [
                      "as_of_date"
                    ],
                    "title": "AbkReportingTimeWindowAsOf",
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "description": "Activity within an inclusive date range (income statements).",
                    "properties": {
                      "end_date": {
                        "format": "date",
                        "title": "End Date",
                        "type": "string"
                      },
                      "start_date": {
                        "format": "date",
                        "title": "Start Date",
                        "type": "string"
                      }
                    },
                    "required": [
                      "end_date",
                      "start_date"
                    ],
                    "title": "AbkReportingTimeWindowRange",
                    "type": "object"
                  }
                ],
                "title": "Time Window"
              }
            },
            "required": [
              "time_window"
            ],
            "title": "FinancialStatementQuery",
            "type": "object"
          },
          "time_range": {
            "additionalProperties": false,
            "default": null,
            "description": "Inclusive time bounds applied to the dataset's default time dimension\n(or ``dimension`` when set).\n\nNamed ``SemanticTimeRange`` (not ``TimeRange``) so its OpenAPI component\ndoes not collide with the unrelated GLA-staleness ``TimeRange`` schema.",
            "nullable": true,
            "properties": {
              "dimension": {
                "default": null,
                "nullable": true,
                "title": "Dimension",
                "type": "string"
              },
              "end": {
                "default": null,
                "description": "Inclusive upper bound for the reporting window. To include a complete calendar end date, use end-of-day (for example, 2025-12-31T23:59:59.999999Z). Midnight is the start of that date and excludes later timestamped records from the same day. A relative date offset is resolved when the report runs.",
                "nullable": true,
                "oneOf": [
                  {
                    "additionalProperties": false,
                    "description": "Legacy reporting date offset, resolved in UTC when the report runs.\n\nWeeks start on Monday. Last 30 days uses day offsets -30 through 0,\nsnapped to the beginning and end of the day respectively.",
                    "properties": {
                      "offset": {
                        "title": "Offset",
                        "type": "integer"
                      },
                      "snap_to_beginning_of_unit": {
                        "default": false,
                        "title": "Snap To Beginning Of Unit",
                        "type": "boolean"
                      },
                      "snap_to_end_of_unit": {
                        "default": false,
                        "title": "Snap To End Of Unit",
                        "type": "boolean"
                      },
                      "unit": {
                        "enum": [
                          "day",
                          "month",
                          "quarter",
                          "week",
                          "year"
                        ],
                        "title": "RelativeDateUnit",
                        "type": "string"
                      }
                    },
                    "required": [
                      "offset",
                      "unit"
                    ],
                    "title": "RelativeDate",
                    "type": "object"
                  },
                  {
                    "format": "date",
                    "type": "string"
                  },
                  {
                    "format": "date-time",
                    "type": "string"
                  }
                ],
                "title": "End"
              },
              "start": {
                "default": null,
                "description": "Inclusive lower bound: an ISO datetime or a legacy relative date offset.",
                "nullable": true,
                "oneOf": [
                  {
                    "additionalProperties": false,
                    "description": "Legacy reporting date offset, resolved in UTC when the report runs.\n\nWeeks start on Monday. Last 30 days uses day offsets -30 through 0,\nsnapped to the beginning and end of the day respectively.",
                    "properties": {
                      "offset": {
                        "title": "Offset",
                        "type": "integer"
                      },
                      "snap_to_beginning_of_unit": {
                        "default": false,
                        "title": "Snap To Beginning Of Unit",
                        "type": "boolean"
                      },
                      "snap_to_end_of_unit": {
                        "default": false,
                        "title": "Snap To End Of Unit",
                        "type": "boolean"
                      },
                      "unit": {
                        "enum": [
                          "day",
                          "month",
                          "quarter",
                          "week",
                          "year"
                        ],
                        "title": "RelativeDateUnit",
                        "type": "string"
                      }
                    },
                    "required": [
                      "offset",
                      "unit"
                    ],
                    "title": "RelativeDate",
                    "type": "object"
                  },
                  {
                    "format": "date",
                    "type": "string"
                  },
                  {
                    "format": "date-time",
                    "type": "string"
                  }
                ],
                "title": "Start"
              }
            },
            "title": "SemanticTimeRange",
            "type": "object"
          },
          "time_zone": {
            "default": null,
            "description": "IANA timezone of the report, for example 'America/Los_Angeles'. Timestamp days, groups, and relative ranges use this zone; calendar dates do not shift. Defaults to UTC. Set it only when the user asks for a timezone; never infer one.",
            "nullable": true,
            "title": "Time Zone",
            "type": "string"
          },
          "top_groups": {
            "additionalProperties": false,
            "default": null,
            "description": "Legacy input: migrates to max_groups per dimension and ranking_order_by.",
            "nullable": true,
            "properties": {
              "dimensions": {
                "description": "Historical selected axes, retained as migration history. Execution ranks every selected non-time dimension independently.",
                "items": {
                  "type": "string"
                },
                "maxItems": 5,
                "minItems": 1,
                "title": "Dimensions",
                "type": "array"
              },
              "limit": {
                "description": "Historical group count; migrates to max_groups for every selected non-time dimension. Any flat query limit submitted alongside is dropped.",
                "maximum": 100,
                "minimum": 1,
                "title": "Limit",
                "type": "integer"
              },
              "order_by": {
                "description": "Selected measure outputs used to rank the groups.",
                "items": {
                  "additionalProperties": false,
                  "description": "Order by a selected dimension or measure (by semantic name).",
                  "properties": {
                    "dir": {
                      "default": "desc",
                      "enum": [
                        "asc",
                        "desc"
                      ],
                      "title": "OrderDir",
                      "type": "string"
                    },
                    "field": {
                      "maxLength": 200,
                      "minLength": 1,
                      "title": "Field",
                      "type": "string"
                    }
                  },
                  "required": [
                    "field"
                  ],
                  "title": "OrderByClause",
                  "type": "object"
                },
                "maxItems": 5,
                "minItems": 1,
                "title": "Order By",
                "type": "array"
              }
            },
            "required": [
              "dimensions",
              "limit",
              "order_by"
            ],
            "title": "TopGroupsClause",
            "type": "object"
          }
        },
        "required": [
          "dataset"
        ],
        "title": "ReportQuery",
        "type": "object"
      },
      "ReportingAmountCellV3": {
        "properties": {
          "amount": {
            "title": "Amount",
            "type": "number"
          },
          "cell_type": {
            "default": "AMOUNT",
            "enum": [
              "AMOUNT"
            ],
            "title": "Cell Type",
            "type": "string"
          },
          "currency": {
            "title": "Currency",
            "type": "string"
          }
        },
        "required": [
          "amount",
          "cell_type",
          "currency"
        ],
        "title": "ReportingAmountCellV3",
        "type": "object"
      },
      "ReportingApEventSummaryCellV3": {
        "properties": {
          "cell_type": {
            "default": "AP_EVENT_SUMMARY",
            "enum": [
              "AP_EVENT_SUMMARY"
            ],
            "title": "Cell Type",
            "type": "string"
          },
          "due_date": {
            "nullable": true,
            "title": "Due Date",
            "type": "string"
          },
          "entity_type": {
            "title": "Entity Type",
            "type": "string"
          },
          "invoice_number": {
            "nullable": true,
            "title": "Invoice Number",
            "type": "string"
          },
          "payee_logo": {
            "nullable": true,
            "title": "Payee Logo",
            "type": "string"
          },
          "payee_name": {
            "nullable": true,
            "title": "Payee Name",
            "type": "string"
          },
          "payee_uuid": {
            "nullable": true,
            "title": "Payee Uuid",
            "type": "string"
          },
          "received_date": {
            "title": "Received Date",
            "type": "string"
          }
        },
        "required": [
          "cell_type",
          "due_date",
          "entity_type",
          "invoice_number",
          "payee_logo",
          "payee_name",
          "payee_uuid",
          "received_date"
        ],
        "title": "ReportingApEventSummaryCellV3",
        "type": "object"
      },
      "ReportingBadgeCellV3": {
        "properties": {
          "cell_type": {
            "default": "BADGE",
            "enum": [
              "BADGE"
            ],
            "title": "Cell Type",
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/BadgeStatus"
          },
          "value": {
            "title": "Value",
            "type": "string"
          }
        },
        "required": [
          "cell_type",
          "status",
          "value"
        ],
        "title": "ReportingBadgeCellV3",
        "type": "object"
      },
      "ReportingBasicBooleanCellV3": {
        "properties": {
          "cell_type": {
            "default": "BOOLEAN",
            "enum": [
              "BOOLEAN"
            ],
            "title": "Cell Type",
            "type": "string"
          },
          "value": {
            "title": "Value",
            "type": "boolean"
          }
        },
        "required": [
          "cell_type",
          "value"
        ],
        "title": "ReportingBasicBooleanCellV3",
        "type": "object"
      },
      "ReportingBasicDateCellV3": {
        "properties": {
          "cell_type": {
            "default": "DATE",
            "enum": [
              "DATE"
            ],
            "title": "Cell Type",
            "type": "string"
          },
          "value": {
            "title": "Value",
            "type": "string"
          }
        },
        "required": [
          "cell_type",
          "value"
        ],
        "title": "ReportingBasicDateCellV3",
        "type": "object"
      },
      "ReportingBasicDatetimeCellV3": {
        "properties": {
          "cell_type": {
            "default": "DATETIME",
            "enum": [
              "DATETIME"
            ],
            "title": "Cell Type",
            "type": "string"
          },
          "value": {
            "title": "Value",
            "type": "string"
          }
        },
        "required": [
          "cell_type",
          "value"
        ],
        "title": "ReportingBasicDatetimeCellV3",
        "type": "object"
      },
      "ReportingBasicDecimalCellV3": {
        "deprecated": true,
        "properties": {
          "cell_type": {
            "default": "DECIMAL",
            "enum": [
              "DECIMAL"
            ],
            "title": "Cell Type",
            "type": "string"
          },
          "value": {
            "title": "Value",
            "type": "number"
          }
        },
        "required": [
          "cell_type",
          "value"
        ],
        "title": "ReportingBasicDecimalCellV3",
        "type": "object"
      },
      "ReportingBasicIntCellV3": {
        "deprecated": true,
        "properties": {
          "cell_type": {
            "default": "INT",
            "enum": [
              "INT"
            ],
            "title": "Cell Type",
            "type": "string"
          },
          "value": {
            "title": "Value",
            "type": "integer"
          }
        },
        "required": [
          "cell_type",
          "value"
        ],
        "title": "ReportingBasicIntCellV3",
        "type": "object"
      },
      "ReportingBudgetPathCellV3": {
        "properties": {
          "cell_type": {
            "default": "BUDGET_PATH",
            "enum": [
              "BUDGET_PATH"
            ],
            "title": "Cell Type",
            "type": "string"
          },
          "path": {
            "items": {
              "type": "string"
            },
            "title": "Path",
            "type": "array"
          }
        },
        "required": [
          "cell_type",
          "path"
        ],
        "title": "ReportingBudgetPathCellV3",
        "type": "object"
      },
      "ReportingBusinessCellV3": {
        "properties": {
          "business_name_dba": {
            "title": "Business Name Dba",
            "type": "string"
          },
          "cell_type": {
            "default": "BUSINESS",
            "enum": [
              "BUSINESS"
            ],
            "title": "Cell Type",
            "type": "string"
          },
          "search_tag_info": {
            "allOf": [
              {
                "$ref": "#/components/schemas/HydratedSearchTagInfo"
              }
            ],
            "nullable": true
          },
          "uuid": {
            "title": "Uuid",
            "type": "string"
          }
        },
        "required": [
          "business_name_dba",
          "cell_type",
          "search_tag_info",
          "uuid"
        ],
        "title": "ReportingBusinessCellV3",
        "type": "object"
      },
      "ReportingColumnType": {
        "enum": [
          "AP_EVENT_SUMMARY",
          "BADGE",
          "BOOLEAN",
          "BUDGET_PATH",
          "BUSINESS",
          "CARD",
          "CONSOLIDATED_DATE",
          "CONTRACT_RENEWAL_DATE",
          "CONTRACT_TOTAL_VALUE",
          "DATE",
          "DATETIME",
          "DECIMAL",
          "DURATION",
          "INTEGER",
          "MERCHANT",
          "METADATA",
          "PAYEE",
          "PERCENT",
          "PURCHASE_ORDER_SPEND_SUMMARY",
          "PURCHASE_ORDER_SUMMARY",
          "SPEND_AMOUNT",
          "STRING",
          "TASK_SNAPSHOT",
          "TRACKING_CATEGORY",
          "TRIP",
          "USER"
        ],
        "title": "ReportingColumnType",
        "type": "string"
      },
      "ReportingConsolidatedDateCellV3": {
        "properties": {
          "cell_type": {
            "default": "CONSOLIDATED_DATE",
            "enum": [
              "CONSOLIDATED_DATE"
            ],
            "title": "Cell Type",
            "type": "string"
          },
          "consolidated_date": {
            "title": "Consolidated Date",
            "type": "string"
          },
          "date_type": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/BillDateFilterType"
              },
              {
                "$ref": "#/components/schemas/ReimbursementDateFilterType"
              },
              {
                "$ref": "#/components/schemas/TransactionDateFilterType"
              }
            ],
            "title": "Date Type"
          },
          "date_type_display_name": {
            "title": "Date Type Display Name",
            "type": "string"
          }
        },
        "required": [
          "cell_type",
          "consolidated_date",
          "date_type",
          "date_type_display_name"
        ],
        "title": "ReportingConsolidatedDateCellV3",
        "type": "object"
      },
      "ReportingDataTableCellV3": {
        "properties": {
          "cell_data": {
            "discriminator": {
              "mapping": {
                "AMOUNT": "#/components/schemas/ReportingAmountCellV3",
                "AP_EVENT_SUMMARY": "#/components/schemas/ReportingApEventSummaryCellV3",
                "BADGE": "#/components/schemas/ReportingBadgeCellV3",
                "BOOLEAN": "#/components/schemas/ReportingBasicBooleanCellV3",
                "BUDGET_PATH": "#/components/schemas/ReportingBudgetPathCellV3",
                "BUSINESS": "#/components/schemas/ReportingBusinessCellV3",
                "CONSOLIDATED_DATE": "#/components/schemas/ReportingConsolidatedDateCellV3",
                "DATE": "#/components/schemas/ReportingBasicDateCellV3",
                "DATETIME": "#/components/schemas/ReportingBasicDatetimeCellV3",
                "DECIMAL": "#/components/schemas/ReportingBasicDecimalCellV3",
                "DURATION": "#/components/schemas/ReportingDurationCellV3",
                "INT": "#/components/schemas/ReportingBasicIntCellV3",
                "NUMBER": "#/components/schemas/ReportingNumberCellV3",
                "OTHER": "#/components/schemas/ReportingOtherCellV3",
                "PAYEE": "#/components/schemas/ReportingPayeeCellV3",
                "PERCENTAGE": "#/components/schemas/ReportingPercentageCellV3",
                "PURCHASE_ORDER_SPEND_SUMMARY": "#/components/schemas/ReportingPurchaseOrderSpendSummaryCellV3",
                "PURCHASE_ORDER_SUMMARY": "#/components/schemas/ReportingPurchaseOrderSummaryCellV3",
                "STRING": "#/components/schemas/ReportingStringCellV3",
                "TASK_SNAPSHOT": "#/components/schemas/ReportingTaskSnapshotCellV3",
                "TOTAL": "#/components/schemas/ReportingTotalCellV3",
                "TRIP": "#/components/schemas/ReportingTripCellV3",
                "USER": "#/components/schemas/ReportingUserCellV3"
              },
              "propertyName": "cell_type"
            },
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/ReportingAmountCellV3"
              },
              {
                "$ref": "#/components/schemas/ReportingApEventSummaryCellV3"
              },
              {
                "$ref": "#/components/schemas/ReportingBadgeCellV3"
              },
              {
                "$ref": "#/components/schemas/ReportingBasicBooleanCellV3"
              },
              {
                "$ref": "#/components/schemas/ReportingBasicDateCellV3"
              },
              {
                "$ref": "#/components/schemas/ReportingBasicDatetimeCellV3"
              },
              {
                "$ref": "#/components/schemas/ReportingBasicDecimalCellV3"
              },
              {
                "$ref": "#/components/schemas/ReportingBasicIntCellV3"
              },
              {
                "$ref": "#/components/schemas/ReportingBudgetPathCellV3"
              },
              {
                "$ref": "#/components/schemas/ReportingBusinessCellV3"
              },
              {
                "$ref": "#/components/schemas/ReportingConsolidatedDateCellV3"
              },
              {
                "$ref": "#/components/schemas/ReportingDurationCellV3"
              },
              {
                "$ref": "#/components/schemas/ReportingNumberCellV3"
              },
              {
                "$ref": "#/components/schemas/ReportingOtherCellV3"
              },
              {
                "$ref": "#/components/schemas/ReportingPayeeCellV3"
              },
              {
                "$ref": "#/components/schemas/ReportingPercentageCellV3"
              },
              {
                "$ref": "#/components/schemas/ReportingPurchaseOrderSpendSummaryCellV3"
              },
              {
                "$ref": "#/components/schemas/ReportingPurchaseOrderSummaryCellV3"
              },
              {
                "$ref": "#/components/schemas/ReportingStringCellV3"
              },
              {
                "$ref": "#/components/schemas/ReportingTaskSnapshotCellV3"
              },
              {
                "$ref": "#/components/schemas/ReportingTotalCellV3"
              },
              {
                "$ref": "#/components/schemas/ReportingTripCellV3"
              },
              {
                "$ref": "#/components/schemas/ReportingUserCellV3"
              }
            ],
            "title": "Cell Data"
          },
          "column_key": {
            "$ref": "#/components/schemas/ReportingDataTableColumnKey"
          },
          "identifier": {
            "default": null,
            "nullable": true,
            "title": "Identifier",
            "type": "string"
          }
        },
        "required": [
          "cell_data",
          "column_key"
        ],
        "title": "ReportingDataTableCellV3",
        "type": "object"
      },
      "ReportingDataTableColumn": {
        "properties": {
          "column_key": {
            "$ref": "#/components/schemas/ReportingDataTableColumnKey"
          },
          "identifier": {
            "default": null,
            "nullable": true,
            "title": "Identifier",
            "type": "string"
          }
        },
        "required": [
          "column_key",
          "identifier"
        ],
        "title": "ReportingDataTableColumn",
        "type": "object"
      },
      "ReportingDataTableColumnKey": {
        "description": "An enum of the keys for the columns in the reporting data table.",
        "title": "ReportingDataTableColumnKey",
        "type": "string",
        "x-extensible-enum": [
          "ACCOUNTING_CATEGORY",
          "ACCOUNTING_CATEGORY_CODE",
          "ACCOUNTING_STATUS",
          "ACCOUNTING_SYNC_TIME",
          "ACCOUNTING_VENDOR",
          "AI_SPEND_DAILY__API_KEY",
          "AI_SPEND_DAILY__API_KEY_ID",
          "AI_SPEND_DAILY__API_KEY_STATUS",
          "AI_SPEND_DAILY__API_KEY_TAG",
          "AI_SPEND_DAILY__API_KEY_TYPE",
          "AI_SPEND_DAILY__BUSINESS",
          "AI_SPEND_DAILY__BUSINESS_ID",
          "AI_SPEND_DAILY__CACHE_READ_TOKENS",
          "AI_SPEND_DAILY__CACHE_WRITE_TOKENS",
          "AI_SPEND_DAILY__CONFIGURATION",
          "AI_SPEND_DAILY__COST",
          "AI_SPEND_DAILY__CREDITS",
          "AI_SPEND_DAILY__CURRENT_DEPARTMENT",
          "AI_SPEND_DAILY__DEPARTMENT",
          "AI_SPEND_DAILY__ESTIMATED_COST",
          "AI_SPEND_DAILY__INPUT_TOKENS",
          "AI_SPEND_DAILY__INTELLIGENCE_TIER",
          "AI_SPEND_DAILY__MODEL",
          "AI_SPEND_DAILY__MODEL_DEVELOPER",
          "AI_SPEND_DAILY__MODEL_FAMILY",
          "AI_SPEND_DAILY__ORIGINAL_CURRENCY",
          "AI_SPEND_DAILY__OUTPUT_TOKENS",
          "AI_SPEND_DAILY__PEOPLE_ESTIMATED_COST",
          "AI_SPEND_DAILY__PEOPLE_WITH_AI_SPEND",
          "AI_SPEND_DAILY__PEOPLE_WITH_AI_USAGE",
          "AI_SPEND_DAILY__PRICING_TIER",
          "AI_SPEND_DAILY__PROVIDER",
          "AI_SPEND_DAILY__PROVIDER_API_KEY_STATUS",
          "AI_SPEND_DAILY__PROVIDER_KEY_ID",
          "AI_SPEND_DAILY__PROVIDER_MODEL",
          "AI_SPEND_DAILY__PROVIDER_USER_EMAIL",
          "AI_SPEND_DAILY__PROVIDER_USER_ID",
          "AI_SPEND_DAILY__REQUEST_COUNT",
          "AI_SPEND_DAILY__SOURCE",
          "AI_SPEND_DAILY__SPEND_PER_PERSON",
          "AI_SPEND_DAILY__TOTAL_TOKENS",
          "AI_SPEND_DAILY__USAGE_CHANNEL",
          "AI_SPEND_DAILY__USAGE_DATE",
          "AI_SPEND_DAILY__USER",
          "AI_SPEND_DAILY__WORKSPACE",
          "AI_SPEND_DAILY__WORKSPACE_ID",
          "AI_SPEND_DAILY__WORKSPACE_STATUS",
          "AI_SPEND_FACTS_DAILY__API_KEY_TAG",
          "AI_SPEND_FACTS_DAILY__BILLED_COST",
          "AI_SPEND_FACTS_DAILY__BILLING_API_KEY",
          "AI_SPEND_FACTS_DAILY__BILLING_API_KEY_ID",
          "AI_SPEND_FACTS_DAILY__BILLING_API_KEY_STATUS",
          "AI_SPEND_FACTS_DAILY__BILLING_CONFIGURATION",
          "AI_SPEND_FACTS_DAILY__BILLING_INTEGRATION_TYPE",
          "AI_SPEND_FACTS_DAILY__BILLING_PROVIDER_API_KEY_STATUS",
          "AI_SPEND_FACTS_DAILY__BILLING_PROVIDER_KEY_ID",
          "AI_SPEND_FACTS_DAILY__BILLING_WORKSPACE",
          "AI_SPEND_FACTS_DAILY__BILLING_WORKSPACE_ID",
          "AI_SPEND_FACTS_DAILY__BILLING_WORKSPACE_STATUS",
          "AI_SPEND_FACTS_DAILY__BUSINESS",
          "AI_SPEND_FACTS_DAILY__BUSINESS_ID",
          "AI_SPEND_FACTS_DAILY__COST_PER_MILLION_TOKENS",
          "AI_SPEND_FACTS_DAILY__CREDITS",
          "AI_SPEND_FACTS_DAILY__CURRENCY",
          "AI_SPEND_FACTS_DAILY__DEPARTMENT",
          "AI_SPEND_FACTS_DAILY__HISTORICAL_DEPARTMENT",
          "AI_SPEND_FACTS_DAILY__INPUT_TOKENS",
          "AI_SPEND_FACTS_DAILY__INTELLIGENCE_TIER",
          "AI_SPEND_FACTS_DAILY__MODEL",
          "AI_SPEND_FACTS_DAILY__MODEL_DEVELOPER",
          "AI_SPEND_FACTS_DAILY__MODEL_FAMILY",
          "AI_SPEND_FACTS_DAILY__OUTPUT_TOKENS",
          "AI_SPEND_FACTS_DAILY__PEOPLE_TOTAL_COST",
          "AI_SPEND_FACTS_DAILY__PEOPLE_WITH_AI_SPEND",
          "AI_SPEND_FACTS_DAILY__PEOPLE_WITH_AI_USAGE",
          "AI_SPEND_FACTS_DAILY__PRICED_TOKENS",
          "AI_SPEND_FACTS_DAILY__PRICED_TOKEN_COST",
          "AI_SPEND_FACTS_DAILY__PRICING_TIER",
          "AI_SPEND_FACTS_DAILY__PRODUCT",
          "AI_SPEND_FACTS_DAILY__PROVIDER",
          "AI_SPEND_FACTS_DAILY__PROVIDER_USER_EMAIL",
          "AI_SPEND_FACTS_DAILY__PROVIDER_USER_ID",
          "AI_SPEND_FACTS_DAILY__REQUEST_COUNT",
          "AI_SPEND_FACTS_DAILY__SOURCE",
          "AI_SPEND_FACTS_DAILY__SPEND_PER_PERSON",
          "AI_SPEND_FACTS_DAILY__SPEND_TYPE",
          "AI_SPEND_FACTS_DAILY__TOTAL_COST",
          "AI_SPEND_FACTS_DAILY__TOTAL_TOKENS",
          "AI_SPEND_FACTS_DAILY__USAGE_AMOUNT",
          "AI_SPEND_FACTS_DAILY__USAGE_API_KEY",
          "AI_SPEND_FACTS_DAILY__USAGE_API_KEY_ID",
          "AI_SPEND_FACTS_DAILY__USAGE_API_KEY_TYPE",
          "AI_SPEND_FACTS_DAILY__USAGE_CHANNEL",
          "AI_SPEND_FACTS_DAILY__USAGE_CONFIGURATION",
          "AI_SPEND_FACTS_DAILY__USAGE_DATE",
          "AI_SPEND_FACTS_DAILY__USAGE_INTEGRATION_TYPE",
          "AI_SPEND_FACTS_DAILY__USAGE_PROVIDER_KEY_ID",
          "AI_SPEND_FACTS_DAILY__USAGE_UNIT",
          "AI_SPEND_FACTS_DAILY__USER",
          "AI_TOKEN_AGGREGATED_COST__NAME",
          "AI_TOKEN_AGGREGATED_COST__PERIOD_END",
          "AI_TOKEN_AGGREGATED_COST__PERIOD_START",
          "AI_TOKEN_AGGREGATED_COST__TOTAL_COST",
          "AI_TOKEN_AGGREGATED_USAGE__CACHED_INPUT_TOKENS",
          "AI_TOKEN_AGGREGATED_USAGE__INPUT_TOKENS",
          "AI_TOKEN_AGGREGATED_USAGE__NAME",
          "AI_TOKEN_AGGREGATED_USAGE__OUTPUT_TOKENS",
          "AI_TOKEN_AGGREGATED_USAGE__PERIOD_END",
          "AI_TOKEN_AGGREGATED_USAGE__PERIOD_START",
          "AI_TOKEN_AGGREGATED_USAGE__TOTAL_TOKENS",
          "AI_TOKEN_API_KEYS__ACTIVE_SPEND_LIMIT_AMOUNT",
          "AI_TOKEN_API_KEYS__ACTIVE_SPEND_LIMIT_AUTO_LOCK_ENABLED",
          "AI_TOKEN_API_KEYS__ACTIVE_SPEND_LIMIT_CURRENT_SPEND",
          "AI_TOKEN_API_KEYS__ACTIVE_SPEND_LIMIT_ESTIMATED_DAYS",
          "AI_TOKEN_API_KEYS__ACTIVE_SPEND_LIMIT_INTERVAL",
          "AI_TOKEN_API_KEYS__ACTIVE_SPEND_LIMIT_NAME",
          "AI_TOKEN_API_KEYS__ACTIVE_SPEND_LIMIT_UUID",
          "AI_TOKEN_API_KEYS__API_KEY",
          "AI_TOKEN_API_KEYS__API_KEY_UUID",
          "AI_TOKEN_API_KEYS__CONFIGURATION_UUID",
          "AI_TOKEN_API_KEYS__HEALTH",
          "AI_TOKEN_API_KEYS__KEY_TYPE",
          "AI_TOKEN_API_KEYS__MAPPING_STATUS",
          "AI_TOKEN_API_KEYS__OWNER",
          "AI_TOKEN_API_KEYS__OWNER_EMAIL",
          "AI_TOKEN_API_KEYS__OWNER_USER_UUID",
          "AI_TOKEN_API_KEYS__PERIOD_SPEND",
          "AI_TOKEN_API_KEYS__PROVIDER",
          "AI_TOKEN_API_KEYS__PROVIDER_API_KEY_ID",
          "AI_TOKEN_API_KEYS__PROVIDER_CREATED_AT",
          "AI_TOKEN_API_KEYS__PROVIDER_KEY_HINT",
          "AI_TOKEN_API_KEYS__PROVIDER_LAST_USED_AT",
          "AI_TOKEN_API_KEYS__PROVIDER_PRINCIPAL_TYPE",
          "AI_TOKEN_API_KEYS__PROVIDER_SCOPE_NAME",
          "AI_TOKEN_API_KEYS__PROVIDER_SCOPE_TYPE",
          "AI_TOKEN_API_KEYS__RAMP_EVENT_HISTORY_UUID",
          "AI_TOKEN_API_KEYS__STATUS",
          "AI_TOKEN_API_KEYS__SYNCED_AT",
          "AI_TOKEN_API_KEYS__TAGS",
          "AI_TOKEN_BUSINESS_USAGE__BUSINESS",
          "AI_TOKEN_BUSINESS_USAGE__PEOPLE_WITH_AI_SPEND",
          "AI_TOKEN_BUSINESS_USAGE__PERIOD_CHANGE_PERCENT",
          "AI_TOKEN_BUSINESS_USAGE__PERIOD_SPEND",
          "AI_TOKEN_BUSINESS_USAGE__PRICE_PER_MILLION_TOKENS",
          "AI_TOKEN_BUSINESS_USAGE__PRICE_PER_MILLION_TOKENS_VS_PORTFOLIO_AVERAGE",
          "AI_TOKEN_BUSINESS_USAGE__SPEND_PER_PERSON",
          "AI_TOKEN_DEPARTMENT_USAGE__DEPARTMENT",
          "AI_TOKEN_DEPARTMENT_USAGE__PEOPLE_WITH_AI_SPEND",
          "AI_TOKEN_DEPARTMENT_USAGE__PERIOD_CHANGE_PERCENT",
          "AI_TOKEN_DEPARTMENT_USAGE__PERIOD_SPEND",
          "AI_TOKEN_DEPARTMENT_USAGE__PRICE_PER_MILLION_TOKENS",
          "AI_TOKEN_DEPARTMENT_USAGE__PRICE_PER_MILLION_TOKENS_VS_COMPANY_AVERAGE",
          "AI_TOKEN_DEPARTMENT_USAGE__SPEND_PER_PERSON",
          "AI_TOKEN_PEOPLE_USAGE__ACTIVE_SPEND_LIMIT_AMOUNT",
          "AI_TOKEN_PEOPLE_USAGE__ACTIVE_SPEND_LIMIT_AUTO_LOCK_ENABLED",
          "AI_TOKEN_PEOPLE_USAGE__ACTIVE_SPEND_LIMIT_CURRENT_SPEND",
          "AI_TOKEN_PEOPLE_USAGE__ACTIVE_SPEND_LIMIT_ESTIMATED_DAYS",
          "AI_TOKEN_PEOPLE_USAGE__ACTIVE_SPEND_LIMIT_INTERVAL",
          "AI_TOKEN_PEOPLE_USAGE__ACTIVE_SPEND_LIMIT_NAME",
          "AI_TOKEN_PEOPLE_USAGE__ACTIVE_SPEND_LIMIT_RESET",
          "AI_TOKEN_PEOPLE_USAGE__ACTIVE_SPEND_LIMIT_UTILIZATION",
          "AI_TOKEN_PEOPLE_USAGE__ACTIVE_SPEND_LIMIT_UUID",
          "AI_TOKEN_PEOPLE_USAGE__ANTHROPIC_SPEND",
          "AI_TOKEN_PEOPLE_USAGE__CURSOR_SPEND",
          "AI_TOKEN_PEOPLE_USAGE__DEPARTMENT",
          "AI_TOKEN_PEOPLE_USAGE__DEPARTMENT_UUID",
          "AI_TOKEN_PEOPLE_USAGE__EMAIL",
          "AI_TOKEN_PEOPLE_USAGE__IS_ANOMALOUS",
          "AI_TOKEN_PEOPLE_USAGE__IS_RAMP_USER",
          "AI_TOKEN_PEOPLE_USAGE__LIFECYCLE_STATUS",
          "AI_TOKEN_PEOPLE_USAGE__OPENAI_SPEND",
          "AI_TOKEN_PEOPLE_USAGE__PERIOD_CHANGE_PERCENT",
          "AI_TOKEN_PEOPLE_USAGE__PERIOD_SPEND",
          "AI_TOKEN_PEOPLE_USAGE__PERSON",
          "AI_TOKEN_PEOPLE_USAGE__PERSON_KEY",
          "AI_TOKEN_PEOPLE_USAGE__PREVIOUS_PERIOD_SPEND",
          "AI_TOKEN_PEOPLE_USAGE__PRICE_PER_MILLION_TOKENS",
          "AI_TOKEN_PEOPLE_USAGE__PROVIDER_USER_EMAIL",
          "AI_TOKEN_PEOPLE_USAGE__SEVERITY_SCORE",
          "AI_TOKEN_PEOPLE_USAGE__SHARE_OF_SPEND",
          "AI_TOKEN_PEOPLE_USAGE__SPEND_VS_AVERAGE",
          "AI_TOKEN_PEOPLE_USAGE__USER_UUID",
          "AI_TOKEN_SPEND__API_KEY",
          "AI_TOKEN_SPEND__API_KEY_ID",
          "AI_TOKEN_SPEND__ATTACHMENT_SEARCH_REQUESTS",
          "AI_TOKEN_SPEND__BUSINESS",
          "AI_TOKEN_SPEND__BUSINESS_ID",
          "AI_TOKEN_SPEND__CACHE_CREATION_1H_TOKENS",
          "AI_TOKEN_SPEND__CACHE_CREATION_5M_TOKENS",
          "AI_TOKEN_SPEND__CACHE_READ_TOKENS",
          "AI_TOKEN_SPEND__CACHE_WRITE_TOKENS",
          "AI_TOKEN_SPEND__CHARGED_EVENT_COUNT",
          "AI_TOKEN_SPEND__CODE_INTERPRETER_REQUESTS",
          "AI_TOKEN_SPEND__CONFIGURATION",
          "AI_TOKEN_SPEND__CONFIGURATION_ID",
          "AI_TOKEN_SPEND__COST_ESTIMATION_STATUS",
          "AI_TOKEN_SPEND__COST_USAGE_KIND",
          "AI_TOKEN_SPEND__CREDITS",
          "AI_TOKEN_SPEND__CURRENCY",
          "AI_TOKEN_SPEND__CUSTOMER_CHARGE_USD",
          "AI_TOKEN_SPEND__DEPARTMENT",
          "AI_TOKEN_SPEND__DEPARTMENT_ID",
          "AI_TOKEN_SPEND__ESTIMATED_COST",
          "AI_TOKEN_SPEND__EVENTS",
          "AI_TOKEN_SPEND__FILE_SEARCH_REQUESTS",
          "AI_TOKEN_SPEND__INPUT_TOKENS",
          "AI_TOKEN_SPEND__LINES_ADDED",
          "AI_TOKEN_SPEND__LINES_REMOVED",
          "AI_TOKEN_SPEND__MATCHED_USAGE_TOTAL",
          "AI_TOKEN_SPEND__MODEL",
          "AI_TOKEN_SPEND__ORGANIZATION_ID",
          "AI_TOKEN_SPEND__OUTPUT_TOKENS",
          "AI_TOKEN_SPEND__PRODUCT",
          "AI_TOKEN_SPEND__PROJECT_ID",
          "AI_TOKEN_SPEND__PROVIDER",
          "AI_TOKEN_SPEND__PROVIDER_API_KEY",
          "AI_TOKEN_SPEND__PROVIDER_USER_EMAIL",
          "AI_TOKEN_SPEND__PROVIDER_USER_ID",
          "AI_TOKEN_SPEND__RAW_MODEL_OR_PRODUCT",
          "AI_TOKEN_SPEND__REASONING_TOKENS",
          "AI_TOKEN_SPEND__REQUESTS",
          "AI_TOKEN_SPEND__ROUTER_API_KEY",
          "AI_TOKEN_SPEND__ROUTER_API_KEY_NAME",
          "AI_TOKEN_SPEND__ROUTER_TAG",
          "AI_TOKEN_SPEND__SERVICE_TIER",
          "AI_TOKEN_SPEND__SOURCE_ROW_ID",
          "AI_TOKEN_SPEND__SOURCE_TABLE",
          "AI_TOKEN_SPEND__TARGET_USAGE_ENDPOINT",
          "AI_TOKEN_SPEND__THREADS",
          "AI_TOKEN_SPEND__TOTAL_TOKENS",
          "AI_TOKEN_SPEND__TURNS",
          "AI_TOKEN_SPEND__USAGE_DATE",
          "AI_TOKEN_SPEND__USAGE_EVENT_COUNT",
          "AI_TOKEN_SPEND__USER",
          "AI_TOKEN_SPEND__USER_ID",
          "AI_TOKEN_SPEND__WEB_SEARCH_REQUESTS",
          "AI_TOKEN_SPEND__WORKSPACE_ID",
          "AI_TOKEN_SPEND__X_SEARCH_REQUESTS",
          "AMOUNT",
          "AMOUNT_PRO_RATA",
          "AMOUNT_TREND_QUARTERLY",
          "AMOUNT_TREND_TRAILING",
          "AMOUNT_USED",
          "APPROVAL_METADATA",
          "APPROVAL_POLICY",
          "APPROVAL_STATUS",
          "AP_APPROVAL_DECISIONS__APPROVER",
          "AP_APPROVAL_DECISIONS__BILL_APPROVAL_STATUS",
          "AP_APPROVAL_DECISIONS__BILL_ID",
          "AP_APPROVAL_DECISIONS__BUSINESS_ENTITY",
          "AP_APPROVAL_DECISIONS__BUSINESS_ID",
          "AP_APPROVAL_DECISIONS__DECIDED_AT",
          "AP_APPROVAL_DECISIONS__DECISION",
          "AP_APPROVAL_DECISIONS__ID",
          "AP_APPROVAL_DECISIONS__PAYEE",
          "AP_APPROVAL_DECISIONS__WAIT_TIME",
          "AP_EVENTS__ACCOUNTING_DATE",
          "AP_EVENTS__APPROVAL_STEP_TIME",
          "AP_EVENTS__APPROVAL_TO_PAID",
          "AP_EVENTS__APPROVAL_TO_PAYMENT_RELEASE",
          "AP_EVENTS__APPROVED_WITHIN_14_DAYS",
          "AP_EVENTS__AP_AGING_1_TO_30_DAYS_AMOUNT",
          "AP_EVENTS__AP_AGING_31_TO_60_DAYS_AMOUNT",
          "AP_EVENTS__AP_AGING_61_TO_90_DAYS_AMOUNT",
          "AP_EVENTS__AP_AGING_APPLIED_CREDIT_AMOUNT",
          "AP_EVENTS__AP_AGING_BUCKET",
          "AP_EVENTS__AP_AGING_CURRENT_AMOUNT",
          "AP_EVENTS__AP_AGING_DAYS_OUTSTANDING",
          "AP_EVENTS__AP_AGING_DUE_DATE",
          "AP_EVENTS__AP_AGING_EFFECTIVE_DATE",
          "AP_EVENTS__AP_AGING_ELIGIBLE",
          "AP_EVENTS__AP_AGING_OUTSTANDING_AMOUNT",
          "AP_EVENTS__AP_AGING_OVER_90_DAYS_AMOUNT",
          "AP_EVENTS__AP_AGING_REFERENCE",
          "AP_EVENTS__AP_EVENT_SUMMARY",
          "AP_EVENTS__ARCHIVED_WITHIN_14_DAYS",
          "AP_EVENTS__BILL_APPROVAL_DATE",
          "AP_EVENTS__BILL_APPROVAL_STATUS",
          "AP_EVENTS__BILL_CREATED_AT",
          "AP_EVENTS__BILL_CREATION_SOURCE",
          "AP_EVENTS__BILL_DUE_DATE",
          "AP_EVENTS__BILL_OUTSTANDING_AMOUNT",
          "AP_EVENTS__BILL_PAID_AT_DATE",
          "AP_EVENTS__BILL_PAYMENT_STATUS",
          "AP_EVENTS__BILL_STATUS",
          "AP_EVENTS__BUSINESS",
          "AP_EVENTS__BUSINESS_ENTITY",
          "AP_EVENTS__BUSINESS_ID",
          "AP_EVENTS__CREATOR",
          "AP_EVENTS__CURRENCY",
          "AP_EVENTS__DAYS_PAST_DUE",
          "AP_EVENTS__DAYS_TO_APPROVE",
          "AP_EVENTS__DAYS_TO_PAY",
          "AP_EVENTS__DELETED_AT",
          "AP_EVENTS__DEPARTMENT_ID",
          "AP_EVENTS__DUE_AGING_BUCKET",
          "AP_EVENTS__DYNAMIC_TRACKING_CATEGORY_OPTION",
          "AP_EVENTS__ENTITY_ID",
          "AP_EVENTS__ENTITY_TYPE",
          "AP_EVENTS__ID",
          "AP_EVENTS__INVOICE_DATE",
          "AP_EVENTS__INVOICE_NUMBER",
          "AP_EVENTS__INVOICE_RECEIVED_AT",
          "AP_EVENTS__LINE_ITEM_AMOUNT",
          "AP_EVENTS__LINE_ITEM_DESCRIPTION",
          "AP_EVENTS__LINE_ITEM_ID",
          "AP_EVENTS__LINE_ITEM_INDEX",
          "AP_EVENTS__LINE_ITEM_TYPE",
          "AP_EVENTS__LINE_ITEM_UNIT_PRICE",
          "AP_EVENTS__LINE_ITEM_UNIT_QUANTITY",
          "AP_EVENTS__METADATA",
          "AP_EVENTS__NEXT_APPROVERS",
          "AP_EVENTS__NO_ACTION_WITHIN_14_DAYS",
          "AP_EVENTS__OUTCOME_WITHIN_14_DAYS",
          "AP_EVENTS__OUTSTANDING_AMOUNT",
          "AP_EVENTS__OVERDUE_PAYMENT_DETAILS_MISSING",
          "AP_EVENTS__PAID_AMOUNT",
          "AP_EVENTS__PAYEE",
          "AP_EVENTS__PAYMENT_ACCOUNT",
          "AP_EVENTS__PAYMENT_DETAILS_FULFILLED_AT",
          "AP_EVENTS__PAYMENT_DETAILS_MISSING_ON_DUE_DATE",
          "AP_EVENTS__PAYMENT_DETAILS_REQUESTED_AT",
          "AP_EVENTS__RECEIVED_AGING_BUCKET",
          "AP_EVENTS__RECEIVED_DATE",
          "AP_EVENTS__REJECTED_BY",
          "AP_EVENTS__REJECTED_WITHIN_14_DAYS",
          "AP_EVENTS__TIME_IN_DRAFTS",
          "AP_EVENTS__TIME_TO_APPROVAL",
          "AP_EVENTS__TOTAL_AMOUNT",
          "AP_EVENTS__VENDOR_CREDIT_AVAILABLE_AMOUNT",
          "AP_EVENTS__VENDOR_ID",
          "AP_EVENTS__VENDOR_RESPONSE_TIME",
          "AP_EVENTS__WAS_REJECTED",
          "AP_OPERATIONS_METRICS__BUCKET",
          "AP_OPERATIONS_METRICS__CREATION_SOURCE_COUNT",
          "AP_OPERATIONS_METRICS__CREATION_SOURCE_SHARE",
          "AP_OPERATIONS_METRICS__METRIC",
          "AP_OPERATIONS_METRICS__METRIC_OUTPUT",
          "AP_OPERATIONS_METRICS__ROW_ID",
          "AP_OPERATIONS_METRICS__SOURCE",
          "AP_OPERATIONS__ACTIONED_WITHIN_7_DAYS",
          "AP_OPERATIONS__BILL_CREATED_AT",
          "AP_OPERATIONS__BILL_CREATOR",
          "AP_OPERATIONS__BUSINESS",
          "AP_OPERATIONS__BUSINESS_ENTITY",
          "AP_OPERATIONS__BUSINESS_ID",
          "AP_OPERATIONS__CREATION_SOURCE",
          "AP_OPERATIONS__DELETED_AT",
          "AP_OPERATIONS__DRAFT_CREATED_AT",
          "AP_OPERATIONS__EDITED_SECTIONS",
          "AP_OPERATIONS__EDIT_SECTION",
          "AP_OPERATIONS__EXCEPTION_REASON",
          "AP_OPERATIONS__EXCEPTION_REASONS",
          "AP_OPERATIONS__HAS_EDITS",
          "AP_OPERATIONS__ID",
          "AP_OPERATIONS__INVOICE_SUBMITTER",
          "AP_OPERATIONS__MATCHES_EXCEPTION_REASON",
          "AP_OPERATIONS__OUTCOME_WITHIN_7_DAYS",
          "AP_OPERATIONS__PAYEE",
          "AP_OPERATIONS__SECTION_EDITED",
          "AP_OPERATIONS__STATUS",
          "AP_OPERATIONS__TIME_IN_DRAFTS",
          "AR_INVOICES__AGING_BUCKET",
          "AR_INVOICES__BUSINESS",
          "AR_INVOICES__BUSINESS_ID",
          "AR_INVOICES__COLLECTION_STATUS",
          "AR_INVOICES__CURRENCY",
          "AR_INVOICES__CUSTOMER",
          "AR_INVOICES__DAYS_PAST_DUE",
          "AR_INVOICES__DAYS_TO_PAY",
          "AR_INVOICES__DELETED_AT",
          "AR_INVOICES__DSO_OUTSTANDING_AMOUNT",
          "AR_INVOICES__DSO_SALES_AMOUNT",
          "AR_INVOICES__DSO_WINDOW_DAYS",
          "AR_INVOICES__DUE_DATE",
          "AR_INVOICES__FULLY_PAID_AT",
          "AR_INVOICES__ID",
          "AR_INVOICES__INVOICE_AMOUNT",
          "AR_INVOICES__INVOICE_DATE",
          "AR_INVOICES__INVOICE_NUMBER",
          "AR_INVOICES__ISSUED_AT",
          "AR_INVOICES__OUTSTANDING_AMOUNT",
          "AR_INVOICES__SOURCE",
          "AR_INVOICES__STATUS",
          "ATTENDEE",
          "ATTENDEE_NAMES",
          "AUTOMATIC_FLAG_SEVERITY_TYPE",
          "BILL_CREATOR",
          "BILL_UUID",
          "BOOKINGS__AMOUNT",
          "BOOKINGS__BOOKED_BY_USER_ID",
          "BOOKINGS__BOOKING_APPROVAL_STATUS",
          "BOOKINGS__BOOKING_CHANNEL",
          "BOOKINGS__BOOKING_CREATED_AT",
          "BOOKINGS__BOOKING_LEAD_TIME_DAYS",
          "BOOKINGS__BOOKING_PLATFORM_STATUS",
          "BOOKINGS__BOOKING_RECIPIENT_TYPE",
          "BOOKINGS__BOOKING_REQUEST_AUTO_APPROVED",
          "BOOKINGS__BOOKING_REQUEST_CREATED_AT",
          "BOOKINGS__BOOKING_REQUEST_ID",
          "BOOKINGS__BOOKING_REQUEST_REBOOKS_BOOKING_UUID",
          "BOOKINGS__BOOKING_REQUEST_SOFT_APPROVED",
          "BOOKINGS__BOOKING_REQUEST_STATUS",
          "BOOKINGS__BUSINESS",
          "BOOKINGS__BUSINESS_ID",
          "BOOKINGS__CAR_AIR_CONDITIONING",
          "BOOKINGS__CAR_ALLOW_CANCELLATION",
          "BOOKINGS__CAR_BAGS",
          "BOOKINGS__CAR_COMPANY_CONFIRMATION_NUMBER",
          "BOOKINGS__CAR_CREDIT_CARD_REQUIRED",
          "BOOKINGS__CAR_DESCRIPTION",
          "BOOKINGS__CAR_DOORS",
          "BOOKINGS__CAR_DRIVER_AGE_REQUIRED",
          "BOOKINGS__CAR_DROPOFF_COUNTRY",
          "BOOKINGS__CAR_DROPOFF_STATE",
          "BOOKINGS__CAR_EXAMPLE",
          "BOOKINGS__CAR_FREE_CANCELLATION",
          "BOOKINGS__CAR_IS_DROPOFF_AIRPORT",
          "BOOKINGS__CAR_IS_PICKUP_AIRPORT",
          "BOOKINGS__CAR_PASSENGERS",
          "BOOKINGS__CAR_PAY_AT_BOOKING_AMOUNT",
          "BOOKINGS__CAR_PAY_AT_COUNTER_AMOUNT",
          "BOOKINGS__CAR_PICKUP_COUNTRY",
          "BOOKINGS__CAR_PICKUP_STATE",
          "BOOKINGS__CAR_PRICE_PER_RATE_UNIT",
          "BOOKINGS__CAR_RATE_TYPE",
          "BOOKINGS__CAR_RATE_UNIT",
          "BOOKINGS__CAR_RATE_UNIT_COUNT",
          "BOOKINGS__CAR_RENTAL_DAYS",
          "BOOKINGS__CAR_SIPP_CODE",
          "BOOKINGS__CAR_STRIKEOUT_PRICE",
          "BOOKINGS__CAR_TRANSMISSION",
          "BOOKINGS__CAR_UNLIMITED_MILEAGE_INCLUDED",
          "BOOKINGS__CREATED_AT",
          "BOOKINGS__DEPARTMENT",
          "BOOKINGS__DESTINATION",
          "BOOKINGS__END_DATE",
          "BOOKINGS__FLIGHT_AIRCRAFT_TYPES",
          "BOOKINGS__FLIGHT_ARRIVAL_AIRPORT_CITY",
          "BOOKINGS__FLIGHT_ARRIVAL_AIRPORT_CODE",
          "BOOKINGS__FLIGHT_ARRIVAL_AIRPORT_COUNTRY",
          "BOOKINGS__FLIGHT_ARRIVAL_AIRPORT_NAME",
          "BOOKINGS__FLIGHT_ARRIVAL_AIRPORT_TIMEZONE",
          "BOOKINGS__FLIGHT_ARRIVAL_TIME",
          "BOOKINGS__FLIGHT_BOOKING_REFERENCE",
          "BOOKINGS__FLIGHT_CARRIER_CODES",
          "BOOKINGS__FLIGHT_CONFIRMATION_NUMBERS",
          "BOOKINGS__FLIGHT_DEPARTURE_AIRPORT_CITY",
          "BOOKINGS__FLIGHT_DEPARTURE_AIRPORT_CODE",
          "BOOKINGS__FLIGHT_DEPARTURE_AIRPORT_COUNTRY",
          "BOOKINGS__FLIGHT_DEPARTURE_AIRPORT_NAME",
          "BOOKINGS__FLIGHT_DEPARTURE_AIRPORT_TIMEZONE",
          "BOOKINGS__FLIGHT_DEPARTURE_TIME",
          "BOOKINGS__FLIGHT_DURATION_MINUTES",
          "BOOKINGS__FLIGHT_EMISSIONS_KG_PER_TRAVELER",
          "BOOKINGS__FLIGHT_EMISSIONS_PERCENT_DIFFERENCE_FROM_TYPICAL",
          "BOOKINGS__FLIGHT_FARE_AMOUNT",
          "BOOKINGS__FLIGHT_HAS_OFFLINE_EXCHANGE",
          "BOOKINGS__FLIGHT_IS_CANCELLABLE",
          "BOOKINGS__FLIGHT_IS_MODIFIABLE",
          "BOOKINGS__FLIGHT_IS_SPLIT_TICKET",
          "BOOKINGS__FLIGHT_MARKETING_CARRIER_NAMES",
          "BOOKINGS__FLIGHT_NUMBERS",
          "BOOKINGS__FLIGHT_NUMBER_OF_TICKETS",
          "BOOKINGS__FLIGHT_PROVIDER_MODIFICATION_CAPABILITY",
          "BOOKINGS__FLIGHT_REFUNDABILITY",
          "BOOKINGS__FLIGHT_SEGMENT_COUNT",
          "BOOKINGS__FLIGHT_SERVICE_CLASSES",
          "BOOKINGS__FLIGHT_SLICE_COUNT",
          "BOOKINGS__FLIGHT_STOP_COUNT",
          "BOOKINGS__FLIGHT_TAXES_AND_FEES_AMOUNT",
          "BOOKINGS__FLIGHT_TOTAL_AMOUNT_PER_TICKET",
          "BOOKINGS__FLIGHT_TOTAL_EMISSIONS_KG",
          "BOOKINGS__FLIGHT_TYPE",
          "BOOKINGS__FLIGHT_TYPICAL_EMISSIONS_KG_PER_TRAVELER",
          "BOOKINGS__HAS_LOYALTY",
          "BOOKINGS__HOTEL_BATHROOM_SHARING",
          "BOOKINGS__HOTEL_BOARD_TYPE",
          "BOOKINGS__HOTEL_CANCELLATION_TERMS",
          "BOOKINGS__HOTEL_CHAIN_GROUP_NAME",
          "BOOKINGS__HOTEL_CHAIN_NAME",
          "BOOKINGS__HOTEL_CHECK_IN_DATE",
          "BOOKINGS__HOTEL_CHECK_OUT_DATE",
          "BOOKINGS__HOTEL_COUNTRY",
          "BOOKINGS__HOTEL_DEPOSIT_REQUIRED",
          "BOOKINGS__HOTEL_EARNS_LOYALTY_POINTS",
          "BOOKINGS__HOTEL_FEES_INCLUDED",
          "BOOKINGS__HOTEL_IS_CANCELLABLE",
          "BOOKINGS__HOTEL_LOYALTY_PROGRAM_REQUIRED",
          "BOOKINGS__HOTEL_MODIFIABILITY",
          "BOOKINGS__HOTEL_NAME",
          "BOOKINGS__HOTEL_NEGOTIATED_RATE",
          "BOOKINGS__HOTEL_NIGHTS",
          "BOOKINGS__HOTEL_NUMBER_OF_ROOMS",
          "BOOKINGS__HOTEL_PAYMENT_BUCKET",
          "BOOKINGS__HOTEL_PAYMENT_TYPE",
          "BOOKINGS__HOTEL_PERCENT_SAVED",
          "BOOKINGS__HOTEL_POSTPAID_TOTAL_AMOUNT",
          "BOOKINGS__HOTEL_PREPAID_TOTAL_AMOUNT",
          "BOOKINGS__HOTEL_PROPERTY_TYPE",
          "BOOKINGS__HOTEL_REFUNDABILITY",
          "BOOKINGS__HOTEL_ROOM_CATEGORY",
          "BOOKINGS__HOTEL_ROOM_NAME",
          "BOOKINGS__HOTEL_ROOM_SHARING",
          "BOOKINGS__HOTEL_STAR_RATING",
          "BOOKINGS__HOTEL_STATE",
          "BOOKINGS__HOTEL_STRIKETHROUGH_PRICE",
          "BOOKINGS__HOTEL_SUBTOTAL_AMOUNT",
          "BOOKINGS__HOTEL_TAXES_AMOUNT",
          "BOOKINGS__HOTEL_TAXES_INCLUDED",
          "BOOKINGS__HOTEL_UUID",
          "BOOKINGS__ID",
          "BOOKINGS__IS_APPROVED_EXCEPTION",
          "BOOKINGS__IS_OUT_OF_POLICY",
          "BOOKINGS__MARKET_RATE_AT_REQUEST_TIME",
          "BOOKINGS__MERCHANT",
          "BOOKINGS__METADATA",
          "BOOKINGS__POLICY_AGENT_DESCRIPTION",
          "BOOKINGS__POLICY_AGENT_IN_POLICY",
          "BOOKINGS__POLICY_AGENT_VIOLATED_RULES",
          "BOOKINGS__ROUTE",
          "BOOKINGS__SERVICING_TMC",
          "BOOKINGS__START_DATE",
          "BOOKINGS__TRAVELER_NAME",
          "BOOKINGS__TRAVEL_POLICY_VIOLATION_TYPES",
          "BOOKINGS__TYPE",
          "BOOKING_ID",
          "BUDGET_AMOUNT",
          "BUDGET_NON_RAMP_ENTITY",
          "BUDGET_OWNERS",
          "BUDGET_PATH",
          "BUDGET_USER_DEFINED_CATEGORY",
          "BUSINESS",
          "CARD",
          "CARD_ACCEPTOR",
          "CARD_LAST_FOUR",
          "CARD_TYPE",
          "CASHBACK",
          "CATEGORY",
          "COALESCED_ACCOUNTING_TRACKING_CATEGORY_SELECTIONS",
          "COALESCED_TRACKING_CATEGORIES",
          "COALESCED_TRACKING_CATEGORIES_WITH_NAME",
          "COMMITTED_AMOUNT",
          "COMPLIANCE_FLAG",
          "COMPLIANCE_FLAGS",
          "CONSOLIDATED_DATE",
          "CONTRACT_RENEWAL_DATE",
          "CONTRACT_TOTAL_VALUE",
          "COUNT",
          "COUNT_DISTINCT_BUSINESS",
          "CREATION_SOURCE",
          "CURRENCY",
          "DATE",
          "DEPARTMENT",
          "DEPARTMENT_CROSS_BUSINESS",
          "EMPLOYEE_ID",
          "ENTITY",
          "ERP_FINANCIAL_STATEMENT__ACCOUNT_ID",
          "ERP_FINANCIAL_STATEMENT__ACCOUNT_NUMBER",
          "ERP_FINANCIAL_STATEMENT__AMOUNT",
          "ERP_FINANCIAL_STATEMENT__CREDIT",
          "ERP_FINANCIAL_STATEMENT__DEBIT",
          "ERP_FINANCIAL_STATEMENT__DEPTH",
          "ERP_FINANCIAL_STATEMENT__LABEL",
          "ERP_FINANCIAL_STATEMENT__PARENT_ROW_ID",
          "ERP_FINANCIAL_STATEMENT__ROW_ID",
          "ERP_FINANCIAL_STATEMENT__ROW_TYPE",
          "ERP_FINANCIAL_STATEMENT__SYSTEM_KEY",
          "ERP_GENERAL_LEDGER__ACCOUNT_ACCOUNT_CLASSIFICATION",
          "ERP_GENERAL_LEDGER__ACCOUNT_ACCOUNT_ID",
          "ERP_GENERAL_LEDGER__ACCOUNT_ACCOUNT_NAME",
          "ERP_GENERAL_LEDGER__ACCOUNT_ACCOUNT_NUMBER",
          "ERP_GENERAL_LEDGER__ACCOUNT_IS_INACTIVE",
          "ERP_GENERAL_LEDGER__ACCOUNT_NORMAL_BALANCE",
          "ERP_GENERAL_LEDGER__ACCOUNT_PROFIT_AND_LOSS_SECTION",
          "ERP_GENERAL_LEDGER__BUSINESS",
          "ERP_GENERAL_LEDGER__POSTING_LINE_ACCOUNT_CLASSIFICATION_AT_POST",
          "ERP_GENERAL_LEDGER__POSTING_LINE_ACCOUNT_ID",
          "ERP_GENERAL_LEDGER__POSTING_LINE_CREDIT_AMOUNT",
          "ERP_GENERAL_LEDGER__POSTING_LINE_DEBIT_AMOUNT",
          "ERP_GENERAL_LEDGER__POSTING_LINE_DEBIT_MINUS_CREDIT",
          "ERP_GENERAL_LEDGER__POSTING_LINE_DOCUMENT_NUMBER",
          "ERP_GENERAL_LEDGER__POSTING_LINE_IS_VOIDED",
          "ERP_GENERAL_LEDGER__POSTING_LINE_LINE_MEMO",
          "ERP_GENERAL_LEDGER__POSTING_LINE_LINE_NUMBER",
          "ERP_GENERAL_LEDGER__POSTING_LINE_POSTING_DATE",
          "ERP_GENERAL_LEDGER__POSTING_LINE_TRANSACTION_ID",
          "ERP_GENERAL_LEDGER__POSTING_LINE_TRANSACTION_MEMO",
          "ERP_GENERAL_LEDGER__POSTING_LINE_TRANSACTION_TYPE",
          "EXPENSE_POLICY_STATUS",
          "FLIGHT_TRANSACTIONS__AIRLINE",
          "FLIGHT_TRANSACTIONS__AMOUNT",
          "FLIGHT_TRANSACTIONS__BUSINESS_ID",
          "FLIGHT_TRANSACTIONS__CARD",
          "FLIGHT_TRANSACTIONS__DEPARTMENT",
          "FLIGHT_TRANSACTIONS__DOCUMENT_TYPE",
          "FLIGHT_TRANSACTIONS__EMD_NUMBER",
          "FLIGHT_TRANSACTIONS__EMD_TYPE",
          "FLIGHT_TRANSACTIONS__FLIGHT_CONFIRMATION_NUMBERS",
          "FLIGHT_TRANSACTIONS__ID",
          "FLIGHT_TRANSACTIONS__INVOICE_NUMBER",
          "FLIGHT_TRANSACTIONS__METADATA",
          "FLIGHT_TRANSACTIONS__ORIGINAL_AMOUNT",
          "FLIGHT_TRANSACTIONS__ORIGINAL_CURRENCY",
          "FLIGHT_TRANSACTIONS__ORIGINAL_TICKET_NUMBER",
          "FLIGHT_TRANSACTIONS__PAYMENT_METHOD",
          "FLIGHT_TRANSACTIONS__PNR_LOCATOR",
          "FLIGHT_TRANSACTIONS__ROUTE",
          "FLIGHT_TRANSACTIONS__TICKET_NUMBER",
          "FLIGHT_TRANSACTIONS__TRANSACTION_DATE",
          "FLIGHT_TRANSACTIONS__TRANSACTION_TYPE",
          "FLIGHT_TRANSACTIONS__TRAVELER",
          "FULL_NAME",
          "FUNDING_AMOUNT",
          "HAS_PAYMENT_INFO",
          "HAS_TAX_INFO",
          "HEALTHCARE_PROVIDER",
          "HIBOB__DYNAMIC_BOOLEAN",
          "HIBOB__DYNAMIC_DATE",
          "HIBOB__DYNAMIC_DATETIME",
          "HIBOB__DYNAMIC_DECIMAL",
          "HIBOB__DYNAMIC_FLOAT",
          "HIBOB__DYNAMIC_STRING",
          "HIBOB__EMPLOYEE_DISPLAY_NAME",
          "HIBOB__EMPLOYEE_EMAIL",
          "HIBOB__EMPLOYEE_FIRST_NAME",
          "HIBOB__EMPLOYEE_ID",
          "HIBOB__EMPLOYEE_SURNAME",
          "HIBOB__EMPLOYEE_WORK_DEPARTMENT",
          "HIBOB__EMPLOYEE_WORK_DIRECT_REPORTS",
          "HIBOB__EMPLOYEE_WORK_EMPLOYEE_ID_IN_COMPANY",
          "HIBOB__EMPLOYEE_WORK_INDIRECT_REPORTS",
          "HIBOB__EMPLOYEE_WORK_IS_MANAGER",
          "HIBOB__EMPLOYEE_WORK_MOBILE",
          "HIBOB__EMPLOYEE_WORK_ORIGINAL_START_DATE",
          "HIBOB__EMPLOYEE_WORK_PHONE",
          "HIBOB__EMPLOYEE_WORK_REPORTS_TO_DISPLAY_NAME",
          "HIBOB__EMPLOYEE_WORK_REPORTS_TO_EMAIL",
          "HIBOB__EMPLOYEE_WORK_REPORTS_TO_ID",
          "HIBOB__EMPLOYEE_WORK_SITE",
          "HIBOB__EMPLOYEE_WORK_START_DATE",
          "HIBOB__EMPLOYEE_WORK_TENURE_DURATION_YEARS",
          "HIBOB__EMPLOYEE_WORK_TITLE",
          "HUBSPOT__DEAL_DEAL_ID",
          "HUBSPOT__DEAL_DEAL_PIPELINE_ID",
          "HUBSPOT__DEAL_DEAL_PIPELINE_STAGE_ID",
          "HUBSPOT__DEAL_OWNER_ID",
          "HUBSPOT__DEAL_PROPERTY_AMOUNT",
          "HUBSPOT__DEAL_PROPERTY_AMOUNT_IN_HOME_CURRENCY",
          "HUBSPOT__DEAL_PROPERTY_CLOSEDATE",
          "HUBSPOT__DEAL_PROPERTY_CREATEDATE",
          "HUBSPOT__DEAL_PROPERTY_DAYS_TO_CLOSE",
          "HUBSPOT__DEAL_PROPERTY_DEALNAME",
          "HUBSPOT__DEAL_PROPERTY_DEALTYPE",
          "HUBSPOT__DEAL_PROPERTY_HS_ANALYTICS_SOURCE",
          "HUBSPOT__DEAL_PROPERTY_HS_DEAL_STAGE_PROBABILITY",
          "HUBSPOT__DEAL_PROPERTY_HS_FORECAST_AMOUNT",
          "HUBSPOT__DEAL_PROPERTY_HS_IS_CLOSED",
          "HUBSPOT__DEAL_PROPERTY_HS_IS_CLOSED_LOST",
          "HUBSPOT__DEAL_PROPERTY_HS_IS_CLOSED_WON",
          "HUBSPOT__DEAL_PROPERTY_HS_PROJECTED_AMOUNT_IN_HOME_CURRENCY",
          "HUBSPOT__DYNAMIC_BOOLEAN",
          "HUBSPOT__DYNAMIC_DATE",
          "HUBSPOT__DYNAMIC_DATETIME",
          "HUBSPOT__DYNAMIC_DECIMAL",
          "HUBSPOT__DYNAMIC_FLOAT",
          "HUBSPOT__DYNAMIC_STRING",
          "HUBSPOT__OWNER_CREATED_AT",
          "HUBSPOT__OWNER_EMAIL",
          "HUBSPOT__OWNER_FIRST_NAME",
          "HUBSPOT__OWNER_IS_ACTIVE",
          "HUBSPOT__OWNER_LAST_NAME",
          "HUBSPOT__OWNER_OWNER_ID",
          "HUBSPOT__PIPELINE_ARCHIVED",
          "HUBSPOT__PIPELINE_CREATED_AT",
          "HUBSPOT__PIPELINE_LABEL",
          "HUBSPOT__PIPELINE_PIPELINE_ID",
          "HUBSPOT__STAGE_CREATED_AT",
          "HUBSPOT__STAGE_IS_CLOSED",
          "HUBSPOT__STAGE_LABEL",
          "HUBSPOT__STAGE_PIPELINE_ID",
          "HUBSPOT__STAGE_PROBABILITY",
          "HUBSPOT__STAGE_STAGE_ID",
          "ID",
          "INVOICE_NUMBER",
          "ISSUED_AMOUNT",
          "IS_FRAUD",
          "IS_OUT_OF_POLICY",
          "IS_PAID",
          "IS_PAID_V2",
          "IS_PER_DIEM_SPEND",
          "ITINERARIES__AMOUNT",
          "ITINERARIES__BOOKED_ON_RAMP",
          "ITINERARIES__BOOKING_PLATFORM_STATUS",
          "ITINERARIES__BOOKING_UUID",
          "ITINERARIES__BUSINESS",
          "ITINERARIES__BUSINESS_ID",
          "ITINERARIES__CAR_COMPANY_NAME",
          "ITINERARIES__CAR_DROPOFF_TIME",
          "ITINERARIES__CAR_ITINERARY_ID",
          "ITINERARIES__CAR_PICKUP_TIME",
          "ITINERARIES__CURRENCY",
          "ITINERARIES__DESTINATION",
          "ITINERARIES__ENTIRE_ITINERARY_END_TIME",
          "ITINERARIES__ENTIRE_ITINERARY_START_TIME",
          "ITINERARIES__FLIGHT_ITINERARY_ID",
          "ITINERARIES__FLIGHT_SEGMENT_ARRIVAL_AIRPORT_CITY",
          "ITINERARIES__FLIGHT_SEGMENT_ARRIVAL_AIRPORT_CODE",
          "ITINERARIES__FLIGHT_SEGMENT_ARRIVAL_AIRPORT_NAME",
          "ITINERARIES__FLIGHT_SEGMENT_ARRIVAL_AIRPORT_TIMEZONE",
          "ITINERARIES__FLIGHT_SEGMENT_ARRIVAL_TIME",
          "ITINERARIES__FLIGHT_SEGMENT_CARRIER",
          "ITINERARIES__FLIGHT_SEGMENT_CARRIER_CODE",
          "ITINERARIES__FLIGHT_SEGMENT_CONFIRMATION_NUMBER",
          "ITINERARIES__FLIGHT_SEGMENT_DEPARTURE_AIRPORT_CITY",
          "ITINERARIES__FLIGHT_SEGMENT_DEPARTURE_AIRPORT_CODE",
          "ITINERARIES__FLIGHT_SEGMENT_DEPARTURE_AIRPORT_NAME",
          "ITINERARIES__FLIGHT_SEGMENT_DEPARTURE_AIRPORT_TIMEZONE",
          "ITINERARIES__FLIGHT_SEGMENT_DEPARTURE_TIME",
          "ITINERARIES__FLIGHT_SEGMENT_FLIGHT_NUMBER",
          "ITINERARIES__FLIGHT_SEGMENT_ID",
          "ITINERARIES__FLIGHT_SEGMENT_SERVICE_CLASS",
          "ITINERARIES__FLIGHT_SLICE_MARKETING_CARRIER",
          "ITINERARIES__FLIGHT_SLICE_MARKETING_CARRIER_CODE",
          "ITINERARIES__FLIGHT_SLICE_MARKETING_CARRIER_LOGO_URL",
          "ITINERARIES__FLIGHT_TYPE",
          "ITINERARIES__HOTEL_CANCELLATION_TERMS",
          "ITINERARIES__HOTEL_CHAIN_GROUP_NAME",
          "ITINERARIES__HOTEL_CHAIN_NAME",
          "ITINERARIES__HOTEL_CHECK_IN_TIME",
          "ITINERARIES__HOTEL_CHECK_OUT_TIME",
          "ITINERARIES__HOTEL_ITINERARY_ID",
          "ITINERARIES__HOTEL_NAME",
          "ITINERARIES__HOTEL_REFUNDABILITY",
          "ITINERARIES__IS_BOOKED_ON_RAMP",
          "ITINERARIES__MERCHANT",
          "ITINERARIES__METADATA",
          "ITINERARIES__ROUTE",
          "ITINERARIES__SPEND_EVENT_CANONICAL_ID",
          "ITINERARIES__SPEND_TIME",
          "ITINERARIES__TRAVELER_NAME",
          "ITINERARIES__TYPE",
          "ITINERARIES__USER_ID",
          "ITINERARIES__UUID",
          "LINE_ITEM_INDEX",
          "LINE_ITEM_MEMO",
          "LOCATION",
          "MEMO",
          "MERCHANT",
          "METADATA",
          "NEXT_APPROVER_USER",
          "NEXT_APPROVER_USERS",
          "ORIGINAL_AMOUNT",
          "ORIGINAL_CURRENCY",
          "PAID_STATUS",
          "PAYEE",
          "PAYEE_NAME",
          "PAYMENT_TYPE",
          "PERCENT_OF_BUDGET",
          "PLANNING_BUDGETS__ACTUAL_AMOUNT",
          "PLANNING_BUDGETS__AMOUNT",
          "PLANNING_BUDGETS__AMOUNT_TYPE",
          "PLANNING_BUDGETS__BUDGET_DATE",
          "PLANNING_BUDGETS__BUDGET_ID",
          "PLANNING_BUDGETS__BUDGET_LINE_ID",
          "PLANNING_BUDGETS__BUSINESS_ID",
          "PLANNING_BUDGETS__COMMITTED_AMOUNT",
          "PLANNING_BUDGETS__CURRENCY",
          "PLANNING_BUDGETS__ID",
          "PLANNING_BUDGETS__IS_BUDGET_SPLIT",
          "PLANNING_BUDGETS__LINE_DIMENSION_VALUE",
          "PLANNING_BUDGETS__METADATA",
          "PLANNING_BUDGETS__ORIGINAL_AMOUNT",
          "PLANNING_BUDGETS__ORIGINAL_CURRENCY",
          "PLANNING_BUDGETS__PARENT_BUDGET_ID",
          "PLANNING_BUDGETS__PAYEE",
          "PLANNING_BUDGETS__PERCENT_OF_BUDGET",
          "PLANNING_BUDGETS__PERIOD_START",
          "PLANNING_BUDGETS__PLANNED_AMOUNT",
          "PLANNING_BUDGETS__PURCHASE_ORDER_ID",
          "PLANNING_BUDGETS__ROW_KIND",
          "PLANNING_BUDGETS__SOURCE_RECORD_ID",
          "PLANNING_BUDGETS__SPEND_DATE",
          "PLANNING_BUDGETS__SPEND_DIMENSION_VALUE",
          "PLANNING_BUDGETS__SPEND_TYPE",
          "PLANNING_BUDGETS__UNASSIGNED_ACTUAL_AMOUNT",
          "PLANNING_BUDGETS__USER",
          "PLANNING_BUDGETS__VARIANCE_AMOUNT",
          "POLICY__AMOUNT",
          "POLICY__APPROVAL_ACCURACY_PERCENTAGE",
          "POLICY__APPROVAL_MODE",
          "POLICY__APPROVER",
          "POLICY__BUSINESS",
          "POLICY__BUSINESS_ID",
          "POLICY__CATEGORY",
          "POLICY__COMPLIANCE_FLAG",
          "POLICY__DEPARTMENT",
          "POLICY__ENTITY_ID",
          "POLICY__FINAL_APPROVER",
          "POLICY__GOVERNING_POLICY",
          "POLICY__HAS_RECEIPT_AFFIDAVIT",
          "POLICY__HAS_REPAYMENT",
          "POLICY__ID",
          "POLICY__IN_POLICY_SPEND_PERCENTAGE",
          "POLICY__LOCATION_ID",
          "POLICY__MEMO",
          "POLICY__METADATA",
          "POLICY__PAYEE",
          "POLICY__POLICY_ASSESSMENT",
          "POLICY__POLICY_ASSESSMENT_RATIONALE",
          "POLICY__POLICY_VERSION_ID",
          "POLICY__RECEIPT_AVAILABILITY",
          "POLICY__RECEIPT_REQUIREMENT_STATE",
          "POLICY__RECEIPT_VERIFICATION_STATUS",
          "POLICY__REIMBURSEMENT_TYPE",
          "POLICY__REPAID_AMOUNT",
          "POLICY__REPAYMENT_AMOUNT_PERCENTAGE",
          "POLICY__REPAYMENT_REQUESTED_AMOUNT",
          "POLICY__REPAYMENT_REQUESTED_OR_REPAID_AMOUNT",
          "POLICY__REPORTING_DEPARTMENT_ID",
          "POLICY__REPORTING_USER_ID",
          "POLICY__REVIEWER_ACTION",
          "POLICY__REVIEW_PREDICTION_AGREEMENT",
          "POLICY__SPEND_TIME",
          "POLICY__SPEND_TYPE",
          "POLICY__TRANSACTION_REPAYMENT_STATUS",
          "POLICY__USER",
          "PREVIOUS_APPROVER_USER",
          "PREVIOUS_APPROVER_USERS",
          "PROCUREMENT_SPEND_INTENT",
          "PROCUREMENT_SPEND_REQUESTS__AMOUNT",
          "PROCUREMENT_SPEND_REQUESTS__APPROVAL_ELAPSED_TIME",
          "PROCUREMENT_SPEND_REQUESTS__APPROVED_AT",
          "PROCUREMENT_SPEND_REQUESTS__BUSINESS",
          "PROCUREMENT_SPEND_REQUESTS__BUSINESS_ID",
          "PROCUREMENT_SPEND_REQUESTS__CLOSED_WITHIN_15_DAYS",
          "PROCUREMENT_SPEND_REQUESTS__CLOSED_WITHIN_30_DAYS",
          "PROCUREMENT_SPEND_REQUESTS__CLOSED_WITHIN_5_DAYS",
          "PROCUREMENT_SPEND_REQUESTS__CLOSED_WITHIN_DAYS",
          "PROCUREMENT_SPEND_REQUESTS__CLOSED_WITHIN_DAYS_THRESHOLD",
          "PROCUREMENT_SPEND_REQUESTS__CREATED_AT",
          "PROCUREMENT_SPEND_REQUESTS__CREATED_BY_USER",
          "PROCUREMENT_SPEND_REQUESTS__CURRENCY",
          "PROCUREMENT_SPEND_REQUESTS__DECISION_DATE",
          "PROCUREMENT_SPEND_REQUESTS__DECISION_TIME_DAYS",
          "PROCUREMENT_SPEND_REQUESTS__ID",
          "PROCUREMENT_SPEND_REQUESTS__IS_RELEASE_REQUEST",
          "PROCUREMENT_SPEND_REQUESTS__METADATA",
          "PROCUREMENT_SPEND_REQUESTS__NAME",
          "PROCUREMENT_SPEND_REQUESTS__REQUEST_AGE_DAYS",
          "PROCUREMENT_SPEND_REQUESTS__REQUEST_STATUS",
          "PROCUREMENT_SPEND_REQUESTS__SPEND_INTENT",
          "PROCUREMENT_SPEND_REQUESTS__SPEND_INTENT_NAME",
          "PROCUREMENT_SPEND_REQUESTS__SPEND_REQUEST_TYPE",
          "PROCUREMENT_SPEND_REQUESTS__SUBMITTED_AT",
          "PROCUREMENT_SPEND_REQUESTS__USER_DEPARTMENT",
          "PROCUREMENT_SPEND_REQUESTS__UUID",
          "PROCUREMENT_SPEND_REQUESTS__VENDOR_NAME",
          "PROCUREMENT_SPEND_REQUESTS__VENDOR_STATUS",
          "PROCUREMENT_SPEND_REQUESTS__WORKFLOW_VERSION",
          "PROCUREMENT__BUSINESS",
          "PROCUREMENT__BUSINESS_ID",
          "PROCUREMENT__DYNAMIC_TRACKING_CATEGORY_OPTION",
          "PROCUREMENT__DYNAMIC_USER_CUSTOM_FIELD",
          "PROCUREMENT__INVOICED_SPEND_AMOUNT",
          "PROCUREMENT__IS_OVERSPENT",
          "PROCUREMENT__METADATA",
          "PROCUREMENT__OVERSPEND_AMOUNT",
          "PROCUREMENT__PAYEE",
          "PROCUREMENT__PURCHASE_ORDER_ACTUAL_SPEND_AMOUNT",
          "PROCUREMENT__PURCHASE_ORDER_AMOUNT",
          "PROCUREMENT__PURCHASE_ORDER_APPROVED_DATE",
          "PROCUREMENT__PURCHASE_ORDER_BILLED_AMOUNT",
          "PROCUREMENT__PURCHASE_ORDER_BILLING_VARIANCE",
          "PROCUREMENT__PURCHASE_ORDER_CARD_TRANSACTION_COUNT",
          "PROCUREMENT__PURCHASE_ORDER_CREATED_DATE",
          "PROCUREMENT__PURCHASE_ORDER_CREATION_SOURCE",
          "PROCUREMENT__PURCHASE_ORDER_CURRENCY",
          "PROCUREMENT__PURCHASE_ORDER_END_DATE",
          "PROCUREMENT__PURCHASE_ORDER_ENTITY",
          "PROCUREMENT__PURCHASE_ORDER_ID",
          "PROCUREMENT__PURCHASE_ORDER_LATEST_BILL_PAYMENT_DATE",
          "PROCUREMENT__PURCHASE_ORDER_LINE_ITEM_INDEX",
          "PROCUREMENT__PURCHASE_ORDER_LINKED_BILL_COUNT",
          "PROCUREMENT__PURCHASE_ORDER_LINKED_CONTRACT_LAST_DATE_TO_TERMINATE",
          "PROCUREMENT__PURCHASE_ORDER_LINKED_CONTRACT_TOTAL_VALUE",
          "PROCUREMENT__PURCHASE_ORDER_MEMO",
          "PROCUREMENT__PURCHASE_ORDER_NAME",
          "PROCUREMENT__PURCHASE_ORDER_NET_PAYMENT_TERMS",
          "PROCUREMENT__PURCHASE_ORDER_NUMBER",
          "PROCUREMENT__PURCHASE_ORDER_OUTSTANDING_AMOUNT",
          "PROCUREMENT__PURCHASE_ORDER_OWNER",
          "PROCUREMENT__PURCHASE_ORDER_OWNER_DEPARTMENT",
          "PROCUREMENT__PURCHASE_ORDER_OWNER_LOCATION",
          "PROCUREMENT__PURCHASE_ORDER_PAID_BILL_AMOUNT",
          "PROCUREMENT__PURCHASE_ORDER_PAID_BY_CARD_AMOUNT",
          "PROCUREMENT__PURCHASE_ORDER_PROMISE_DATE",
          "PROCUREMENT__PURCHASE_ORDER_RECURRENCE_PERIOD",
          "PROCUREMENT__PURCHASE_ORDER_SHIP_TO_ADDRESS",
          "PROCUREMENT__PURCHASE_ORDER_SPEND_REQUEST_ID",
          "PROCUREMENT__PURCHASE_ORDER_SPEND_SUMMARY",
          "PROCUREMENT__PURCHASE_ORDER_START_DATE",
          "PROCUREMENT__PURCHASE_ORDER_STATUS",
          "PROCUREMENT__PURCHASE_ORDER_SUMMARY",
          "PROCUREMENT__PURCHASE_ORDER_THREE_WAY_MATCH_ENABLED",
          "PROCUREMENT__PURCHASE_ORDER_TYPE",
          "PURCHASE_ORDER_NAME",
          "PURCHASE_ORDER_NUMBER",
          "RECEIPT_AVAILABILITY",
          "RECEIPT_VERIFICATION_STATUS",
          "REIMBURSEMENT_ACH_DESCRIPTION_HASH",
          "REIMBURSEMENT_DISTANCE",
          "REIMBURSEMENT_EXPECTED_PAYMENT_DATE",
          "REIMBURSEMENT_EXPENSE_GROUP",
          "REIMBURSEMENT_MERCHANT_NAME",
          "REIMBURSEMENT_PAID_AT",
          "REIMBURSEMENT_PAYEE_AMOUNT",
          "REIMBURSEMENT_PAYEE_CURRENCY",
          "REIMBURSEMENT_REVIEWED_AT",
          "REIMBURSEMENT_STATE",
          "REIMBURSEMENT_SUBMITTED_AT",
          "REIMBURSEMENT_TYPE",
          "REIMBURSEMENT_UUID",
          "REPAID_AMOUNT",
          "REPAYMENT_REQUESTED_AMOUNT",
          "REPAYMENT_REQUESTED_OR_REPAID_AMOUNT",
          "REPAYMENT_STATUS",
          "REPORTING_CURRENCY",
          "REVIEW_PREDICTION_AGREEMENT",
          "SALESFORCE__ACCOUNT_BILLING_COUNTRY",
          "SALESFORCE__ACCOUNT_CREATED_DATE",
          "SALESFORCE__ACCOUNT_ID",
          "SALESFORCE__ACCOUNT_INDUSTRY",
          "SALESFORCE__ACCOUNT_NAME",
          "SALESFORCE__ACCOUNT_NUMBER_OF_EMPLOYEES",
          "SALESFORCE__ACCOUNT_OWNER_ID",
          "SALESFORCE__ACCOUNT_PARENT_ID",
          "SALESFORCE__ACCOUNT_TYPE",
          "SALESFORCE__CAMPAIGN_ACTUAL_COST",
          "SALESFORCE__CAMPAIGN_BUDGETED_COST",
          "SALESFORCE__CAMPAIGN_CREATED_DATE",
          "SALESFORCE__CAMPAIGN_CURRENCY_ISO_CODE",
          "SALESFORCE__CAMPAIGN_END_DATE",
          "SALESFORCE__CAMPAIGN_EXPECTED_REVENUE",
          "SALESFORCE__CAMPAIGN_ID",
          "SALESFORCE__CAMPAIGN_IS_ACTIVE",
          "SALESFORCE__CAMPAIGN_NAME",
          "SALESFORCE__CAMPAIGN_NUMBER_OF_CONTACTS",
          "SALESFORCE__CAMPAIGN_NUMBER_OF_CONVERTED_LEADS",
          "SALESFORCE__CAMPAIGN_NUMBER_OF_LEADS",
          "SALESFORCE__CAMPAIGN_NUMBER_OF_OPPORTUNITIES",
          "SALESFORCE__CAMPAIGN_NUMBER_OF_RESPONSES",
          "SALESFORCE__CAMPAIGN_NUMBER_OF_WON_OPPORTUNITIES",
          "SALESFORCE__CAMPAIGN_OWNER_ID",
          "SALESFORCE__CAMPAIGN_START_DATE",
          "SALESFORCE__CAMPAIGN_STATUS",
          "SALESFORCE__CAMPAIGN_TYPE",
          "SALESFORCE__DYNAMIC_BOOLEAN",
          "SALESFORCE__DYNAMIC_DATE",
          "SALESFORCE__DYNAMIC_DATETIME",
          "SALESFORCE__DYNAMIC_DECIMAL",
          "SALESFORCE__DYNAMIC_FLOAT",
          "SALESFORCE__DYNAMIC_STRING",
          "SALESFORCE__LEAD_COMPANY",
          "SALESFORCE__LEAD_CONVERTED_ACCOUNT_ID",
          "SALESFORCE__LEAD_CONVERTED_DATE",
          "SALESFORCE__LEAD_CONVERTED_OPPORTUNITY_ID",
          "SALESFORCE__LEAD_CREATED_DATE",
          "SALESFORCE__LEAD_EMAIL",
          "SALESFORCE__LEAD_ID",
          "SALESFORCE__LEAD_INDUSTRY",
          "SALESFORCE__LEAD_IS_CONVERTED",
          "SALESFORCE__LEAD_LEAD_SOURCE",
          "SALESFORCE__LEAD_NAME",
          "SALESFORCE__LEAD_OWNER_ID",
          "SALESFORCE__LEAD_PHONE",
          "SALESFORCE__LEAD_STATUS",
          "SALESFORCE__OPPORTUNITY_ACCOUNT_ID",
          "SALESFORCE__OPPORTUNITY_AMOUNT",
          "SALESFORCE__OPPORTUNITY_CAMPAIGN_ID",
          "SALESFORCE__OPPORTUNITY_CLOSE_DATE",
          "SALESFORCE__OPPORTUNITY_CREATED_DATE",
          "SALESFORCE__OPPORTUNITY_CURRENCY_ISO_CODE",
          "SALESFORCE__OPPORTUNITY_ID",
          "SALESFORCE__OPPORTUNITY_IS_CLOSED",
          "SALESFORCE__OPPORTUNITY_IS_WON",
          "SALESFORCE__OPPORTUNITY_LEAD_SOURCE",
          "SALESFORCE__OPPORTUNITY_NAME",
          "SALESFORCE__OPPORTUNITY_OWNER_ID",
          "SALESFORCE__OPPORTUNITY_PROBABILITY",
          "SALESFORCE__OPPORTUNITY_STAGE_NAME",
          "SALESFORCE__OPPORTUNITY_TYPE",
          "SALESFORCE__USER_CREATED_DATE",
          "SALESFORCE__USER_EMAIL",
          "SALESFORCE__USER_ID",
          "SALESFORCE__USER_IS_ACTIVE",
          "SALESFORCE__USER_NAME",
          "SPEND_ALLOCATION",
          "SPEND_ALLOCATIONS__AUTO_LOCK_DATE",
          "SPEND_ALLOCATIONS__BUDGET_ROW_ID",
          "SPEND_ALLOCATIONS__BUSINESS_ID",
          "SPEND_ALLOCATIONS__CARDS_LAST_FOUR",
          "SPEND_ALLOCATIONS__CARDS_LINKED_COUNT",
          "SPEND_ALLOCATIONS__COUNT_ACCESS_USERS",
          "SPEND_ALLOCATIONS__COUNT_CO_OWNERS",
          "SPEND_ALLOCATIONS__COUNT_MEMBERS",
          "SPEND_ALLOCATIONS__CREATED_AT",
          "SPEND_ALLOCATIONS__CREATION_SOURCE",
          "SPEND_ALLOCATIONS__CURRENCY",
          "SPEND_ALLOCATIONS__CURRENT_LOCK_SOURCE",
          "SPEND_ALLOCATIONS__DEFAULT_MEMBER_LIMIT_AMOUNT",
          "SPEND_ALLOCATIONS__DISPLAY_NAME",
          "SPEND_ALLOCATIONS__FIRST_ARCHIVED_AT",
          "SPEND_ALLOCATIONS__FIRST_LOCKED_AT",
          "SPEND_ALLOCATIONS__FIRST_NON_OWNER_ADDED_TO_FUND_AT",
          "SPEND_ALLOCATIONS__HAS_CATEGORY_RESTRICTIONS",
          "SPEND_ALLOCATIONS__HAS_MERCHANT_RESTRICTIONS",
          "SPEND_ALLOCATIONS__ID",
          "SPEND_ALLOCATIONS__IS_CURRENTLY_LOCKED",
          "SPEND_ALLOCATIONS__IS_PRIMARY_CARD_ENABLED",
          "SPEND_ALLOCATIONS__IS_REIMBURSEMENTS_ENABLED",
          "SPEND_ALLOCATIONS__IS_VIRTUAL_CARD_ENABLED",
          "SPEND_ALLOCATIONS__LAST_USED",
          "SPEND_ALLOCATIONS__LATEST_ARCHIVED_AT",
          "SPEND_ALLOCATIONS__LATEST_LOCKED_AT",
          "SPEND_ALLOCATIONS__METADATA",
          "SPEND_ALLOCATIONS__OWNER",
          "SPEND_ALLOCATIONS__PHYSICAL_CARDS_LINKED_COUNT",
          "SPEND_ALLOCATIONS__SPEND_END_DATE",
          "SPEND_ALLOCATIONS__SPEND_FREQUENCY",
          "SPEND_ALLOCATIONS__SPEND_INTERVAL",
          "SPEND_ALLOCATIONS__SPEND_REQUEST_AMOUNT",
          "SPEND_ALLOCATIONS__SPEND_START_DATE",
          "SPEND_ALLOCATIONS__STATE",
          "SPEND_ALLOCATIONS__TERMINATED_AT",
          "SPEND_ALLOCATIONS__TRANSACTION_AMOUNT_LIMIT",
          "SPEND_ALLOCATIONS__UPDATED_AT",
          "SPEND_ALLOCATIONS__UUID",
          "SPEND_ALLOCATION_UUID",
          "SPEND_EVENT_CANONICAL_DATES",
          "SPEND_INTENT",
          "SPEND_OLAP__ACCOUNTING_DATE",
          "SPEND_OLAP__BILL_DUE_DATE",
          "SPEND_OLAP__BUSINESS",
          "SPEND_OLAP__CARD",
          "SPEND_OLAP__CARD_LAST_FOUR",
          "SPEND_OLAP__CARD_STATEMENT",
          "SPEND_OLAP__EXPENSE_GROUP",
          "SPEND_OLAP__FINAL_APPROVER",
          "SPEND_OLAP__HAS_SUBMISSION_EXCEPTION_REQUEST",
          "SPEND_OLAP__IS_ACCOUNTING_SYNCED",
          "SPEND_OLAP__IS_APPROVAL_PENDING",
          "SPEND_OLAP__IS_SYNC_READY",
          "SPEND_OLAP__MANAGER",
          "SPEND_OLAP__MARKED_READY_AT",
          "SPEND_OLAP__MARKED_READY_BY",
          "SPEND_OLAP__MCC_CATEGORY",
          "SPEND_OLAP__MERCHANT_CITY",
          "SPEND_OLAP__MERCHANT_STATE",
          "SPEND_OLAP__METADATA",
          "SPEND_OLAP__QUALIFIED_PAID_STATUS",
          "SPEND_OLAP__REIMBURSEMENT_EXPECTED_PAYMENT_DATE",
          "SPEND_OLAP__REIMBURSEMENT_PAID_AT",
          "SPEND_OLAP__REIMBURSEMENT_PAYMENT_ID",
          "SPEND_OLAP__REIMBURSEMENT_REVIEWED_AT",
          "SPEND_OLAP__REIMBURSEMENT_STATUS",
          "SPEND_OLAP__REIMBURSEMENT_SUBMITTED_AT",
          "SPEND_OLAP__SEMANTIC_BILL_DUE_DATE",
          "SPEND_OLAP__SEMANTIC_MARKED_READY_AT",
          "SPEND_OLAP__SEMANTIC_TRANSACTION_CLEARED_AT",
          "SPEND_OLAP__SPEND_EVENT_UUID",
          "SPEND_OLAP__TRANSACTION_CLEARED_AT",
          "SPEND_OLAP__USER_ROLE",
          "SPEND_OLAP__VENDOR_OWNERS",
          "SPEND_PROGRAMS__ACCOUNTING_AUTO_MARK_READY_RULE_ENABLED",
          "SPEND_PROGRAMS__ALLOWS_LINE_ITEM_ACCOUNTING_CODING",
          "SPEND_PROGRAMS__ALLOW_NEW_PAYEES_FOR_CUSTOM_PAYEE_GROUPS",
          "SPEND_PROGRAMS__AMOUNT",
          "SPEND_PROGRAMS__COUNT_CUSTOM_FORM_FIELDS",
          "SPEND_PROGRAMS__CREATED_AT",
          "SPEND_PROGRAMS__CREATED_BY_USER",
          "SPEND_PROGRAMS__CREATED_SOURCE",
          "SPEND_PROGRAMS__CURRENCY",
          "SPEND_PROGRAMS__CUSTOM_FORM_CREATED_AT",
          "SPEND_PROGRAMS__CUSTOM_FORM_UPDATED_AT",
          "SPEND_PROGRAMS__DEFAULT_SPEND_REQUEST_TYPE",
          "SPEND_PROGRAMS__DELETED_AT",
          "SPEND_PROGRAMS__DELETED_BY_USER",
          "SPEND_PROGRAMS__DESCRIPTION",
          "SPEND_PROGRAMS__HAS_CATEGORY_RESTRICTIONS",
          "SPEND_PROGRAMS__HAS_CUSTOM_FORM",
          "SPEND_PROGRAMS__HAS_MERCHANT_RESTRICTIONS",
          "SPEND_PROGRAMS__ID",
          "SPEND_PROGRAMS__INTAKE_OCR_ENABLED",
          "SPEND_PROGRAMS__ISSUE_PHYSICAL_CARD_IF_NEEDED",
          "SPEND_PROGRAMS__IS_AUTOMATIC_ISSUANCE",
          "SPEND_PROGRAMS__IS_PRIMARY_CARD_ENABLED",
          "SPEND_PROGRAMS__IS_REIMBURSEMENTS_ENABLED",
          "SPEND_PROGRAMS__IS_REQUESTABLE_ISSUANCE",
          "SPEND_PROGRAMS__IS_VIRTUAL_CARD_ENABLED",
          "SPEND_PROGRAMS__LAST_ACTING_USER",
          "SPEND_PROGRAMS__LOCK_DATE",
          "SPEND_PROGRAMS__NAME",
          "SPEND_PROGRAMS__OUTCOME_TYPE",
          "SPEND_PROGRAMS__PROGRAM_TYPE",
          "SPEND_PROGRAMS__SPEND_INTENT_GROUP_DESCRIPTION",
          "SPEND_PROGRAMS__SPEND_INTENT_GROUP_NAME",
          "SPEND_PROGRAMS__SPEND_INTENT_TEMPLATE_DESCRIPTION",
          "SPEND_PROGRAMS__SPEND_INTENT_TEMPLATE_FIXED_TEMPLATE_TYPE",
          "SPEND_PROGRAMS__SPEND_INTENT_TEMPLATE_NAME",
          "SPEND_PROGRAMS__SPEND_INTENT_TEMPLATE_TYPE",
          "SPEND_PROGRAMS__SPEND_INTENT_TYPE",
          "SPEND_PROGRAMS__SPEND_INTERVAL",
          "SPEND_PROGRAMS__STATUS",
          "SPEND_PROGRAMS__SUPPORTS_FLEXIBLE_SPEND_REQUEST_TYPE",
          "SPEND_PROGRAMS__THREE_WAY_MATCH_ENABLED",
          "SPEND_PROGRAMS__TRANSACTION_AMOUNT_LIMIT",
          "SPEND_PROGRAMS__UPDATED_AT",
          "SPEND_PROGRAMS__UUID",
          "SPEND_REQUEST_ID",
          "SPEND_TIME",
          "SPEND_TYPE",
          "SPLIT_SPEND_OLAP_UUID",
          "STRIPE__CHARGE_AMOUNT",
          "STRIPE__CHARGE_AMOUNT_REFUNDED",
          "STRIPE__CHARGE_BILLING_DETAIL_EMAIL",
          "STRIPE__CHARGE_BILLING_DETAIL_NAME",
          "STRIPE__CHARGE_CREATED",
          "STRIPE__CHARGE_CURRENCY",
          "STRIPE__CHARGE_CUSTOMER_ID",
          "STRIPE__CHARGE_DESCRIPTION",
          "STRIPE__CHARGE_FAILURE_CODE",
          "STRIPE__CHARGE_ID",
          "STRIPE__CHARGE_INVOICE_ID",
          "STRIPE__CHARGE_PAID",
          "STRIPE__CHARGE_RECEIPT_EMAIL",
          "STRIPE__CHARGE_REFUNDED",
          "STRIPE__CHARGE_STATUS",
          "STRIPE__CREDITNOTE_CREATED",
          "STRIPE__CREDITNOTE_CURRENCY",
          "STRIPE__CREDITNOTE_CUSTOMER_ID",
          "STRIPE__CREDITNOTE_ID",
          "STRIPE__CREDITNOTE_INVOICE_ID",
          "STRIPE__CREDITNOTE_REASON",
          "STRIPE__CREDITNOTE_STATUS",
          "STRIPE__CREDITNOTE_TOTAL",
          "STRIPE__CREDITNOTE_TYPE",
          "STRIPE__CUSTOMER_ADDRESS_COUNTRY",
          "STRIPE__CUSTOMER_BALANCE",
          "STRIPE__CUSTOMER_CREATED",
          "STRIPE__CUSTOMER_CURRENCY",
          "STRIPE__CUSTOMER_DELINQUENT",
          "STRIPE__CUSTOMER_EMAIL",
          "STRIPE__CUSTOMER_ID",
          "STRIPE__CUSTOMER_NAME",
          "STRIPE__CUSTOMER_PHONE",
          "STRIPE__DISPUTE_AMOUNT",
          "STRIPE__DISPUTE_CHARGE_ID",
          "STRIPE__DISPUTE_CREATED",
          "STRIPE__DISPUTE_CURRENCY",
          "STRIPE__DISPUTE_EVIDENCE_DETAILS_DUE_BY",
          "STRIPE__DISPUTE_ID",
          "STRIPE__DISPUTE_REASON",
          "STRIPE__DISPUTE_STATUS",
          "STRIPE__DYNAMIC_BOOLEAN",
          "STRIPE__DYNAMIC_DATE",
          "STRIPE__DYNAMIC_DATETIME",
          "STRIPE__DYNAMIC_DECIMAL",
          "STRIPE__DYNAMIC_FLOAT",
          "STRIPE__DYNAMIC_STRING",
          "STRIPE__INVOICE_AMOUNT_DUE",
          "STRIPE__INVOICE_AMOUNT_PAID",
          "STRIPE__INVOICE_AMOUNT_REMAINING",
          "STRIPE__INVOICE_BILLING_REASON",
          "STRIPE__INVOICE_COLLECTION_METHOD",
          "STRIPE__INVOICE_CREATED",
          "STRIPE__INVOICE_CURRENCY",
          "STRIPE__INVOICE_CUSTOMER_ID",
          "STRIPE__INVOICE_DUE_DATE",
          "STRIPE__INVOICE_ID",
          "STRIPE__INVOICE_NUMBER",
          "STRIPE__INVOICE_PAID",
          "STRIPE__INVOICE_STATUS",
          "STRIPE__INVOICE_STATUS_TRANSITIONS_PAID_AT",
          "STRIPE__INVOICE_SUBSCRIPTION_ID",
          "STRIPE__INVOICE_TAX",
          "STRIPE__INVOICE_TOTAL",
          "STRIPE__LINEITEM_AMOUNT",
          "STRIPE__LINEITEM_CURRENCY",
          "STRIPE__LINEITEM_DESCRIPTION",
          "STRIPE__LINEITEM_ID",
          "STRIPE__LINEITEM_INVOICE_ID",
          "STRIPE__LINEITEM_PERIOD_END",
          "STRIPE__LINEITEM_PERIOD_START",
          "STRIPE__LINEITEM_PRICE_ID",
          "STRIPE__LINEITEM_PRORATION",
          "STRIPE__LINEITEM_QUANTITY",
          "STRIPE__LINEITEM_SUBSCRIPTION_ID",
          "STRIPE__LINEITEM_TYPE",
          "STRIPE__PRICE_ACTIVE",
          "STRIPE__PRICE_CREATED",
          "STRIPE__PRICE_CURRENCY",
          "STRIPE__PRICE_ID",
          "STRIPE__PRICE_NICKNAME",
          "STRIPE__PRICE_PRODUCT_ID",
          "STRIPE__PRICE_RECURRING_INTERVAL",
          "STRIPE__PRICE_TYPE",
          "STRIPE__PRICE_UNIT_AMOUNT",
          "STRIPE__PRODUCT_ACTIVE",
          "STRIPE__PRODUCT_CREATED",
          "STRIPE__PRODUCT_DESCRIPTION",
          "STRIPE__PRODUCT_ID",
          "STRIPE__PRODUCT_NAME",
          "STRIPE__REFUND_AMOUNT",
          "STRIPE__REFUND_CHARGE_ID",
          "STRIPE__REFUND_CREATED",
          "STRIPE__REFUND_CURRENCY",
          "STRIPE__REFUND_ID",
          "STRIPE__REFUND_REASON",
          "STRIPE__REFUND_STATUS",
          "STRIPE__SUBSCRIPTION_CANCELED_AT",
          "STRIPE__SUBSCRIPTION_CANCEL_AT_PERIOD_END",
          "STRIPE__SUBSCRIPTION_CREATED",
          "STRIPE__SUBSCRIPTION_CURRENT_PERIOD_END",
          "STRIPE__SUBSCRIPTION_CUSTOMER_ID",
          "STRIPE__SUBSCRIPTION_ENDED_AT",
          "STRIPE__SUBSCRIPTION_ID",
          "STRIPE__SUBSCRIPTION_QUANTITY",
          "STRIPE__SUBSCRIPTION_START_DATE",
          "STRIPE__SUBSCRIPTION_STATUS",
          "SUBMISSION_POLICY_STATUS",
          "SUGGESTED_GL_CATEGORY",
          "TASK_SNAPSHOTS__AMOUNT",
          "TASK_SNAPSHOTS__APPROVAL_GROUP",
          "TASK_SNAPSHOTS__APPROVAL_INSTANCE_POLICY_ID",
          "TASK_SNAPSHOTS__ASSIGNEE",
          "TASK_SNAPSHOTS__ASSIGNEE_DEPARTMENT",
          "TASK_SNAPSHOTS__ASSIGNEE_LOCATION",
          "TASK_SNAPSHOTS__ASSIGNEE_MANAGER",
          "TASK_SNAPSHOTS__ASSIGNMENT_DATE",
          "TASK_SNAPSHOTS__BLANK_CANVAS_WORKFLOW_ID",
          "TASK_SNAPSHOTS__BUSINESS",
          "TASK_SNAPSHOTS__BUSINESS_ENTITY",
          "TASK_SNAPSHOTS__BUSINESS_ID",
          "TASK_SNAPSHOTS__COMPLETED_SLA_BREACHED",
          "TASK_SNAPSHOTS__COMPLETED_SLA_ELIGIBLE",
          "TASK_SNAPSHOTS__COMPLETION_DATE",
          "TASK_SNAPSHOTS__CURRENCY",
          "TASK_SNAPSHOTS__DISMISSED_DATE",
          "TASK_SNAPSHOTS__ENTITY_ID",
          "TASK_SNAPSHOTS__ID",
          "TASK_SNAPSHOTS__NODE_TITLE",
          "TASK_SNAPSHOTS__PAYEE",
          "TASK_SNAPSHOTS__PENDING_AGE",
          "TASK_SNAPSHOTS__SLA_HIT",
          "TASK_SNAPSHOTS__SLA_OVERAGE",
          "TASK_SNAPSHOTS__SLA_TIME",
          "TASK_SNAPSHOTS__SPEND_INTENT",
          "TASK_SNAPSHOTS__SPEND_REQUEST_ID",
          "TASK_SNAPSHOTS__TASK_SNAPSHOT",
          "TASK_SNAPSHOTS__TASK_STATUS",
          "TASK_SNAPSHOTS__TASK_TYPE",
          "TASK_SNAPSHOTS__TIME_TO_COMPLETE",
          "TASK_SNAPSHOTS__UUID",
          "TASK_SNAPSHOTS__WORKFLOW_VERSION",
          "TRACKING_CATEGORY_OPTION_ID_FROM_TRACKING_CATEGORY_ID",
          "TRANSACTION_CANONICAL_UUID",
          "TRANSACTION_SUBMISSION_POLICY",
          "TRAVEL_CATEGORY",
          "TRAVEL_DASHBOARD_SPEND_TYPE",
          "TRIP",
          "TRIPS__BUSINESS",
          "TRIPS__BUSINESS_ID",
          "TRIPS__DESCRIPTION",
          "TRIPS__DURATION",
          "TRIPS__END_DATE",
          "TRIPS__ID",
          "TRIPS__METADATA",
          "TRIPS__NAME",
          "TRIPS__START_DATE",
          "TRIPS__USER_ID",
          "UNPLANNED_AMOUNT",
          "URL",
          "USER",
          "USERS__DEPARTMENT",
          "USERS__EMAIL",
          "USERS__EMPLOYEE_ID",
          "USERS__EMPLOYEE_STATUS",
          "USERS__ENTITY",
          "USERS__JOINED_AT",
          "USERS__LOCATION",
          "USERS__MANAGER",
          "USERS__NAME",
          "USERS__ROLE",
          "USERS__UUID",
          "USER_CUSTOM_FIELD",
          "UUID",
          "VARIANCE_OF_BUDGET",
          "WALLET_TRANSFERS__AMOUNT",
          "WALLET_TRANSFERS__BUSINESS_ENTITY_ID",
          "WALLET_TRANSFERS__CURRENCY",
          "WALLET_TRANSFERS__DESCRIPTION",
          "WALLET_TRANSFERS__EFFECTIVE_AT",
          "WALLET_TRANSFERS__ID",
          "WALLET_TRANSFERS__METADATA",
          "WALLET_TRANSFERS__ORIGINATOR_NAME",
          "WALLET_TRANSFERS__PAYMENT_METHOD",
          "WALLET_TRANSFERS__TRANSFER_TYPE",
          "WALLET_TRANSFERS__USER",
          "WALLET_TRANSFERS__UUID",
          "WALLET_TRANSFERS__WALLET_ACCOUNT_ID"
        ]
      },
      "ReportingDataTableColumnKeyRequestBody": {
        "description": "An enum of the keys for the columns in the reporting data table.",
        "title": "ReportingDataTableColumnKey",
        "type": "string",
        "x-extensible-enum": [
          "ACCOUNTING_CATEGORY",
          "ACCOUNTING_CATEGORY_CODE",
          "ACCOUNTING_STATUS",
          "ACCOUNTING_SYNC_TIME",
          "ACCOUNTING_VENDOR",
          "AI_SPEND_DAILY__API_KEY",
          "AI_SPEND_DAILY__API_KEY_ID",
          "AI_SPEND_DAILY__API_KEY_STATUS",
          "AI_SPEND_DAILY__API_KEY_TAG",
          "AI_SPEND_DAILY__API_KEY_TYPE",
          "AI_SPEND_DAILY__BUSINESS",
          "AI_SPEND_DAILY__BUSINESS_ID",
          "AI_SPEND_DAILY__CACHE_READ_TOKENS",
          "AI_SPEND_DAILY__CACHE_WRITE_TOKENS",
          "AI_SPEND_DAILY__CONFIGURATION",
          "AI_SPEND_DAILY__COST",
          "AI_SPEND_DAILY__CREDITS",
          "AI_SPEND_DAILY__CURRENT_DEPARTMENT",
          "AI_SPEND_DAILY__DEPARTMENT",
          "AI_SPEND_DAILY__ESTIMATED_COST",
          "AI_SPEND_DAILY__INPUT_TOKENS",
          "AI_SPEND_DAILY__INTELLIGENCE_TIER",
          "AI_SPEND_DAILY__MODEL",
          "AI_SPEND_DAILY__MODEL_DEVELOPER",
          "AI_SPEND_DAILY__MODEL_FAMILY",
          "AI_SPEND_DAILY__ORIGINAL_CURRENCY",
          "AI_SPEND_DAILY__OUTPUT_TOKENS",
          "AI_SPEND_DAILY__PEOPLE_ESTIMATED_COST",
          "AI_SPEND_DAILY__PEOPLE_WITH_AI_SPEND",
          "AI_SPEND_DAILY__PEOPLE_WITH_AI_USAGE",
          "AI_SPEND_DAILY__PRICING_TIER",
          "AI_SPEND_DAILY__PROVIDER",
          "AI_SPEND_DAILY__PROVIDER_API_KEY_STATUS",
          "AI_SPEND_DAILY__PROVIDER_KEY_ID",
          "AI_SPEND_DAILY__PROVIDER_MODEL",
          "AI_SPEND_DAILY__PROVIDER_USER_EMAIL",
          "AI_SPEND_DAILY__PROVIDER_USER_ID",
          "AI_SPEND_DAILY__REQUEST_COUNT",
          "AI_SPEND_DAILY__SOURCE",
          "AI_SPEND_DAILY__SPEND_PER_PERSON",
          "AI_SPEND_DAILY__TOTAL_TOKENS",
          "AI_SPEND_DAILY__USAGE_CHANNEL",
          "AI_SPEND_DAILY__USAGE_DATE",
          "AI_SPEND_DAILY__USER",
          "AI_SPEND_DAILY__WORKSPACE",
          "AI_SPEND_DAILY__WORKSPACE_ID",
          "AI_SPEND_DAILY__WORKSPACE_STATUS",
          "AI_SPEND_FACTS_DAILY__API_KEY_TAG",
          "AI_SPEND_FACTS_DAILY__BILLED_COST",
          "AI_SPEND_FACTS_DAILY__BILLING_API_KEY",
          "AI_SPEND_FACTS_DAILY__BILLING_API_KEY_ID",
          "AI_SPEND_FACTS_DAILY__BILLING_API_KEY_STATUS",
          "AI_SPEND_FACTS_DAILY__BILLING_CONFIGURATION",
          "AI_SPEND_FACTS_DAILY__BILLING_INTEGRATION_TYPE",
          "AI_SPEND_FACTS_DAILY__BILLING_PROVIDER_API_KEY_STATUS",
          "AI_SPEND_FACTS_DAILY__BILLING_PROVIDER_KEY_ID",
          "AI_SPEND_FACTS_DAILY__BILLING_WORKSPACE",
          "AI_SPEND_FACTS_DAILY__BILLING_WORKSPACE_ID",
          "AI_SPEND_FACTS_DAILY__BILLING_WORKSPACE_STATUS",
          "AI_SPEND_FACTS_DAILY__BUSINESS",
          "AI_SPEND_FACTS_DAILY__BUSINESS_ID",
          "AI_SPEND_FACTS_DAILY__COST_PER_MILLION_TOKENS",
          "AI_SPEND_FACTS_DAILY__CREDITS",
          "AI_SPEND_FACTS_DAILY__CURRENCY",
          "AI_SPEND_FACTS_DAILY__DEPARTMENT",
          "AI_SPEND_FACTS_DAILY__HISTORICAL_DEPARTMENT",
          "AI_SPEND_FACTS_DAILY__INPUT_TOKENS",
          "AI_SPEND_FACTS_DAILY__INTELLIGENCE_TIER",
          "AI_SPEND_FACTS_DAILY__MODEL",
          "AI_SPEND_FACTS_DAILY__MODEL_DEVELOPER",
          "AI_SPEND_FACTS_DAILY__MODEL_FAMILY",
          "AI_SPEND_FACTS_DAILY__OUTPUT_TOKENS",
          "AI_SPEND_FACTS_DAILY__PEOPLE_TOTAL_COST",
          "AI_SPEND_FACTS_DAILY__PEOPLE_WITH_AI_SPEND",
          "AI_SPEND_FACTS_DAILY__PEOPLE_WITH_AI_USAGE",
          "AI_SPEND_FACTS_DAILY__PRICED_TOKENS",
          "AI_SPEND_FACTS_DAILY__PRICED_TOKEN_COST",
          "AI_SPEND_FACTS_DAILY__PRICING_TIER",
          "AI_SPEND_FACTS_DAILY__PRODUCT",
          "AI_SPEND_FACTS_DAILY__PROVIDER",
          "AI_SPEND_FACTS_DAILY__PROVIDER_USER_EMAIL",
          "AI_SPEND_FACTS_DAILY__PROVIDER_USER_ID",
          "AI_SPEND_FACTS_DAILY__REQUEST_COUNT",
          "AI_SPEND_FACTS_DAILY__SOURCE",
          "AI_SPEND_FACTS_DAILY__SPEND_PER_PERSON",
          "AI_SPEND_FACTS_DAILY__SPEND_TYPE",
          "AI_SPEND_FACTS_DAILY__TOTAL_COST",
          "AI_SPEND_FACTS_DAILY__TOTAL_TOKENS",
          "AI_SPEND_FACTS_DAILY__USAGE_AMOUNT",
          "AI_SPEND_FACTS_DAILY__USAGE_API_KEY",
          "AI_SPEND_FACTS_DAILY__USAGE_API_KEY_ID",
          "AI_SPEND_FACTS_DAILY__USAGE_API_KEY_TYPE",
          "AI_SPEND_FACTS_DAILY__USAGE_CHANNEL",
          "AI_SPEND_FACTS_DAILY__USAGE_CONFIGURATION",
          "AI_SPEND_FACTS_DAILY__USAGE_DATE",
          "AI_SPEND_FACTS_DAILY__USAGE_INTEGRATION_TYPE",
          "AI_SPEND_FACTS_DAILY__USAGE_PROVIDER_KEY_ID",
          "AI_SPEND_FACTS_DAILY__USAGE_UNIT",
          "AI_SPEND_FACTS_DAILY__USER",
          "AI_TOKEN_AGGREGATED_COST__NAME",
          "AI_TOKEN_AGGREGATED_COST__PERIOD_END",
          "AI_TOKEN_AGGREGATED_COST__PERIOD_START",
          "AI_TOKEN_AGGREGATED_COST__TOTAL_COST",
          "AI_TOKEN_AGGREGATED_USAGE__CACHED_INPUT_TOKENS",
          "AI_TOKEN_AGGREGATED_USAGE__INPUT_TOKENS",
          "AI_TOKEN_AGGREGATED_USAGE__NAME",
          "AI_TOKEN_AGGREGATED_USAGE__OUTPUT_TOKENS",
          "AI_TOKEN_AGGREGATED_USAGE__PERIOD_END",
          "AI_TOKEN_AGGREGATED_USAGE__PERIOD_START",
          "AI_TOKEN_AGGREGATED_USAGE__TOTAL_TOKENS",
          "AI_TOKEN_API_KEYS__ACTIVE_SPEND_LIMIT_AMOUNT",
          "AI_TOKEN_API_KEYS__ACTIVE_SPEND_LIMIT_AUTO_LOCK_ENABLED",
          "AI_TOKEN_API_KEYS__ACTIVE_SPEND_LIMIT_CURRENT_SPEND",
          "AI_TOKEN_API_KEYS__ACTIVE_SPEND_LIMIT_ESTIMATED_DAYS",
          "AI_TOKEN_API_KEYS__ACTIVE_SPEND_LIMIT_INTERVAL",
          "AI_TOKEN_API_KEYS__ACTIVE_SPEND_LIMIT_NAME",
          "AI_TOKEN_API_KEYS__ACTIVE_SPEND_LIMIT_UUID",
          "AI_TOKEN_API_KEYS__API_KEY",
          "AI_TOKEN_API_KEYS__API_KEY_UUID",
          "AI_TOKEN_API_KEYS__CONFIGURATION_UUID",
          "AI_TOKEN_API_KEYS__HEALTH",
          "AI_TOKEN_API_KEYS__KEY_TYPE",
          "AI_TOKEN_API_KEYS__MAPPING_STATUS",
          "AI_TOKEN_API_KEYS__OWNER",
          "AI_TOKEN_API_KEYS__OWNER_EMAIL",
          "AI_TOKEN_API_KEYS__OWNER_USER_UUID",
          "AI_TOKEN_API_KEYS__PERIOD_SPEND",
          "AI_TOKEN_API_KEYS__PROVIDER",
          "AI_TOKEN_API_KEYS__PROVIDER_API_KEY_ID",
          "AI_TOKEN_API_KEYS__PROVIDER_CREATED_AT",
          "AI_TOKEN_API_KEYS__PROVIDER_KEY_HINT",
          "AI_TOKEN_API_KEYS__PROVIDER_LAST_USED_AT",
          "AI_TOKEN_API_KEYS__PROVIDER_PRINCIPAL_TYPE",
          "AI_TOKEN_API_KEYS__PROVIDER_SCOPE_NAME",
          "AI_TOKEN_API_KEYS__PROVIDER_SCOPE_TYPE",
          "AI_TOKEN_API_KEYS__RAMP_EVENT_HISTORY_UUID",
          "AI_TOKEN_API_KEYS__STATUS",
          "AI_TOKEN_API_KEYS__SYNCED_AT",
          "AI_TOKEN_API_KEYS__TAGS",
          "AI_TOKEN_BUSINESS_USAGE__BUSINESS",
          "AI_TOKEN_BUSINESS_USAGE__PEOPLE_WITH_AI_SPEND",
          "AI_TOKEN_BUSINESS_USAGE__PERIOD_CHANGE_PERCENT",
          "AI_TOKEN_BUSINESS_USAGE__PERIOD_SPEND",
          "AI_TOKEN_BUSINESS_USAGE__PRICE_PER_MILLION_TOKENS",
          "AI_TOKEN_BUSINESS_USAGE__PRICE_PER_MILLION_TOKENS_VS_PORTFOLIO_AVERAGE",
          "AI_TOKEN_BUSINESS_USAGE__SPEND_PER_PERSON",
          "AI_TOKEN_DEPARTMENT_USAGE__DEPARTMENT",
          "AI_TOKEN_DEPARTMENT_USAGE__PEOPLE_WITH_AI_SPEND",
          "AI_TOKEN_DEPARTMENT_USAGE__PERIOD_CHANGE_PERCENT",
          "AI_TOKEN_DEPARTMENT_USAGE__PERIOD_SPEND",
          "AI_TOKEN_DEPARTMENT_USAGE__PRICE_PER_MILLION_TOKENS",
          "AI_TOKEN_DEPARTMENT_USAGE__PRICE_PER_MILLION_TOKENS_VS_COMPANY_AVERAGE",
          "AI_TOKEN_DEPARTMENT_USAGE__SPEND_PER_PERSON",
          "AI_TOKEN_PEOPLE_USAGE__ACTIVE_SPEND_LIMIT_AMOUNT",
          "AI_TOKEN_PEOPLE_USAGE__ACTIVE_SPEND_LIMIT_AUTO_LOCK_ENABLED",
          "AI_TOKEN_PEOPLE_USAGE__ACTIVE_SPEND_LIMIT_CURRENT_SPEND",
          "AI_TOKEN_PEOPLE_USAGE__ACTIVE_SPEND_LIMIT_ESTIMATED_DAYS",
          "AI_TOKEN_PEOPLE_USAGE__ACTIVE_SPEND_LIMIT_INTERVAL",
          "AI_TOKEN_PEOPLE_USAGE__ACTIVE_SPEND_LIMIT_NAME",
          "AI_TOKEN_PEOPLE_USAGE__ACTIVE_SPEND_LIMIT_RESET",
          "AI_TOKEN_PEOPLE_USAGE__ACTIVE_SPEND_LIMIT_UTILIZATION",
          "AI_TOKEN_PEOPLE_USAGE__ACTIVE_SPEND_LIMIT_UUID",
          "AI_TOKEN_PEOPLE_USAGE__ANTHROPIC_SPEND",
          "AI_TOKEN_PEOPLE_USAGE__CURSOR_SPEND",
          "AI_TOKEN_PEOPLE_USAGE__DEPARTMENT",
          "AI_TOKEN_PEOPLE_USAGE__DEPARTMENT_UUID",
          "AI_TOKEN_PEOPLE_USAGE__EMAIL",
          "AI_TOKEN_PEOPLE_USAGE__IS_ANOMALOUS",
          "AI_TOKEN_PEOPLE_USAGE__IS_RAMP_USER",
          "AI_TOKEN_PEOPLE_USAGE__LIFECYCLE_STATUS",
          "AI_TOKEN_PEOPLE_USAGE__OPENAI_SPEND",
          "AI_TOKEN_PEOPLE_USAGE__PERIOD_CHANGE_PERCENT",
          "AI_TOKEN_PEOPLE_USAGE__PERIOD_SPEND",
          "AI_TOKEN_PEOPLE_USAGE__PERSON",
          "AI_TOKEN_PEOPLE_USAGE__PERSON_KEY",
          "AI_TOKEN_PEOPLE_USAGE__PREVIOUS_PERIOD_SPEND",
          "AI_TOKEN_PEOPLE_USAGE__PRICE_PER_MILLION_TOKENS",
          "AI_TOKEN_PEOPLE_USAGE__PROVIDER_USER_EMAIL",
          "AI_TOKEN_PEOPLE_USAGE__SEVERITY_SCORE",
          "AI_TOKEN_PEOPLE_USAGE__SHARE_OF_SPEND",
          "AI_TOKEN_PEOPLE_USAGE__SPEND_VS_AVERAGE",
          "AI_TOKEN_PEOPLE_USAGE__USER_UUID",
          "AI_TOKEN_SPEND__API_KEY",
          "AI_TOKEN_SPEND__API_KEY_ID",
          "AI_TOKEN_SPEND__ATTACHMENT_SEARCH_REQUESTS",
          "AI_TOKEN_SPEND__BUSINESS",
          "AI_TOKEN_SPEND__BUSINESS_ID",
          "AI_TOKEN_SPEND__CACHE_CREATION_1H_TOKENS",
          "AI_TOKEN_SPEND__CACHE_CREATION_5M_TOKENS",
          "AI_TOKEN_SPEND__CACHE_READ_TOKENS",
          "AI_TOKEN_SPEND__CACHE_WRITE_TOKENS",
          "AI_TOKEN_SPEND__CHARGED_EVENT_COUNT",
          "AI_TOKEN_SPEND__CODE_INTERPRETER_REQUESTS",
          "AI_TOKEN_SPEND__CONFIGURATION",
          "AI_TOKEN_SPEND__CONFIGURATION_ID",
          "AI_TOKEN_SPEND__COST_ESTIMATION_STATUS",
          "AI_TOKEN_SPEND__COST_USAGE_KIND",
          "AI_TOKEN_SPEND__CREDITS",
          "AI_TOKEN_SPEND__CURRENCY",
          "AI_TOKEN_SPEND__CUSTOMER_CHARGE_USD",
          "AI_TOKEN_SPEND__DEPARTMENT",
          "AI_TOKEN_SPEND__DEPARTMENT_ID",
          "AI_TOKEN_SPEND__ESTIMATED_COST",
          "AI_TOKEN_SPEND__EVENTS",
          "AI_TOKEN_SPEND__FILE_SEARCH_REQUESTS",
          "AI_TOKEN_SPEND__INPUT_TOKENS",
          "AI_TOKEN_SPEND__LINES_ADDED",
          "AI_TOKEN_SPEND__LINES_REMOVED",
          "AI_TOKEN_SPEND__MATCHED_USAGE_TOTAL",
          "AI_TOKEN_SPEND__MODEL",
          "AI_TOKEN_SPEND__ORGANIZATION_ID",
          "AI_TOKEN_SPEND__OUTPUT_TOKENS",
          "AI_TOKEN_SPEND__PRODUCT",
          "AI_TOKEN_SPEND__PROJECT_ID",
          "AI_TOKEN_SPEND__PROVIDER",
          "AI_TOKEN_SPEND__PROVIDER_API_KEY",
          "AI_TOKEN_SPEND__PROVIDER_USER_EMAIL",
          "AI_TOKEN_SPEND__PROVIDER_USER_ID",
          "AI_TOKEN_SPEND__RAW_MODEL_OR_PRODUCT",
          "AI_TOKEN_SPEND__REASONING_TOKENS",
          "AI_TOKEN_SPEND__REQUESTS",
          "AI_TOKEN_SPEND__ROUTER_API_KEY",
          "AI_TOKEN_SPEND__ROUTER_API_KEY_NAME",
          "AI_TOKEN_SPEND__ROUTER_TAG",
          "AI_TOKEN_SPEND__SERVICE_TIER",
          "AI_TOKEN_SPEND__SOURCE_ROW_ID",
          "AI_TOKEN_SPEND__SOURCE_TABLE",
          "AI_TOKEN_SPEND__TARGET_USAGE_ENDPOINT",
          "AI_TOKEN_SPEND__THREADS",
          "AI_TOKEN_SPEND__TOTAL_TOKENS",
          "AI_TOKEN_SPEND__TURNS",
          "AI_TOKEN_SPEND__USAGE_DATE",
          "AI_TOKEN_SPEND__USAGE_EVENT_COUNT",
          "AI_TOKEN_SPEND__USER",
          "AI_TOKEN_SPEND__USER_ID",
          "AI_TOKEN_SPEND__WEB_SEARCH_REQUESTS",
          "AI_TOKEN_SPEND__WORKSPACE_ID",
          "AI_TOKEN_SPEND__X_SEARCH_REQUESTS",
          "AMOUNT",
          "AMOUNT_PRO_RATA",
          "AMOUNT_TREND_QUARTERLY",
          "AMOUNT_TREND_TRAILING",
          "AMOUNT_USED",
          "APPROVAL_METADATA",
          "APPROVAL_POLICY",
          "APPROVAL_STATUS",
          "AP_APPROVAL_DECISIONS__APPROVER",
          "AP_APPROVAL_DECISIONS__BILL_APPROVAL_STATUS",
          "AP_APPROVAL_DECISIONS__BILL_ID",
          "AP_APPROVAL_DECISIONS__BUSINESS_ENTITY",
          "AP_APPROVAL_DECISIONS__BUSINESS_ID",
          "AP_APPROVAL_DECISIONS__DECIDED_AT",
          "AP_APPROVAL_DECISIONS__DECISION",
          "AP_APPROVAL_DECISIONS__ID",
          "AP_APPROVAL_DECISIONS__PAYEE",
          "AP_APPROVAL_DECISIONS__WAIT_TIME",
          "AP_EVENTS__ACCOUNTING_DATE",
          "AP_EVENTS__APPROVAL_STEP_TIME",
          "AP_EVENTS__APPROVAL_TO_PAID",
          "AP_EVENTS__APPROVAL_TO_PAYMENT_RELEASE",
          "AP_EVENTS__APPROVED_WITHIN_14_DAYS",
          "AP_EVENTS__AP_AGING_1_TO_30_DAYS_AMOUNT",
          "AP_EVENTS__AP_AGING_31_TO_60_DAYS_AMOUNT",
          "AP_EVENTS__AP_AGING_61_TO_90_DAYS_AMOUNT",
          "AP_EVENTS__AP_AGING_APPLIED_CREDIT_AMOUNT",
          "AP_EVENTS__AP_AGING_BUCKET",
          "AP_EVENTS__AP_AGING_CURRENT_AMOUNT",
          "AP_EVENTS__AP_AGING_DAYS_OUTSTANDING",
          "AP_EVENTS__AP_AGING_DUE_DATE",
          "AP_EVENTS__AP_AGING_EFFECTIVE_DATE",
          "AP_EVENTS__AP_AGING_ELIGIBLE",
          "AP_EVENTS__AP_AGING_OUTSTANDING_AMOUNT",
          "AP_EVENTS__AP_AGING_OVER_90_DAYS_AMOUNT",
          "AP_EVENTS__AP_AGING_REFERENCE",
          "AP_EVENTS__AP_EVENT_SUMMARY",
          "AP_EVENTS__ARCHIVED_WITHIN_14_DAYS",
          "AP_EVENTS__BILL_APPROVAL_DATE",
          "AP_EVENTS__BILL_APPROVAL_STATUS",
          "AP_EVENTS__BILL_CREATED_AT",
          "AP_EVENTS__BILL_CREATION_SOURCE",
          "AP_EVENTS__BILL_DUE_DATE",
          "AP_EVENTS__BILL_OUTSTANDING_AMOUNT",
          "AP_EVENTS__BILL_PAID_AT_DATE",
          "AP_EVENTS__BILL_PAYMENT_STATUS",
          "AP_EVENTS__BILL_STATUS",
          "AP_EVENTS__BUSINESS",
          "AP_EVENTS__BUSINESS_ENTITY",
          "AP_EVENTS__BUSINESS_ID",
          "AP_EVENTS__CREATOR",
          "AP_EVENTS__CURRENCY",
          "AP_EVENTS__DAYS_PAST_DUE",
          "AP_EVENTS__DAYS_TO_APPROVE",
          "AP_EVENTS__DAYS_TO_PAY",
          "AP_EVENTS__DELETED_AT",
          "AP_EVENTS__DEPARTMENT_ID",
          "AP_EVENTS__DUE_AGING_BUCKET",
          "AP_EVENTS__DYNAMIC_TRACKING_CATEGORY_OPTION",
          "AP_EVENTS__ENTITY_ID",
          "AP_EVENTS__ENTITY_TYPE",
          "AP_EVENTS__ID",
          "AP_EVENTS__INVOICE_DATE",
          "AP_EVENTS__INVOICE_NUMBER",
          "AP_EVENTS__INVOICE_RECEIVED_AT",
          "AP_EVENTS__LINE_ITEM_AMOUNT",
          "AP_EVENTS__LINE_ITEM_DESCRIPTION",
          "AP_EVENTS__LINE_ITEM_ID",
          "AP_EVENTS__LINE_ITEM_INDEX",
          "AP_EVENTS__LINE_ITEM_TYPE",
          "AP_EVENTS__LINE_ITEM_UNIT_PRICE",
          "AP_EVENTS__LINE_ITEM_UNIT_QUANTITY",
          "AP_EVENTS__METADATA",
          "AP_EVENTS__NEXT_APPROVERS",
          "AP_EVENTS__NO_ACTION_WITHIN_14_DAYS",
          "AP_EVENTS__OUTCOME_WITHIN_14_DAYS",
          "AP_EVENTS__OUTSTANDING_AMOUNT",
          "AP_EVENTS__OVERDUE_PAYMENT_DETAILS_MISSING",
          "AP_EVENTS__PAID_AMOUNT",
          "AP_EVENTS__PAYEE",
          "AP_EVENTS__PAYMENT_ACCOUNT",
          "AP_EVENTS__PAYMENT_DETAILS_FULFILLED_AT",
          "AP_EVENTS__PAYMENT_DETAILS_MISSING_ON_DUE_DATE",
          "AP_EVENTS__PAYMENT_DETAILS_REQUESTED_AT",
          "AP_EVENTS__RECEIVED_AGING_BUCKET",
          "AP_EVENTS__RECEIVED_DATE",
          "AP_EVENTS__REJECTED_BY",
          "AP_EVENTS__REJECTED_WITHIN_14_DAYS",
          "AP_EVENTS__TIME_IN_DRAFTS",
          "AP_EVENTS__TIME_TO_APPROVAL",
          "AP_EVENTS__TOTAL_AMOUNT",
          "AP_EVENTS__VENDOR_CREDIT_AVAILABLE_AMOUNT",
          "AP_EVENTS__VENDOR_ID",
          "AP_EVENTS__VENDOR_RESPONSE_TIME",
          "AP_EVENTS__WAS_REJECTED",
          "AP_OPERATIONS_METRICS__BUCKET",
          "AP_OPERATIONS_METRICS__CREATION_SOURCE_COUNT",
          "AP_OPERATIONS_METRICS__CREATION_SOURCE_SHARE",
          "AP_OPERATIONS_METRICS__METRIC",
          "AP_OPERATIONS_METRICS__METRIC_OUTPUT",
          "AP_OPERATIONS_METRICS__ROW_ID",
          "AP_OPERATIONS_METRICS__SOURCE",
          "AP_OPERATIONS__ACTIONED_WITHIN_7_DAYS",
          "AP_OPERATIONS__BILL_CREATED_AT",
          "AP_OPERATIONS__BILL_CREATOR",
          "AP_OPERATIONS__BUSINESS",
          "AP_OPERATIONS__BUSINESS_ENTITY",
          "AP_OPERATIONS__BUSINESS_ID",
          "AP_OPERATIONS__CREATION_SOURCE",
          "AP_OPERATIONS__DELETED_AT",
          "AP_OPERATIONS__DRAFT_CREATED_AT",
          "AP_OPERATIONS__EDITED_SECTIONS",
          "AP_OPERATIONS__EDIT_SECTION",
          "AP_OPERATIONS__EXCEPTION_REASON",
          "AP_OPERATIONS__EXCEPTION_REASONS",
          "AP_OPERATIONS__HAS_EDITS",
          "AP_OPERATIONS__ID",
          "AP_OPERATIONS__INVOICE_SUBMITTER",
          "AP_OPERATIONS__MATCHES_EXCEPTION_REASON",
          "AP_OPERATIONS__OUTCOME_WITHIN_7_DAYS",
          "AP_OPERATIONS__PAYEE",
          "AP_OPERATIONS__SECTION_EDITED",
          "AP_OPERATIONS__STATUS",
          "AP_OPERATIONS__TIME_IN_DRAFTS",
          "AR_INVOICES__AGING_BUCKET",
          "AR_INVOICES__BUSINESS",
          "AR_INVOICES__BUSINESS_ID",
          "AR_INVOICES__COLLECTION_STATUS",
          "AR_INVOICES__CURRENCY",
          "AR_INVOICES__CUSTOMER",
          "AR_INVOICES__DAYS_PAST_DUE",
          "AR_INVOICES__DAYS_TO_PAY",
          "AR_INVOICES__DELETED_AT",
          "AR_INVOICES__DSO_OUTSTANDING_AMOUNT",
          "AR_INVOICES__DSO_SALES_AMOUNT",
          "AR_INVOICES__DSO_WINDOW_DAYS",
          "AR_INVOICES__DUE_DATE",
          "AR_INVOICES__FULLY_PAID_AT",
          "AR_INVOICES__ID",
          "AR_INVOICES__INVOICE_AMOUNT",
          "AR_INVOICES__INVOICE_DATE",
          "AR_INVOICES__INVOICE_NUMBER",
          "AR_INVOICES__ISSUED_AT",
          "AR_INVOICES__OUTSTANDING_AMOUNT",
          "AR_INVOICES__SOURCE",
          "AR_INVOICES__STATUS",
          "ATTENDEE",
          "ATTENDEE_NAMES",
          "AUTOMATIC_FLAG_SEVERITY_TYPE",
          "BILL_CREATOR",
          "BILL_UUID",
          "BOOKINGS__AMOUNT",
          "BOOKINGS__BOOKED_BY_USER_ID",
          "BOOKINGS__BOOKING_APPROVAL_STATUS",
          "BOOKINGS__BOOKING_CHANNEL",
          "BOOKINGS__BOOKING_CREATED_AT",
          "BOOKINGS__BOOKING_LEAD_TIME_DAYS",
          "BOOKINGS__BOOKING_PLATFORM_STATUS",
          "BOOKINGS__BOOKING_RECIPIENT_TYPE",
          "BOOKINGS__BOOKING_REQUEST_AUTO_APPROVED",
          "BOOKINGS__BOOKING_REQUEST_CREATED_AT",
          "BOOKINGS__BOOKING_REQUEST_ID",
          "BOOKINGS__BOOKING_REQUEST_REBOOKS_BOOKING_UUID",
          "BOOKINGS__BOOKING_REQUEST_SOFT_APPROVED",
          "BOOKINGS__BOOKING_REQUEST_STATUS",
          "BOOKINGS__BUSINESS",
          "BOOKINGS__BUSINESS_ID",
          "BOOKINGS__CAR_AIR_CONDITIONING",
          "BOOKINGS__CAR_ALLOW_CANCELLATION",
          "BOOKINGS__CAR_BAGS",
          "BOOKINGS__CAR_COMPANY_CONFIRMATION_NUMBER",
          "BOOKINGS__CAR_CREDIT_CARD_REQUIRED",
          "BOOKINGS__CAR_DESCRIPTION",
          "BOOKINGS__CAR_DOORS",
          "BOOKINGS__CAR_DRIVER_AGE_REQUIRED",
          "BOOKINGS__CAR_DROPOFF_COUNTRY",
          "BOOKINGS__CAR_DROPOFF_STATE",
          "BOOKINGS__CAR_EXAMPLE",
          "BOOKINGS__CAR_FREE_CANCELLATION",
          "BOOKINGS__CAR_IS_DROPOFF_AIRPORT",
          "BOOKINGS__CAR_IS_PICKUP_AIRPORT",
          "BOOKINGS__CAR_PASSENGERS",
          "BOOKINGS__CAR_PAY_AT_BOOKING_AMOUNT",
          "BOOKINGS__CAR_PAY_AT_COUNTER_AMOUNT",
          "BOOKINGS__CAR_PICKUP_COUNTRY",
          "BOOKINGS__CAR_PICKUP_STATE",
          "BOOKINGS__CAR_PRICE_PER_RATE_UNIT",
          "BOOKINGS__CAR_RATE_TYPE",
          "BOOKINGS__CAR_RATE_UNIT",
          "BOOKINGS__CAR_RATE_UNIT_COUNT",
          "BOOKINGS__CAR_RENTAL_DAYS",
          "BOOKINGS__CAR_SIPP_CODE",
          "BOOKINGS__CAR_STRIKEOUT_PRICE",
          "BOOKINGS__CAR_TRANSMISSION",
          "BOOKINGS__CAR_UNLIMITED_MILEAGE_INCLUDED",
          "BOOKINGS__CREATED_AT",
          "BOOKINGS__DEPARTMENT",
          "BOOKINGS__DESTINATION",
          "BOOKINGS__END_DATE",
          "BOOKINGS__FLIGHT_AIRCRAFT_TYPES",
          "BOOKINGS__FLIGHT_ARRIVAL_AIRPORT_CITY",
          "BOOKINGS__FLIGHT_ARRIVAL_AIRPORT_CODE",
          "BOOKINGS__FLIGHT_ARRIVAL_AIRPORT_COUNTRY",
          "BOOKINGS__FLIGHT_ARRIVAL_AIRPORT_NAME",
          "BOOKINGS__FLIGHT_ARRIVAL_AIRPORT_TIMEZONE",
          "BOOKINGS__FLIGHT_ARRIVAL_TIME",
          "BOOKINGS__FLIGHT_BOOKING_REFERENCE",
          "BOOKINGS__FLIGHT_CARRIER_CODES",
          "BOOKINGS__FLIGHT_CONFIRMATION_NUMBERS",
          "BOOKINGS__FLIGHT_DEPARTURE_AIRPORT_CITY",
          "BOOKINGS__FLIGHT_DEPARTURE_AIRPORT_CODE",
          "BOOKINGS__FLIGHT_DEPARTURE_AIRPORT_COUNTRY",
          "BOOKINGS__FLIGHT_DEPARTURE_AIRPORT_NAME",
          "BOOKINGS__FLIGHT_DEPARTURE_AIRPORT_TIMEZONE",
          "BOOKINGS__FLIGHT_DEPARTURE_TIME",
          "BOOKINGS__FLIGHT_DURATION_MINUTES",
          "BOOKINGS__FLIGHT_EMISSIONS_KG_PER_TRAVELER",
          "BOOKINGS__FLIGHT_EMISSIONS_PERCENT_DIFFERENCE_FROM_TYPICAL",
          "BOOKINGS__FLIGHT_FARE_AMOUNT",
          "BOOKINGS__FLIGHT_HAS_OFFLINE_EXCHANGE",
          "BOOKINGS__FLIGHT_IS_CANCELLABLE",
          "BOOKINGS__FLIGHT_IS_MODIFIABLE",
          "BOOKINGS__FLIGHT_IS_SPLIT_TICKET",
          "BOOKINGS__FLIGHT_MARKETING_CARRIER_NAMES",
          "BOOKINGS__FLIGHT_NUMBERS",
          "BOOKINGS__FLIGHT_NUMBER_OF_TICKETS",
          "BOOKINGS__FLIGHT_PROVIDER_MODIFICATION_CAPABILITY",
          "BOOKINGS__FLIGHT_REFUNDABILITY",
          "BOOKINGS__FLIGHT_SEGMENT_COUNT",
          "BOOKINGS__FLIGHT_SERVICE_CLASSES",
          "BOOKINGS__FLIGHT_SLICE_COUNT",
          "BOOKINGS__FLIGHT_STOP_COUNT",
          "BOOKINGS__FLIGHT_TAXES_AND_FEES_AMOUNT",
          "BOOKINGS__FLIGHT_TOTAL_AMOUNT_PER_TICKET",
          "BOOKINGS__FLIGHT_TOTAL_EMISSIONS_KG",
          "BOOKINGS__FLIGHT_TYPE",
          "BOOKINGS__FLIGHT_TYPICAL_EMISSIONS_KG_PER_TRAVELER",
          "BOOKINGS__HAS_LOYALTY",
          "BOOKINGS__HOTEL_BATHROOM_SHARING",
          "BOOKINGS__HOTEL_BOARD_TYPE",
          "BOOKINGS__HOTEL_CANCELLATION_TERMS",
          "BOOKINGS__HOTEL_CHAIN_GROUP_NAME",
          "BOOKINGS__HOTEL_CHAIN_NAME",
          "BOOKINGS__HOTEL_CHECK_IN_DATE",
          "BOOKINGS__HOTEL_CHECK_OUT_DATE",
          "BOOKINGS__HOTEL_COUNTRY",
          "BOOKINGS__HOTEL_DEPOSIT_REQUIRED",
          "BOOKINGS__HOTEL_EARNS_LOYALTY_POINTS",
          "BOOKINGS__HOTEL_FEES_INCLUDED",
          "BOOKINGS__HOTEL_IS_CANCELLABLE",
          "BOOKINGS__HOTEL_LOYALTY_PROGRAM_REQUIRED",
          "BOOKINGS__HOTEL_MODIFIABILITY",
          "BOOKINGS__HOTEL_NAME",
          "BOOKINGS__HOTEL_NEGOTIATED_RATE",
          "BOOKINGS__HOTEL_NIGHTS",
          "BOOKINGS__HOTEL_NUMBER_OF_ROOMS",
          "BOOKINGS__HOTEL_PAYMENT_BUCKET",
          "BOOKINGS__HOTEL_PAYMENT_TYPE",
          "BOOKINGS__HOTEL_PERCENT_SAVED",
          "BOOKINGS__HOTEL_POSTPAID_TOTAL_AMOUNT",
          "BOOKINGS__HOTEL_PREPAID_TOTAL_AMOUNT",
          "BOOKINGS__HOTEL_PROPERTY_TYPE",
          "BOOKINGS__HOTEL_REFUNDABILITY",
          "BOOKINGS__HOTEL_ROOM_CATEGORY",
          "BOOKINGS__HOTEL_ROOM_NAME",
          "BOOKINGS__HOTEL_ROOM_SHARING",
          "BOOKINGS__HOTEL_STAR_RATING",
          "BOOKINGS__HOTEL_STATE",
          "BOOKINGS__HOTEL_STRIKETHROUGH_PRICE",
          "BOOKINGS__HOTEL_SUBTOTAL_AMOUNT",
          "BOOKINGS__HOTEL_TAXES_AMOUNT",
          "BOOKINGS__HOTEL_TAXES_INCLUDED",
          "BOOKINGS__HOTEL_UUID",
          "BOOKINGS__ID",
          "BOOKINGS__IS_APPROVED_EXCEPTION",
          "BOOKINGS__IS_OUT_OF_POLICY",
          "BOOKINGS__MARKET_RATE_AT_REQUEST_TIME",
          "BOOKINGS__MERCHANT",
          "BOOKINGS__METADATA",
          "BOOKINGS__POLICY_AGENT_DESCRIPTION",
          "BOOKINGS__POLICY_AGENT_IN_POLICY",
          "BOOKINGS__POLICY_AGENT_VIOLATED_RULES",
          "BOOKINGS__ROUTE",
          "BOOKINGS__SERVICING_TMC",
          "BOOKINGS__START_DATE",
          "BOOKINGS__TRAVELER_NAME",
          "BOOKINGS__TRAVEL_POLICY_VIOLATION_TYPES",
          "BOOKINGS__TYPE",
          "BOOKING_ID",
          "BUDGET_AMOUNT",
          "BUDGET_NON_RAMP_ENTITY",
          "BUDGET_OWNERS",
          "BUDGET_PATH",
          "BUDGET_USER_DEFINED_CATEGORY",
          "BUSINESS",
          "CARD",
          "CARD_ACCEPTOR",
          "CARD_LAST_FOUR",
          "CARD_TYPE",
          "CASHBACK",
          "CATEGORY",
          "COALESCED_ACCOUNTING_TRACKING_CATEGORY_SELECTIONS",
          "COALESCED_TRACKING_CATEGORIES",
          "COALESCED_TRACKING_CATEGORIES_WITH_NAME",
          "COMMITTED_AMOUNT",
          "COMPLIANCE_FLAG",
          "COMPLIANCE_FLAGS",
          "CONSOLIDATED_DATE",
          "CONTRACT_RENEWAL_DATE",
          "CONTRACT_TOTAL_VALUE",
          "COUNT",
          "COUNT_DISTINCT_BUSINESS",
          "CREATION_SOURCE",
          "CURRENCY",
          "DATE",
          "DEPARTMENT",
          "DEPARTMENT_CROSS_BUSINESS",
          "EMPLOYEE_ID",
          "ENTITY",
          "ERP_FINANCIAL_STATEMENT__ACCOUNT_ID",
          "ERP_FINANCIAL_STATEMENT__ACCOUNT_NUMBER",
          "ERP_FINANCIAL_STATEMENT__AMOUNT",
          "ERP_FINANCIAL_STATEMENT__CREDIT",
          "ERP_FINANCIAL_STATEMENT__DEBIT",
          "ERP_FINANCIAL_STATEMENT__DEPTH",
          "ERP_FINANCIAL_STATEMENT__LABEL",
          "ERP_FINANCIAL_STATEMENT__PARENT_ROW_ID",
          "ERP_FINANCIAL_STATEMENT__ROW_ID",
          "ERP_FINANCIAL_STATEMENT__ROW_TYPE",
          "ERP_FINANCIAL_STATEMENT__SYSTEM_KEY",
          "ERP_GENERAL_LEDGER__ACCOUNT_ACCOUNT_CLASSIFICATION",
          "ERP_GENERAL_LEDGER__ACCOUNT_ACCOUNT_ID",
          "ERP_GENERAL_LEDGER__ACCOUNT_ACCOUNT_NAME",
          "ERP_GENERAL_LEDGER__ACCOUNT_ACCOUNT_NUMBER",
          "ERP_GENERAL_LEDGER__ACCOUNT_IS_INACTIVE",
          "ERP_GENERAL_LEDGER__ACCOUNT_NORMAL_BALANCE",
          "ERP_GENERAL_LEDGER__ACCOUNT_PROFIT_AND_LOSS_SECTION",
          "ERP_GENERAL_LEDGER__BUSINESS",
          "ERP_GENERAL_LEDGER__POSTING_LINE_ACCOUNT_CLASSIFICATION_AT_POST",
          "ERP_GENERAL_LEDGER__POSTING_LINE_ACCOUNT_ID",
          "ERP_GENERAL_LEDGER__POSTING_LINE_CREDIT_AMOUNT",
          "ERP_GENERAL_LEDGER__POSTING_LINE_DEBIT_AMOUNT",
          "ERP_GENERAL_LEDGER__POSTING_LINE_DEBIT_MINUS_CREDIT",
          "ERP_GENERAL_LEDGER__POSTING_LINE_DOCUMENT_NUMBER",
          "ERP_GENERAL_LEDGER__POSTING_LINE_IS_VOIDED",
          "ERP_GENERAL_LEDGER__POSTING_LINE_LINE_MEMO",
          "ERP_GENERAL_LEDGER__POSTING_LINE_LINE_NUMBER",
          "ERP_GENERAL_LEDGER__POSTING_LINE_POSTING_DATE",
          "ERP_GENERAL_LEDGER__POSTING_LINE_TRANSACTION_ID",
          "ERP_GENERAL_LEDGER__POSTING_LINE_TRANSACTION_MEMO",
          "ERP_GENERAL_LEDGER__POSTING_LINE_TRANSACTION_TYPE",
          "EXPENSE_POLICY_STATUS",
          "FLIGHT_TRANSACTIONS__AIRLINE",
          "FLIGHT_TRANSACTIONS__AMOUNT",
          "FLIGHT_TRANSACTIONS__BUSINESS_ID",
          "FLIGHT_TRANSACTIONS__CARD",
          "FLIGHT_TRANSACTIONS__DEPARTMENT",
          "FLIGHT_TRANSACTIONS__DOCUMENT_TYPE",
          "FLIGHT_TRANSACTIONS__EMD_NUMBER",
          "FLIGHT_TRANSACTIONS__EMD_TYPE",
          "FLIGHT_TRANSACTIONS__FLIGHT_CONFIRMATION_NUMBERS",
          "FLIGHT_TRANSACTIONS__ID",
          "FLIGHT_TRANSACTIONS__INVOICE_NUMBER",
          "FLIGHT_TRANSACTIONS__METADATA",
          "FLIGHT_TRANSACTIONS__ORIGINAL_AMOUNT",
          "FLIGHT_TRANSACTIONS__ORIGINAL_CURRENCY",
          "FLIGHT_TRANSACTIONS__ORIGINAL_TICKET_NUMBER",
          "FLIGHT_TRANSACTIONS__PAYMENT_METHOD",
          "FLIGHT_TRANSACTIONS__PNR_LOCATOR",
          "FLIGHT_TRANSACTIONS__ROUTE",
          "FLIGHT_TRANSACTIONS__TICKET_NUMBER",
          "FLIGHT_TRANSACTIONS__TRANSACTION_DATE",
          "FLIGHT_TRANSACTIONS__TRANSACTION_TYPE",
          "FLIGHT_TRANSACTIONS__TRAVELER",
          "FULL_NAME",
          "FUNDING_AMOUNT",
          "HAS_PAYMENT_INFO",
          "HAS_TAX_INFO",
          "HEALTHCARE_PROVIDER",
          "HIBOB__DYNAMIC_BOOLEAN",
          "HIBOB__DYNAMIC_DATE",
          "HIBOB__DYNAMIC_DATETIME",
          "HIBOB__DYNAMIC_DECIMAL",
          "HIBOB__DYNAMIC_FLOAT",
          "HIBOB__DYNAMIC_STRING",
          "HIBOB__EMPLOYEE_DISPLAY_NAME",
          "HIBOB__EMPLOYEE_EMAIL",
          "HIBOB__EMPLOYEE_FIRST_NAME",
          "HIBOB__EMPLOYEE_ID",
          "HIBOB__EMPLOYEE_SURNAME",
          "HIBOB__EMPLOYEE_WORK_DEPARTMENT",
          "HIBOB__EMPLOYEE_WORK_DIRECT_REPORTS",
          "HIBOB__EMPLOYEE_WORK_EMPLOYEE_ID_IN_COMPANY",
          "HIBOB__EMPLOYEE_WORK_INDIRECT_REPORTS",
          "HIBOB__EMPLOYEE_WORK_IS_MANAGER",
          "HIBOB__EMPLOYEE_WORK_MOBILE",
          "HIBOB__EMPLOYEE_WORK_ORIGINAL_START_DATE",
          "HIBOB__EMPLOYEE_WORK_PHONE",
          "HIBOB__EMPLOYEE_WORK_REPORTS_TO_DISPLAY_NAME",
          "HIBOB__EMPLOYEE_WORK_REPORTS_TO_EMAIL",
          "HIBOB__EMPLOYEE_WORK_REPORTS_TO_ID",
          "HIBOB__EMPLOYEE_WORK_SITE",
          "HIBOB__EMPLOYEE_WORK_START_DATE",
          "HIBOB__EMPLOYEE_WORK_TENURE_DURATION_YEARS",
          "HIBOB__EMPLOYEE_WORK_TITLE",
          "HUBSPOT__DEAL_DEAL_ID",
          "HUBSPOT__DEAL_DEAL_PIPELINE_ID",
          "HUBSPOT__DEAL_DEAL_PIPELINE_STAGE_ID",
          "HUBSPOT__DEAL_OWNER_ID",
          "HUBSPOT__DEAL_PROPERTY_AMOUNT",
          "HUBSPOT__DEAL_PROPERTY_AMOUNT_IN_HOME_CURRENCY",
          "HUBSPOT__DEAL_PROPERTY_CLOSEDATE",
          "HUBSPOT__DEAL_PROPERTY_CREATEDATE",
          "HUBSPOT__DEAL_PROPERTY_DAYS_TO_CLOSE",
          "HUBSPOT__DEAL_PROPERTY_DEALNAME",
          "HUBSPOT__DEAL_PROPERTY_DEALTYPE",
          "HUBSPOT__DEAL_PROPERTY_HS_ANALYTICS_SOURCE",
          "HUBSPOT__DEAL_PROPERTY_HS_DEAL_STAGE_PROBABILITY",
          "HUBSPOT__DEAL_PROPERTY_HS_FORECAST_AMOUNT",
          "HUBSPOT__DEAL_PROPERTY_HS_IS_CLOSED",
          "HUBSPOT__DEAL_PROPERTY_HS_IS_CLOSED_LOST",
          "HUBSPOT__DEAL_PROPERTY_HS_IS_CLOSED_WON",
          "HUBSPOT__DEAL_PROPERTY_HS_PROJECTED_AMOUNT_IN_HOME_CURRENCY",
          "HUBSPOT__DYNAMIC_BOOLEAN",
          "HUBSPOT__DYNAMIC_DATE",
          "HUBSPOT__DYNAMIC_DATETIME",
          "HUBSPOT__DYNAMIC_DECIMAL",
          "HUBSPOT__DYNAMIC_FLOAT",
          "HUBSPOT__DYNAMIC_STRING",
          "HUBSPOT__OWNER_CREATED_AT",
          "HUBSPOT__OWNER_EMAIL",
          "HUBSPOT__OWNER_FIRST_NAME",
          "HUBSPOT__OWNER_IS_ACTIVE",
          "HUBSPOT__OWNER_LAST_NAME",
          "HUBSPOT__OWNER_OWNER_ID",
          "HUBSPOT__PIPELINE_ARCHIVED",
          "HUBSPOT__PIPELINE_CREATED_AT",
          "HUBSPOT__PIPELINE_LABEL",
          "HUBSPOT__PIPELINE_PIPELINE_ID",
          "HUBSPOT__STAGE_CREATED_AT",
          "HUBSPOT__STAGE_IS_CLOSED",
          "HUBSPOT__STAGE_LABEL",
          "HUBSPOT__STAGE_PIPELINE_ID",
          "HUBSPOT__STAGE_PROBABILITY",
          "HUBSPOT__STAGE_STAGE_ID",
          "ID",
          "INVOICE_NUMBER",
          "ISSUED_AMOUNT",
          "IS_FRAUD",
          "IS_OUT_OF_POLICY",
          "IS_PAID",
          "IS_PAID_V2",
          "IS_PER_DIEM_SPEND",
          "ITINERARIES__AMOUNT",
          "ITINERARIES__BOOKED_ON_RAMP",
          "ITINERARIES__BOOKING_PLATFORM_STATUS",
          "ITINERARIES__BOOKING_UUID",
          "ITINERARIES__BUSINESS",
          "ITINERARIES__BUSINESS_ID",
          "ITINERARIES__CAR_COMPANY_NAME",
          "ITINERARIES__CAR_DROPOFF_TIME",
          "ITINERARIES__CAR_ITINERARY_ID",
          "ITINERARIES__CAR_PICKUP_TIME",
          "ITINERARIES__CURRENCY",
          "ITINERARIES__DESTINATION",
          "ITINERARIES__ENTIRE_ITINERARY_END_TIME",
          "ITINERARIES__ENTIRE_ITINERARY_START_TIME",
          "ITINERARIES__FLIGHT_ITINERARY_ID",
          "ITINERARIES__FLIGHT_SEGMENT_ARRIVAL_AIRPORT_CITY",
          "ITINERARIES__FLIGHT_SEGMENT_ARRIVAL_AIRPORT_CODE",
          "ITINERARIES__FLIGHT_SEGMENT_ARRIVAL_AIRPORT_NAME",
          "ITINERARIES__FLIGHT_SEGMENT_ARRIVAL_AIRPORT_TIMEZONE",
          "ITINERARIES__FLIGHT_SEGMENT_ARRIVAL_TIME",
          "ITINERARIES__FLIGHT_SEGMENT_CARRIER",
          "ITINERARIES__FLIGHT_SEGMENT_CARRIER_CODE",
          "ITINERARIES__FLIGHT_SEGMENT_CONFIRMATION_NUMBER",
          "ITINERARIES__FLIGHT_SEGMENT_DEPARTURE_AIRPORT_CITY",
          "ITINERARIES__FLIGHT_SEGMENT_DEPARTURE_AIRPORT_CODE",
          "ITINERARIES__FLIGHT_SEGMENT_DEPARTURE_AIRPORT_NAME",
          "ITINERARIES__FLIGHT_SEGMENT_DEPARTURE_AIRPORT_TIMEZONE",
          "ITINERARIES__FLIGHT_SEGMENT_DEPARTURE_TIME",
          "ITINERARIES__FLIGHT_SEGMENT_FLIGHT_NUMBER",
          "ITINERARIES__FLIGHT_SEGMENT_ID",
          "ITINERARIES__FLIGHT_SEGMENT_SERVICE_CLASS",
          "ITINERARIES__FLIGHT_SLICE_MARKETING_CARRIER",
          "ITINERARIES__FLIGHT_SLICE_MARKETING_CARRIER_CODE",
          "ITINERARIES__FLIGHT_SLICE_MARKETING_CARRIER_LOGO_URL",
          "ITINERARIES__FLIGHT_TYPE",
          "ITINERARIES__HOTEL_CANCELLATION_TERMS",
          "ITINERARIES__HOTEL_CHAIN_GROUP_NAME",
          "ITINERARIES__HOTEL_CHAIN_NAME",
          "ITINERARIES__HOTEL_CHECK_IN_TIME",
          "ITINERARIES__HOTEL_CHECK_OUT_TIME",
          "ITINERARIES__HOTEL_ITINERARY_ID",
          "ITINERARIES__HOTEL_NAME",
          "ITINERARIES__HOTEL_REFUNDABILITY",
          "ITINERARIES__IS_BOOKED_ON_RAMP",
          "ITINERARIES__MERCHANT",
          "ITINERARIES__METADATA",
          "ITINERARIES__ROUTE",
          "ITINERARIES__SPEND_EVENT_CANONICAL_ID",
          "ITINERARIES__SPEND_TIME",
          "ITINERARIES__TRAVELER_NAME",
          "ITINERARIES__TYPE",
          "ITINERARIES__USER_ID",
          "ITINERARIES__UUID",
          "LINE_ITEM_INDEX",
          "LINE_ITEM_MEMO",
          "LOCATION",
          "MEMO",
          "MERCHANT",
          "METADATA",
          "NEXT_APPROVER_USER",
          "NEXT_APPROVER_USERS",
          "ORIGINAL_AMOUNT",
          "ORIGINAL_CURRENCY",
          "PAID_STATUS",
          "PAYEE",
          "PAYEE_NAME",
          "PAYMENT_TYPE",
          "PERCENT_OF_BUDGET",
          "PLANNING_BUDGETS__ACTUAL_AMOUNT",
          "PLANNING_BUDGETS__AMOUNT",
          "PLANNING_BUDGETS__AMOUNT_TYPE",
          "PLANNING_BUDGETS__BUDGET_DATE",
          "PLANNING_BUDGETS__BUDGET_ID",
          "PLANNING_BUDGETS__BUDGET_LINE_ID",
          "PLANNING_BUDGETS__BUSINESS_ID",
          "PLANNING_BUDGETS__COMMITTED_AMOUNT",
          "PLANNING_BUDGETS__CURRENCY",
          "PLANNING_BUDGETS__ID",
          "PLANNING_BUDGETS__IS_BUDGET_SPLIT",
          "PLANNING_BUDGETS__LINE_DIMENSION_VALUE",
          "PLANNING_BUDGETS__METADATA",
          "PLANNING_BUDGETS__ORIGINAL_AMOUNT",
          "PLANNING_BUDGETS__ORIGINAL_CURRENCY",
          "PLANNING_BUDGETS__PARENT_BUDGET_ID",
          "PLANNING_BUDGETS__PAYEE",
          "PLANNING_BUDGETS__PERCENT_OF_BUDGET",
          "PLANNING_BUDGETS__PERIOD_START",
          "PLANNING_BUDGETS__PLANNED_AMOUNT",
          "PLANNING_BUDGETS__PURCHASE_ORDER_ID",
          "PLANNING_BUDGETS__ROW_KIND",
          "PLANNING_BUDGETS__SOURCE_RECORD_ID",
          "PLANNING_BUDGETS__SPEND_DATE",
          "PLANNING_BUDGETS__SPEND_DIMENSION_VALUE",
          "PLANNING_BUDGETS__SPEND_TYPE",
          "PLANNING_BUDGETS__UNASSIGNED_ACTUAL_AMOUNT",
          "PLANNING_BUDGETS__USER",
          "PLANNING_BUDGETS__VARIANCE_AMOUNT",
          "POLICY__AMOUNT",
          "POLICY__APPROVAL_ACCURACY_PERCENTAGE",
          "POLICY__APPROVAL_MODE",
          "POLICY__APPROVER",
          "POLICY__BUSINESS",
          "POLICY__BUSINESS_ID",
          "POLICY__CATEGORY",
          "POLICY__COMPLIANCE_FLAG",
          "POLICY__DEPARTMENT",
          "POLICY__ENTITY_ID",
          "POLICY__FINAL_APPROVER",
          "POLICY__GOVERNING_POLICY",
          "POLICY__HAS_RECEIPT_AFFIDAVIT",
          "POLICY__HAS_REPAYMENT",
          "POLICY__ID",
          "POLICY__IN_POLICY_SPEND_PERCENTAGE",
          "POLICY__LOCATION_ID",
          "POLICY__MEMO",
          "POLICY__METADATA",
          "POLICY__PAYEE",
          "POLICY__POLICY_ASSESSMENT",
          "POLICY__POLICY_ASSESSMENT_RATIONALE",
          "POLICY__POLICY_VERSION_ID",
          "POLICY__RECEIPT_AVAILABILITY",
          "POLICY__RECEIPT_REQUIREMENT_STATE",
          "POLICY__RECEIPT_VERIFICATION_STATUS",
          "POLICY__REIMBURSEMENT_TYPE",
          "POLICY__REPAID_AMOUNT",
          "POLICY__REPAYMENT_AMOUNT_PERCENTAGE",
          "POLICY__REPAYMENT_REQUESTED_AMOUNT",
          "POLICY__REPAYMENT_REQUESTED_OR_REPAID_AMOUNT",
          "POLICY__REPORTING_DEPARTMENT_ID",
          "POLICY__REPORTING_USER_ID",
          "POLICY__REVIEWER_ACTION",
          "POLICY__REVIEW_PREDICTION_AGREEMENT",
          "POLICY__SPEND_TIME",
          "POLICY__SPEND_TYPE",
          "POLICY__TRANSACTION_REPAYMENT_STATUS",
          "POLICY__USER",
          "PREVIOUS_APPROVER_USER",
          "PREVIOUS_APPROVER_USERS",
          "PROCUREMENT_SPEND_INTENT",
          "PROCUREMENT_SPEND_REQUESTS__AMOUNT",
          "PROCUREMENT_SPEND_REQUESTS__APPROVAL_ELAPSED_TIME",
          "PROCUREMENT_SPEND_REQUESTS__APPROVED_AT",
          "PROCUREMENT_SPEND_REQUESTS__BUSINESS",
          "PROCUREMENT_SPEND_REQUESTS__BUSINESS_ID",
          "PROCUREMENT_SPEND_REQUESTS__CLOSED_WITHIN_15_DAYS",
          "PROCUREMENT_SPEND_REQUESTS__CLOSED_WITHIN_30_DAYS",
          "PROCUREMENT_SPEND_REQUESTS__CLOSED_WITHIN_5_DAYS",
          "PROCUREMENT_SPEND_REQUESTS__CLOSED_WITHIN_DAYS",
          "PROCUREMENT_SPEND_REQUESTS__CLOSED_WITHIN_DAYS_THRESHOLD",
          "PROCUREMENT_SPEND_REQUESTS__CREATED_AT",
          "PROCUREMENT_SPEND_REQUESTS__CREATED_BY_USER",
          "PROCUREMENT_SPEND_REQUESTS__CURRENCY",
          "PROCUREMENT_SPEND_REQUESTS__DECISION_DATE",
          "PROCUREMENT_SPEND_REQUESTS__DECISION_TIME_DAYS",
          "PROCUREMENT_SPEND_REQUESTS__ID",
          "PROCUREMENT_SPEND_REQUESTS__IS_RELEASE_REQUEST",
          "PROCUREMENT_SPEND_REQUESTS__METADATA",
          "PROCUREMENT_SPEND_REQUESTS__NAME",
          "PROCUREMENT_SPEND_REQUESTS__REQUEST_AGE_DAYS",
          "PROCUREMENT_SPEND_REQUESTS__REQUEST_STATUS",
          "PROCUREMENT_SPEND_REQUESTS__SPEND_INTENT",
          "PROCUREMENT_SPEND_REQUESTS__SPEND_INTENT_NAME",
          "PROCUREMENT_SPEND_REQUESTS__SPEND_REQUEST_TYPE",
          "PROCUREMENT_SPEND_REQUESTS__SUBMITTED_AT",
          "PROCUREMENT_SPEND_REQUESTS__USER_DEPARTMENT",
          "PROCUREMENT_SPEND_REQUESTS__UUID",
          "PROCUREMENT_SPEND_REQUESTS__VENDOR_NAME",
          "PROCUREMENT_SPEND_REQUESTS__VENDOR_STATUS",
          "PROCUREMENT_SPEND_REQUESTS__WORKFLOW_VERSION",
          "PROCUREMENT__BUSINESS",
          "PROCUREMENT__BUSINESS_ID",
          "PROCUREMENT__DYNAMIC_TRACKING_CATEGORY_OPTION",
          "PROCUREMENT__DYNAMIC_USER_CUSTOM_FIELD",
          "PROCUREMENT__INVOICED_SPEND_AMOUNT",
          "PROCUREMENT__IS_OVERSPENT",
          "PROCUREMENT__METADATA",
          "PROCUREMENT__OVERSPEND_AMOUNT",
          "PROCUREMENT__PAYEE",
          "PROCUREMENT__PURCHASE_ORDER_ACTUAL_SPEND_AMOUNT",
          "PROCUREMENT__PURCHASE_ORDER_AMOUNT",
          "PROCUREMENT__PURCHASE_ORDER_APPROVED_DATE",
          "PROCUREMENT__PURCHASE_ORDER_BILLED_AMOUNT",
          "PROCUREMENT__PURCHASE_ORDER_BILLING_VARIANCE",
          "PROCUREMENT__PURCHASE_ORDER_CARD_TRANSACTION_COUNT",
          "PROCUREMENT__PURCHASE_ORDER_CREATED_DATE",
          "PROCUREMENT__PURCHASE_ORDER_CREATION_SOURCE",
          "PROCUREMENT__PURCHASE_ORDER_CURRENCY",
          "PROCUREMENT__PURCHASE_ORDER_END_DATE",
          "PROCUREMENT__PURCHASE_ORDER_ENTITY",
          "PROCUREMENT__PURCHASE_ORDER_ID",
          "PROCUREMENT__PURCHASE_ORDER_LATEST_BILL_PAYMENT_DATE",
          "PROCUREMENT__PURCHASE_ORDER_LINE_ITEM_INDEX",
          "PROCUREMENT__PURCHASE_ORDER_LINKED_BILL_COUNT",
          "PROCUREMENT__PURCHASE_ORDER_LINKED_CONTRACT_LAST_DATE_TO_TERMINATE",
          "PROCUREMENT__PURCHASE_ORDER_LINKED_CONTRACT_TOTAL_VALUE",
          "PROCUREMENT__PURCHASE_ORDER_MEMO",
          "PROCUREMENT__PURCHASE_ORDER_NAME",
          "PROCUREMENT__PURCHASE_ORDER_NET_PAYMENT_TERMS",
          "PROCUREMENT__PURCHASE_ORDER_NUMBER",
          "PROCUREMENT__PURCHASE_ORDER_OUTSTANDING_AMOUNT",
          "PROCUREMENT__PURCHASE_ORDER_OWNER",
          "PROCUREMENT__PURCHASE_ORDER_OWNER_DEPARTMENT",
          "PROCUREMENT__PURCHASE_ORDER_OWNER_LOCATION",
          "PROCUREMENT__PURCHASE_ORDER_PAID_BILL_AMOUNT",
          "PROCUREMENT__PURCHASE_ORDER_PAID_BY_CARD_AMOUNT",
          "PROCUREMENT__PURCHASE_ORDER_PROMISE_DATE",
          "PROCUREMENT__PURCHASE_ORDER_RECURRENCE_PERIOD",
          "PROCUREMENT__PURCHASE_ORDER_SHIP_TO_ADDRESS",
          "PROCUREMENT__PURCHASE_ORDER_SPEND_REQUEST_ID",
          "PROCUREMENT__PURCHASE_ORDER_SPEND_SUMMARY",
          "PROCUREMENT__PURCHASE_ORDER_START_DATE",
          "PROCUREMENT__PURCHASE_ORDER_STATUS",
          "PROCUREMENT__PURCHASE_ORDER_SUMMARY",
          "PROCUREMENT__PURCHASE_ORDER_THREE_WAY_MATCH_ENABLED",
          "PROCUREMENT__PURCHASE_ORDER_TYPE",
          "PURCHASE_ORDER_NAME",
          "PURCHASE_ORDER_NUMBER",
          "RECEIPT_AVAILABILITY",
          "RECEIPT_VERIFICATION_STATUS",
          "REIMBURSEMENT_ACH_DESCRIPTION_HASH",
          "REIMBURSEMENT_DISTANCE",
          "REIMBURSEMENT_EXPECTED_PAYMENT_DATE",
          "REIMBURSEMENT_EXPENSE_GROUP",
          "REIMBURSEMENT_MERCHANT_NAME",
          "REIMBURSEMENT_PAID_AT",
          "REIMBURSEMENT_PAYEE_AMOUNT",
          "REIMBURSEMENT_PAYEE_CURRENCY",
          "REIMBURSEMENT_REVIEWED_AT",
          "REIMBURSEMENT_STATE",
          "REIMBURSEMENT_SUBMITTED_AT",
          "REIMBURSEMENT_TYPE",
          "REIMBURSEMENT_UUID",
          "REPAID_AMOUNT",
          "REPAYMENT_REQUESTED_AMOUNT",
          "REPAYMENT_REQUESTED_OR_REPAID_AMOUNT",
          "REPAYMENT_STATUS",
          "REPORTING_CURRENCY",
          "REVIEW_PREDICTION_AGREEMENT",
          "SALESFORCE__ACCOUNT_BILLING_COUNTRY",
          "SALESFORCE__ACCOUNT_CREATED_DATE",
          "SALESFORCE__ACCOUNT_ID",
          "SALESFORCE__ACCOUNT_INDUSTRY",
          "SALESFORCE__ACCOUNT_NAME",
          "SALESFORCE__ACCOUNT_NUMBER_OF_EMPLOYEES",
          "SALESFORCE__ACCOUNT_OWNER_ID",
          "SALESFORCE__ACCOUNT_PARENT_ID",
          "SALESFORCE__ACCOUNT_TYPE",
          "SALESFORCE__CAMPAIGN_ACTUAL_COST",
          "SALESFORCE__CAMPAIGN_BUDGETED_COST",
          "SALESFORCE__CAMPAIGN_CREATED_DATE",
          "SALESFORCE__CAMPAIGN_CURRENCY_ISO_CODE",
          "SALESFORCE__CAMPAIGN_END_DATE",
          "SALESFORCE__CAMPAIGN_EXPECTED_REVENUE",
          "SALESFORCE__CAMPAIGN_ID",
          "SALESFORCE__CAMPAIGN_IS_ACTIVE",
          "SALESFORCE__CAMPAIGN_NAME",
          "SALESFORCE__CAMPAIGN_NUMBER_OF_CONTACTS",
          "SALESFORCE__CAMPAIGN_NUMBER_OF_CONVERTED_LEADS",
          "SALESFORCE__CAMPAIGN_NUMBER_OF_LEADS",
          "SALESFORCE__CAMPAIGN_NUMBER_OF_OPPORTUNITIES",
          "SALESFORCE__CAMPAIGN_NUMBER_OF_RESPONSES",
          "SALESFORCE__CAMPAIGN_NUMBER_OF_WON_OPPORTUNITIES",
          "SALESFORCE__CAMPAIGN_OWNER_ID",
          "SALESFORCE__CAMPAIGN_START_DATE",
          "SALESFORCE__CAMPAIGN_STATUS",
          "SALESFORCE__CAMPAIGN_TYPE",
          "SALESFORCE__DYNAMIC_BOOLEAN",
          "SALESFORCE__DYNAMIC_DATE",
          "SALESFORCE__DYNAMIC_DATETIME",
          "SALESFORCE__DYNAMIC_DECIMAL",
          "SALESFORCE__DYNAMIC_FLOAT",
          "SALESFORCE__DYNAMIC_STRING",
          "SALESFORCE__LEAD_COMPANY",
          "SALESFORCE__LEAD_CONVERTED_ACCOUNT_ID",
          "SALESFORCE__LEAD_CONVERTED_DATE",
          "SALESFORCE__LEAD_CONVERTED_OPPORTUNITY_ID",
          "SALESFORCE__LEAD_CREATED_DATE",
          "SALESFORCE__LEAD_EMAIL",
          "SALESFORCE__LEAD_ID",
          "SALESFORCE__LEAD_INDUSTRY",
          "SALESFORCE__LEAD_IS_CONVERTED",
          "SALESFORCE__LEAD_LEAD_SOURCE",
          "SALESFORCE__LEAD_NAME",
          "SALESFORCE__LEAD_OWNER_ID",
          "SALESFORCE__LEAD_PHONE",
          "SALESFORCE__LEAD_STATUS",
          "SALESFORCE__OPPORTUNITY_ACCOUNT_ID",
          "SALESFORCE__OPPORTUNITY_AMOUNT",
          "SALESFORCE__OPPORTUNITY_CAMPAIGN_ID",
          "SALESFORCE__OPPORTUNITY_CLOSE_DATE",
          "SALESFORCE__OPPORTUNITY_CREATED_DATE",
          "SALESFORCE__OPPORTUNITY_CURRENCY_ISO_CODE",
          "SALESFORCE__OPPORTUNITY_ID",
          "SALESFORCE__OPPORTUNITY_IS_CLOSED",
          "SALESFORCE__OPPORTUNITY_IS_WON",
          "SALESFORCE__OPPORTUNITY_LEAD_SOURCE",
          "SALESFORCE__OPPORTUNITY_NAME",
          "SALESFORCE__OPPORTUNITY_OWNER_ID",
          "SALESFORCE__OPPORTUNITY_PROBABILITY",
          "SALESFORCE__OPPORTUNITY_STAGE_NAME",
          "SALESFORCE__OPPORTUNITY_TYPE",
          "SALESFORCE__USER_CREATED_DATE",
          "SALESFORCE__USER_EMAIL",
          "SALESFORCE__USER_ID",
          "SALESFORCE__USER_IS_ACTIVE",
          "SALESFORCE__USER_NAME",
          "SPEND_ALLOCATION",
          "SPEND_ALLOCATIONS__AUTO_LOCK_DATE",
          "SPEND_ALLOCATIONS__BUDGET_ROW_ID",
          "SPEND_ALLOCATIONS__BUSINESS_ID",
          "SPEND_ALLOCATIONS__CARDS_LAST_FOUR",
          "SPEND_ALLOCATIONS__CARDS_LINKED_COUNT",
          "SPEND_ALLOCATIONS__COUNT_ACCESS_USERS",
          "SPEND_ALLOCATIONS__COUNT_CO_OWNERS",
          "SPEND_ALLOCATIONS__COUNT_MEMBERS",
          "SPEND_ALLOCATIONS__CREATED_AT",
          "SPEND_ALLOCATIONS__CREATION_SOURCE",
          "SPEND_ALLOCATIONS__CURRENCY",
          "SPEND_ALLOCATIONS__CURRENT_LOCK_SOURCE",
          "SPEND_ALLOCATIONS__DEFAULT_MEMBER_LIMIT_AMOUNT",
          "SPEND_ALLOCATIONS__DISPLAY_NAME",
          "SPEND_ALLOCATIONS__FIRST_ARCHIVED_AT",
          "SPEND_ALLOCATIONS__FIRST_LOCKED_AT",
          "SPEND_ALLOCATIONS__FIRST_NON_OWNER_ADDED_TO_FUND_AT",
          "SPEND_ALLOCATIONS__HAS_CATEGORY_RESTRICTIONS",
          "SPEND_ALLOCATIONS__HAS_MERCHANT_RESTRICTIONS",
          "SPEND_ALLOCATIONS__ID",
          "SPEND_ALLOCATIONS__IS_CURRENTLY_LOCKED",
          "SPEND_ALLOCATIONS__IS_PRIMARY_CARD_ENABLED",
          "SPEND_ALLOCATIONS__IS_REIMBURSEMENTS_ENABLED",
          "SPEND_ALLOCATIONS__IS_VIRTUAL_CARD_ENABLED",
          "SPEND_ALLOCATIONS__LAST_USED",
          "SPEND_ALLOCATIONS__LATEST_ARCHIVED_AT",
          "SPEND_ALLOCATIONS__LATEST_LOCKED_AT",
          "SPEND_ALLOCATIONS__METADATA",
          "SPEND_ALLOCATIONS__OWNER",
          "SPEND_ALLOCATIONS__PHYSICAL_CARDS_LINKED_COUNT",
          "SPEND_ALLOCATIONS__SPEND_END_DATE",
          "SPEND_ALLOCATIONS__SPEND_FREQUENCY",
          "SPEND_ALLOCATIONS__SPEND_INTERVAL",
          "SPEND_ALLOCATIONS__SPEND_REQUEST_AMOUNT",
          "SPEND_ALLOCATIONS__SPEND_START_DATE",
          "SPEND_ALLOCATIONS__STATE",
          "SPEND_ALLOCATIONS__TERMINATED_AT",
          "SPEND_ALLOCATIONS__TRANSACTION_AMOUNT_LIMIT",
          "SPEND_ALLOCATIONS__UPDATED_AT",
          "SPEND_ALLOCATIONS__UUID",
          "SPEND_ALLOCATION_UUID",
          "SPEND_EVENT_CANONICAL_DATES",
          "SPEND_INTENT",
          "SPEND_OLAP__ACCOUNTING_DATE",
          "SPEND_OLAP__BILL_DUE_DATE",
          "SPEND_OLAP__BUSINESS",
          "SPEND_OLAP__CARD",
          "SPEND_OLAP__CARD_LAST_FOUR",
          "SPEND_OLAP__CARD_STATEMENT",
          "SPEND_OLAP__EXPENSE_GROUP",
          "SPEND_OLAP__FINAL_APPROVER",
          "SPEND_OLAP__HAS_SUBMISSION_EXCEPTION_REQUEST",
          "SPEND_OLAP__IS_ACCOUNTING_SYNCED",
          "SPEND_OLAP__IS_APPROVAL_PENDING",
          "SPEND_OLAP__IS_SYNC_READY",
          "SPEND_OLAP__MANAGER",
          "SPEND_OLAP__MARKED_READY_AT",
          "SPEND_OLAP__MARKED_READY_BY",
          "SPEND_OLAP__MCC_CATEGORY",
          "SPEND_OLAP__MERCHANT_CITY",
          "SPEND_OLAP__MERCHANT_STATE",
          "SPEND_OLAP__METADATA",
          "SPEND_OLAP__QUALIFIED_PAID_STATUS",
          "SPEND_OLAP__REIMBURSEMENT_EXPECTED_PAYMENT_DATE",
          "SPEND_OLAP__REIMBURSEMENT_PAID_AT",
          "SPEND_OLAP__REIMBURSEMENT_PAYMENT_ID",
          "SPEND_OLAP__REIMBURSEMENT_REVIEWED_AT",
          "SPEND_OLAP__REIMBURSEMENT_STATUS",
          "SPEND_OLAP__REIMBURSEMENT_SUBMITTED_AT",
          "SPEND_OLAP__SEMANTIC_BILL_DUE_DATE",
          "SPEND_OLAP__SEMANTIC_MARKED_READY_AT",
          "SPEND_OLAP__SEMANTIC_TRANSACTION_CLEARED_AT",
          "SPEND_OLAP__SPEND_EVENT_UUID",
          "SPEND_OLAP__TRANSACTION_CLEARED_AT",
          "SPEND_OLAP__USER_ROLE",
          "SPEND_OLAP__VENDOR_OWNERS",
          "SPEND_PROGRAMS__ACCOUNTING_AUTO_MARK_READY_RULE_ENABLED",
          "SPEND_PROGRAMS__ALLOWS_LINE_ITEM_ACCOUNTING_CODING",
          "SPEND_PROGRAMS__ALLOW_NEW_PAYEES_FOR_CUSTOM_PAYEE_GROUPS",
          "SPEND_PROGRAMS__AMOUNT",
          "SPEND_PROGRAMS__COUNT_CUSTOM_FORM_FIELDS",
          "SPEND_PROGRAMS__CREATED_AT",
          "SPEND_PROGRAMS__CREATED_BY_USER",
          "SPEND_PROGRAMS__CREATED_SOURCE",
          "SPEND_PROGRAMS__CURRENCY",
          "SPEND_PROGRAMS__CUSTOM_FORM_CREATED_AT",
          "SPEND_PROGRAMS__CUSTOM_FORM_UPDATED_AT",
          "SPEND_PROGRAMS__DEFAULT_SPEND_REQUEST_TYPE",
          "SPEND_PROGRAMS__DELETED_AT",
          "SPEND_PROGRAMS__DELETED_BY_USER",
          "SPEND_PROGRAMS__DESCRIPTION",
          "SPEND_PROGRAMS__HAS_CATEGORY_RESTRICTIONS",
          "SPEND_PROGRAMS__HAS_CUSTOM_FORM",
          "SPEND_PROGRAMS__HAS_MERCHANT_RESTRICTIONS",
          "SPEND_PROGRAMS__ID",
          "SPEND_PROGRAMS__INTAKE_OCR_ENABLED",
          "SPEND_PROGRAMS__ISSUE_PHYSICAL_CARD_IF_NEEDED",
          "SPEND_PROGRAMS__IS_AUTOMATIC_ISSUANCE",
          "SPEND_PROGRAMS__IS_PRIMARY_CARD_ENABLED",
          "SPEND_PROGRAMS__IS_REIMBURSEMENTS_ENABLED",
          "SPEND_PROGRAMS__IS_REQUESTABLE_ISSUANCE",
          "SPEND_PROGRAMS__IS_VIRTUAL_CARD_ENABLED",
          "SPEND_PROGRAMS__LAST_ACTING_USER",
          "SPEND_PROGRAMS__LOCK_DATE",
          "SPEND_PROGRAMS__NAME",
          "SPEND_PROGRAMS__OUTCOME_TYPE",
          "SPEND_PROGRAMS__PROGRAM_TYPE",
          "SPEND_PROGRAMS__SPEND_INTENT_GROUP_DESCRIPTION",
          "SPEND_PROGRAMS__SPEND_INTENT_GROUP_NAME",
          "SPEND_PROGRAMS__SPEND_INTENT_TEMPLATE_DESCRIPTION",
          "SPEND_PROGRAMS__SPEND_INTENT_TEMPLATE_FIXED_TEMPLATE_TYPE",
          "SPEND_PROGRAMS__SPEND_INTENT_TEMPLATE_NAME",
          "SPEND_PROGRAMS__SPEND_INTENT_TEMPLATE_TYPE",
          "SPEND_PROGRAMS__SPEND_INTENT_TYPE",
          "SPEND_PROGRAMS__SPEND_INTERVAL",
          "SPEND_PROGRAMS__STATUS",
          "SPEND_PROGRAMS__SUPPORTS_FLEXIBLE_SPEND_REQUEST_TYPE",
          "SPEND_PROGRAMS__THREE_WAY_MATCH_ENABLED",
          "SPEND_PROGRAMS__TRANSACTION_AMOUNT_LIMIT",
          "SPEND_PROGRAMS__UPDATED_AT",
          "SPEND_PROGRAMS__UUID",
          "SPEND_REQUEST_ID",
          "SPEND_TIME",
          "SPEND_TYPE",
          "SPLIT_SPEND_OLAP_UUID",
          "STRIPE__CHARGE_AMOUNT",
          "STRIPE__CHARGE_AMOUNT_REFUNDED",
          "STRIPE__CHARGE_BILLING_DETAIL_EMAIL",
          "STRIPE__CHARGE_BILLING_DETAIL_NAME",
          "STRIPE__CHARGE_CREATED",
          "STRIPE__CHARGE_CURRENCY",
          "STRIPE__CHARGE_CUSTOMER_ID",
          "STRIPE__CHARGE_DESCRIPTION",
          "STRIPE__CHARGE_FAILURE_CODE",
          "STRIPE__CHARGE_ID",
          "STRIPE__CHARGE_INVOICE_ID",
          "STRIPE__CHARGE_PAID",
          "STRIPE__CHARGE_RECEIPT_EMAIL",
          "STRIPE__CHARGE_REFUNDED",
          "STRIPE__CHARGE_STATUS",
          "STRIPE__CREDITNOTE_CREATED",
          "STRIPE__CREDITNOTE_CURRENCY",
          "STRIPE__CREDITNOTE_CUSTOMER_ID",
          "STRIPE__CREDITNOTE_ID",
          "STRIPE__CREDITNOTE_INVOICE_ID",
          "STRIPE__CREDITNOTE_REASON",
          "STRIPE__CREDITNOTE_STATUS",
          "STRIPE__CREDITNOTE_TOTAL",
          "STRIPE__CREDITNOTE_TYPE",
          "STRIPE__CUSTOMER_ADDRESS_COUNTRY",
          "STRIPE__CUSTOMER_BALANCE",
          "STRIPE__CUSTOMER_CREATED",
          "STRIPE__CUSTOMER_CURRENCY",
          "STRIPE__CUSTOMER_DELINQUENT",
          "STRIPE__CUSTOMER_EMAIL",
          "STRIPE__CUSTOMER_ID",
          "STRIPE__CUSTOMER_NAME",
          "STRIPE__CUSTOMER_PHONE",
          "STRIPE__DISPUTE_AMOUNT",
          "STRIPE__DISPUTE_CHARGE_ID",
          "STRIPE__DISPUTE_CREATED",
          "STRIPE__DISPUTE_CURRENCY",
          "STRIPE__DISPUTE_EVIDENCE_DETAILS_DUE_BY",
          "STRIPE__DISPUTE_ID",
          "STRIPE__DISPUTE_REASON",
          "STRIPE__DISPUTE_STATUS",
          "STRIPE__DYNAMIC_BOOLEAN",
          "STRIPE__DYNAMIC_DATE",
          "STRIPE__DYNAMIC_DATETIME",
          "STRIPE__DYNAMIC_DECIMAL",
          "STRIPE__DYNAMIC_FLOAT",
          "STRIPE__DYNAMIC_STRING",
          "STRIPE__INVOICE_AMOUNT_DUE",
          "STRIPE__INVOICE_AMOUNT_PAID",
          "STRIPE__INVOICE_AMOUNT_REMAINING",
          "STRIPE__INVOICE_BILLING_REASON",
          "STRIPE__INVOICE_COLLECTION_METHOD",
          "STRIPE__INVOICE_CREATED",
          "STRIPE__INVOICE_CURRENCY",
          "STRIPE__INVOICE_CUSTOMER_ID",
          "STRIPE__INVOICE_DUE_DATE",
          "STRIPE__INVOICE_ID",
          "STRIPE__INVOICE_NUMBER",
          "STRIPE__INVOICE_PAID",
          "STRIPE__INVOICE_STATUS",
          "STRIPE__INVOICE_STATUS_TRANSITIONS_PAID_AT",
          "STRIPE__INVOICE_SUBSCRIPTION_ID",
          "STRIPE__INVOICE_TAX",
          "STRIPE__INVOICE_TOTAL",
          "STRIPE__LINEITEM_AMOUNT",
          "STRIPE__LINEITEM_CURRENCY",
          "STRIPE__LINEITEM_DESCRIPTION",
          "STRIPE__LINEITEM_ID",
          "STRIPE__LINEITEM_INVOICE_ID",
          "STRIPE__LINEITEM_PERIOD_END",
          "STRIPE__LINEITEM_PERIOD_START",
          "STRIPE__LINEITEM_PRICE_ID",
          "STRIPE__LINEITEM_PRORATION",
          "STRIPE__LINEITEM_QUANTITY",
          "STRIPE__LINEITEM_SUBSCRIPTION_ID",
          "STRIPE__LINEITEM_TYPE",
          "STRIPE__PRICE_ACTIVE",
          "STRIPE__PRICE_CREATED",
          "STRIPE__PRICE_CURRENCY",
          "STRIPE__PRICE_ID",
          "STRIPE__PRICE_NICKNAME",
          "STRIPE__PRICE_PRODUCT_ID",
          "STRIPE__PRICE_RECURRING_INTERVAL",
          "STRIPE__PRICE_TYPE",
          "STRIPE__PRICE_UNIT_AMOUNT",
          "STRIPE__PRODUCT_ACTIVE",
          "STRIPE__PRODUCT_CREATED",
          "STRIPE__PRODUCT_DESCRIPTION",
          "STRIPE__PRODUCT_ID",
          "STRIPE__PRODUCT_NAME",
          "STRIPE__REFUND_AMOUNT",
          "STRIPE__REFUND_CHARGE_ID",
          "STRIPE__REFUND_CREATED",
          "STRIPE__REFUND_CURRENCY",
          "STRIPE__REFUND_ID",
          "STRIPE__REFUND_REASON",
          "STRIPE__REFUND_STATUS",
          "STRIPE__SUBSCRIPTION_CANCELED_AT",
          "STRIPE__SUBSCRIPTION_CANCEL_AT_PERIOD_END",
          "STRIPE__SUBSCRIPTION_CREATED",
          "STRIPE__SUBSCRIPTION_CURRENT_PERIOD_END",
          "STRIPE__SUBSCRIPTION_CUSTOMER_ID",
          "STRIPE__SUBSCRIPTION_ENDED_AT",
          "STRIPE__SUBSCRIPTION_ID",
          "STRIPE__SUBSCRIPTION_QUANTITY",
          "STRIPE__SUBSCRIPTION_START_DATE",
          "STRIPE__SUBSCRIPTION_STATUS",
          "SUBMISSION_POLICY_STATUS",
          "SUGGESTED_GL_CATEGORY",
          "TASK_SNAPSHOTS__AMOUNT",
          "TASK_SNAPSHOTS__APPROVAL_GROUP",
          "TASK_SNAPSHOTS__APPROVAL_INSTANCE_POLICY_ID",
          "TASK_SNAPSHOTS__ASSIGNEE",
          "TASK_SNAPSHOTS__ASSIGNEE_DEPARTMENT",
          "TASK_SNAPSHOTS__ASSIGNEE_LOCATION",
          "TASK_SNAPSHOTS__ASSIGNEE_MANAGER",
          "TASK_SNAPSHOTS__ASSIGNMENT_DATE",
          "TASK_SNAPSHOTS__BLANK_CANVAS_WORKFLOW_ID",
          "TASK_SNAPSHOTS__BUSINESS",
          "TASK_SNAPSHOTS__BUSINESS_ENTITY",
          "TASK_SNAPSHOTS__BUSINESS_ID",
          "TASK_SNAPSHOTS__COMPLETED_SLA_BREACHED",
          "TASK_SNAPSHOTS__COMPLETED_SLA_ELIGIBLE",
          "TASK_SNAPSHOTS__COMPLETION_DATE",
          "TASK_SNAPSHOTS__CURRENCY",
          "TASK_SNAPSHOTS__DISMISSED_DATE",
          "TASK_SNAPSHOTS__ENTITY_ID",
          "TASK_SNAPSHOTS__ID",
          "TASK_SNAPSHOTS__NODE_TITLE",
          "TASK_SNAPSHOTS__PAYEE",
          "TASK_SNAPSHOTS__PENDING_AGE",
          "TASK_SNAPSHOTS__SLA_HIT",
          "TASK_SNAPSHOTS__SLA_OVERAGE",
          "TASK_SNAPSHOTS__SLA_TIME",
          "TASK_SNAPSHOTS__SPEND_INTENT",
          "TASK_SNAPSHOTS__SPEND_REQUEST_ID",
          "TASK_SNAPSHOTS__TASK_SNAPSHOT",
          "TASK_SNAPSHOTS__TASK_STATUS",
          "TASK_SNAPSHOTS__TASK_TYPE",
          "TASK_SNAPSHOTS__TIME_TO_COMPLETE",
          "TASK_SNAPSHOTS__UUID",
          "TASK_SNAPSHOTS__WORKFLOW_VERSION",
          "TRACKING_CATEGORY_OPTION_ID_FROM_TRACKING_CATEGORY_ID",
          "TRANSACTION_CANONICAL_UUID",
          "TRANSACTION_SUBMISSION_POLICY",
          "TRAVEL_CATEGORY",
          "TRAVEL_DASHBOARD_SPEND_TYPE",
          "TRIP",
          "TRIPS__BUSINESS",
          "TRIPS__BUSINESS_ID",
          "TRIPS__DESCRIPTION",
          "TRIPS__DURATION",
          "TRIPS__END_DATE",
          "TRIPS__ID",
          "TRIPS__METADATA",
          "TRIPS__NAME",
          "TRIPS__START_DATE",
          "TRIPS__USER_ID",
          "UNPLANNED_AMOUNT",
          "URL",
          "USER",
          "USERS__DEPARTMENT",
          "USERS__EMAIL",
          "USERS__EMPLOYEE_ID",
          "USERS__EMPLOYEE_STATUS",
          "USERS__ENTITY",
          "USERS__JOINED_AT",
          "USERS__LOCATION",
          "USERS__MANAGER",
          "USERS__NAME",
          "USERS__ROLE",
          "USERS__UUID",
          "USER_CUSTOM_FIELD",
          "UUID",
          "VARIANCE_OF_BUDGET",
          "WALLET_TRANSFERS__AMOUNT",
          "WALLET_TRANSFERS__BUSINESS_ENTITY_ID",
          "WALLET_TRANSFERS__CURRENCY",
          "WALLET_TRANSFERS__DESCRIPTION",
          "WALLET_TRANSFERS__EFFECTIVE_AT",
          "WALLET_TRANSFERS__ID",
          "WALLET_TRANSFERS__METADATA",
          "WALLET_TRANSFERS__ORIGINATOR_NAME",
          "WALLET_TRANSFERS__PAYMENT_METHOD",
          "WALLET_TRANSFERS__TRANSFER_TYPE",
          "WALLET_TRANSFERS__USER",
          "WALLET_TRANSFERS__UUID",
          "WALLET_TRANSFERS__WALLET_ACCOUNT_ID"
        ]
      },
      "ReportingDurationCellV3": {
        "properties": {
          "cell_type": {
            "default": "DURATION",
            "enum": [
              "DURATION"
            ],
            "title": "Cell Type",
            "type": "string"
          },
          "default_resolution_milliseconds": {
            "title": "Default Resolution Milliseconds",
            "type": "integer"
          },
          "total_milliseconds": {
            "title": "Total Milliseconds",
            "type": "integer"
          }
        },
        "required": [
          "cell_type",
          "default_resolution_milliseconds",
          "total_milliseconds"
        ],
        "title": "ReportingDurationCellV3",
        "type": "object"
      },
      "ReportingFieldDetails": {
        "properties": {
          "dataset": {
            "description": "Semantic dataset the fields belong to.",
            "title": "Dataset",
            "type": "string"
          },
          "fields": {
            "description": "Full field entries: requested fields first, then fields that are easy to confuse with them.",
            "items": {
              "additionalProperties": {
                "$ref": "#/components/schemas/JsonValue"
              },
              "type": "object"
            },
            "title": "Fields",
            "type": "array"
          },
          "unknown_fields": {
            "description": "Requested names that match no field in this dataset.",
            "items": {
              "$ref": "#/components/schemas/UnknownReportingField"
            },
            "title": "Unknown Fields",
            "type": "array"
          }
        },
        "required": [
          "dataset",
          "fields",
          "unknown_fields"
        ],
        "title": "ReportingFieldDetails",
        "type": "object"
      },
      "ReportingMetadataRowIdentifier": {
        "description": "Row key for a raw row that has no drill-down target (for example an\nitinerary backed by a reimbursement rather than a transaction).",
        "properties": {
          "metadata_type": {
            "default": "row_identifier",
            "enum": [
              "row_identifier"
            ],
            "title": "Metadata Type",
            "type": "string"
          },
          "row_identifier": {
            "title": "Row Identifier",
            "type": "string"
          }
        },
        "required": [
          "metadata_type",
          "row_identifier"
        ],
        "title": "ReportingMetadataRowIdentifier",
        "type": "object"
      },
      "ReportingMetadataSpend": {
        "description": "Metadata for spend-related rows.\n\nThis contains information about the spend type and UUID for the row.",
        "properties": {
          "metadata_type": {
            "default": "spend",
            "enum": [
              "spend"
            ],
            "title": "Metadata Type",
            "type": "string"
          },
          "purchase_order_id": {
            "default": null,
            "nullable": true,
            "title": "Purchase Order Id",
            "type": "string"
          },
          "spend_type": {
            "title": "Spend Type",
            "type": "string"
          },
          "unified_request_id": {
            "default": null,
            "nullable": true,
            "title": "Unified Request Id",
            "type": "string"
          },
          "uuid": {
            "nullable": true,
            "title": "Uuid",
            "type": "string"
          }
        },
        "required": [
          "metadata_type",
          "spend_type",
          "uuid"
        ],
        "title": "ReportingMetadataSpend",
        "type": "object"
      },
      "ReportingMetadataSpendWithRowIdentifier": {
        "properties": {
          "line_item_uuid": {
            "default": null,
            "nullable": true,
            "title": "Line Item Uuid",
            "type": "string"
          },
          "metadata_type": {
            "default": "spend_with_row_identifier",
            "enum": [
              "spend_with_row_identifier"
            ],
            "title": "Metadata Type",
            "type": "string"
          },
          "purchase_order_id": {
            "default": null,
            "nullable": true,
            "title": "Purchase Order Id",
            "type": "string"
          },
          "row_identifier": {
            "title": "Row Identifier",
            "type": "string"
          },
          "spend_event_canonical_uuid": {
            "default": null,
            "nullable": true,
            "title": "Spend Event Canonical Uuid",
            "type": "string"
          },
          "spend_type": {
            "title": "Spend Type",
            "type": "string"
          },
          "unified_request_id": {
            "default": null,
            "nullable": true,
            "title": "Unified Request Id",
            "type": "string"
          },
          "uuid": {
            "nullable": true,
            "title": "Uuid",
            "type": "string"
          }
        },
        "required": [
          "metadata_type",
          "row_identifier",
          "spend_type",
          "uuid"
        ],
        "title": "ReportingMetadataSpendWithRowIdentifier",
        "type": "object"
      },
      "ReportingNumberCellV3": {
        "properties": {
          "cell_type": {
            "default": "NUMBER",
            "enum": [
              "NUMBER"
            ],
            "title": "Cell Type",
            "type": "string"
          },
          "value": {
            "oneOf": [
              {
                "type": "integer"
              },
              {
                "type": "number"
              }
            ],
            "title": "Value"
          }
        },
        "required": [
          "cell_type",
          "value"
        ],
        "title": "ReportingNumberCellV3",
        "type": "object"
      },
      "ReportingOtherCellV3": {
        "description": "Represents an 'Other' value for a dimension (aggregates non-top-K values).",
        "properties": {
          "cell_type": {
            "default": "OTHER",
            "enum": [
              "OTHER"
            ],
            "title": "Cell Type",
            "type": "string"
          }
        },
        "required": [
          "cell_type"
        ],
        "title": "ReportingOtherCellV3",
        "type": "object"
      },
      "ReportingPayeeCellV3": {
        "properties": {
          "cell_type": {
            "default": "PAYEE",
            "enum": [
              "PAYEE"
            ],
            "title": "Cell Type",
            "type": "string"
          },
          "logo": {
            "nullable": true,
            "title": "Logo",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "search_tag_info": {
            "allOf": [
              {
                "$ref": "#/components/schemas/HydratedSearchTagInfo"
              }
            ],
            "nullable": true
          },
          "uuid": {
            "title": "Uuid",
            "type": "string"
          }
        },
        "required": [
          "cell_type",
          "logo",
          "name",
          "search_tag_info",
          "uuid"
        ],
        "title": "ReportingPayeeCellV3",
        "type": "object"
      },
      "ReportingPercentageCellV3": {
        "properties": {
          "cell_type": {
            "default": "PERCENTAGE",
            "enum": [
              "PERCENTAGE"
            ],
            "title": "Cell Type",
            "type": "string"
          },
          "value": {
            "title": "Value",
            "type": "number"
          }
        },
        "required": [
          "cell_type",
          "value"
        ],
        "title": "ReportingPercentageCellV3",
        "type": "object"
      },
      "ReportingPurchaseOrderSpendSummaryCellV3": {
        "properties": {
          "cell_type": {
            "default": "PURCHASE_ORDER_SPEND_SUMMARY",
            "enum": [
              "PURCHASE_ORDER_SPEND_SUMMARY"
            ],
            "title": "Cell Type",
            "type": "string"
          },
          "committed_amount": {
            "title": "Committed Amount",
            "type": "number"
          },
          "currency": {
            "title": "Currency",
            "type": "string"
          },
          "invoiced_amount": {
            "title": "Invoiced Amount",
            "type": "number"
          },
          "outstanding_amount": {
            "title": "Outstanding Amount",
            "type": "number"
          },
          "overbilled_amount": {
            "title": "Overbilled Amount",
            "type": "number"
          }
        },
        "required": [
          "cell_type",
          "committed_amount",
          "currency",
          "invoiced_amount",
          "outstanding_amount",
          "overbilled_amount"
        ],
        "title": "ReportingPurchaseOrderSpendSummaryCellV3",
        "type": "object"
      },
      "ReportingPurchaseOrderSummaryCellV3": {
        "properties": {
          "cell_type": {
            "default": "PURCHASE_ORDER_SUMMARY",
            "enum": [
              "PURCHASE_ORDER_SUMMARY"
            ],
            "title": "Cell Type",
            "type": "string"
          },
          "created_date": {
            "format": "date",
            "title": "Created Date",
            "type": "string"
          },
          "payee_logo": {
            "nullable": true,
            "title": "Payee Logo",
            "type": "string"
          },
          "payee_name": {
            "nullable": true,
            "title": "Payee Name",
            "type": "string"
          },
          "payee_uuid": {
            "nullable": true,
            "title": "Payee Uuid",
            "type": "string"
          },
          "purchase_order_number": {
            "title": "Purchase Order Number",
            "type": "string"
          }
        },
        "required": [
          "cell_type",
          "created_date",
          "payee_logo",
          "payee_name",
          "payee_uuid",
          "purchase_order_number"
        ],
        "title": "ReportingPurchaseOrderSummaryCellV3",
        "type": "object"
      },
      "ReportingStringCellV3": {
        "properties": {
          "cell_type": {
            "default": "STRING",
            "enum": [
              "STRING"
            ],
            "title": "Cell Type",
            "type": "string"
          },
          "filter_value": {
            "default": null,
            "nullable": true,
            "title": "Filter Value",
            "type": "string"
          },
          "search_tag_info": {
            "allOf": [
              {
                "$ref": "#/components/schemas/HydratedSearchTagInfo"
              }
            ],
            "nullable": true
          },
          "value": {
            "title": "Value",
            "type": "string"
          }
        },
        "required": [
          "cell_type",
          "search_tag_info",
          "value"
        ],
        "title": "ReportingStringCellV3",
        "type": "object"
      },
      "ReportingTableHeaderV3": {
        "description": "Header information for a table column.\n\nEach header describes how a column should be rendered and interacted with.",
        "properties": {
          "column_display_name": {
            "title": "Column Display Name",
            "type": "string"
          },
          "column_key": {
            "$ref": "#/components/schemas/ReportingDataTableColumnKey"
          },
          "column_type": {
            "$ref": "#/components/schemas/ReportingColumnType"
          },
          "identifier": {
            "default": null,
            "nullable": true,
            "title": "Identifier",
            "type": "string"
          },
          "is_fixed": {
            "default": false,
            "title": "Is Fixed",
            "type": "boolean"
          },
          "is_sortable": {
            "default": false,
            "title": "Is Sortable",
            "type": "boolean"
          }
        },
        "required": [
          "column_display_name",
          "column_key",
          "column_type"
        ],
        "title": "ReportingTableHeaderV3",
        "type": "object"
      },
      "ReportingTableRowV3": {
        "description": "A reporting table row using discriminated union cells from V3.\n\nEach cell contains:\n- Cell type discriminator (cell_type)\n- Cell-specific data\n\nMetadata is stored separately from cells since it's not displayed as a cell in the UI.",
        "properties": {
          "cells": {
            "items": {
              "$ref": "#/components/schemas/ReportingDataTableCellV3"
            },
            "title": "Cells",
            "type": "array"
          },
          "metadata": {
            "default": null,
            "discriminator": {
              "mapping": {
                "row_identifier": "#/components/schemas/ReportingMetadataRowIdentifier",
                "spend": "#/components/schemas/ReportingMetadataSpend",
                "spend_with_row_identifier": "#/components/schemas/ReportingMetadataSpendWithRowIdentifier"
              },
              "propertyName": "metadata_type"
            },
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/ReportingMetadataRowIdentifier"
              },
              {
                "$ref": "#/components/schemas/ReportingMetadataSpend"
              },
              {
                "$ref": "#/components/schemas/ReportingMetadataSpendWithRowIdentifier"
              }
            ],
            "title": "Metadata"
          }
        },
        "required": [
          "cells"
        ],
        "title": "ReportingTableRowV3",
        "type": "object"
      },
      "ReportingTaskSnapshotCellV3": {
        "properties": {
          "amount": {
            "title": "Amount",
            "type": "number"
          },
          "cell_type": {
            "default": "TASK_SNAPSHOT",
            "enum": [
              "TASK_SNAPSHOT"
            ],
            "title": "Cell Type",
            "type": "string"
          },
          "original_currency": {
            "nullable": true,
            "title": "Original Currency",
            "type": "string"
          },
          "payee_logo": {
            "nullable": true,
            "title": "Payee Logo",
            "type": "string"
          },
          "payee_name": {
            "nullable": true,
            "title": "Payee Name",
            "type": "string"
          },
          "payee_uuid": {
            "nullable": true,
            "title": "Payee Uuid",
            "type": "string"
          },
          "spend_type": {
            "title": "Spend Type",
            "type": "string"
          }
        },
        "required": [
          "amount",
          "cell_type",
          "original_currency",
          "payee_logo",
          "payee_name",
          "payee_uuid",
          "spend_type"
        ],
        "title": "ReportingTaskSnapshotCellV3",
        "type": "object"
      },
      "ReportingTotalCellV3": {
        "description": "Represents a 'Total' value for a dimension (aggregates all values).",
        "properties": {
          "cell_type": {
            "default": "TOTAL",
            "enum": [
              "TOTAL"
            ],
            "title": "Cell Type",
            "type": "string"
          }
        },
        "required": [
          "cell_type"
        ],
        "title": "ReportingTotalCellV3",
        "type": "object"
      },
      "ReportingTripCellV3": {
        "properties": {
          "cell_type": {
            "default": "TRIP",
            "enum": [
              "TRIP"
            ],
            "title": "Cell Type",
            "type": "string"
          },
          "description": {
            "default": null,
            "nullable": true,
            "title": "Description",
            "type": "string"
          },
          "end_date": {
            "default": null,
            "format": "date-time",
            "nullable": true,
            "title": "End Date",
            "type": "string"
          },
          "end_location": {
            "nullable": true,
            "title": "End Location",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "search_tag_info": {
            "allOf": [
              {
                "$ref": "#/components/schemas/HydratedSearchTagInfo"
              }
            ],
            "nullable": true
          },
          "start_date": {
            "default": null,
            "format": "date-time",
            "nullable": true,
            "title": "Start Date",
            "type": "string"
          },
          "start_location": {
            "nullable": true,
            "title": "Start Location",
            "type": "string"
          },
          "uuid": {
            "title": "Uuid",
            "type": "string"
          }
        },
        "required": [
          "cell_type",
          "description",
          "end_date",
          "end_location",
          "name",
          "search_tag_info",
          "start_date",
          "start_location",
          "uuid"
        ],
        "title": "ReportingTripCellV3",
        "type": "object"
      },
      "ReportingUserCellV3": {
        "properties": {
          "cell_type": {
            "default": "USER",
            "enum": [
              "USER"
            ],
            "title": "Cell Type",
            "type": "string"
          },
          "email": {
            "default": null,
            "nullable": true,
            "title": "Email",
            "type": "string"
          },
          "first_name": {
            "title": "First Name",
            "type": "string"
          },
          "last_name": {
            "title": "Last Name",
            "type": "string"
          },
          "profile_picture_url": {
            "nullable": true,
            "title": "Profile Picture Url",
            "type": "string"
          },
          "search_tag_info": {
            "allOf": [
              {
                "$ref": "#/components/schemas/HydratedSearchTagInfo"
              }
            ],
            "nullable": true
          },
          "uuid": {
            "title": "Uuid",
            "type": "string"
          }
        },
        "required": [
          "cell_type",
          "email",
          "first_name",
          "last_name",
          "profile_picture_url",
          "search_tag_info",
          "uuid"
        ],
        "title": "ReportingUserCellV3",
        "type": "object"
      },
      "RequestActionRequestBody": {
        "enum": [
          "ADMIN_APPROVE",
          "APPROVE",
          "REJECT"
        ],
        "title": "RequestAction",
        "type": "string"
      },
      "RequestBillInvoiceUploadLinkRequestBody": {
        "description": "Create a one-time URL to attach an invoice file (PDF, image or office document) to a draft bill.\n\nThe file becomes the draft's invoice document. Ramp does not read it to fill in\nor change draft fields, and the draft is not submitted. Fails when the draft\nalready has an invoice. Use this when you have a local shell with normal network\naccess (such as Claude Code, Cursor, Codex or Ramp CLI) and the invoice file is\non local disk; then run the curl command from the response. Never give the URL\nto the user, as it does not work in a browser. Without a shell, ask the user to\nattach the invoice to the draft in the Ramp web app.",
        "properties": {
          "draft_bill_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UUIDStrRequestBody"
              }
            ],
            "description": "UUID of the unsubmitted draft bill to attach the invoice to."
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "draft_bill_id",
          "rationale"
        ],
        "title": "RequestBillInvoiceUploadLink",
        "type": "object"
      },
      "RequestChangeOptions": {
        "description": "How the acting user can change this submitted request in Ramp.",
        "properties": {
          "can_edit": {
            "description": "The user can open Edit request and change this request directly, including amount, line items and form answers. Editing a pending request can restart its approval; editing an approved purchase order applies without a change order.",
            "title": "Can Edit",
            "type": "boolean"
          },
          "can_edit_secondary_fields": {
            "description": "The user can change secondary details only (PO and accounting fields, PO custom fields, invoices, item receipts) without a change order. Amount, line items and vendor need can_edit or a change order.",
            "title": "Can Edit Secondary Fields",
            "type": "boolean"
          },
          "can_request_changes": {
            "description": "The user can use Request changes on this approved purchase order to submit a change order, which goes through approval before it applies.",
            "title": "Can Request Changes",
            "type": "boolean"
          },
          "request_changes_unavailable_reason": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RequestChangesDenialReason"
              }
            ],
            "default": null,
            "description": "Why Request changes is unavailable, when can_request_changes is false.",
            "nullable": true
          }
        },
        "required": [
          "can_edit",
          "can_edit_secondary_fields",
          "can_request_changes"
        ],
        "title": "RequestChangeOptions",
        "type": "object"
      },
      "RequestChangesDenialReason": {
        "enum": [
          "archived",
          "catalog_order",
          "is_change_request",
          "no_permission",
          "not_approved",
          "not_purchase_order",
          "po_closed",
          "po_external",
          "po_has_change_order",
          "punchout_order"
        ],
        "title": "RequestChangesDenialReason",
        "type": "string",
        "x-enum-descriptions": {
          "archived": "The purchase order has been archived.",
          "catalog_order": "Change requests are not supported for catalog purchase orders.",
          "is_change_request": "The spend request is already a change request.",
          "no_permission": "The user does not have permission to request changes for the purchase order.",
          "not_approved": "The spend request has not been approved.",
          "not_purchase_order": "The spend request is not associated with a purchase order.",
          "po_closed": "The purchase order has been closed.",
          "po_external": "The purchase order was not created in Ramp.",
          "po_has_change_order": "The purchase order already has a pending change order.",
          "punchout_order": "Change requests are not supported for punchout purchase orders."
        }
      },
      "RequestIssuePurchaseOrderDocumentUploadLinkRequestBody": {
        "description": "Create a one-time URL to upload a document (such as a quote or contract) to keep with a purchase order you issue directly.\n\nThe upload response includes a staged document_id, which can be attached when\nissuing a purchase order and is never sent to the vendor. Uploading does not\nissue anything or fill in purchase order fields. Use this\nwhen you have a local shell with normal network access (such as Claude Code,\nCursor, Codex or Ramp CLI) and the file is on local disk; then run the curl command\nfrom the response. Never give the URL to the user, as it does not work in a\nbrowser. Without a shell, ask the user to attach the document on the Issue\npurchase order form in the Ramp app.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "RequestIssuePurchaseOrderDocumentUploadLink",
        "type": "object"
      },
      "RequestItemInfo": {
        "properties": {
          "customer_facing_explanation": {
            "default": null,
            "description": "Ramp's explanation of the request, if any.",
            "nullable": true,
            "title": "Customer Facing Explanation",
            "type": "string"
          },
          "id": {
            "description": "UUID of the request item.",
            "title": "Id",
            "type": "string"
          },
          "is_complete": {
            "description": "Whether the customer has provided everything the item asks for.",
            "title": "Is Complete",
            "type": "boolean"
          },
          "is_required": {
            "description": "Whether the item must be completed for the application to proceed.",
            "title": "Is Required",
            "type": "boolean"
          },
          "messages": {
            "description": "Messages exchanged with Ramp about the item.",
            "items": {
              "$ref": "#/components/schemas/RequestItemMessageInfo"
            },
            "title": "Messages",
            "type": "array"
          },
          "reason": {
            "description": "Why Ramp requested the item, for example \"KYC_ADDRESS_VERIFICATION\".",
            "title": "Reason",
            "type": "string"
          },
          "request_display_name": {
            "description": "Display name of the request.",
            "title": "Request Display Name",
            "type": "string"
          },
          "requested_file_upload": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RequestedFileUploadInfo"
              }
            ],
            "default": null,
            "description": "Document upload the item asks for; null if it asks for none.",
            "nullable": true
          },
          "requested_for_object_name": {
            "default": null,
            "description": "Person or entity the item is about, for example an owner's name.",
            "nullable": true,
            "title": "Requested For Object Name",
            "type": "string"
          },
          "review_status": {
            "description": "\"NONE\": waiting on the customer. \"REVISION_REQUESTED\": Ramp asked the customer to revise it. \"IN_REVIEW\": submitted and waiting on Ramp.",
            "title": "Review Status",
            "type": "string"
          }
        },
        "required": [
          "id",
          "is_complete",
          "is_required",
          "reason",
          "request_display_name",
          "review_status"
        ],
        "title": "RequestItemInfo",
        "type": "object"
      },
      "RequestItemMessageInfo": {
        "properties": {
          "created_at": {
            "description": "When the message was posted.",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "id": {
            "description": "UUID of the message.",
            "title": "Id",
            "type": "string"
          },
          "internal_user_display_name": {
            "default": null,
            "description": "Name of the Ramp team member who posted it, if any.",
            "nullable": true,
            "title": "Internal User Display Name",
            "type": "string"
          },
          "message": {
            "description": "Message text.",
            "title": "Message",
            "type": "string"
          },
          "user_display_name": {
            "default": null,
            "description": "Name of the customer user who posted it, if any.",
            "nullable": true,
            "title": "User Display Name",
            "type": "string"
          }
        },
        "required": [
          "created_at",
          "id",
          "message"
        ],
        "title": "RequestItemMessageInfo",
        "type": "object"
      },
      "RequestPluginMarketplaceSandboxRequestBody": {
        "description": "Request your sandbox for testing plugins before submitting them to the Ramp plugin marketplace, or return the one you already requested.\n\nEach Developer Console administrator has one sandbox: a separate test account\nwhere plugins can be tried before review. The first call records the request\nfor Ramp staff, who create the sandbox; the caller owns it under their sign-in\nemail and gets a setup email once it exists. Later calls by the same person\nreturn the same sandbox and change nothing.\nReturns status requested, or completed with the sandbox login URL.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "RequestPluginMarketplaceSandbox",
        "type": "object"
      },
      "RequestProcurementFileUploadLinkRequestBody": {
        "description": "Create a one-time URL that uploads one file (such as a contract, quote or order form) to a file field on your procurement draft.\n\nThe upload saves the file to the field; do not also send it as a draft answer.\nUse this when you can send an HTTP POST with the file: a local shell with\nnormal network access (such as Claude Code, Cursor, Codex or Ramp CLI) and the\nfile on disk, or your own code that already has the file's bytes. Then follow\nthe instructions in the response. Never give the URL to the user, as it does\nnot work in a browser. Otherwise ask the user to attach the file on the\nrequest in the Ramp app.",
        "properties": {
          "field_id": {
            "description": "ID of a visible file_upload field from the draft's draft_state.fields or change_request_state.fields.",
            "title": "Field Id",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "spend_request_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UUIDStrRequestBody"
              }
            ],
            "description": "Draft spend request UUID returned by draft_procurement_request."
          }
        },
        "required": [
          "field_id",
          "rationale",
          "spend_request_uuid"
        ],
        "title": "RequestProcurementFileUploadLink",
        "type": "object"
      },
      "RequestReceiptUploadLinkRequestBody": {
        "description": "Create a one-time URL to upload a receipt file, for a card transaction or out-of-pocket spend.\n\nOnly use this for transactions where a receipt is missing. If your client shows an\nin-chat receipt uploader (an upload card), prefer it for files the user has,\neven if already attached to the chat. Use this when you have a local shell\nwith normal network access (such as Claude Code, Cursor or Codex) or no uploader,\nand the receipt file is on local disk; then run the\ncurl command from the response. Never give the URL to the\nuser, as it does not work in a browser. Otherwise, ask the user to upload the\nreceipt in the Ramp web or mobile app, or by email. For a card transaction,\nconfirm a 201 response with get-transaction-missing-items. For out-of-pocket\nor reimbursement receipts, omit transaction_uuid, then pass the receipt_uuid\nfrom the 201 response to create-reimbursement-from-receipt.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "transaction_uuid": {
            "default": null,
            "description": "ID of the card transaction that needs a receipt. Omit for out-of-pocket or reimbursement receipts to create an unattached receipt.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "RequestReceiptUploadLink",
        "type": "object"
      },
      "RequestTransactionRepaymentRequestBody": {
        "description": "Request that a cardholder repay a transaction.\n\nThis is the REVIEWER / APPROVER action: the acting user must be an\napprover or manager for the transaction, not the cardholder themselves.\nThe tool marks the transaction as repayment-required and notifies the\ncardholder, who can then accept, reject, or complete repayment through\ntheir own flow.\n\nThis tool does NOT execute payment (ACH, payroll, debit-card, etc.).\nIt only creates the repayment request so the cardholder sees an\nactionable task.\n\nUse when a reviewer or manager says things like:\n- \"Request repayment on this transaction\"\n- \"Mark this as needing repayment\"\n- \"Require the employee to pay back this charge\"\n- \"Flag this transaction for repayment\"\n\nIf the user is the cardholder wanting to repay their OWN transaction,\nuse RepayTransaction instead \u2014 that tool provides the self-service\nrepayment URL.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "reason": {
            "description": "The reason for requesting repayment, written by the user. Pass the user's own words verbatim; do not invent a rationale.",
            "title": "Reason",
            "type": "string"
          },
          "thoughts": {
            "default": null,
            "description": "Deprecated and ignored; omit it.",
            "nullable": true,
            "title": "Thoughts",
            "type": "string"
          },
          "transaction_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UUIDStrRequestBody"
              }
            ],
            "description": "The UUID of the transaction to request repayment for."
          }
        },
        "required": [
          "rationale",
          "reason",
          "transaction_id"
        ],
        "title": "RequestTransactionRepayment",
        "type": "object"
      },
      "RequestedFileUploadInfo": {
        "properties": {
          "description": {
            "description": "What the document must show.",
            "title": "Description",
            "type": "string"
          },
          "document_name": {
            "description": "Name of the requested document.",
            "title": "Document Name",
            "type": "string"
          },
          "quantity": {
            "description": "Number of files requested.",
            "title": "Quantity",
            "type": "integer"
          },
          "status": {
            "default": null,
            "description": "Status of the requested upload, for example \"SUBMITTED\".",
            "nullable": true,
            "title": "Status",
            "type": "string"
          },
          "submitted_at": {
            "default": null,
            "description": "When the upload was submitted; null if not yet.",
            "format": "date-time",
            "nullable": true,
            "title": "Submitted At",
            "type": "string"
          },
          "uploaded_files": {
            "description": "Files uploaded for this request so far.",
            "items": {
              "$ref": "#/components/schemas/UploadedFileInfo"
            },
            "title": "Uploaded Files",
            "type": "array"
          },
          "uuid": {
            "description": "UUID of the requested upload.",
            "title": "Uuid",
            "type": "string"
          }
        },
        "required": [
          "description",
          "document_name",
          "quantity",
          "uuid"
        ],
        "title": "RequestedFileUploadInfo",
        "type": "object"
      },
      "ResolutionReason": {
        "enum": [
          "ACCRUAL_AI_SUGGESTED_CODING",
          "ACCRUAL_TRACKING_CATEGORY_DEFAULT_VALUE",
          "ADVANCED_RULE",
          "AI_AUTOCODING",
          "BILL_LINE_ITEM_TO_PO_LINE_ITEM",
          "CARD_RULE",
          "CATEGORY_RULE",
          "DEFAULT_VALUE",
          "DEPARTMENT_RULE",
          "DEVELOPER_API",
          "EMPLOYEE_AGENT",
          "ENTITY_MAPPING",
          "ERP_MIGRATION",
          "LOCATION_RULE",
          "MANUAL",
          "MAPPING_RULE",
          "MERCHANT_AUTO_RULE",
          "MERCHANT_CATEGORY_LEVEL_EMPLOYEE_RULE",
          "MERCHANT_LAST_CODED_RULE",
          "MERCHANT_LEVEL_EMPLOYEE_RULE",
          "MERCHANT_TO_CATEGORY_RULE",
          "MERCHANT_TO_MERCHANT_RULE",
          "SPEND_ALLOCATION_RULE",
          "SUBLEDGER",
          "SUGGESTED_CODING",
          "SUGGESTED_CODING_RULES_OVERRIDE",
          "SUGGESTED_CODING_UPSELL",
          "SUGGESTED_CONTEXT",
          "SUGGESTED_CONTEXT_NO_AUTOFILL",
          "SUGGESTED_MEMO",
          "TMC_INTEGRATION",
          "TRACKING_CATEGORY_DEACTIVATED",
          "TRACKING_CATEGORY_DEFAULT_VALUE",
          "TRAVELPERK_TAGGING",
          "USER_LEVEL_EMPLOYEE_RULE"
        ],
        "title": "ResolutionReason",
        "type": "string",
        "x-enum-descriptions": {
          "AI_AUTOCODING": "The selection was assigned by AI purchase order autocoding.",
          "SUBLEDGER": "The selection was assigned by a Subledger workflow."
        }
      },
      "ResolveApprovalTargetOutput": {
        "properties": {
          "lineage": {
            "allOf": [
              {
                "$ref": "#/components/schemas/LocalizedApprovalInstanceLineage"
              }
            ],
            "default": null,
            "nullable": true
          },
          "resolution": {
            "enum": [
              "AMBIGUOUS",
              "NO_APPROVAL_INSTANCES",
              "SELECTED",
              "UNSUPPORTED_WORKFLOW_KIND"
            ],
            "title": "Resolution",
            "type": "string"
          },
          "selected_approval_instance_uuid": {
            "default": null,
            "format": "uuid",
            "nullable": true,
            "title": "Selected Approval Instance Uuid",
            "type": "string"
          },
          "viewer": {
            "$ref": "#/components/schemas/WorkflowsDebuggerViewerContext"
          }
        },
        "required": [
          "resolution",
          "viewer"
        ],
        "title": "ResolveApprovalTargetOutput",
        "type": "object"
      },
      "ResolveApprovalTargetRequestBody": {
        "additionalProperties": false,
        "description": "Resolve and cross-check an approval UUID, entity reference, or Ramp URL.\n\nEvery supplied locator is authoritative: each must independently parse and\nidentify the same target, so omit incidental context. Pass full URLs without\nextracting their UUID. The resolver never fetches the page. It locates\nrecorded approval-chain instances for a specific item; it does not look up\npolicy configuration.",
        "properties": {
          "approval_instance_uuid": {
            "default": null,
            "format": "uuid",
            "nullable": true,
            "title": "Approval Instance Uuid",
            "type": "string"
          },
          "entity_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApprovalEntityTypeRequestBody"
              }
            ],
            "default": null,
            "description": "UNIFIED_REQUEST resolves a unified-request ID, falling back to a spend-request UUID. SPEND_REQUEST requires a spend-request UUID.",
            "nullable": true
          },
          "entity_uuid": {
            "default": null,
            "description": "Identifier accepted by entity_type.",
            "format": "uuid",
            "nullable": true,
            "title": "Entity Uuid",
            "type": "string"
          },
          "history_requested": {
            "default": false,
            "title": "History Requested",
            "type": "boolean"
          },
          "page_url": {
            "default": null,
            "nullable": true,
            "title": "Page Url",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "workflow_execution_uuid": {
            "default": null,
            "format": "uuid",
            "nullable": true,
            "title": "Workflow Execution Uuid",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "ResolveApprovalTarget",
        "type": "object"
      },
      "ResolveApprovalTargetResponse": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/ResolveApprovalTargetOutput"
          },
          {
            "$ref": "#/components/schemas/ResolveBlankCanvasTargetOutput"
          }
        ],
        "title": "ResolveApprovalTargetResponse"
      },
      "ResolveBlankCanvasTargetOutput": {
        "properties": {
          "target": {
            "$ref": "#/components/schemas/LocalizedBlankCanvasTargetResolution"
          },
          "viewer": {
            "$ref": "#/components/schemas/WorkflowsDebuggerViewerContext"
          }
        },
        "required": [
          "target",
          "viewer"
        ],
        "title": "ResolveBlankCanvasTargetOutput",
        "type": "object"
      },
      "RestrictedProcurementDeflectionMatchJsonMode": {
        "additionalProperties": false,
        "properties": {
          "object_type": {
            "$ref": "#/components/schemas/ProcurementDeflectionObjectTypeJsonMode"
          },
          "owner_display_names": {
            "items": {
              "type": "string"
            },
            "title": "Owner Display Names",
            "type": "array"
          },
          "visibility": {
            "default": "restricted",
            "enum": [
              "restricted"
            ],
            "title": "Visibility",
            "type": "string"
          }
        },
        "required": [
          "object_type",
          "owner_display_names"
        ],
        "title": "RestrictedProcurementDeflectionMatch",
        "type": "object"
      },
      "ResubmitReimbursementRequestBody": {
        "description": "Revert a rejected reimbursement back to draft state so it can be edited and resubmitted.\n\nThis does NOT submit the reimbursement \u2014 it only moves it from REJECTED to DRAFT.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "reimbursement_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "description": "UUID of the rejected reimbursement in the current business to reopen as a draft.",
            "nullable": true
          }
        },
        "required": [
          "rationale",
          "reimbursement_uuid"
        ],
        "title": "ResubmitReimbursement",
        "type": "object"
      },
      "ResubmitReimbursementSuccess": {
        "properties": {
          "reimbursement_uuid": {
            "$ref": "#/components/schemas/EntityUUIDStr"
          }
        },
        "required": [
          "reimbursement_uuid"
        ],
        "title": "ResubmitReimbursementSuccess",
        "type": "object"
      },
      "ReturnRFXToDraftOutput": {
        "properties": {
          "message": {
            "description": "Human-readable result",
            "title": "Message",
            "type": "string"
          },
          "rfx_id": {
            "description": "UUID of the RFX",
            "title": "Rfx Id",
            "type": "string"
          },
          "status": {
            "description": "Lifecycle status after the call; DRAFT on success",
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "message",
          "rfx_id",
          "status"
        ],
        "title": "ReturnRFXToDraftOutput",
        "type": "object"
      },
      "ReturnRFXToDraftRequestBody": {
        "description": "Return a REJECTED RFX to DRAFT so it can be edited and re-published.\n\nOnly valid after a publish approval was rejected. The rejected approval\nworkflow is terminated and the RFX becomes editable again.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "rfx_id": {
            "description": "UUID of the REJECTED RFX to return to draft",
            "format": "uuid",
            "title": "Rfx Id",
            "type": "string"
          }
        },
        "required": [
          "rationale",
          "rfx_id"
        ],
        "title": "ReturnRFXToDraft",
        "type": "object"
      },
      "ReviewRecommendedDecision": {
        "description": "Whether an entity like a transaction should be approved or rejected based on AI policy assessment.",
        "enum": [
          "APPROVE",
          "REJECT",
          "UNSURE"
        ],
        "title": "ReviewRecommendedDecision",
        "type": "string"
      },
      "RevisionRequestState": {
        "description": "Stores whether the reviewer has requested revisions\nfrom the cardholder. This is colloqially referred to\nas `send back`. The reviewer would `send back` the\ntransaction to the cardholder, who would then `send back`\nagain to the reviewer.",
        "enum": [
          "NONE",
          "REVISION_COMPLETED",
          "REVISION_REQUESTED"
        ],
        "title": "RevisionRequestState",
        "type": "string"
      },
      "RevokeRFXVendorInvitationOutput": {
        "properties": {
          "invitation_id": {
            "description": "UUID of the vendor invitation",
            "title": "Invitation Id",
            "type": "string"
          },
          "message": {
            "description": "Human-readable result of the revocation",
            "title": "Message",
            "type": "string"
          },
          "outcome": {
            "description": "DELETED when a draft invitation was removed outright; REVOKED when an active invitation was revoked",
            "title": "Outcome",
            "type": "string"
          }
        },
        "required": [
          "invitation_id",
          "message",
          "outcome"
        ],
        "title": "RevokeRFXVendorInvitationOutput",
        "type": "object"
      },
      "RevokeRFXVendorInvitationRequestBody": {
        "description": "Remove a vendor from an RFX. This is irreversible \u2014 on a published RFX\nthe vendor immediately loses access to the questionnaire and any e-sign\nenvelope in flight is voided.\n\nDRAFT invitations are deleted outright; ACTIVE invitations are revoked\n(keeping their contact on record). Already-revoked invitations fail\ncleanly. Use GetRFXDetail to review invitations before revoking.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "rfx_vendor_invitation_id": {
            "description": "UUID of the RFX vendor invitation to revoke",
            "format": "uuid",
            "title": "Rfx Vendor Invitation Id",
            "type": "string"
          }
        },
        "required": [
          "rationale",
          "rfx_vendor_invitation_id"
        ],
        "title": "RevokeRFXVendorInvitation",
        "type": "object"
      },
      "RewardsSummary": {
        "description": "Business-level rewards summary.",
        "properties": {
          "available_points": {
            "description": "Points that are settled and available to redeem",
            "title": "Available Points",
            "type": "number"
          },
          "currency": {
            "description": "Currency the available and pending point balances are summarized in",
            "title": "Currency",
            "type": "string"
          },
          "has_paid_off_all_statements": {
            "description": "Whether the business has paid off all due statements. If False, cashback redemption may be blocked.",
            "title": "Has Paid Off All Statements",
            "type": "boolean"
          },
          "pending_points": {
            "description": "Points from unsettled transactions, not yet redeemable",
            "title": "Pending Points",
            "type": "number"
          },
          "points_earned_by_type": {
            "description": "Breakdown of points earned by type (e.g., card spend, bonuses)",
            "items": {
              "additionalProperties": {
                "type": "string"
              },
              "type": "object"
            },
            "title": "Points Earned By Type",
            "type": "array"
          },
          "redeemable_points_usd": {
            "description": "Whole redeemable points in USD (1 point = $0.01)",
            "title": "Redeemable Points Usd",
            "type": "integer"
          },
          "summary": {
            "description": "Natural language summary for the user",
            "title": "Summary",
            "type": "string"
          }
        },
        "required": [
          "available_points",
          "currency",
          "has_paid_off_all_statements",
          "pending_points",
          "points_earned_by_type",
          "redeemable_points_usd",
          "summary"
        ],
        "title": "RewardsSummary",
        "type": "object"
      },
      "RouterApiKeyActionResult": {
        "properties": {
          "id": {
            "description": "Ramp id of the Router API key.",
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "lock_reasons": {
            "description": "Why Router still blocks the key after the action, if it does.",
            "items": {
              "$ref": "#/components/schemas/RouterApiKeyLockReason"
            },
            "nullable": true,
            "title": "Lock Reasons",
            "type": "array"
          },
          "message": {
            "description": "Extra detail about the outcome.",
            "nullable": true,
            "title": "Message",
            "type": "string"
          },
          "name": {
            "description": "Name of the key.",
            "nullable": true,
            "title": "Name",
            "type": "string"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiKeyNormalizedStatus"
              }
            ],
            "description": "Status of the key after the action.",
            "nullable": true
          }
        },
        "required": [
          "id",
          "lock_reasons",
          "message",
          "name",
          "status"
        ],
        "title": "RouterApiKeyActionResult",
        "type": "object"
      },
      "RouterApiKeyLimitChange": {
        "properties": {
          "api_keys": {
            "items": {
              "$ref": "#/components/schemas/RouterApiKeyLimitResult"
            },
            "title": "Api Keys",
            "type": "array"
          },
          "router_sync_pending": {
            "description": "True when Router has not yet applied the latest saved limit on a key. Until it does, Router enforces the previous limit.",
            "title": "Router Sync Pending",
            "type": "boolean"
          }
        },
        "required": [
          "api_keys",
          "router_sync_pending"
        ],
        "title": "RouterApiKeyLimitChange",
        "type": "object"
      },
      "RouterApiKeyLimitConfirmationNeeded": {
        "properties": {
          "api_keys": {
            "description": "Keys whose spend this period is at or above 80% of the new limit.",
            "items": {
              "$ref": "#/components/schemas/RouterApiKeySpend"
            },
            "title": "Api Keys",
            "type": "array"
          },
          "limit": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RouterSavedBudget"
              }
            ],
            "description": "The new limit."
          },
          "status": {
            "default": "confirmation_needed",
            "description": "Nothing was saved. The change needs the user's explicit yes.",
            "enum": [
              "confirmation_needed"
            ],
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "api_keys",
          "limit"
        ],
        "title": "RouterApiKeyLimitConfirmationNeeded",
        "type": "object"
      },
      "RouterApiKeyLimitResult": {
        "properties": {
          "api_key_id": {
            "format": "uuid",
            "title": "Api Key Id",
            "type": "string"
          },
          "blocks_at_limit": {
            "description": "True when reaching the limit stops the key; false when it only sends alerts. Null when there is no limit.",
            "nullable": true,
            "title": "Blocks At Limit",
            "type": "boolean"
          },
          "limit": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RouterSavedBudget"
              }
            ],
            "description": "The saved limit, or the removed one for a removal.",
            "nullable": true
          },
          "status": {
            "description": "applied; unchanged when the key already had this limit; or no_budget when a removal found no limit.",
            "enum": [
              "applied",
              "no_budget",
              "unchanged"
            ],
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "api_key_id",
          "blocks_at_limit",
          "limit",
          "status"
        ],
        "title": "RouterApiKeyLimitResult",
        "type": "object"
      },
      "RouterApiKeyList": {
        "properties": {
          "keys": {
            "description": "Keys, highest spend in the last 30 days first.",
            "items": {
              "$ref": "#/components/schemas/RouterApiKeySummary"
            },
            "title": "Keys",
            "type": "array"
          },
          "next_page_cursor": {
            "description": "Pass this value to get the next page; null on the last page.",
            "nullable": true,
            "title": "Next Page Cursor",
            "type": "string"
          }
        },
        "required": [
          "keys",
          "next_page_cursor"
        ],
        "title": "RouterApiKeyList",
        "type": "object"
      },
      "RouterApiKeyLockReason": {
        "description": "Why Router blocks a key. Stored as Router reports it, in Router's order.",
        "enum": [
          "admin_lock",
          "business_access_revoked",
          "key_limit",
          "member_limit",
          "owner_lock",
          "router_operator",
          "service_account_limit",
          "workspace_limit"
        ],
        "title": "RouterApiKeyLockReason",
        "type": "string"
      },
      "RouterApiKeySpend": {
        "properties": {
          "api_key_id": {
            "format": "uuid",
            "title": "Api Key Id",
            "type": "string"
          },
          "spend_this_period_usd": {
            "title": "Spend This Period Usd",
            "type": "number"
          }
        },
        "required": [
          "api_key_id",
          "spend_this_period_usd"
        ],
        "title": "RouterApiKeySpend",
        "type": "object"
      },
      "RouterApiKeySummary": {
        "properties": {
          "id": {
            "description": "Ramp id of the Router API key.",
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "key_hint": {
            "description": "Redacted hint of the key, for example sk-...ab12; null when unknown.",
            "nullable": true,
            "title": "Key Hint",
            "type": "string"
          },
          "kind": {
            "description": "personal keys belong to one user; service_account keys to a Router service account.",
            "enum": [
              "personal",
              "service_account"
            ],
            "title": "Kind",
            "type": "string"
          },
          "lock_reasons": {
            "description": "Why Router blocks the key; empty when it does not.",
            "items": {
              "$ref": "#/components/schemas/RouterApiKeyLockReason"
            },
            "nullable": true,
            "title": "Lock Reasons",
            "type": "array"
          },
          "name": {
            "description": "Name of the key.",
            "nullable": true,
            "title": "Name",
            "type": "string"
          },
          "owner_email": {
            "description": "Email of the key's Router user.",
            "nullable": true,
            "title": "Owner Email",
            "type": "string"
          },
          "owner_name": {
            "description": "Name of that user.",
            "nullable": true,
            "title": "Owner Name",
            "type": "string"
          },
          "owner_user_uuid": {
            "description": "Ramp user who owns a personal key; null when unknown.",
            "nullable": true,
            "title": "Owner User Uuid",
            "type": "string"
          },
          "service_account_name": {
            "description": "Name of the service account, for service_account keys.",
            "nullable": true,
            "title": "Service Account Name",
            "type": "string"
          },
          "spend_last_30_days_usd": {
            "description": "USD the key spent in the last 30 days, including today (UTC), from Ramp's AI Spend usage data. Includes an estimated cost for traffic on the company's own provider keys (BYOK), so it can be higher than what Router charged. Updated about once an hour, so the newest hour or two may be missing.",
            "nullable": true,
            "title": "Spend Last 30 Days Usd",
            "type": "number"
          },
          "spend_limit": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SpendLimitBaseResponseSchema"
              }
            ],
            "description": "The key's spend limit saved in Ramp, in USD. Null means no limit is saved in Ramp for the key. spend_limit_sync says whether Router enforces it yet.",
            "nullable": true
          },
          "spend_limit_sync": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RouterKeyLimitSyncSchema"
              }
            ],
            "description": "Whether Router applied the latest saved limit change. pending: Router may still enforce the previous limit. failed: Router did not apply it. Null when no limit was ever saved for the key.",
            "nullable": true
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiKeyNormalizedStatus"
              }
            ],
            "description": "Status of the key.",
            "nullable": true
          }
        },
        "required": [
          "id",
          "key_hint",
          "kind",
          "lock_reasons",
          "name",
          "owner_email",
          "owner_name",
          "owner_user_uuid",
          "service_account_name",
          "spend_last_30_days_usd",
          "spend_limit",
          "spend_limit_sync",
          "status"
        ],
        "title": "RouterApiKeySummary",
        "type": "object"
      },
      "RouterBenchmarkStrategy": {
        "properties": {
          "benchmarks": {
            "description": "1 to 3 benchmarks with weights.",
            "items": {
              "$ref": "#/components/schemas/RouterBenchmarkWeight"
            },
            "maxItems": 3,
            "minItems": 1,
            "title": "Benchmarks",
            "type": "array"
          },
          "type": {
            "enum": [
              "benchmark"
            ],
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "type"
        ],
        "title": "RouterBenchmarkStrategy",
        "type": "object"
      },
      "RouterBenchmarkStrategyRequestBody": {
        "properties": {
          "benchmarks": {
            "description": "1 to 3 benchmarks with weights.",
            "items": {
              "$ref": "#/components/schemas/RouterBenchmarkWeightRequestBody"
            },
            "maxItems": 3,
            "minItems": 1,
            "title": "Benchmarks",
            "type": "array"
          },
          "type": {
            "enum": [
              "benchmark"
            ],
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "type"
        ],
        "title": "RouterBenchmarkStrategy",
        "type": "object"
      },
      "RouterBenchmarkWeight": {
        "properties": {
          "benchmark_id": {
            "title": "Benchmark Id",
            "type": "string"
          },
          "weight": {
            "maximum": 100,
            "minimum": 1,
            "title": "Weight",
            "type": "integer"
          }
        },
        "required": [
          "benchmark_id",
          "weight"
        ],
        "title": "RouterBenchmarkWeight",
        "type": "object"
      },
      "RouterBenchmarkWeightRequestBody": {
        "properties": {
          "benchmark_id": {
            "title": "Benchmark Id",
            "type": "string"
          },
          "weight": {
            "maximum": 100,
            "minimum": 1,
            "title": "Weight",
            "type": "integer"
          }
        },
        "required": [
          "benchmark_id",
          "weight"
        ],
        "title": "RouterBenchmarkWeight",
        "type": "object"
      },
      "RouterBudget": {
        "properties": {
          "amount_usd": {
            "title": "Amount Usd",
            "type": "string"
          },
          "core_user_uuid": {
            "description": "Null for the company budget.",
            "format": "uuid",
            "nullable": true,
            "title": "Core User Uuid",
            "type": "string"
          },
          "evaluated_spend_usd": {
            "description": "Spend in the current period.",
            "title": "Evaluated Spend Usd",
            "type": "string"
          },
          "interval": {
            "enum": [
              "daily",
              "lifetime",
              "monthly",
              "weekly",
              "yearly"
            ],
            "title": "Interval",
            "type": "string"
          },
          "locked": {
            "title": "Locked",
            "type": "boolean"
          }
        },
        "required": [
          "amount_usd",
          "core_user_uuid",
          "evaluated_spend_usd",
          "interval",
          "locked"
        ],
        "title": "RouterBudget",
        "type": "object"
      },
      "RouterClassifierCandidate": {
        "properties": {
          "description": {
            "description": "When to pick this model.",
            "maxLength": 300,
            "minLength": 1,
            "title": "Description",
            "type": "string"
          },
          "model": {
            "title": "Model",
            "type": "string"
          }
        },
        "required": [
          "description",
          "model"
        ],
        "title": "RouterClassifierCandidate",
        "type": "object"
      },
      "RouterClassifierCandidateRequestBody": {
        "properties": {
          "description": {
            "description": "When to pick this model.",
            "maxLength": 300,
            "minLength": 1,
            "title": "Description",
            "type": "string"
          },
          "model": {
            "title": "Model",
            "type": "string"
          }
        },
        "required": [
          "description",
          "model"
        ],
        "title": "RouterClassifierCandidate",
        "type": "object"
      },
      "RouterClassifierStrategy": {
        "properties": {
          "candidates": {
            "description": "2 to 6 models; the first is the default.",
            "items": {
              "$ref": "#/components/schemas/RouterClassifierCandidate"
            },
            "maxItems": 6,
            "minItems": 2,
            "title": "Candidates",
            "type": "array"
          },
          "type": {
            "enum": [
              "classifier"
            ],
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "type"
        ],
        "title": "RouterClassifierStrategy",
        "type": "object"
      },
      "RouterClassifierStrategyRequestBody": {
        "properties": {
          "candidates": {
            "description": "2 to 6 models; the first is the default.",
            "items": {
              "$ref": "#/components/schemas/RouterClassifierCandidateRequestBody"
            },
            "maxItems": 6,
            "minItems": 2,
            "title": "Candidates",
            "type": "array"
          },
          "type": {
            "enum": [
              "classifier"
            ],
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "type"
        ],
        "title": "RouterClassifierStrategy",
        "type": "object"
      },
      "RouterCodingSettings": {
        "properties": {
          "cost_efficient_routing_enabled": {
            "description": "Flex: route eligible requests through the cheaper flex tier.",
            "title": "Cost Efficient Routing Enabled",
            "type": "boolean"
          },
          "provider_routing_preference": {
            "description": "Null inherits the company's.",
            "enum": [
              "cost_only",
              "favor_cost",
              "favor_throughput",
              "throughput_only"
            ],
            "nullable": true,
            "title": "Provider Routing Preference",
            "type": "string"
          },
          "subagent_routing_mode": {
            "default": null,
            "description": "Null inherits the company default.",
            "enum": [
              "balanced",
              "off",
              "quality_first",
              "savings_first"
            ],
            "nullable": true,
            "title": "Subagent Routing Mode",
            "type": "string"
          },
          "subagent_routing_models": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RouterSubagentRoutingModels"
              }
            ],
            "default": null,
            "description": "Custom models per subagent class; null uses the mode's default models.",
            "nullable": true
          }
        },
        "required": [
          "cost_efficient_routing_enabled",
          "provider_routing_preference"
        ],
        "title": "RouterCodingSettings",
        "type": "object"
      },
      "RouterCodingWorkload": {
        "description": "A person's coding workload: a model name they pick with /model.",
        "properties": {
          "cost_efficient_routing_enabled": {
            "description": "Flex: route eligible requests through the cheaper flex tier.",
            "title": "Cost Efficient Routing Enabled",
            "type": "boolean"
          },
          "id": {
            "default": null,
            "description": "Workload ID; omitted on create dry-run drafts.",
            "format": "uuid",
            "nullable": true,
            "title": "Id",
            "type": "string"
          },
          "provider_routing_preference": {
            "description": "Null inherits the company's.",
            "enum": [
              "cost_only",
              "favor_cost",
              "favor_throughput",
              "throughput_only"
            ],
            "nullable": true,
            "title": "Provider Routing Preference",
            "type": "string"
          },
          "requests_last_7_days": {
            "default": null,
            "description": "Successful requests in the last 7 days; null when unknown.",
            "nullable": true,
            "title": "Requests Last 7 Days",
            "type": "integer"
          },
          "slug": {
            "description": "The name the user picks with /model.",
            "title": "Slug",
            "type": "string"
          },
          "strategy": {
            "description": "How Router picks the model; null when the workload has none.",
            "discriminator": {
              "mapping": {
                "benchmark": "#/components/schemas/RouterBenchmarkStrategy",
                "classifier": "#/components/schemas/RouterClassifierStrategy",
                "model_list": "#/components/schemas/RouterModelListStrategy",
                "switchyard": "#/components/schemas/RouterSwitchyardStrategy"
              },
              "propertyName": "type"
            },
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/RouterBenchmarkStrategy"
              },
              {
                "$ref": "#/components/schemas/RouterClassifierStrategy"
              },
              {
                "$ref": "#/components/schemas/RouterModelListStrategy"
              },
              {
                "$ref": "#/components/schemas/RouterSwitchyardStrategy"
              }
            ],
            "title": "Strategy"
          },
          "subagent_routing_mode": {
            "default": null,
            "description": "Null inherits the company default.",
            "enum": [
              "balanced",
              "off",
              "quality_first",
              "savings_first"
            ],
            "nullable": true,
            "title": "Subagent Routing Mode",
            "type": "string"
          },
          "subagent_routing_models": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RouterSubagentRoutingModels"
              }
            ],
            "default": null,
            "description": "Custom models per subagent class; null uses the mode's default models.",
            "nullable": true
          }
        },
        "required": [
          "cost_efficient_routing_enabled",
          "provider_routing_preference",
          "slug",
          "strategy"
        ],
        "title": "RouterCodingWorkload",
        "type": "object"
      },
      "RouterDefaultCodingSettings": {
        "properties": {
          "label": {
            "title": "Label",
            "type": "string"
          },
          "note": {
            "default": null,
            "nullable": true,
            "title": "Note",
            "type": "string"
          },
          "settings": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RouterCodingSettings"
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "label",
          "settings"
        ],
        "title": "RouterDefaultCodingSettings",
        "type": "object"
      },
      "RouterDepartment": {
        "properties": {
          "core_department_uuid": {
            "format": "uuid",
            "title": "Core Department Uuid",
            "type": "string"
          },
          "model_policy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RouterModelPolicyOverride"
              }
            ],
            "nullable": true
          },
          "name": {
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "core_department_uuid",
          "model_policy",
          "name"
        ],
        "title": "RouterDepartment",
        "type": "object"
      },
      "RouterDepartmentModelPolicyResult": {
        "properties": {
          "core_department_uuid": {
            "format": "uuid",
            "title": "Core Department Uuid",
            "type": "string"
          },
          "policy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RouterDepartment"
              }
            ],
            "nullable": true
          },
          "status": {
            "enum": [
              "applied",
              "not_found"
            ],
            "title": "Status",
            "type": "string"
          },
          "still_blocked": {
            "items": {
              "$ref": "#/components/schemas/RouterStillBlockedModel"
            },
            "title": "Still Blocked",
            "type": "array"
          }
        },
        "required": [
          "core_department_uuid",
          "policy",
          "status",
          "still_blocked"
        ],
        "title": "RouterDepartmentModelPolicyResult",
        "type": "object"
      },
      "RouterImpactKey": {
        "properties": {
          "name": {
            "title": "Name",
            "type": "string"
          },
          "owner": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RouterImpactKeyOwner"
              }
            ],
            "nullable": true
          },
          "request_count": {
            "title": "Request Count",
            "type": "integer"
          }
        },
        "required": [
          "name",
          "owner",
          "request_count"
        ],
        "title": "RouterImpactKey",
        "type": "object"
      },
      "RouterImpactKeyOwner": {
        "properties": {
          "email": {
            "description": "Null for a service account.",
            "nullable": true,
            "title": "Email",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "email",
          "name"
        ],
        "title": "RouterImpactKeyOwner",
        "type": "object"
      },
      "RouterImpactSummary": {
        "properties": {
          "key_count": {
            "title": "Key Count",
            "type": "integer"
          },
          "member_count": {
            "title": "Member Count",
            "type": "integer"
          },
          "request_count": {
            "title": "Request Count",
            "type": "integer"
          },
          "service_account_count": {
            "title": "Service Account Count",
            "type": "integer"
          },
          "spend_usd": {
            "title": "Spend Usd",
            "type": "string"
          }
        },
        "required": [
          "key_count",
          "member_count",
          "request_count",
          "service_account_count",
          "spend_usd"
        ],
        "title": "RouterImpactSummary",
        "type": "object"
      },
      "RouterKeyLimitPushFailure": {
        "description": "Why Core stopped pushing a Router key's limit version to Router.",
        "enum": [
          "pending_activation",
          "rejected",
          "retries_exhausted"
        ],
        "title": "RouterKeyLimitPushFailure",
        "type": "string"
      },
      "RouterKeyLimitSyncSchema": {
        "description": "Whether Router has applied the key's latest Core limit.",
        "properties": {
          "admin_managed": {
            "title": "Admin Managed",
            "type": "boolean"
          },
          "failed_at": {
            "format": "date-time",
            "nullable": true,
            "title": "Failed At",
            "type": "string"
          },
          "failure_reason": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RouterKeyLimitPushFailure"
              }
            ],
            "nullable": true
          },
          "limit_version": {
            "title": "Limit Version",
            "type": "integer"
          },
          "router_limit_version": {
            "title": "Router Limit Version",
            "type": "integer"
          },
          "sync_state": {
            "$ref": "#/components/schemas/RouterKeyLimitSyncState"
          }
        },
        "required": [
          "admin_managed",
          "failed_at",
          "failure_reason",
          "limit_version",
          "router_limit_version",
          "sync_state"
        ],
        "title": "RouterKeyLimitSyncSchema",
        "type": "object"
      },
      "RouterKeyLimitSyncState": {
        "enum": [
          "failed",
          "pending",
          "synced"
        ],
        "title": "RouterKeyLimitSyncState",
        "type": "string"
      },
      "RouterMember": {
        "properties": {
          "core_user_uuid": {
            "format": "uuid",
            "title": "Core User Uuid",
            "type": "string"
          },
          "email": {
            "title": "Email",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "role": {
            "enum": [
              "admin",
              "free",
              "user"
            ],
            "nullable": true,
            "title": "Role",
            "type": "string"
          },
          "status": {
            "enum": [
              "active",
              "reauth_required"
            ],
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "core_user_uuid",
          "email",
          "name",
          "role",
          "status"
        ],
        "title": "RouterMember",
        "type": "object"
      },
      "RouterMemberIdentity": {
        "properties": {
          "email": {
            "title": "Email",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "email",
          "name"
        ],
        "title": "RouterMemberIdentity",
        "type": "object"
      },
      "RouterMemberModelPolicy": {
        "properties": {
          "blocked_models": {
            "items": {
              "type": "string"
            },
            "title": "Blocked Models",
            "type": "array"
          },
          "blocked_providers": {
            "items": {
              "type": "string"
            },
            "title": "Blocked Providers",
            "type": "array"
          },
          "core_user_uuid": {
            "format": "uuid",
            "title": "Core User Uuid",
            "type": "string"
          },
          "fast_mode_enabled": {
            "description": "Null inherits the company's.",
            "nullable": true,
            "title": "Fast Mode Enabled",
            "type": "boolean"
          },
          "frontier_enabled": {
            "description": "Null inherits the company's.",
            "nullable": true,
            "title": "Frontier Enabled",
            "type": "boolean"
          },
          "member": {
            "$ref": "#/components/schemas/RouterMemberIdentity"
          },
          "model_controls": {
            "additionalProperties": {
              "$ref": "#/components/schemas/RouterModelControl"
            },
            "title": "Model Controls",
            "type": "object"
          },
          "unblocked_models": {
            "description": "Models this person or department may use even when an earlier layer blocks them. Each lifts only a block saved under the exact same name.",
            "items": {
              "type": "string"
            },
            "title": "Unblocked Models",
            "type": "array"
          },
          "unblocked_providers": {
            "description": "Providers this person or department may use even when an earlier layer blocks them. Each lifts only a block saved under the exact same name.",
            "items": {
              "type": "string"
            },
            "title": "Unblocked Providers",
            "type": "array"
          }
        },
        "required": [
          "blocked_models",
          "blocked_providers",
          "core_user_uuid",
          "fast_mode_enabled",
          "frontier_enabled",
          "member",
          "model_controls",
          "unblocked_models",
          "unblocked_providers"
        ],
        "title": "RouterMemberModelPolicy",
        "type": "object"
      },
      "RouterMemberModelPolicyResult": {
        "properties": {
          "core_user_uuid": {
            "format": "uuid",
            "title": "Core User Uuid",
            "type": "string"
          },
          "policies": {
            "description": "One per Router account of the person.",
            "items": {
              "$ref": "#/components/schemas/RouterModelPolicyOverride"
            },
            "title": "Policies",
            "type": "array"
          },
          "status": {
            "enum": [
              "applied",
              "not_on_router"
            ],
            "title": "Status",
            "type": "string"
          },
          "still_blocked": {
            "items": {
              "$ref": "#/components/schemas/RouterStillBlockedModel"
            },
            "title": "Still Blocked",
            "type": "array"
          }
        },
        "required": [
          "core_user_uuid",
          "policies",
          "status",
          "still_blocked"
        ],
        "title": "RouterMemberModelPolicyResult",
        "type": "object"
      },
      "RouterMemberPage": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/RouterMember"
            },
            "title": "Data",
            "type": "array"
          },
          "has_more": {
            "title": "Has More",
            "type": "boolean"
          }
        },
        "required": [
          "data",
          "has_more"
        ],
        "title": "RouterMemberPage",
        "type": "object"
      },
      "RouterModelControl": {
        "properties": {
          "blocked_service_tiers": {
            "description": "Blocked tiers, such as fast or priority.",
            "items": {
              "type": "string"
            },
            "title": "Blocked Service Tiers",
            "type": "array"
          },
          "max_reasoning_effort": {
            "default": null,
            "description": "Null is no cap.",
            "nullable": true,
            "title": "Max Reasoning Effort",
            "type": "string"
          }
        },
        "required": [
          "blocked_service_tiers",
          "max_reasoning_effort"
        ],
        "title": "RouterModelControl",
        "type": "object"
      },
      "RouterModelList": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/RouterModelOption"
            },
            "title": "Data",
            "type": "array"
          }
        },
        "required": [
          "data"
        ],
        "title": "RouterModelList",
        "type": "object"
      },
      "RouterModelListStrategy": {
        "properties": {
          "models": {
            "description": "1 to 15 models, tried in order.",
            "items": {
              "type": "string"
            },
            "maxItems": 15,
            "minItems": 1,
            "title": "Models",
            "type": "array"
          },
          "type": {
            "enum": [
              "model_list"
            ],
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "type"
        ],
        "title": "RouterModelListStrategy",
        "type": "object"
      },
      "RouterModelListStrategyRequestBody": {
        "properties": {
          "models": {
            "description": "1 to 15 models, tried in order.",
            "items": {
              "type": "string"
            },
            "maxItems": 15,
            "minItems": 1,
            "title": "Models",
            "type": "array"
          },
          "type": {
            "enum": [
              "model_list"
            ],
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "type"
        ],
        "title": "RouterModelListStrategy",
        "type": "object"
      },
      "RouterModelOption": {
        "properties": {
          "alias_for": {
            "default": null,
            "description": "The model a managed alias points to now.",
            "nullable": true,
            "title": "Alias For",
            "type": "string"
          },
          "display_name": {
            "title": "Display Name",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "provider": {
            "title": "Provider",
            "type": "string"
          }
        },
        "required": [
          "alias_for",
          "display_name",
          "name",
          "provider"
        ],
        "title": "RouterModelOption",
        "type": "object"
      },
      "RouterModelPolicy": {
        "description": "The company's Router model policy.",
        "properties": {
          "blocked_models": {
            "items": {
              "type": "string"
            },
            "title": "Blocked Models",
            "type": "array"
          },
          "blocked_providers": {
            "items": {
              "type": "string"
            },
            "title": "Blocked Providers",
            "type": "array"
          },
          "fast_mode_enabled": {
            "title": "Fast Mode Enabled",
            "type": "boolean"
          },
          "fast_mode_off_action": {
            "enum": [
              "block",
              "downgrade"
            ],
            "title": "Fast Mode Off Action",
            "type": "string"
          },
          "frontier_enabled": {
            "title": "Frontier Enabled",
            "type": "boolean"
          },
          "model_controls": {
            "additionalProperties": {
              "$ref": "#/components/schemas/RouterModelControl"
            },
            "description": "By model name; \"*\" is every model.",
            "title": "Model Controls",
            "type": "object"
          }
        },
        "required": [
          "blocked_models",
          "blocked_providers",
          "fast_mode_enabled",
          "fast_mode_off_action",
          "frontier_enabled",
          "model_controls"
        ],
        "title": "RouterModelPolicy",
        "type": "object"
      },
      "RouterModelPolicyChangeResult": {
        "properties": {
          "company": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RouterModelPolicy"
              }
            ],
            "nullable": true
          },
          "departments": {
            "items": {
              "$ref": "#/components/schemas/RouterDepartmentModelPolicyResult"
            },
            "title": "Departments",
            "type": "array"
          },
          "members": {
            "items": {
              "$ref": "#/components/schemas/RouterMemberModelPolicyResult"
            },
            "title": "Members",
            "type": "array"
          },
          "models": {
            "items": {
              "$ref": "#/components/schemas/RouterModelOption"
            },
            "title": "Models",
            "type": "array"
          },
          "still_blocked": {
            "items": {
              "$ref": "#/components/schemas/RouterStillBlockedModel"
            },
            "title": "Still Blocked",
            "type": "array"
          }
        },
        "required": [
          "company",
          "departments",
          "members",
          "models",
          "still_blocked"
        ],
        "title": "RouterModelPolicyChangeResult",
        "type": "object"
      },
      "RouterModelPolicyConfirmationNeeded": {
        "properties": {
          "impact": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RouterModelPolicyImpact"
              }
            ],
            "description": "Recent requests from the targets that the change would stop, from start_at to end_at."
          },
          "status": {
            "default": "confirmation_needed",
            "description": "Nothing was saved. The change needs the user's explicit yes.",
            "enum": [
              "confirmation_needed"
            ],
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "impact"
        ],
        "title": "RouterModelPolicyConfirmationNeeded",
        "type": "object"
      },
      "RouterModelPolicyImpact": {
        "description": "Requests from the targets that the change would have stopped.",
        "properties": {
          "end_at": {
            "format": "date-time",
            "title": "End At",
            "type": "string"
          },
          "keys": {
            "description": "At most 100, most used first.",
            "items": {
              "$ref": "#/components/schemas/RouterImpactKey"
            },
            "title": "Keys",
            "type": "array"
          },
          "keys_truncated": {
            "title": "Keys Truncated",
            "type": "boolean"
          },
          "start_at": {
            "format": "date-time",
            "title": "Start At",
            "type": "string"
          },
          "stops_fast_requests": {
            "description": "True when the change makes fast requests fail.",
            "title": "Stops Fast Requests",
            "type": "boolean"
          },
          "summary": {
            "$ref": "#/components/schemas/RouterImpactSummary"
          }
        },
        "required": [
          "end_at",
          "keys",
          "keys_truncated",
          "start_at",
          "stops_fast_requests",
          "summary"
        ],
        "title": "RouterModelPolicyImpact",
        "type": "object"
      },
      "RouterModelPolicyOverride": {
        "description": "A person's or department's override of the company policy.",
        "properties": {
          "blocked_models": {
            "items": {
              "type": "string"
            },
            "title": "Blocked Models",
            "type": "array"
          },
          "blocked_providers": {
            "items": {
              "type": "string"
            },
            "title": "Blocked Providers",
            "type": "array"
          },
          "fast_mode_enabled": {
            "description": "Null inherits the company's.",
            "nullable": true,
            "title": "Fast Mode Enabled",
            "type": "boolean"
          },
          "frontier_enabled": {
            "description": "Null inherits the company's.",
            "nullable": true,
            "title": "Frontier Enabled",
            "type": "boolean"
          },
          "model_controls": {
            "additionalProperties": {
              "$ref": "#/components/schemas/RouterModelControl"
            },
            "title": "Model Controls",
            "type": "object"
          },
          "unblocked_models": {
            "description": "Models this person or department may use even when an earlier layer blocks them. Each lifts only a block saved under the exact same name.",
            "items": {
              "type": "string"
            },
            "title": "Unblocked Models",
            "type": "array"
          },
          "unblocked_providers": {
            "description": "Providers this person or department may use even when an earlier layer blocks them. Each lifts only a block saved under the exact same name.",
            "items": {
              "type": "string"
            },
            "title": "Unblocked Providers",
            "type": "array"
          }
        },
        "required": [
          "blocked_models",
          "blocked_providers",
          "fast_mode_enabled",
          "frontier_enabled",
          "model_controls",
          "unblocked_models",
          "unblocked_providers"
        ],
        "title": "RouterModelPolicyOverride",
        "type": "object"
      },
      "RouterRequestLogDetailJsonMode": {
        "properties": {
          "api_key_id": {
            "default": null,
            "nullable": true,
            "title": "Api Key Id",
            "type": "string"
          },
          "api_key_name": {
            "default": null,
            "nullable": true,
            "title": "Api Key Name",
            "type": "string"
          },
          "cache_hit": {
            "default": false,
            "title": "Cache Hit",
            "type": "boolean"
          },
          "cached_input_tokens": {
            "default": 0,
            "title": "Cached Input Tokens",
            "type": "integer"
          },
          "client_kind": {
            "default": null,
            "nullable": true,
            "title": "Client Kind",
            "type": "string"
          },
          "completed_at": {
            "default": null,
            "format": "date-time",
            "nullable": true,
            "title": "Completed At",
            "type": "string"
          },
          "cost_usd": {
            "default": null,
            "nullable": true,
            "title": "Cost Usd",
            "type": "string"
          },
          "credential_source": {
            "default": null,
            "description": "For example byok when the company's own key paid.",
            "nullable": true,
            "title": "Credential Source",
            "type": "string"
          },
          "error_code": {
            "default": null,
            "nullable": true,
            "title": "Error Code",
            "type": "string"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "input_tokens": {
            "default": 0,
            "title": "Input Tokens",
            "type": "integer"
          },
          "latency_ms": {
            "default": null,
            "nullable": true,
            "title": "Latency Ms",
            "type": "number"
          },
          "model": {
            "title": "Model",
            "type": "string"
          },
          "output_tokens": {
            "default": 0,
            "title": "Output Tokens",
            "type": "integer"
          },
          "provider": {
            "title": "Provider",
            "type": "string"
          },
          "provider_list_cost_usd": {
            "default": null,
            "nullable": true,
            "title": "Provider List Cost Usd",
            "type": "string"
          },
          "provider_model": {
            "title": "Provider Model",
            "type": "string"
          },
          "reasoning_effort": {
            "default": null,
            "nullable": true,
            "title": "Reasoning Effort",
            "type": "string"
          },
          "reasoning_tokens": {
            "default": 0,
            "title": "Reasoning Tokens",
            "type": "integer"
          },
          "request_kind": {
            "default": null,
            "description": "For example turn, compaction, or cache_keepalive.",
            "nullable": true,
            "title": "Request Kind",
            "type": "string"
          },
          "request_metadata": {
            "additionalProperties": {
              "type": "string"
            },
            "title": "Request Metadata",
            "type": "object"
          },
          "routing": {
            "default": null,
            "nullable": true,
            "title": "Routing",
            "type": "object"
          },
          "routing_cost_delta_usd": {
            "default": null,
            "nullable": true,
            "title": "Routing Cost Delta Usd",
            "type": "string"
          },
          "service_tier": {
            "default": null,
            "nullable": true,
            "title": "Service Tier",
            "type": "string"
          },
          "speed": {
            "default": null,
            "nullable": true,
            "title": "Speed",
            "type": "string"
          },
          "status": {
            "title": "Status",
            "type": "string"
          },
          "strategy_attribution": {
            "default": null,
            "nullable": true,
            "title": "Strategy Attribution",
            "type": "object"
          },
          "timestamp": {
            "format": "date-time",
            "title": "Timestamp",
            "type": "string"
          },
          "total_tokens": {
            "default": 0,
            "title": "Total Tokens",
            "type": "integer"
          },
          "upgrade_applied_from": {
            "default": null,
            "nullable": true,
            "title": "Upgrade Applied From",
            "type": "string"
          },
          "upgraded_from_model": {
            "default": null,
            "nullable": true,
            "title": "Upgraded From Model",
            "type": "string"
          }
        },
        "required": [
          "api_key_id",
          "api_key_name",
          "cache_hit",
          "cached_input_tokens",
          "client_kind",
          "completed_at",
          "cost_usd",
          "credential_source",
          "error_code",
          "id",
          "input_tokens",
          "latency_ms",
          "model",
          "output_tokens",
          "provider",
          "provider_list_cost_usd",
          "provider_model",
          "reasoning_effort",
          "reasoning_tokens",
          "request_kind",
          "request_metadata",
          "routing",
          "routing_cost_delta_usd",
          "service_tier",
          "speed",
          "status",
          "strategy_attribution",
          "timestamp",
          "total_tokens",
          "upgrade_applied_from",
          "upgraded_from_model"
        ],
        "title": "RouterRequestLogDetail",
        "type": "object"
      },
      "RouterRequestLogJsonMode": {
        "properties": {
          "api_key_id": {
            "default": null,
            "nullable": true,
            "title": "Api Key Id",
            "type": "string"
          },
          "api_key_name": {
            "default": null,
            "nullable": true,
            "title": "Api Key Name",
            "type": "string"
          },
          "client_kind": {
            "default": null,
            "nullable": true,
            "title": "Client Kind",
            "type": "string"
          },
          "cost_usd": {
            "default": null,
            "nullable": true,
            "title": "Cost Usd",
            "type": "string"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "input_tokens": {
            "default": 0,
            "title": "Input Tokens",
            "type": "integer"
          },
          "latency_ms": {
            "default": null,
            "nullable": true,
            "title": "Latency Ms",
            "type": "number"
          },
          "model": {
            "title": "Model",
            "type": "string"
          },
          "output_tokens": {
            "default": 0,
            "title": "Output Tokens",
            "type": "integer"
          },
          "provider": {
            "title": "Provider",
            "type": "string"
          },
          "provider_model": {
            "title": "Provider Model",
            "type": "string"
          },
          "request_kind": {
            "default": null,
            "description": "For example turn, compaction, or cache_keepalive.",
            "nullable": true,
            "title": "Request Kind",
            "type": "string"
          },
          "service_tier": {
            "default": null,
            "nullable": true,
            "title": "Service Tier",
            "type": "string"
          },
          "speed": {
            "default": null,
            "nullable": true,
            "title": "Speed",
            "type": "string"
          },
          "status": {
            "title": "Status",
            "type": "string"
          },
          "timestamp": {
            "format": "date-time",
            "title": "Timestamp",
            "type": "string"
          },
          "total_tokens": {
            "default": 0,
            "title": "Total Tokens",
            "type": "integer"
          }
        },
        "required": [
          "api_key_id",
          "api_key_name",
          "client_kind",
          "cost_usd",
          "id",
          "input_tokens",
          "latency_ms",
          "model",
          "output_tokens",
          "provider",
          "provider_model",
          "request_kind",
          "service_tier",
          "speed",
          "status",
          "timestamp",
          "total_tokens"
        ],
        "title": "RouterRequestLog",
        "type": "object"
      },
      "RouterRequestLogPageJsonMode": {
        "properties": {
          "end_at": {
            "default": null,
            "format": "date-time",
            "nullable": true,
            "title": "End At",
            "type": "string"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/RouterRequestLogJsonMode"
            },
            "title": "Items",
            "type": "array"
          },
          "next_cursor": {
            "default": null,
            "nullable": true,
            "title": "Next Cursor",
            "type": "string"
          },
          "start_at": {
            "default": null,
            "format": "date-time",
            "nullable": true,
            "title": "Start At",
            "type": "string"
          }
        },
        "required": [
          "end_at",
          "items",
          "next_cursor",
          "start_at"
        ],
        "title": "RouterRequestLogPage",
        "type": "object"
      },
      "RouterSavedBudget": {
        "properties": {
          "amount_usd": {
            "title": "Amount Usd",
            "type": "string"
          },
          "interval": {
            "enum": [
              "daily",
              "lifetime",
              "monthly",
              "weekly",
              "yearly"
            ],
            "title": "Interval",
            "type": "string"
          }
        },
        "required": [
          "amount_usd",
          "interval"
        ],
        "title": "RouterSavedBudget",
        "type": "object"
      },
      "RouterSettings": {
        "properties": {
          "budgets": {
            "description": "The company budget first.",
            "items": {
              "$ref": "#/components/schemas/RouterBudget"
            },
            "title": "Budgets",
            "type": "array"
          },
          "departments": {
            "items": {
              "$ref": "#/components/schemas/RouterDepartment"
            },
            "title": "Departments",
            "type": "array"
          },
          "has_more_budgets": {
            "title": "Has More Budgets",
            "type": "boolean"
          },
          "has_more_departments": {
            "title": "Has More Departments",
            "type": "boolean"
          },
          "has_more_member_model_policies": {
            "title": "Has More Member Model Policies",
            "type": "boolean"
          },
          "member_budget_source": {
            "description": "Where people's budgets are saved; tsm is Ramp AI Spend.",
            "enum": [
              "router",
              "tsm"
            ],
            "title": "Member Budget Source",
            "type": "string"
          },
          "member_model_policies": {
            "items": {
              "$ref": "#/components/schemas/RouterMemberModelPolicy"
            },
            "title": "Member Model Policies",
            "type": "array"
          },
          "model_policy": {
            "$ref": "#/components/schemas/RouterModelPolicy"
          }
        },
        "required": [
          "budgets",
          "departments",
          "has_more_budgets",
          "has_more_departments",
          "has_more_member_model_policies",
          "member_budget_source",
          "member_model_policies",
          "model_policy"
        ],
        "title": "RouterSettings",
        "type": "object"
      },
      "RouterStillBlockedModel": {
        "properties": {
          "blocked_name": {
            "default": null,
            "description": "When by is model, the saved name that blocks it.",
            "nullable": true,
            "title": "Blocked Name",
            "type": "string"
          },
          "by": {
            "enum": [
              "frontier",
              "model",
              "provider"
            ],
            "title": "By",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "provider": {
            "title": "Provider",
            "type": "string"
          }
        },
        "required": [
          "blocked_name",
          "by",
          "name",
          "provider"
        ],
        "title": "RouterStillBlockedModel",
        "type": "object"
      },
      "RouterSubagentRoutingModels": {
        "description": "Custom model overrides per subagent task class.",
        "properties": {
          "research": {
            "default": null,
            "description": "1 to 2 models for research subagent tasks; empty list or null clears.",
            "items": {
              "type": "string"
            },
            "maxItems": 2,
            "nullable": true,
            "title": "Research",
            "type": "array"
          },
          "review": {
            "default": null,
            "description": "1 to 2 models for review subagent tasks; empty list or null clears.",
            "items": {
              "type": "string"
            },
            "maxItems": 2,
            "nullable": true,
            "title": "Review",
            "type": "array"
          },
          "small_change": {
            "default": null,
            "description": "1 to 2 models for small-change subagent tasks; empty list or null clears.",
            "items": {
              "type": "string"
            },
            "maxItems": 2,
            "nullable": true,
            "title": "Small Change",
            "type": "array"
          }
        },
        "title": "RouterSubagentRoutingModels",
        "type": "object"
      },
      "RouterSubagentRoutingModelsRequestBody": {
        "description": "Custom model overrides per subagent task class.",
        "properties": {
          "research": {
            "default": null,
            "description": "1 to 2 models for research subagent tasks; empty list or null clears.",
            "items": {
              "type": "string"
            },
            "maxItems": 2,
            "nullable": true,
            "title": "Research",
            "type": "array"
          },
          "review": {
            "default": null,
            "description": "1 to 2 models for review subagent tasks; empty list or null clears.",
            "items": {
              "type": "string"
            },
            "maxItems": 2,
            "nullable": true,
            "title": "Review",
            "type": "array"
          },
          "small_change": {
            "default": null,
            "description": "1 to 2 models for small-change subagent tasks; empty list or null clears.",
            "items": {
              "type": "string"
            },
            "maxItems": 2,
            "nullable": true,
            "title": "Small Change",
            "type": "array"
          }
        },
        "title": "RouterSubagentRoutingModels",
        "type": "object"
      },
      "RouterSwitchyardStrategy": {
        "properties": {
          "capable_model": {
            "default": null,
            "description": "Model for hard requests.",
            "nullable": true,
            "title": "Capable Model",
            "type": "string"
          },
          "efficient_model": {
            "default": null,
            "description": "Model for easy requests. Omit for Router's default.",
            "nullable": true,
            "title": "Efficient Model",
            "type": "string"
          },
          "type": {
            "enum": [
              "switchyard"
            ],
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "type"
        ],
        "title": "RouterSwitchyardStrategy",
        "type": "object"
      },
      "RouterSwitchyardStrategyRequestBody": {
        "properties": {
          "capable_model": {
            "default": null,
            "description": "Model for hard requests.",
            "nullable": true,
            "title": "Capable Model",
            "type": "string"
          },
          "efficient_model": {
            "default": null,
            "description": "Model for easy requests. Omit for Router's default.",
            "nullable": true,
            "title": "Efficient Model",
            "type": "string"
          },
          "type": {
            "enum": [
              "switchyard"
            ],
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "type"
        ],
        "title": "RouterSwitchyardStrategy",
        "type": "object"
      },
      "RouterWorkloadChoice": {
        "properties": {
          "detail": {
            "default": null,
            "nullable": true,
            "title": "Detail",
            "type": "string"
          },
          "label": {
            "title": "Label",
            "type": "string"
          },
          "value": {
            "title": "Value",
            "type": "string"
          }
        },
        "required": [
          "label",
          "value"
        ],
        "title": "RouterWorkloadChoice",
        "type": "object"
      },
      "RouterWorkloadDraft": {
        "properties": {
          "action": {
            "enum": [
              "change",
              "create",
              "delete"
            ],
            "title": "Action",
            "type": "string"
          },
          "defaults_applied": {
            "items": {
              "type": "string"
            },
            "title": "Defaults Applied",
            "type": "array"
          },
          "status": {
            "default": "confirmation_needed",
            "enum": [
              "confirmation_needed"
            ],
            "title": "Status",
            "type": "string"
          },
          "workload": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/RouterCodingWorkload"
              },
              {
                "$ref": "#/components/schemas/RouterDefaultCodingSettings"
              }
            ],
            "title": "Workload"
          }
        },
        "required": [
          "action",
          "defaults_applied",
          "workload"
        ],
        "title": "RouterWorkloadDraft",
        "type": "object"
      },
      "RouterWorkloadInputNeeded": {
        "properties": {
          "choices": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/RouterWorkloadChoice"
            },
            "title": "Choices",
            "type": "array"
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "missing": {
            "enum": [
              "benchmarks",
              "candidates",
              "capable_model",
              "models",
              "strategy"
            ],
            "title": "Missing",
            "type": "string"
          },
          "status": {
            "default": "needs_input",
            "enum": [
              "needs_input"
            ],
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "message",
          "missing"
        ],
        "title": "RouterWorkloadInputNeeded",
        "type": "object"
      },
      "RouterWorkloadList": {
        "properties": {
          "default_settings": {
            "$ref": "#/components/schemas/RouterDefaultCodingSettings"
          },
          "workloads": {
            "items": {
              "$ref": "#/components/schemas/RouterCodingWorkload"
            },
            "title": "Workloads",
            "type": "array"
          }
        },
        "required": [
          "default_settings",
          "workloads"
        ],
        "title": "RouterWorkloadList",
        "type": "object"
      },
      "RouterWorkloadSaved": {
        "properties": {
          "message": {
            "title": "Message",
            "type": "string"
          },
          "status": {
            "enum": [
              "deleted",
              "saved"
            ],
            "title": "Status",
            "type": "string"
          },
          "workload": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/RouterCodingWorkload"
              },
              {
                "$ref": "#/components/schemas/RouterDefaultCodingSettings"
              }
            ],
            "title": "Workload"
          }
        },
        "required": [
          "message",
          "status",
          "workload"
        ],
        "title": "RouterWorkloadSaved",
        "type": "object"
      },
      "RunningAsyncJob": {
        "description": "Minimal async job reference for OCR jobs still in progress.",
        "properties": {
          "job_type": {
            "description": "Async job type (e.g. PAYEE_TAX_DOCUMENT_OCR).",
            "title": "Job Type",
            "type": "string"
          },
          "job_uuid": {
            "description": "UUID of the async job.",
            "title": "Job Uuid",
            "type": "string"
          }
        },
        "required": [
          "job_type",
          "job_uuid"
        ],
        "title": "RunningAsyncJob",
        "type": "object"
      },
      "SGDCounterpartyDetails": {
        "additionalProperties": true,
        "description": "Bank account details for Singapore dollar payments.",
        "properties": {
          "account_name": {
            "description": "Name on the destination account.",
            "title": "Account Name",
            "type": "string"
          },
          "account_number": {
            "description": "Destination bank account number.",
            "title": "Account Number",
            "type": "string"
          },
          "bank_code": {
            "description": "Destination bank code.",
            "title": "Bank Code",
            "type": "string"
          },
          "bank_mailing_address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UnvalidatedMailingAddress"
              }
            ],
            "description": "Mailing address of the destination bank.",
            "title": "Bank Mailing Address"
          },
          "branch_code": {
            "description": "Destination bank branch code.",
            "title": "Branch Code",
            "type": "string"
          },
          "currency": {
            "default": "SGD",
            "description": "Currency of the destination account.",
            "enum": [
              "SGD"
            ],
            "title": "Currency",
            "type": "string"
          },
          "mailing_address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UnvalidatedMailingAddress"
              }
            ],
            "default": null,
            "description": "Mailing address of the counterparty.",
            "nullable": true
          },
          "payment_method": {
            "default": "INTERNATIONAL",
            "description": "Payment method.",
            "enum": [
              "INTERNATIONAL"
            ],
            "title": "Payment Method",
            "type": "string"
          },
          "type": {
            "default": "sgd",
            "description": "Counterparty details type.",
            "enum": [
              "sgd"
            ],
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "account_number",
          "bank_code",
          "branch_code"
        ],
        "title": "SGDCounterpartyDetails",
        "type": "object"
      },
      "SVMCounterpartyDetails": {
        "additionalProperties": true,
        "description": "Wallet details for SVM-compatible transfers.",
        "properties": {
          "account_name": {
            "description": "Name on the destination account.",
            "title": "Account Name",
            "type": "string"
          },
          "bank_mailing_address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UnvalidatedMailingAddress"
              }
            ],
            "description": "Mailing address of the destination bank.",
            "title": "Bank Mailing Address"
          },
          "currency": {
            "default": "USDC",
            "description": "Currency of the destination account.",
            "enum": [
              "USDC"
            ],
            "title": "Currency",
            "type": "string"
          },
          "mailing_address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UnvalidatedMailingAddress"
              }
            ],
            "default": null,
            "description": "Mailing address of the counterparty.",
            "nullable": true
          },
          "payment_method": {
            "default": "CRYPTO_TRANSFER",
            "description": "Payment method.",
            "enum": [
              "CRYPTO_TRANSFER"
            ],
            "title": "Payment Method",
            "type": "string"
          },
          "type": {
            "default": "svm",
            "description": "Counterparty details type.",
            "enum": [
              "svm"
            ],
            "title": "Type",
            "type": "string"
          },
          "wallet_address": {
            "description": "Destination wallet address.",
            "title": "Wallet Address",
            "type": "string"
          }
        },
        "required": [
          "wallet_address"
        ],
        "title": "SVMCounterpartyDetails",
        "type": "object"
      },
      "SWIFTCounterpartyDetails": {
        "additionalProperties": true,
        "description": "Bank account details for SWIFT payments.",
        "properties": {
          "account_name": {
            "description": "Name on the destination account.",
            "title": "Account Name",
            "type": "string"
          },
          "bank_mailing_address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UnvalidatedMailingAddress"
              }
            ],
            "description": "Mailing address of the destination bank.",
            "title": "Bank Mailing Address"
          },
          "currency": {
            "default": "USD",
            "description": "Currency of the destination account.",
            "title": "Currency",
            "type": "string"
          },
          "iban": {
            "description": "International bank account number.",
            "title": "Iban",
            "type": "string"
          },
          "mailing_address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UnvalidatedMailingAddress"
              }
            ],
            "default": null,
            "description": "Mailing address of the counterparty.",
            "nullable": true
          },
          "payment_method": {
            "default": "SWIFT",
            "description": "Payment method.",
            "enum": [
              "SWIFT"
            ],
            "title": "Payment Method",
            "type": "string"
          },
          "swift_bic": {
            "description": "SWIFT bank identifier code.",
            "title": "Swift Bic",
            "type": "string"
          },
          "type": {
            "default": "swift",
            "description": "Counterparty details type.",
            "enum": [
              "swift"
            ],
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "iban",
          "swift_bic"
        ],
        "title": "SWIFTCounterpartyDetails",
        "type": "object"
      },
      "SavePluginMarketplaceDraftRequestBody": {
        "description": "Create a plugin for the Ramp plugin marketplace with its first draft, or change the draft of an existing plugin.\n\nOmit plugin_id to create a plugin. With plugin_id, only the fields sent are\nchanged and the rest of the draft is kept; send a field as null or an empty list\nto clear it. For an existing plugin with no open draft, a new draft is started\nfrom its latest version first. Returns the plugin with its plugin_id and new\nrevision, and the saved draft, whose version_id is the one to submit. Does not\nsubmit the draft for review.",
        "properties": {
          "auth_type": {
            "default": null,
            "description": "How Ramp authenticates to the MCP server.",
            "enum": [
              "bearer",
              "none",
              "oauth"
            ],
            "nullable": true,
            "title": "Auth Type",
            "type": "string"
          },
          "category": {
            "default": null,
            "description": "Listing category.",
            "nullable": true,
            "title": "Category",
            "type": "string"
          },
          "demo_video_url": {
            "default": null,
            "description": "https link to a demo video recorded in the Glass sandbox that anyone with the link can view, for example unlisted YouTube or Loom. Required before submit.",
            "nullable": true,
            "title": "Demo Video Url",
            "type": "string"
          },
          "description": {
            "default": null,
            "description": "What the plugin does, for its listing.",
            "nullable": true,
            "title": "Description",
            "type": "string"
          },
          "icon_url": {
            "default": null,
            "nullable": true,
            "title": "Icon Url",
            "type": "string"
          },
          "mcp_url": {
            "default": null,
            "description": "URL of the plugin's MCP server, for example https://mcp.acme.com/mcp.",
            "nullable": true,
            "title": "Mcp Url",
            "type": "string"
          },
          "name": {
            "default": null,
            "description": "Display name of the plugin. Required when creating a plugin.",
            "nullable": true,
            "title": "Name",
            "type": "string"
          },
          "oauth_redirect_uris": {
            "description": "OAuth redirect URIs the MCP server accepts. Used when auth_type is oauth.",
            "items": {
              "type": "string"
            },
            "title": "Oauth Redirect Uris",
            "type": "array"
          },
          "plugin_id": {
            "default": null,
            "description": "UUID of the plugin whose draft to change. Omit to create a new plugin.",
            "format": "uuid",
            "nullable": true,
            "title": "Plugin Id",
            "type": "string"
          },
          "privacy_policy_url": {
            "default": null,
            "nullable": true,
            "title": "Privacy Policy Url",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "reviewer_instructions": {
            "default": null,
            "description": "How a Ramp reviewer can test the plugin.",
            "nullable": true,
            "title": "Reviewer Instructions",
            "type": "string"
          },
          "revision": {
            "default": null,
            "description": "Required with plugin_id. The plugin's revision as last returned for it. The call is rejected if the plugin has changed since, so that newer edits are not overwritten.",
            "nullable": true,
            "title": "Revision",
            "type": "integer"
          },
          "skills": {
            "description": "Skills shipped with the plugin. Each item is the full text of one SKILL.md file.",
            "items": {
              "type": "string"
            },
            "title": "Skills",
            "type": "array"
          },
          "slug": {
            "default": null,
            "description": "Permanent identifier for a new plugin: lowercase letters, digits and hyphens, for example acme-expenses. Required when creating a plugin; ignored otherwise.",
            "nullable": true,
            "title": "Slug",
            "type": "string"
          },
          "support_url": {
            "default": null,
            "nullable": true,
            "title": "Support Url",
            "type": "string"
          },
          "tagline": {
            "default": null,
            "description": "One-line summary.",
            "nullable": true,
            "title": "Tagline",
            "type": "string"
          },
          "terms_url": {
            "default": null,
            "nullable": true,
            "title": "Terms Url",
            "type": "string"
          },
          "test_cases": {
            "description": "Example prompts and expected results a reviewer can run.",
            "items": {
              "$ref": "#/components/schemas/JsonValueRequestBody"
            },
            "title": "Test Cases",
            "type": "array"
          },
          "website_url": {
            "default": null,
            "nullable": true,
            "title": "Website Url",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "SavePluginMarketplaceDraft",
        "type": "object"
      },
      "SearchBillsRequestBody": {
        "description": "Search submitted and active draft bills by invoice number, payee, memo text, payment ID, or UUID.\n\nReturns summary records for submitted and active draft bills, including\nauthoritative lifecycle information: is_draft=true means an unsubmitted\ndraft; is_draft=false means a submitted bill. Accepts a UUID even when its\nlifecycle is unknown.\nSubmitted and active draft bills may both be returned unless filters exclude\nthem; include_drafts=False restricts results to submitted bills. Archived\nbills are excluded by default; set include_archived=true to include them. An\nunpaid bill or one awaiting approval is not necessarily a draft.\nExplicit invoice references use invoice_number for exact matching, including\none- or two-character numbers; query remains a partial text search or UUID lookup.\nerp_bill_id matches the bill's accounting-system (ERP) ID exactly.\nvendor_names matches vendor names only, so one call can cover several names for\nthe same vendor (brand, legal name, acronym) without matching other bill text.\nexact_amount filters the recorded invoice header total in its original currency\nbefore pagination. Drafts without a header amount cannot match; this is not a\ncomputed line-item total or remaining balance.\nRepeat the same filters with page_cursor until next_page_cursor is null; a page\nis not the complete match set. No date restriction applies unless supplied.\nResults include can_view_payment_details: false means the payment-detail\nlookup is unavailable for this user. Null means access is unknown, not denied.\nAccess may change after search and is checked again when details are requested.\nEach result's amount (the invoice total), currency, payment_method,\nstatus_summary, and paid_date (when the bill was fully paid) list paid invoices\nwithout per-bill lookups. They are not payment records: amounts sent can be lower\nafter vendor credits or discounts, and an installment bill gets paid_date only\nafter its final payment. Payment-level amounts and dates, payment_status,\napproval_status, and the scheduled payment_date come from a specific bill's\ndetails. Each result includes the bill memo, so answer memo or item-description\nquestions from it without a details lookup.",
        "properties": {
          "accrual_year_month": {
            "default": null,
            "description": "Year-month in YYYY-MM format for accrual filtering. When provided, only bills eligible for accrual in that month are returned. Accruals must be available for bill pay first; check availability using the accrual status tool before filtering.",
            "nullable": true,
            "title": "Accrual Year Month",
            "type": "string"
          },
          "erp_bill_id": {
            "default": null,
            "description": "Optional exact ID of the bill's record in the external accounting system (ERP) or the system it was imported from, such as a NetSuite internal ID. Not the invoice number or the Ramp bill UUID. Surrounding whitespace is trimmed; the rest must match exactly, so '1042' does not match '10420'. When combined with other filters, all must match (AND). Bills not yet synced and drafts created in Ramp have no stored ERP ID and cannot match.",
            "minLength": 1,
            "nullable": true,
            "title": "Erp Bill Id",
            "type": "string"
          },
          "exact_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ExactBillAmountRequestBody"
              }
            ],
            "default": null,
            "description": "Optional exact recorded invoice header total and currency. Intersects all other filters before pagination. Drafts without a header amount cannot match. Omit or pass null for no amount/currency restriction; this is not a payment or remaining-balance amount.",
            "nullable": true
          },
          "from_due_date": {
            "default": null,
            "description": "Inclusive lower bound for bill due dates. Use with to_due_date for due-date range requests.",
            "format": "date",
            "nullable": true,
            "title": "From Due Date",
            "type": "string"
          },
          "from_payment_date": {
            "default": null,
            "description": "Inclusive lower bound on the date a bill was paid (payment sent date). Use with to_payment_date to find bills paid within a date range.",
            "format": "date",
            "nullable": true,
            "title": "From Payment Date",
            "type": "string"
          },
          "include_archived": {
            "default": false,
            "description": "Whether to include archived bills in results. Archived bills are excluded unless this is true. Set to true when the user asks about archived bills or asks what happened to a specific bill.",
            "title": "Include Archived",
            "type": "boolean"
          },
          "include_drafts": {
            "default": null,
            "description": "Optional lifecycle filter. Leave unset or true to retain active draft matches, including when a bill UUID comes from a report without lifecycle information. False excludes all drafts; use it only when submitted-only results are intended. When unset, no draft filter is applied.",
            "nullable": true,
            "title": "Include Drafts",
            "type": "boolean"
          },
          "include_paid": {
            "default": null,
            "description": "Optional payment-status filter. Leave unset for UUID lookups when the bill's lifecycle is unknown. False restricts results to open submitted bills and excludes drafts. If include_drafts=true, this filter is skipped, so paid submitted bills remain eligible. When unset, no payment-status filter is applied.",
            "nullable": true,
            "title": "Include Paid",
            "type": "boolean"
          },
          "invoice_number": {
            "default": null,
            "description": "Optional exact invoice number. Use for an explicit invoice reference, including short numbers like '48'. Surrounding whitespace is trimmed; case, punctuation, and leading zeros are preserved. '48' does not match '148' or 'INV-48'. When query is nonempty, both filters must match (AND). Invoice numbers are not unique across vendors: all accessible matches are returned with normal lifecycle filters and pagination.",
            "minLength": 1,
            "nullable": true,
            "title": "Invoice Number",
            "type": "string"
          },
          "limit": {
            "default": 10,
            "description": "Maximum number of bills to return (max 50)",
            "minimum": 1,
            "title": "Limit",
            "type": "integer"
          },
          "page_cursor": {
            "default": null,
            "description": "Pagination cursor from a previous response's next_page_cursor. The only valid string values are encrypted cursor tokens from a previous response (long strings starting with 'gAAAAA'). For the first page, for no more results, or for anything that is not one of those encrypted tokens, pass None (never the string 'None').",
            "nullable": true,
            "title": "Page Cursor",
            "type": "string"
          },
          "query": {
            "default": "",
            "description": "Optional invoice number, payee name, bill memo text, payment ID, or bill UUID. For vendor-name lookups, prefer vendor_names. For item, product, or memo text, pass only the distinctive words (e.g. 'merlot' for '6 stack merlot'); every word must match. If those words are under 3 characters (e.g. 'TV' from '1 TV'), pass the user's full phrase instead, because shorter queries match payee names only. Queries of 3+ characters use partial matching (e.g. 'UPS' finds 'UPS Store' and '1722' finds 'INV-1722'). Shorter queries (e.g. '3D') match the exact payee name only. For an explicit invoice number, use invoice_number for exact matching instead. A UUID performs an exact lookup across submitted and draft bills. Do not use this for due-date concepts like 'past due' or 'due next week'; use from_due_date/to_due_date instead.",
            "title": "Query",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "status_summaries": {
            "default": null,
            "description": "Filter bills by one or more detailed status summaries. Returns bills whose status matches ANY of the listed values (logical OR). Draft statuses (DRAFT_*) can match unless include_drafts=False. Allowed values:\n- `DRAFT_PARSING`: The draft bill is being parsed (e.g., via OCR).\n- `DRAFT_MISSING_INFO`: The draft bill is missing required information.\n- `DRAFT_READY`: The draft bill is ready to be submitted as a bill.\n- `DRAFT_QUEUED`: The draft bill is queued for automatic conversion to a bill upon vendor approval.\n- `APPROVAL_PENDING`: The bill is waiting for one or more approvals.\n- `AWAITING_RELEASE`: The bill is waiting for payment release.\n- `PAYMENT_READY`: The bill is ready for payment.\n- `PAYMENT_ERROR`: The bill payment failed.\n- `ON_HOLD`: The bill has been placed on hold.\n- `BLOCKED`: The bill is blocked from payment initiation or approval.\n- `HELD_BY_PROVIDER`: The bill payment is held by the payment provider.\n- `PENDING_VENDOR_APPROVAL`: The bill is waiting for a vendor edit to be approved.\n- `PAYMENT_DETAILS_MISSING`: The bill is missing required payment details.\n- `PAYMENT_NOT_INSTRUCTED`: The bill uses Ramp payments but has not been scheduled yet.\n- `WAITING_FOR_TRANSACTION_MATCH`: The bill is paid by card and is waiting for a matching card transaction.\n- `WAITING_FOR_TRANSFER_MATCH`: The bill is paid by direct debit and is waiting for a matching wallet transfer.\n- `WAITING_FOR_VENDOR`: The bill is waiting on required vendor information.\n- `AWAITING_PAYMENT`: The bill is waiting for the business to send push-payment funding.\n- `PAYMENT_PROCESSING`: The bill payment has been initiated and is processing.\n- `TRANSACTION_PENDING`: The card has a pending transaction matching the payment amount that will match upon clearing.\n- `PAYMENT_SCHEDULED`: The bill payment is scheduled.\n- `PAYMENT_COMPLETED`: The bill has been paid.\n- `ARCHIVED`: The bill has been archived.\n- `APPROVAL_REJECTED`: The bill was rejected in the approval flow.",
            "items": {
              "$ref": "#/components/schemas/BillStatusSummaryRequestBody"
            },
            "nullable": true,
            "title": "Status Summaries",
            "type": "array"
          },
          "to_due_date": {
            "default": null,
            "description": "Inclusive upper bound for bill due dates. For past-due bills, set this to the day before today's date and include_paid=false.",
            "format": "date",
            "nullable": true,
            "title": "To Due Date",
            "type": "string"
          },
          "to_payment_date": {
            "default": null,
            "description": "Inclusive upper bound on the date a bill was paid (payment sent date). Use with from_payment_date to find bills paid within a date range.",
            "format": "date",
            "nullable": true,
            "title": "To Payment Date",
            "type": "string"
          },
          "vendor_names": {
            "default": null,
            "description": "Optional vendor names. Returns bills whose vendor name contains any of these names (case-insensitive substring), combined with other filters (AND). Put every name form for one vendor in a single call, e.g. ['CenturyLink', 'Lumen'] or ['AWS', 'Amazon Web Services']. Unlike query, this never matches invoice numbers or other bill text. At most 5 names.",
            "items": {
              "minLength": 1,
              "type": "string"
            },
            "maxItems": 5,
            "nullable": true,
            "title": "Vendor Names",
            "type": "array"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "SearchBills",
        "type": "object"
      },
      "SearchFlightModificationsRequestBody": {
        "additionalProperties": false,
        "description": "Search replacement flights for an existing booking.\n\nIdentify the booking with exactly one booking identifier field and leave the\nothers null; passing several IDs for the same booking is rejected.\n\nFirst inspect the booking itinerary and ask which leg, date, or route the\ntraveler wants to change. Pass one entry per changed leg, identified by its\n0-based ``leg_index``. Unspecified date and airport fields retain the\noriginal leg values, so an entry with only ``leg_index`` searches that leg\non its booked date and route: use it for a same-day earlier or later flight\n(with a departure or arrival time window) or a cabin change (with\n``cabin_class``).\n\nWhen changing both legs of a single-ticket round trip, first search with both\nleg modifications, present the outbound offers, then call again with the\nchosen ``selected_outbound_offer_id`` and the same modifications to retrieve\nmatching returns. Split-ticket bookings change one leg per exchange: when\nseveral legs are passed, only the earliest requested leg is searched and\n``deferred_leg_indexes`` lists the others to change afterwards in their own\nsearches. ``selected_outbound_offer_id`` is rejected for split-ticket bookings.\n\nSome bookings support the first search but not this second step, and return an\nunsupported-provider result with support details; route the traveler to that\nsupport rather than retrying. Search prices are estimates; call\nSubmitFlightModification to re-quote the selected offer with the airline before\nasking the traveler to confirm.\n\n``recommended_offers`` is always present, ranked from this page of ``offers``;\neach surface presents those entries in the format it supports, and\n``assistant_note`` states which presentation applies.\n\nCopy each slice's ``flights_display`` labels verbatim, without parsing carrier\nprefixes. They identify marketing flights, including codeshares.\n\nPreference fields (``cabin_class``, ``max_stops``, ``airlines``, timing\nwindows, ``avoid_red_eye_flights``) become this booking's cumulative\nmodification preference state: they carry across the outbound and return\nsteps and later re-searches of the same booking. Omitted preferences retain\ntheir prior values; use ``clear_preferences`` only when the traveler removes\none. ``applied_preferences`` reports what each response used.",
        "properties": {
          "airlines": {
            "default": null,
            "description": "Airline IATA codes to rank higher (e.g. ['AA', 'DL']). Ranks replacements only and never filters them, because exchange inventory is narrow. Retained for this booking's later calls.",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "title": "Airlines",
            "type": "array"
          },
          "avoid_red_eye_flights": {
            "default": null,
            "description": "Preference to avoid red-eye replacements for this modification. This ranks and explains recommendations only; it does not save a traveler preference.",
            "nullable": true,
            "title": "Avoid Red Eye Flights",
            "type": "boolean"
          },
          "booking_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "Parent booking UUID returned by a travel tool",
            "nullable": true
          },
          "booking_request_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "Booking request UUID of an already fulfilled flight booking",
            "nullable": true
          },
          "cabin_class": {
            "allOf": [
              {
                "$ref": "#/components/schemas/InventoryCabinClassRequestBody"
              }
            ],
            "default": null,
            "description": "Cabin to search replacement flights in; set it to request an upgrade or downgrade. Applies to every leg being changed, not per leg, and is retained for this booking's later modification calls. Omit to keep the prior value or search without a cabin filter.",
            "nullable": true
          },
          "clear_preferences": {
            "default": null,
            "description": "Preference field names to remove from this booking's cumulative modification state. Use only when the traveler explicitly removes a preference. Timing clears apply only to the legs in this call. Do not also pass a replacement value for the same field.",
            "items": {
              "$ref": "#/components/schemas/SearchFlightsPreferenceNameRequestBody"
            },
            "nullable": true,
            "title": "Clear Preferences",
            "type": "array"
          },
          "cursor": {
            "default": null,
            "nullable": true,
            "title": "Cursor",
            "type": "string"
          },
          "flight_booking_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "Flight booking UUID from GetBookings",
            "nullable": true
          },
          "limit": {
            "default": 10,
            "maximum": 20,
            "minimum": 1,
            "title": "Limit",
            "type": "integer"
          },
          "max_stops": {
            "default": null,
            "description": "0 for nonstop, 1 for one stop, etc. Retained for this booking's later modification calls.",
            "minimum": 0,
            "nullable": true,
            "title": "Max Stops",
            "type": "integer"
          },
          "preferred_arrival_time_window": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TravelTimeWindowRequestBody"
              }
            ],
            "default": null,
            "description": "Broad arrival time preference from saved traveler defaults or the request for this change, such as morning, afternoon, or evening. On a selected_outbound_offer_id call it applies to the return options only.",
            "nullable": true
          },
          "preferred_departure_time_window": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TravelTimeWindowRequestBody"
              }
            ],
            "default": null,
            "description": "Broad departure time preference from saved traveler defaults or the request for this change, such as morning, afternoon, or evening. On a selected_outbound_offer_id call it applies to the return options only.",
            "nullable": true
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "selected_outbound_offer_id": {
            "default": null,
            "description": "Chosen outbound modification offer when retrieving the return options for a two-leg change",
            "nullable": true,
            "title": "Selected Outbound Offer Id",
            "type": "string"
          },
          "slice_modifications": {
            "description": "Requested changes, one entry for each booked leg to replace",
            "items": {
              "$ref": "#/components/schemas/FlightSliceModificationInputRequestBody"
            },
            "minItems": 1,
            "title": "Slice Modifications",
            "type": "array"
          }
        },
        "required": [
          "rationale",
          "slice_modifications"
        ],
        "title": "SearchFlightModifications",
        "type": "object"
      },
      "SearchFlightsAppliedPreferenceKind": {
        "enum": [
          "airlines",
          "arrival_time_window",
          "cabin",
          "connectivity",
          "departure_time_window",
          "max_stops",
          "red_eye",
          "upgrade_availability"
        ],
        "title": "SearchFlightsAppliedPreferenceKind",
        "type": "string"
      },
      "SearchFlightsAppliedPreferenceSource": {
        "enum": [
          "current_search",
          "loyalty",
          "stored"
        ],
        "title": "SearchFlightsAppliedPreferenceSource",
        "type": "string"
      },
      "SearchFlightsAppliedPreferenceV1": {
        "description": "A search-job preference or loyalty affinity the ranker applies.",
        "properties": {
          "display": {
            "description": "Short human-readable statement of the preference.",
            "title": "Display",
            "type": "string"
          },
          "effect": {
            "description": "How the preference influences recommendation ranking.",
            "title": "Effect",
            "type": "string"
          },
          "kind": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SearchFlightsAppliedPreferenceKind"
              }
            ],
            "description": "Preference dimension: 'airlines', 'cabin', 'max_stops', 'red_eye', 'departure_time_window', 'arrival_time_window', 'connectivity', or 'upgrade_availability'."
          },
          "matched_in_recommendations": {
            "default": null,
            "description": "True when at least one recommended offer satisfies this preference. False when none does. Null when not evaluated.",
            "nullable": true,
            "title": "Matched In Recommendations",
            "type": "boolean"
          },
          "source": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SearchFlightsAppliedPreferenceSource"
              }
            ],
            "description": "Where the preference comes from: 'stored' (legacy response value, not currently emitted), 'loyalty' (derived from a saved loyalty program), or 'current_search' (a field supplied for this search job and leg, possibly on an earlier call; applies only to this view and is not saved as a durable traveler preference)."
          }
        },
        "required": [
          "display",
          "effect",
          "kind",
          "source"
        ],
        "title": "SearchFlightsAppliedPreferenceV1",
        "type": "object"
      },
      "SearchFlightsDepartureSource": {
        "enum": [
          "saved_home_address",
          "traveler_input"
        ],
        "title": "SearchFlightsDepartureSource",
        "type": "string"
      },
      "SearchFlightsFareOptionV1": {
        "description": "A bookable fare class for the flight (e.g. Economy, Economy Plus, Business).\n\nfare_options lists every fare class for the flight; the offer's top-level\nprice is the cheapest of these.",
        "properties": {
          "amount": {
            "description": "Raw unrounded total for this fare, as a decimal string (e.g. '488.32'), denominated in currency. UI clients should render this fare's money from amount plus currency and apply their own rounding; price is a pre-rounded display form intended for text output.",
            "title": "Amount",
            "type": "string"
          },
          "ancillaries": {
            "description": "Provider-derived amenities and restrictions for this fare, including baggage, seat selection, changes, refunds, and boarding benefits when available. A missing category is unknown; only offer_type=NOT_INCLUDED confirms exclusion.",
            "items": {
              "$ref": "#/components/schemas/FlightAncillaryInfo"
            },
            "title": "Ancillaries",
            "type": "array"
          },
          "currency": {
            "description": "ISO 4217 currency code for amount, e.g. 'USD'.",
            "title": "Currency",
            "type": "string"
          },
          "eligible_credit_ids": {
            "default": null,
            "description": "credit_id values of the traveler's flight credits that may apply to this fare. The airline confirms eligibility and the amount applied only at booking. Omitted when none may apply.",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "title": "Eligible Credit Ids",
            "type": "array"
          },
          "estimated_fees": {
            "default": null,
            "description": "Estimated fees already included in this fare's amount, e.g. a low-cost carrier's fees that the airline confirms only when it charges the card. When mentioning one, use its display_name and description verbatim. Omitted when the price has no estimate.",
            "items": {
              "$ref": "#/components/schemas/FlightEstimatedFeeV1"
            },
            "nullable": true,
            "title": "Estimated Fees",
            "type": "array"
          },
          "fare_category": {
            "description": "Standardized cabin: 'Basic Economy', 'Economy', 'Economy Plus', 'Premium', 'Business', or 'First'.",
            "title": "Fare Category",
            "type": "string"
          },
          "fare_name": {
            "default": null,
            "nullable": true,
            "title": "Fare Name",
            "type": "string"
          },
          "fare_program": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FlightFareProgram"
              }
            ],
            "default": null,
            "description": "Airline fare program this fare was priced under: 'united_passplus' for a United PassPlus corporate fare. Null for public fares. The same flight can list a PassPlus fare and a public fare for the same fare class.",
            "nullable": true
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "description": "UUID of this fare option. For a round trip, pass it as outbound_offer_id to SearchFlights to preserve this cabin and fare when fetching return options. Pass the chosen final fare as flight_offer_uuid to submit-flight-booking."
          },
          "in_policy": {
            "default": null,
            "description": "True in policy, False out of policy, None when unevaluated.",
            "nullable": true,
            "title": "In Policy",
            "type": "boolean"
          },
          "policy_reason": {
            "default": null,
            "nullable": true,
            "title": "Policy Reason",
            "type": "string"
          },
          "price": {
            "description": "Formatted total for this fare.",
            "title": "Price",
            "type": "string"
          },
          "segment_seat_availability": {
            "description": "Seat inventory for each segment in this fare option, in itinerary order. Empty when the provider does not expose fare-class inventory.",
            "items": {
              "$ref": "#/components/schemas/SearchFlightsSegmentSeatAvailabilityV1"
            },
            "title": "Segment Seat Availability",
            "type": "array"
          },
          "ticket_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AtlasTicketType"
              }
            ],
            "default": "single_ticket",
            "description": "Provider ticketing shape for this fare: 'single_ticket' or 'multi_ticket' (split ticket). Defaults to 'single_ticket' when the search provider does not expose the signal, mirroring how flight booking derives it, so this is never null. Search cannot expose authoritative per-ticket prices; those first exist after SubmitFlightBooking re-quotes the selected fare for preview."
          }
        },
        "required": [
          "amount",
          "ancillaries",
          "currency",
          "fare_category",
          "fare_name",
          "fare_program",
          "id",
          "in_policy",
          "policy_reason",
          "price",
          "segment_seat_availability",
          "ticket_type"
        ],
        "title": "SearchFlightsFareOptionV1",
        "type": "object"
      },
      "SearchFlightsLeg": {
        "enum": [
          "one_way",
          "outbound",
          "return"
        ],
        "title": "SearchFlightsLeg",
        "type": "string"
      },
      "SearchFlightsOfferV1": {
        "description": "Compact offer rendering for CLI/skill display.",
        "properties": {
          "airline_credit_eligible": {
            "default": null,
            "description": "True when the fare this offer's id books may accept one of the traveler's flight credits. Other fares are covered by each fare_options entry's eligible_credit_ids. Omitted when no credit may apply.",
            "nullable": true,
            "title": "Airline Credit Eligible",
            "type": "boolean"
          },
          "airline_logo_url": {
            "default": null,
            "description": "Provider-hosted marketing-airline logo image URL for UI clients rendering this offer as a card; null when the provider has no logo. Ignore when presenting offers as text.",
            "nullable": true,
            "title": "Airline Logo Url",
            "type": "string"
          },
          "airline_name": {
            "title": "Airline Name",
            "type": "string"
          },
          "amount": {
            "description": "Raw unrounded total per ticket, as a decimal string (e.g. '488.32'), denominated in currency. Round-trip searches return full round-trip totals. UI clients should render money from amount plus currency and apply their own rounding; price is a pre-rounded display form intended for text output.",
            "title": "Amount",
            "type": "string"
          },
          "ancillaries": {
            "description": "Provider-derived amenities and restrictions for the displayed base fare. A missing category is unknown; only offer_type=NOT_INCLUDED confirms exclusion.",
            "items": {
              "$ref": "#/components/schemas/FlightAncillaryInfo"
            },
            "title": "Ancillaries",
            "type": "array"
          },
          "arrival_airport": {
            "title": "Arrival Airport",
            "type": "string"
          },
          "arrival_date": {
            "title": "Arrival Date",
            "type": "string"
          },
          "arrival_time": {
            "title": "Arrival Time",
            "type": "string"
          },
          "blocked_reasons": {
            "description": "Customer-facing reasons from the booking rules that block this flight, safe to show verbatim. Empty unless is_blocked.",
            "items": {
              "type": "string"
            },
            "title": "Blocked Reasons",
            "type": "array"
          },
          "cancellable_by": {
            "default": null,
            "description": "Deadline for cancelling the offer for a full refund. Omitted when the provider reports no deadline during search; that means unknown-until-booking, not non-refundable \u2014 use the refunds ancillaries for refundability.",
            "format": "date-time",
            "nullable": true,
            "title": "Cancellable By",
            "type": "string"
          },
          "connectivity_segments": {
            "default": null,
            "description": "Stored segments of the displayed leg only, for client-side connectivity indicators. Search also performs a best-effort Starlink lookup for the wifi and starlink summaries.",
            "items": {
              "$ref": "#/components/schemas/FlightConnectivitySegment"
            },
            "nullable": true,
            "title": "Connectivity Segments",
            "type": "array"
          },
          "currency": {
            "description": "ISO 4217 currency code for amount, e.g. 'USD'.",
            "title": "Currency",
            "type": "string"
          },
          "departure_airport": {
            "title": "Departure Airport",
            "type": "string"
          },
          "departure_date": {
            "title": "Departure Date",
            "type": "string"
          },
          "departure_time": {
            "title": "Departure Time",
            "type": "string"
          },
          "duration": {
            "title": "Duration",
            "type": "string"
          },
          "estimated_fees": {
            "default": null,
            "description": "Estimated fees already included in amount, e.g. a low-cost carrier's fees that the airline confirms only when it charges the card. When mentioning one, use its display_name and description verbatim. Omitted when the price has no estimate.",
            "items": {
              "$ref": "#/components/schemas/FlightEstimatedFeeV1"
            },
            "nullable": true,
            "title": "Estimated Fees",
            "type": "array"
          },
          "fare_name": {
            "default": null,
            "nullable": true,
            "title": "Fare Name",
            "type": "string"
          },
          "fare_options": {
            "default": null,
            "description": "Every fare class for this flight (the offer's top-level price is the cheapest of them). Present only when include_fare_options is set. Book a specific fare by passing its id, not this offer's top-level id.",
            "items": {
              "$ref": "#/components/schemas/SearchFlightsFareOptionV1"
            },
            "nullable": true,
            "title": "Fare Options",
            "type": "array"
          },
          "fare_program": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FlightFareProgram"
              }
            ],
            "default": null,
            "description": "Airline fare program of the fare this offer's id books: 'united_passplus' for a United PassPlus corporate fare. Null for public fares.",
            "nullable": true
          },
          "flight_number": {
            "title": "Flight Number",
            "type": "string"
          },
          "flights_display": {
            "description": "Display-final marketing airline and flight number for every segment of the displayed leg, in travel order, e.g. ['JetBlue 3295']. Copy verbatim; do not parse or strip carrier codes from flight_number.",
            "items": {
              "type": "string"
            },
            "title": "Flights Display",
            "type": "array"
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "description": "UUID of the flight offer; pass as flight_offer_uuid to submit-flight-booking, or as outbound_offer_id to fetch return offers for round trips. If a nested fare option was selected, use that fare option's id as outbound_offer_id instead to preserve its cabin and fare."
          },
          "in_policy": {
            "default": null,
            "description": "Policy verdict for the fare that booking this offer's id books: True = in policy, False = out of policy (requires approval), None = unknown (no travel policy configured, or not evaluated in time). When fare_options is absent the offer is a single bookable fare and this describes it. When fare_options is present this describes the cheapest fare - the one this offer's top-level id books - so compare each fare_options entry's own in_policy before booking a different fare's id. On a recommended card, the card's id is the fare it recommends, and this describes that fare.",
            "nullable": true,
            "title": "In Policy",
            "type": "boolean"
          },
          "is_blocked": {
            "default": false,
            "description": "True when the company's booking rules block every fare of this flight, so it can't be booked. Blocked flights are shown only when nothing the rules allow was found; never offer to book one.",
            "title": "Is Blocked",
            "type": "boolean"
          },
          "num_stops": {
            "description": "Number of stops on the displayed itinerary as an integer (0 means nonstop). UI clients should branch on this instead of matching the English stops string, which is a display form intended for text output.",
            "title": "Num Stops",
            "type": "integer"
          },
          "policy_reason": {
            "default": null,
            "description": "Justification for in_policy, describing the same fare that in_policy describes.",
            "nullable": true,
            "title": "Policy Reason",
            "type": "string"
          },
          "price": {
            "description": "Formatted total. Round-trip searches return full round-trip totals.",
            "title": "Price",
            "type": "string"
          },
          "starlink": {
            "default": null,
            "description": "Legs of the displayed itinerary with Starlink evidence. A leg missing here has unknown Starlink status. Never a guarantee.",
            "items": {
              "$ref": "#/components/schemas/SearchFlightsStarlinkV1"
            },
            "nullable": true,
            "title": "Starlink",
            "type": "array"
          },
          "stops": {
            "title": "Stops",
            "type": "string"
          },
          "top_airline_credit": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AirlineCreditRefV1"
              }
            ],
            "default": null,
            "description": "The largest single flight credit that may apply to the fare this offer's id books. The airline confirms eligibility and the amount applied only at booking. Omitted when no credit may apply.",
            "nullable": true
          },
          "wifi": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SearchFlightsWifiCoverage"
              }
            ],
            "default": null,
            "description": "Wi-Fi on 'all', 'some', or 'none' of the displayed itinerary's legs. A leg counts when Wi-Fi is reported or it has Starlink. Omitted when unknown. Says nothing about fare inclusion or cost.",
            "nullable": true
          }
        },
        "required": [
          "airline_logo_url",
          "airline_name",
          "amount",
          "ancillaries",
          "arrival_airport",
          "arrival_date",
          "arrival_time",
          "blocked_reasons",
          "currency",
          "departure_airport",
          "departure_date",
          "departure_time",
          "duration",
          "fare_name",
          "fare_options",
          "fare_program",
          "flight_number",
          "flights_display",
          "id",
          "in_policy",
          "is_blocked",
          "num_stops",
          "policy_reason",
          "price",
          "stops"
        ],
        "title": "SearchFlightsOfferV1",
        "type": "object"
      },
      "SearchFlightsPreferenceNameRequestBody": {
        "enum": [
          "airlines",
          "avoid_red_eye_flights",
          "cabin_class",
          "max_stops",
          "preferred_airlines",
          "preferred_arrival_time_window",
          "preferred_connectivity",
          "preferred_departure_time_window",
          "required_upgrade_cabin_class",
          "return_preferred_arrival_time_window",
          "return_preferred_departure_time_window"
        ],
        "title": "SearchFlightsPreferenceName",
        "type": "string"
      },
      "SearchFlightsRecommendationKind": {
        "description": "Which selection rule produced a recommended offer.",
        "enum": [
          "preference",
          "travel_manager_pick"
        ],
        "title": "SearchFlightsRecommendationKind",
        "type": "string"
      },
      "SearchFlightsRecommendedOfferV1": {
        "description": "A recommended flight offer with the reason it was picked.\n\nSelected from a broad cached pool, so the offer may not appear in the offers\npage; it is bookable by its id either way. Every recommendation is ranked\nwith the supplied search inputs and loyalty affinity before\nbalancing policy status, price, duration, stops, and connection risk.\nOut-of-policy offers remain eligible as best-available fallbacks and retain\ntheir policy label and reason. Offers the company's booking rules block are\nnever recommended, since clients render recommendations as bookable cards.",
        "properties": {
          "offer": {
            "$ref": "#/components/schemas/SearchFlightsOfferV1"
          },
          "phone_option": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FlightPhoneOptionV1"
              }
            ],
            "default": null,
            "description": "SMS travel visuals only: this offer as a ready option card. Omitted elsewhere.",
            "nullable": true
          },
          "rank": {
            "minimum": 1,
            "title": "Rank",
            "type": "integer"
          },
          "reason": {
            "description": "Why this flight was recommended. When presenting the pick to a traveler, summarize this concisely, such as 'Nonstop, in policy' or 'Best schedule'; do not recite the full sentence unless the traveler asks. Keep price descriptions absolute rather than comparing with another recommendation.",
            "title": "Reason",
            "type": "string"
          },
          "reason_tags": {
            "default": null,
            "description": "Badge-sized labels (1-2 words, sentence case, e.g. 'In policy', 'Nonstop', 'Cheapest') derived from the same rules as reason, most-important-first. Null when no rule-derived tags apply; UI clients should then fall back to the prose reason. Purely presentational; assistants should keep summarizing from reason.",
            "items": {
              "type": "string"
            },
            "maxItems": 4,
            "nullable": true,
            "title": "Reason Tags",
            "type": "array"
          },
          "recommendation_kind": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SearchFlightsRecommendationKind"
              }
            ],
            "default": "preference",
            "description": "Selection rule behind this entry. 'preference' entries are the traveler-preference-ranked picks. A single trailing 'travel_manager_pick' entry, when present, takes the last slot in place of the lowest-ranked preference pick and is the cheapest confirmed in-policy option (never Basic Economy) at a similar time that relaxes the traveler's airline or cabin preference, or adds a stop while landing about as early. On a return leg after selecting the outbound pick, timing, trip-shape, and minimum-savings requirements are waived; do not imply similar timing or savings unless the returned fare supports those claims. Present it as an FYI the traveler may ignore, never as the default choice, keep its savings absolute, and do not imply the other entries are out of policy unless their own policy fields say so."
          },
          "tradeoff": {
            "default": null,
            "nullable": true,
            "title": "Tradeoff",
            "type": "string"
          }
        },
        "required": [
          "offer",
          "rank",
          "reason",
          "reason_tags",
          "recommendation_kind",
          "tradeoff"
        ],
        "title": "SearchFlightsRecommendedOfferV1",
        "type": "object"
      },
      "SearchFlightsRequestBody": {
        "description": "Searches flights for a route and dates. Returns policy-tagged offers, or a job_id while the search is still running. To book, use the selected offer's id.\n\nCopy flights_display labels verbatim; they identify each segment's marketing airline and exact flight number, including codeshares.\n\nPass either route fields or job_id, not both. A job_id call reads the existing search without starting a new one. Round trips return outbound offers first; pass job_id with outbound_offer_id to get matching return offers. Preferences persist on the job until changed or cleared. Does not modify existing bookings.\n\nFlight credits, only when the business has flight credits enabled: an offer whose booked fare may accept one of the traveler's credits has airline_credit_eligible=true and the largest such credit, with its currency, in top_airline_credit; each fare option lists its own eligible_credit_ids. only_airline_credit_eligible=true keeps only flights with such a fare and fails with AIRLINE_CREDIT_FILTER_UNAVAILABLE when credits are not enabled or the traveler has no credit Ramp Travel can apply. Eligibility is not a guarantee; the airline confirms it only when the credit is applied to a flight quote.",
        "properties": {
          "additional_arrivals": {
            "default": null,
            "description": "Other arrival locations searched together with arrival, in the same formats (e.g. ['EWR']). For a round trip, the return may leave from any listed arrival and land at any listed departure. Same rules as additional_departures.",
            "items": {
              "type": "string"
            },
            "maxItems": 4,
            "nullable": true,
            "title": "Additional Arrivals",
            "type": "array"
          },
          "additional_departures": {
            "default": null,
            "description": "Other departure locations searched together with departure, in the same formats (e.g. ['OAK', 'SJC']). A city already covers its own airports. Requires departure; rejected with MULTI_AIRPORT_SEARCH_UNAVAILABLE when this traveler cannot search several locations.",
            "items": {
              "type": "string"
            },
            "maxItems": 4,
            "nullable": true,
            "title": "Additional Departures",
            "type": "array"
          },
          "airlines": {
            "default": null,
            "description": "Hard filter: only return these airline IATA codes (e.g. ['AA', 'DL']).",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "title": "Airlines",
            "type": "array"
          },
          "arrival": {
            "default": null,
            "description": "Arrival airport IATA code, Ramp city search_code, or city, metro, or airport name (e.g. 'NYC', 'Boston Logan').",
            "nullable": true,
            "title": "Arrival",
            "type": "string"
          },
          "avoid_red_eye_flights": {
            "default": null,
            "description": "Ranks red-eye flights lower in this search's recommendations. Does not save a traveler preference.",
            "nullable": true,
            "title": "Avoid Red Eye Flights",
            "type": "boolean"
          },
          "cabin_class": {
            "default": null,
            "description": "One cabin or a list of cabins searched together: ECONOMY, PREMIUM_ECONOMY, BUSINESS, or FIRST. If omitted, recommendations use the highest in-policy cabin unless a saved cabin preference applies. On a return-offer read, each itinerary uses its cheapest match among the requested cabins.",
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/InventoryCabinClassRequestBody"
              },
              {
                "items": {
                  "$ref": "#/components/schemas/InventoryCabinClassRequestBody"
                },
                "type": "array"
              }
            ],
            "title": "Cabin Class"
          },
          "clear_preferences": {
            "default": null,
            "description": "Preference names to remove from this job's saved preferences. Requires job_id and cannot include a field that also has a new value. Timing clears apply to the current leg; return_preferred_* names clear saved return timing.",
            "items": {
              "$ref": "#/components/schemas/SearchFlightsPreferenceNameRequestBody"
            },
            "nullable": true,
            "title": "Clear Preferences",
            "type": "array"
          },
          "cursor": {
            "default": null,
            "description": "Opaque page cursor: a completed response's next_cursor, or current_page_cursor to replay the current page. Requires job_id; re-send the same filters, sort_key, and outbound_offer_id.",
            "nullable": true,
            "title": "Cursor",
            "type": "string"
          },
          "departure": {
            "default": null,
            "description": "Departure airport IATA code, Ramp city search_code, or city, metro, or airport name (e.g. 'NYC', 'Boston Logan'). If omitted on a new search, defaults to the traveler's saved home city, then their most frequent departure city across their flight bookings.",
            "nullable": true,
            "title": "Departure",
            "type": "string"
          },
          "departure_date": {
            "default": null,
            "description": "Outbound date (YYYY-MM-DD). Required for a new search.",
            "format": "date",
            "nullable": true,
            "title": "Departure Date",
            "type": "string"
          },
          "include_fare_options": {
            "default": false,
            "description": "Also return each flight's alternative fare classes in fare_options (e.g. Economy Plus, Business).",
            "title": "Include Fare Options",
            "type": "boolean"
          },
          "include_recommendations": {
            "default": true,
            "description": "If false, returns the ranked offers page without recommendations.",
            "title": "Include Recommendations",
            "type": "boolean"
          },
          "job_id": {
            "default": null,
            "description": "ID of an existing search, from a previous response. Use it to get results, page, re-rank, or fetch return flights. Omit it to start a new search.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "limit": {
            "default": 20,
            "description": "Maximum offers to return (1-100). Defaults to 20. Output is token-capped, so large limits may return fewer offers; paginate with next_cursor for more.",
            "maximum": 100,
            "minimum": 1,
            "title": "Limit",
            "type": "integer"
          },
          "max_stops": {
            "default": null,
            "description": "Hard maximum-stop filter: 0 for nonstop, 1 for at most one stop, etc.",
            "minimum": 0,
            "nullable": true,
            "title": "Max Stops",
            "type": "integer"
          },
          "only_airline_credit_eligible": {
            "default": null,
            "description": "True keeps only flights with a fare that may accept one of the traveler's flight credits that Ramp Travel can apply. That fare may not be the one the offer's id books. Applies to this call only; re-send it with cursor. Rejected with AIRLINE_CREDIT_FILTER_UNAVAILABLE when flight credits are unavailable in this booking flow or the traveler holds no such credit.",
            "nullable": true,
            "title": "Only Airline Credit Eligible",
            "type": "boolean"
          },
          "only_split_tickets": {
            "default": null,
            "description": "Filter results to split-ticket (multi-ticket) fares only. True returns only fares where ticket_type is multi_ticket; False returns only single_ticket fares. Null (default) returns both.",
            "nullable": true,
            "title": "Only Split Tickets",
            "type": "boolean"
          },
          "outbound_offer_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "Outbound offer id, used with job_id to fetch matching return offers. Returns are priced on this outbound fare, so a different outbound fare (e.g. refundable) needs its own id: pass a nested fare option's id as outbound_offer_id to preserve its cabin and fare on the returns; this needs include_fare_options=true on the outbound read. The chosen return offer's id books the full itinerary.",
            "nullable": true
          },
          "preferred_airlines": {
            "default": null,
            "description": "Soft preference as airline IATA codes (e.g. ['UA']). Ranks matching flights higher without excluding other airlines.",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "title": "Preferred Airlines",
            "type": "array"
          },
          "preferred_arrival_time_window": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TravelTimeWindowRequestBody"
              }
            ],
            "default": null,
            "description": "Arrival time preference for the current leg, such as morning, afternoon, or evening. On an outbound_offer_id read, it applies to return offers.",
            "nullable": true
          },
          "preferred_connectivity": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FlightConnectivityPreferenceRequestBody"
              }
            ],
            "default": null,
            "description": "Soft preference for 'wifi' or 'starlink'. Favors flights with stronger connectivity evidence among comparable recommendations (at most 10% more expensive and 30 minutes longer); never excludes flights with unknown connectivity. Historical Starlink is an estimate. Requires the flight connectivity feature.",
            "nullable": true
          },
          "preferred_departure_time_window": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TravelTimeWindowRequestBody"
              }
            ],
            "default": null,
            "description": "Departure time preference for the current leg, such as morning, afternoon, or evening. On an outbound_offer_id read, it applies to return offers.",
            "nullable": true
          },
          "presentation": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FlightPresentationRequestBody"
              }
            ],
            "default": null,
            "description": "On a job_id read (outbound, or return with outbound_offer_id), returns exactly these offers from that view as the recommendations.",
            "nullable": true
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "requested_weekday": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WeekdayRequestBody"
              }
            ],
            "default": null,
            "description": "Weekday the traveler asked to depart, for a relative day like 'next Friday'. The search is rejected if departure_date does not fall on it.",
            "nullable": true
          },
          "required_upgrade_cabin_class": {
            "allOf": [
              {
                "$ref": "#/components/schemas/InventoryCabinClassRequestBody"
              }
            ],
            "default": null,
            "description": "Only return itineraries whose cached fare inventory shows at least one seat in this cabin on every segment. Reflects observed inventory, not a guaranteed upgrade; a count of 0 or a missing count does not qualify.",
            "nullable": true
          },
          "resume_job_id": {
            "default": null,
            "deprecated": true,
            "description": "Legacy alias for job_id when resuming or paging a search. Use job_id for new calls.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "return_date": {
            "default": null,
            "description": "Return date for round-trip; omit for one-way.",
            "format": "date",
            "nullable": true,
            "title": "Return Date",
            "type": "string"
          },
          "return_preferred_arrival_time_window": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TravelTimeWindowRequestBody"
              }
            ],
            "default": null,
            "description": "Return-leg arrival time preference for a round trip, saved on a new search or outbound read and applied to return offers. A new search requires return_date; a job_id read requires a round-trip job. Rejected with outbound_offer_id.",
            "nullable": true
          },
          "return_preferred_departure_time_window": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TravelTimeWindowRequestBody"
              }
            ],
            "default": null,
            "description": "Return-leg departure time preference for a round trip, saved on a new search or outbound read and applied to return offers. A new search requires return_date; a job_id read requires a round-trip job. Rejected with outbound_offer_id.",
            "nullable": true
          },
          "search_job_id": {
            "default": null,
            "deprecated": true,
            "description": "Legacy alias for job_id with outbound_offer_id. Use job_id for new calls.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "sort_key": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FlightSearchSortKeyRequestBody"
              }
            ],
            "default": null,
            "description": "Result order, same keys as the flight search UI (e.g. LOWEST_TOTAL_AMOUNT, SHORTEST_DURATION). Defaults to WEIGHTED_SCORE. On a job_id read, re-sorts cached results; re-send it with cursor to page the sorted view.",
            "nullable": true
          },
          "traveler_user_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "UUID of the traveler when searching for someone else. Omit to search for the current user.",
            "nullable": true
          },
          "trip_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "Optional Ramp trip UUID to associate with this search.",
            "nullable": true
          },
          "wait_for_results": {
            "default": true,
            "description": "If true, waits up to about 30-40 seconds for results. If false, returns the current status immediately. Return-offer reads require true.",
            "title": "Wait For Results",
            "type": "boolean"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "SearchFlights",
        "type": "object"
      },
      "SearchFlightsResolvedSearchV1": {
        "description": "Server-resolved route and dates for the search.\n\nUse these canonical server-formatted strings verbatim when confirming the\nsearch with the traveler. When the traveler gave a relative day like \"next\nThursday\", confirm the date using the returned departure_date and\nreturn_date; never compose a weekday and date yourself.",
        "properties": {
          "additional_arrivals": {
            "description": "Other arrival locations this search also covered (airport IATA codes or city names). Empty for a single-arrival search.",
            "items": {
              "type": "string"
            },
            "title": "Additional Arrivals",
            "type": "array"
          },
          "additional_departures": {
            "description": "Other departure locations this search also covered (airport IATA codes or city names). Empty for a single-departure search.",
            "items": {
              "type": "string"
            },
            "title": "Additional Departures",
            "type": "array"
          },
          "arrival": {
            "description": "Resolved arrival location (airport IATA code or city name).",
            "title": "Arrival",
            "type": "string"
          },
          "departure": {
            "description": "Resolved departure location (airport IATA code or city name).",
            "title": "Departure",
            "type": "string"
          },
          "departure_date": {
            "description": "Server-formatted outbound date, e.g. 'Thu, Jul 9, 2026'.",
            "title": "Departure Date",
            "type": "string"
          },
          "departure_source": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SearchFlightsDepartureSource"
              }
            ],
            "default": null,
            "description": "How the initial search resolved departure. 'traveler_input' means the traveler supplied the origin, including one taken from saved preferences text; 'saved_home_address' means SearchFlights resolved this concrete departure city from the traveler's saved home address. Retained on later reads of the same job. Null for origins inferred from flight booking history or older jobs without stored provenance. Present an origin with null provenance as an editable suggestion, not a confirmed home location.",
            "nullable": true
          },
          "return_date": {
            "default": null,
            "description": "Server-formatted return date for round trips; null for one-way.",
            "nullable": true,
            "title": "Return Date",
            "type": "string"
          }
        },
        "required": [
          "arrival",
          "departure",
          "departure_date"
        ],
        "title": "SearchFlightsResolvedSearchV1",
        "type": "object"
      },
      "SearchFlightsResult": {
        "properties": {
          "airline_credit_eligible_offer_count": {
            "default": null,
            "description": "Number of flights shown in this result (recommended_offers when present, otherwise offers) with airline_credit_eligible true. Null when no shown flight may accept a flight credit.",
            "nullable": true,
            "title": "Airline Credit Eligible Offer Count",
            "type": "integer"
          },
          "applied_preferences": {
            "default": null,
            "description": "The supplied search-job preferences and loyalty affinity used by the recommendation ranker for this job and leg. Does not include saved comments or preferences independently considered by the calling agent.",
            "items": {
              "$ref": "#/components/schemas/SearchFlightsAppliedPreferenceV1"
            },
            "nullable": true,
            "title": "Applied Preferences",
            "type": "array"
          },
          "assistant_note": {
            "default": "The client renders each recommended_offers entry as a card; the cards are the complete flight presentation. Use only recommended_offers for the recommended choices; do not substitute ordinary offers. Give only a collective summary and the results link when present. The traveler selects directly in the displayed results; do not ask them to reply with a name, number, or choice, and do not refer to the results as cards. Never re-list or summarize card-specific airline names, flight numbers, times, stops, duration, prices, fares, refundability, or policy details in text. When the traveler asked for a fare trait such as refundability that no card's fare has, read this job_id with presentation set to the fitting fare option ids (fare_options needs include_fare_options=true) before replying, so the cards show those fares; if that read fails, name the fitting fare, its price, and its policy status in text. When web_search_url is present, end your reply with exactly `[See all results](<web_search_url>)`; never use another label such as `here`. A card selection arrives with the traveler's next message.",
            "description": "Short presentation reminder addressed to the assistant reading this result; always present. UI clients should ignore it.",
            "title": "Assistant Note",
            "type": "string"
          },
          "blocked_options": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BlockedOptionsV1"
              }
            ],
            "default": null,
            "description": "Flights and fares the company's booking rules block. They are never recommended and are left out of offers while any flight the rules allow was found; otherwise offers holds those flights, each marked is_blocked, and only_blocked_results is true. Follow assistant_note when presenting it. None when nothing was blocked.",
            "nullable": true
          },
          "current_page_cursor": {
            "default": null,
            "description": "Pass back as cursor to replay the current ordinary offers page when recommendations caused offers to be omitted from the model-facing result; when outbound_offer_id is present, pass it back too. None when the current page is already visible.",
            "nullable": true,
            "title": "Current Page Cursor",
            "type": "string"
          },
          "is_round_trip": {
            "description": "Round-trip mode returns OUTBOUND options only with full round-trip prices. Fetch return offers next by passing job_id plus outbound_offer_id.",
            "title": "Is Round Trip",
            "type": "boolean"
          },
          "job_id": {
            "default": null,
            "description": "UUID of the search job. Pass it back as job_id to poll, paginate, re-filter, re-rank, re-sort, or fetch return offers for this search.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "leg": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SearchFlightsLeg"
              }
            ],
            "description": "Which leg this result lists: one_way for a one-way search, outbound for the first leg of a round trip, return for the return-leg view of a chosen outbound offer. UI clients use it to label the results header so outbound and return options are distinguishable.",
            "readOnly": true
          },
          "next_cursor": {
            "default": null,
            "description": "Pass back as cursor to fetch the next page; when outbound_offer_id is present, pass it back too. None when exhausted.",
            "nullable": true,
            "title": "Next Cursor",
            "type": "string"
          },
          "offers": {
            "description": "This page of the final result list. Empty while search_complete is false. Omitted from the model-facing result when recommendations are present; replay it with current_page_cursor to show those options. Offer IDs may also appear in recommended_offers. Preserve offer order across pages. Every flight item includes airline_name and flight_number, even when fare_options is present; fare options are nested under their flight.",
            "items": {
              "$ref": "#/components/schemas/SearchFlightsOfferV1"
            },
            "title": "Offers",
            "type": "array"
          },
          "outbound_offer_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "description": "Selected outbound offer or fare-option ID for a return-flight view. Pass this same value as outbound_offer_id on every current-page replay and next-page request. None for outbound and one-way views.",
            "nullable": true
          },
          "presentation_role": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FlightPresentationRole"
              }
            ],
            "default": null,
            "description": "Set when recommended_offers holds offers the assistant chose to present: recommended for its top pick, alternative for other options. Null for ordinary search results.",
            "nullable": true
          },
          "recommended_offers": {
            "description": "Preference-aware recommended flights selected from a broad cached result pool, with the count selected for the caller's surface. Always present. Clients present these entries using their surface's supported format. Never substitute entries from offers. Empty ([]) while search_complete is false, on cursor pages, and when there is nothing to recommend. A recommended offer may be absent from offers and is still bookable via its id. If the traveler dislikes these picks, re-call with job_id (no cursor) plus updated preference fields. May end with one 'travel_manager_pick' entry; see recommendation_kind.",
            "items": {
              "$ref": "#/components/schemas/SearchFlightsRecommendedOfferV1"
            },
            "maxItems": 10,
            "title": "Recommended Offers",
            "type": "array"
          },
          "resolved_search": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SearchFlightsResolvedSearchV1"
              }
            ],
            "default": null,
            "description": "The server-resolved route and dates for this search. Confirm the search with the traveler using these strings verbatim. Relative days must be confirmed from the returned dates; never compose a weekday and date yourself.",
            "nullable": true
          },
          "search_complete": {
            "default": true,
            "description": "False while the search is still running; offers and recommended_offers are empty until it finishes. Calling again with job_id returns the results.",
            "title": "Search Complete",
            "type": "boolean"
          },
          "search_policy_summary": {
            "default": null,
            "description": "Top-of-results policy banner (price cap, market-rate, or lead-time verbiage). None when no policy restriction applies.",
            "nullable": true,
            "title": "Search Policy Summary",
            "type": "string"
          },
          "search_scope": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SearchFlightsSearchScopeV1"
              }
            ],
            "default": null,
            "description": "Whether this search covered nonstop flights only or all flights, and whether it was broadened after an empty nonstop-only result. None when the provider does not report search scope.",
            "nullable": true
          },
          "traveler_user_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "description": "Traveler UUID when searching on behalf of another user. Pass this same value to submit-flight-booking so the booking is created for the intended traveler. Null when searching for yourself.",
            "nullable": true
          },
          "type": {
            "default": "flights",
            "description": "Constant discriminator identifying this tool result payload.",
            "enum": [
              "flights"
            ],
            "title": "Type",
            "type": "string"
          },
          "web_search_url": {
            "default": null,
            "description": "User-facing link to the Ramp Travel flight search UI hydrated from this search job's cached results (full sort/filter, no provider re-search). Present on completed outbound responses and on return-offer responses, where it opens the return-leg view for the chosen outbound offer. Share it exactly once per recommendation turn as `[See all results](<web_search_url>)`; never use another label such as `here`. If the cached job has expired, the same link falls back to a normal pre-filled search.",
            "nullable": true,
            "title": "Web Search Url",
            "type": "string"
          }
        },
        "required": [
          "airline_credit_eligible_offer_count",
          "applied_preferences",
          "assistant_note",
          "blocked_options",
          "current_page_cursor",
          "is_round_trip",
          "job_id",
          "leg",
          "next_cursor",
          "offers",
          "outbound_offer_id",
          "presentation_role",
          "recommended_offers",
          "resolved_search",
          "search_complete",
          "search_policy_summary",
          "search_scope",
          "traveler_user_id",
          "type",
          "web_search_url"
        ],
        "title": "SearchFlightsResult",
        "type": "object"
      },
      "SearchFlightsSearchScope": {
        "enum": [
          "all_flights",
          "nonstop_only"
        ],
        "title": "SearchFlightsSearchScope",
        "type": "string"
      },
      "SearchFlightsSearchScopeV1": {
        "properties": {
          "scope": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SearchFlightsSearchScope"
              }
            ],
            "description": "nonstop_only when the search is restricted to nonstop flights by the provider or the applied stop filter; all_flights otherwise."
          }
        },
        "required": [
          "scope"
        ],
        "title": "SearchFlightsSearchScopeV1",
        "type": "object"
      },
      "SearchFlightsSegmentSeatAvailabilityV1": {
        "description": "Fare-class seat inventory reported for one flight segment.",
        "properties": {
          "arrival_airport": {
            "title": "Arrival Airport",
            "type": "string"
          },
          "booking_code": {
            "description": "Airline reservation booking designator, such as 'Y'.",
            "title": "Booking Code",
            "type": "string"
          },
          "cabin_class": {
            "title": "Cabin Class",
            "type": "string"
          },
          "departure_airport": {
            "title": "Departure Airport",
            "type": "string"
          },
          "flight_number": {
            "title": "Flight Number",
            "type": "string"
          },
          "seat_availability": {
            "default": null,
            "description": "GDS fare-class inventory from 0 to 9. 9 means 9 or more seats. 0 can mean the fare class is closed or the carrier did not report a count; null means the provider returned no value. Neither 0 nor null proves that the flight is sold out.",
            "maximum": 9,
            "minimum": 0,
            "nullable": true,
            "title": "Seat Availability",
            "type": "integer"
          }
        },
        "required": [
          "arrival_airport",
          "booking_code",
          "cabin_class",
          "departure_airport",
          "flight_number"
        ],
        "title": "SearchFlightsSegmentSeatAvailabilityV1",
        "type": "object"
      },
      "SearchFlightsStarlinkStatus": {
        "enum": [
          "expected",
          "historical",
          "reported",
          "verified"
        ],
        "title": "SearchFlightsStarlinkStatus",
        "type": "string"
      },
      "SearchFlightsStarlinkV1": {
        "description": "Starlink evidence for one leg, as the Ramp Travel flight card shows it.",
        "properties": {
          "flight_number": {
            "title": "Flight Number",
            "type": "string"
          },
          "probability": {
            "default": null,
            "description": "Estimated chance of Starlink from 0 to 1; only for 'historical'.",
            "nullable": true,
            "title": "Probability",
            "type": "number"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SearchFlightsStarlinkStatus"
              }
            ],
            "description": "'verified', 'expected' or 'reported': Starlink on the assigned aircraft, which can change before departure. 'historical': estimated from recent flights; see probability."
          }
        },
        "required": [
          "flight_number",
          "status"
        ],
        "title": "SearchFlightsStarlinkV1",
        "type": "object"
      },
      "SearchFlightsWifiCoverage": {
        "description": "Share of an itinerary's displayed legs with Wi-Fi.",
        "enum": [
          "all",
          "none",
          "some"
        ],
        "title": "SearchFlightsWifiCoverage",
        "type": "string"
      },
      "SearchHelpCenterOutput": {
        "description": "Output from RAG-based help center search, containing relevant article text.\n\nEach result contains either a matched snippet or a complete article, according to\nthe caller's requested format.",
        "properties": {
          "query": {
            "description": "The primary search query",
            "title": "Query",
            "type": "string"
          },
          "snippets": {
            "description": "List of relevant snippets or complete help center articles",
            "items": {
              "$ref": "#/components/schemas/HelpCenterSnippet"
            },
            "title": "Snippets",
            "type": "array"
          }
        },
        "required": [
          "query",
          "snippets"
        ],
        "title": "SearchHelpCenterOutput",
        "type": "object"
      },
      "SearchHelpCenterSnippetsRequestBody": {
        "description": "Search Ramp's authoritative Help Center documentation for product knowledge and guidance for users.\n\nCovers Ramp-specific information such as features, pricing, eligibility,\npolicies, setup, how-to steps, and troubleshooting. These examples are not\nexhaustive; search other documented Ramp topics as needed.\n\nReturns relevant Help Center content with titles and source URLs when available.",
        "properties": {
          "exclude_article_keys": {
            "allOf": [
              {
                "$ref": "#/components/schemas/HelpCenterArticleKeyListRequestBody"
              }
            ],
            "default": null,
            "description": "On every search for the current user intent, MUST include cumulative, deduplicated article_key values already returned, including preloaded articles on the first call. Each parallel call uses all keys known before its batch; add new keys before the next batch. Rewording or changing subtopics does not reset exclusions; only a new user intent does. Reuse returned content directly, never remove exclusions to refetch it. Omit or pass [] when no keys are known. Only the most recent 50 unique keys are applied. Matching ranked results are omitted without backfilling, so the search may return fewer than top_k results or no results.",
            "nullable": true
          },
          "query": {
            "description": "The primary information need, expressed in natural language with relevant Ramp product terms. Searched by semantic meaning and keywords in article titles and text, alongside any query_variants. Results can match the meaning without repeating the exact query wording.",
            "title": "Query",
            "type": "string"
          },
          "query_variants": {
            "default": null,
            "description": "One alternate phrasing, or up to four alternate phrasings, for the same information need. Use meaningful alternate wording, synonyms, or exact error text to broaden retrieval for one topic. Each phrasing is searched alongside query; the ranked matches are fused into one top_k result set, not top_k per phrasing. Results need not match every phrasing; variants are not required keywords or filters. For distinct topics that each need their own results, make separate calls in parallel.",
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/HelpCenterQueryRequestBody"
              },
              {
                "$ref": "#/components/schemas/HelpCenterQueryVariantListRequestBody"
              }
            ],
            "title": "Query Variants"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "top_k": {
            "default": 3,
            "description": "Maximum number of relevant results to return. When omitted, defaults to 3, or 10 for intent-filtered AskRamp snippets. Explicit limits are honored within the active retrieval configuration's bounds.",
            "title": "Top K",
            "type": "integer"
          }
        },
        "required": [
          "query",
          "rationale"
        ],
        "title": "SearchHelpCenterSnippets",
        "type": "object"
      },
      "SearchHotelsAppliedPreferenceV1": {
        "description": "A preference source that the hotel ranker will apply on resume.",
        "properties": {
          "display": {
            "title": "Display",
            "type": "string"
          },
          "effect": {
            "title": "Effect",
            "type": "string"
          },
          "kind": {
            "enum": [
              "general",
              "loyalty"
            ],
            "title": "Kind",
            "type": "string"
          },
          "source": {
            "enum": [
              "loyalty",
              "stored",
              "this_search"
            ],
            "title": "Source",
            "type": "string"
          }
        },
        "required": [
          "display",
          "effect",
          "kind",
          "source"
        ],
        "title": "SearchHotelsAppliedPreferenceV1",
        "type": "object"
      },
      "SearchHotelsFiltersV1": {
        "description": "Agent-friendly filters applied to fresh or cached hotel results.",
        "properties": {
          "amenities": {
            "default": null,
            "description": "On-site property amenities the traveler requires, one per item, copied from the traveler's wording with its qualifiers. Leave out nice-to-haves, meal plans and in-room features; they are not evaluated here.",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "title": "Amenities",
            "type": "array"
          },
          "chain_names": {
            "default": null,
            "description": "Hotel chain names such as 'Marriott' or 'Hilton'. Use this for chain requests; hotel_name is only for a specific property.",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "title": "Chain Names",
            "type": "array"
          },
          "max_nightly_amount": {
            "default": null,
            "description": "Hard maximum pre-tax base amount per room per night. Use for requests such as 'under $300/night'; hotels above this amount are excluded before recommendation ranking. This is independent of the traveler's policy maximum.",
            "nullable": true,
            "title": "Max Nightly Amount",
            "type": "number"
          },
          "min_nightly_amount": {
            "default": null,
            "description": "Hard minimum pre-tax base amount per room per night. Use for requests such as 'over $200/night'; hotels below this amount are excluded before recommendation ranking. This is independent of the traveler's policy maximum.",
            "nullable": true,
            "title": "Min Nightly Amount",
            "type": "number"
          },
          "min_review_rating": {
            "default": null,
            "nullable": true,
            "title": "Min Review Rating",
            "type": "number"
          },
          "refundability": {
            "default": null,
            "description": "Acceptable rate refundability values, such as REFUNDABLE. The same requirement is carried into follow-up GetHotelRates calls.",
            "items": {
              "$ref": "#/components/schemas/Refundability"
            },
            "nullable": true,
            "title": "Refundability",
            "type": "array"
          },
          "star_ratings": {
            "default": null,
            "items": {
              "type": "number"
            },
            "nullable": true,
            "title": "Star Ratings",
            "type": "array"
          }
        },
        "title": "SearchHotelsFiltersV1",
        "type": "object"
      },
      "SearchHotelsFiltersV1RequestBody": {
        "description": "Agent-friendly filters applied to fresh or cached hotel results.",
        "properties": {
          "amenities": {
            "default": null,
            "description": "On-site property amenities the traveler requires, one per item, copied from the traveler's wording with its qualifiers. Leave out nice-to-haves, meal plans and in-room features; they are not evaluated here.",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "title": "Amenities",
            "type": "array"
          },
          "chain_names": {
            "default": null,
            "description": "Hotel chain names such as 'Marriott' or 'Hilton'. Use this for chain requests; hotel_name is only for a specific property.",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "title": "Chain Names",
            "type": "array"
          },
          "max_nightly_amount": {
            "default": null,
            "description": "Hard maximum pre-tax base amount per room per night. Use for requests such as 'under $300/night'; hotels above this amount are excluded before recommendation ranking. This is independent of the traveler's policy maximum.",
            "nullable": true,
            "oneOf": [
              {
                "minimum": 0.0,
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "title": "Max Nightly Amount"
          },
          "min_nightly_amount": {
            "default": null,
            "description": "Hard minimum pre-tax base amount per room per night. Use for requests such as 'over $200/night'; hotels below this amount are excluded before recommendation ranking. This is independent of the traveler's policy maximum.",
            "nullable": true,
            "oneOf": [
              {
                "minimum": 0.0,
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "title": "Min Nightly Amount"
          },
          "min_review_rating": {
            "default": null,
            "nullable": true,
            "oneOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "title": "Min Review Rating"
          },
          "refundability": {
            "default": null,
            "description": "Acceptable rate refundability values, such as REFUNDABLE. The same requirement is carried into follow-up GetHotelRates calls.",
            "items": {
              "$ref": "#/components/schemas/RefundabilityRequestBody"
            },
            "nullable": true,
            "title": "Refundability",
            "type": "array"
          },
          "star_ratings": {
            "default": null,
            "items": {
              "oneOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string"
                }
              ]
            },
            "nullable": true,
            "title": "Star Ratings",
            "type": "array"
          }
        },
        "title": "SearchHotelsFiltersV1",
        "type": "object"
      },
      "SearchHotelsNextActionV1": {
        "description": "Exact follow-up call for a hotel search that is still running.",
        "properties": {
          "arguments": {
            "$ref": "#/components/schemas/SearchHotelsResumeArgsV1"
          },
          "reason": {
            "default": "The hotel search is still running. End this turn. On the next user turn, call SearchHotels once with these exact arguments and the complete cumulative preferences.",
            "title": "Reason",
            "type": "string"
          },
          "tool": {
            "default": "SearchHotels",
            "title": "Tool",
            "type": "string"
          }
        },
        "required": [
          "arguments"
        ],
        "title": "SearchHotelsNextActionV1",
        "type": "object"
      },
      "SearchHotelsRequestBody": {
        "description": "Search hotels using the canonical Ramp web inventory and policy flow. Before first use in a conversation, load and follow the ramp-book-hotel skill when available.\n\nProvide location_query (city, neighborhood, address, or landmark) plus check_in_date and check_out_date. location_query text containing 'office', 'HQ', or 'headquarters' is rejected unless latitude and longitude are also passed; to search near an office without coordinates, pass its street address as location_query. API calls run synchronously by default and return ranked hotels - each with at most one summary rate - plus policy_summary, total_count, and web_search_url. Results are paginated from a cached result set: pass the returned next_cursor as cursor to fetch more hotels without triggering a new provider search; never construct or edit a cursor. Put chain requests in filters.chain_names and reserve hotel_name for one exact property; a specific hotel_name uses the targeted direct-hotel path. Passing wait_for_results=false explicitly opts into an asynchronous kickoff that returns status='searching' with a search_id to resume by passing that search_id on a later call.\n\nTo book from these results, pass the selected hotel id to GetHotelRates, then the selected rate id to SubmitHotelBooking with the same traveler and stay dates.",
        "properties": {
          "check_in_date": {
            "default": null,
            "format": "date",
            "nullable": true,
            "title": "Check In Date",
            "type": "string"
          },
          "check_out_date": {
            "default": null,
            "format": "date",
            "nullable": true,
            "title": "Check Out Date",
            "type": "string"
          },
          "cursor": {
            "default": null,
            "description": "Opaque next_cursor from a previous SearchHotels response.",
            "nullable": true,
            "title": "Cursor",
            "type": "string"
          },
          "filters": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SearchHotelsFiltersV1RequestBody"
              }
            ],
            "default": null,
            "description": "Optional filters applied to fresh or cached results. Put chain requests in filters.chain_names; do not pass a chain name as hotel_name.",
            "nullable": true
          },
          "hotel_name": {
            "default": null,
            "description": "Specific hotel name the user asked for (for example 'citizenM New York'). When provided, SearchHotels resolves and prioritizes that hotel in results.",
            "nullable": true,
            "title": "Hotel Name",
            "type": "string"
          },
          "latitude": {
            "default": null,
            "description": "Exact latitude from GetOfficeLocations for an office destination. Must be supplied together with longitude; otherwise omit both.",
            "nullable": true,
            "oneOf": [
              {
                "maximum": 90.0,
                "minimum": -90.0,
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "title": "Latitude"
          },
          "limit": {
            "default": 10,
            "maximum": 10,
            "minimum": 1,
            "title": "Limit",
            "type": "integer"
          },
          "location_query": {
            "default": null,
            "description": "Destination, neighborhood, street address, or landmark. Pass an office's street address rather than words like 'office' or 'HQ', which require latitude and longitude.",
            "nullable": true,
            "title": "Location Query",
            "type": "string"
          },
          "longitude": {
            "default": null,
            "description": "Exact longitude from GetOfficeLocations for an office destination. Must be supplied together with latitude; otherwise omit both.",
            "nullable": true,
            "oneOf": [
              {
                "maximum": 180.0,
                "minimum": -180.0,
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "title": "Longitude"
          },
          "num_adults": {
            "default": 1,
            "minimum": 1,
            "title": "Num Adults",
            "type": "integer"
          },
          "preferences": {
            "default": null,
            "description": "Free-text stay preferences the traveler stated in this conversation, e.g. 'under $300/night, needs a gym, near Miami Beach, refundable'. Include any place they want to stay close to. Saved profile travel preferences are applied automatically; only pass what the traveler said here.",
            "nullable": true,
            "title": "Preferences",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "search_id": {
            "default": null,
            "description": "search_id from a previous SearchHotels response. Pass it instead of the fresh-search fields to retrieve an in-flight search, or to re-filter and re-rank a completed search's cached inventory with new preferences, filters, sort, or limit for the same destination, dates, and travelers. If that search fails with same_search_id_retryable=false, never pass the ID again; start a fresh search with search_id=null and the original destination and dates.",
            "nullable": true,
            "title": "Search Id",
            "type": "string"
          },
          "sort": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SearchHotelsSortV1RequestBody"
              }
            ],
            "default": null,
            "description": "Optional sort configuration that mirrors web static hotel search.",
            "nullable": true
          },
          "traveler_user_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "Traveler UUID when searching on behalf of another user.",
            "nullable": true
          },
          "wait_for_results": {
            "default": null,
            "description": "Whether a fresh search waits for completed results. When omitted, the default depends on the caller: API (CLI/MCP/third-party) calls wait and return completed results in one call, while assistant conversations return quickly with status='searching', search_id, and next_action when asynchronous hotel search is enabled for the business. Set true to explicitly wait for synchronous results. Resume calls with false perform one immediate completion check and never wait or poll internally. Hotel results are final-only; incomplete resumes return status='searching' for the next user turn.",
            "nullable": true,
            "title": "Wait For Results",
            "type": "boolean"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "SearchHotels",
        "type": "object"
      },
      "SearchHotelsResolvedSearchV1": {
        "description": "Validated stay details echoed by a nonblocking kickoff.",
        "properties": {
          "check_in_date": {
            "title": "Check In Date",
            "type": "string"
          },
          "check_out_date": {
            "title": "Check Out Date",
            "type": "string"
          },
          "destination": {
            "title": "Destination",
            "type": "string"
          },
          "num_adults": {
            "title": "Num Adults",
            "type": "integer"
          }
        },
        "required": [
          "check_in_date",
          "check_out_date",
          "destination",
          "num_adults"
        ],
        "title": "SearchHotelsResolvedSearchV1",
        "type": "object"
      },
      "SearchHotelsResult": {
        "properties": {
          "applied_preferences": {
            "default": null,
            "description": "Present on nonblocking kickoff responses: stored, loyalty, and current-search preferences the ranker will apply on resume. State these instead of asking for the same information again.",
            "items": {
              "$ref": "#/components/schemas/SearchHotelsAppliedPreferenceV1"
            },
            "nullable": true,
            "title": "Applied Preferences",
            "type": "array"
          },
          "applied_preferences_summary": {
            "default": null,
            "description": "Short summary of how preferences were interpreted when ranking.",
            "nullable": true,
            "title": "Applied Preferences Summary",
            "type": "string"
          },
          "assistant_note": {
            "default": "This hotel result renders no cards; each recommended hotel is carded by the immediate follow-up GetHotelRates call. Never re-list carded hotels in text.",
            "description": "Short presentation reminder addressed to the assistant reading this result; always present. UI clients should ignore it.",
            "title": "Assistant Note",
            "type": "string"
          },
          "blocked_options": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BlockedOptionsV1"
              }
            ],
            "default": null,
            "description": "Hotels whose shown rate the company's booking rules block, by the hotel or by the rate's details, each marked rates[0].is_blocked. They are listed after every other hotel and never recommended with that rate; other rooms there may still be bookable. Follow assistant_note when presenting it. None when nothing was blocked.",
            "nullable": true
          },
          "hotels": {
            "description": "Page of the full result list. Empty when recommended is present: present the recommendations and, when web_search_url is present, share it for the full list instead.",
            "items": {
              "$ref": "#/components/schemas/HotelSearchOfferV1"
            },
            "title": "Hotels",
            "type": "array"
          },
          "message": {
            "default": null,
            "description": "Instructions for the next step while status is 'searching', or why a completed search returned no hotels (for example every available hotel was removed by the requested filters, which can then be relaxed).",
            "nullable": true,
            "title": "Message",
            "type": "string"
          },
          "next_action": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SearchHotelsNextActionV1"
              }
            ],
            "default": null,
            "description": "Present while status is 'searching': the exact SearchHotels resume arguments. Pass them back once on the next user turn; never sleep or repeatedly poll in the current turn.",
            "nullable": true
          },
          "next_cursor": {
            "default": null,
            "description": "Opaque cursor to pass back as cursor for the next page.",
            "nullable": true,
            "title": "Next Cursor",
            "type": "string"
          },
          "policy_summary": {
            "default": null,
            "description": "Authoritative summary of what the traveler may book for this search.",
            "nullable": true,
            "title": "Policy Summary",
            "type": "string"
          },
          "profile_preferences_on_file": {
            "default": false,
            "description": "Whether the traveler has saved free-text travel preferences; they are applied automatically when results are ranked.",
            "title": "Profile Preferences On File",
            "type": "boolean"
          },
          "recommended": {
            "allOf": [
              {
                "$ref": "#/components/schemas/HotelRecommendationsV1"
              }
            ],
            "default": null,
            "description": "Preference-ranked recommendations (best match followed by alternates), built from the traveler's saved travel preferences and any preferences passed to this call. Card-less surfaces may receive up to 10 hotels; card-enabled surfaces receive up to 3 so each can be represented by a follow-up GetHotelRates card. When present, these replace the full hotel list. Preserve their returned order privately for selection. Hotels here are bookable via GetHotelRates and SubmitHotelBooking as usual.",
            "nullable": true
          },
          "resolved_search": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SearchHotelsResolvedSearchV1"
              }
            ],
            "default": null,
            "description": "Present on nonblocking kickoff responses: validated destination, dates, and traveler count to restate verbatim.",
            "nullable": true
          },
          "search_id": {
            "default": null,
            "description": "While status is 'searching', pass it to a later SearchHotels call to retrieve or re-rank results. When status is 'completed', pass it to GetHotelRates so hotel results retain cached search metadata.",
            "nullable": true,
            "title": "Search Id",
            "type": "string"
          },
          "status": {
            "default": "completed",
            "description": "'completed' when hotel results are present. 'searching' when an asynchronous search is still running; end the turn, then call SearchHotels once on the next user turn with next_action.",
            "enum": [
              "completed",
              "searching"
            ],
            "title": "Status",
            "type": "string"
          },
          "total_count": {
            "title": "Total Count",
            "type": "integer"
          },
          "traveler_loyalty_programs": {
            "description": "Loyalty programs on the traveler's profile when a search starts. Mention that matching chains will be preferred unless the traveler says otherwise.",
            "items": {
              "type": "string"
            },
            "title": "Traveler Loyalty Programs",
            "type": "array"
          },
          "traveler_user_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "description": "Traveler UUID for delegated searches; pass it to SubmitHotelBooking.",
            "nullable": true
          },
          "type": {
            "default": "hotels",
            "description": "Constant discriminator identifying this tool result payload.",
            "enum": [
              "hotels"
            ],
            "title": "Type",
            "type": "string"
          },
          "web_search_url": {
            "default": null,
            "description": "Deep link to this hotel search on the Ramp web app with the same destination and dates.",
            "nullable": true,
            "title": "Web Search Url",
            "type": "string"
          }
        },
        "required": [
          "applied_preferences",
          "applied_preferences_summary",
          "assistant_note",
          "blocked_options",
          "hotels",
          "message",
          "next_action",
          "next_cursor",
          "policy_summary",
          "profile_preferences_on_file",
          "recommended",
          "resolved_search",
          "search_id",
          "status",
          "total_count",
          "traveler_loyalty_programs",
          "traveler_user_id",
          "type",
          "web_search_url"
        ],
        "title": "SearchHotelsResult",
        "type": "object"
      },
      "SearchHotelsResumeArgsV1": {
        "description": "Arguments for retrieving and ranking a nonblocking hotel search.",
        "properties": {
          "filters": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SearchHotelsFiltersV1"
              }
            ],
            "default": null,
            "nullable": true
          },
          "limit": {
            "default": 10,
            "description": "Maximum number of hotels to return per result page.",
            "maximum": 10,
            "minimum": 1,
            "title": "Limit",
            "type": "integer"
          },
          "preferences": {
            "default": null,
            "description": "Complete cumulative set of preferences stated for this search. Pass through on every later resume call when present.",
            "nullable": true,
            "title": "Preferences",
            "type": "string"
          },
          "search_id": {
            "title": "Search Id",
            "type": "string"
          },
          "sort": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SearchHotelsSortV1"
              }
            ],
            "default": null,
            "nullable": true
          },
          "wait_for_results": {
            "default": false,
            "enum": [
              false
            ],
            "title": "Wait For Results",
            "type": "boolean"
          }
        },
        "required": [
          "search_id"
        ],
        "title": "SearchHotelsResumeArgsV1",
        "type": "object"
      },
      "SearchHotelsSortV1": {
        "description": "Sort options that mirror the web hotels search surface.",
        "properties": {
          "sort_direction": {
            "allOf": [
              {
                "$ref": "#/components/schemas/HotelSortDirection"
              }
            ],
            "default": null,
            "nullable": true
          },
          "sort_key": {
            "default": null,
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/HotelRateSummarySortKey"
              },
              {
                "$ref": "#/components/schemas/HotelSortKey"
              }
            ],
            "title": "Sort Key"
          }
        },
        "title": "SearchHotelsSortV1",
        "type": "object"
      },
      "SearchHotelsSortV1RequestBody": {
        "description": "Sort options that mirror the web hotels search surface.",
        "properties": {
          "sort_direction": {
            "allOf": [
              {
                "$ref": "#/components/schemas/HotelSortDirectionRequestBody"
              }
            ],
            "default": null,
            "nullable": true
          },
          "sort_key": {
            "default": null,
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/HotelRateSummarySortKeyRequestBody"
              },
              {
                "$ref": "#/components/schemas/HotelSortKeyRequestBody"
              }
            ],
            "title": "Sort Key"
          }
        },
        "title": "SearchHotelsSortV1",
        "type": "object"
      },
      "SearchMerchantsRequestBody": {
        "description": "Search for merchants by name. Returns matching merchant IDs, UUIDs, names, categories, and domains.",
        "properties": {
          "limit": {
            "default": 10,
            "description": "Maximum number of results to return",
            "maximum": 20,
            "minimum": 1,
            "title": "Limit",
            "type": "integer"
          },
          "query": {
            "description": "Merchant name to search for (partial match, case-insensitive)",
            "minLength": 2,
            "title": "Query",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "query",
          "rationale"
        ],
        "title": "SearchMerchants",
        "type": "object"
      },
      "SearchMerchantsResult": {
        "properties": {
          "merchants": {
            "description": "List of merchants matching the search query",
            "items": {
              "$ref": "#/components/schemas/MerchantResult"
            },
            "title": "Merchants",
            "type": "array"
          },
          "query": {
            "description": "The search query that was used",
            "title": "Query",
            "type": "string"
          }
        },
        "required": [
          "merchants",
          "query"
        ],
        "title": "SearchMerchantsResult",
        "type": "object"
      },
      "SearchModeRequestBody": {
        "description": "Controls how document content is searched in TurboPuffer.",
        "enum": [
          "ann",
          "bm25",
          "hybrid"
        ],
        "title": "SearchMode",
        "type": "string"
      },
      "SearchProcurementPolicyOutput": {
        "properties": {
          "message": {
            "default": null,
            "description": "Why no sections were returned or results may be incomplete",
            "nullable": true,
            "title": "Message",
            "type": "string"
          },
          "procurement_policy_published": {
            "description": "False when the business has no published procurement policy visible to the user; the written policy cannot answer the question",
            "title": "Procurement Policy Published",
            "type": "boolean"
          },
          "retrieval_available": {
            "default": true,
            "description": "False when policy search failed or timed out; sections may be missing, so do not conclude the policy is silent",
            "title": "Retrieval Available",
            "type": "boolean"
          },
          "sections": {
            "description": "Matching published procurement policy sections, most relevant first",
            "items": {
              "$ref": "#/components/schemas/ProcurementPolicySection"
            },
            "title": "Sections",
            "type": "array"
          }
        },
        "required": [
          "procurement_policy_published",
          "sections"
        ],
        "title": "SearchProcurementPolicyOutput",
        "type": "object"
      },
      "SearchProcurementPolicyRequestBody": {
        "description": "Search the company's published procurement policy for sections that answer an employee procurement process question.\n\nUse for questions such as approval thresholds, what to collect before\nsubmitting a request, which intake to use for a contract, a new SOW versus\nextending a contract, a new PO versus a renewal, sending NDAs or DPAs,\nhandling redlines, which entity signs a contract, vendor onboarding, and\nreturning or churned vendors.\n\nReturns written policy sections with document, version, and section IDs for\ncitations. It does not return configured spend programs, approval workflows,\nor expense policy text, and it does not change anything.",
        "properties": {
          "query": {
            "description": "The employee's procurement question in natural language. Include vendor, contract, amount, or request terms from the conversation.",
            "minLength": 1,
            "title": "Query",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "query",
          "rationale"
        ],
        "title": "SearchProcurementPolicy",
        "type": "object"
      },
      "SearchPurchaseOrdersRequestBody": {
        "description": "Search for purchase orders using structured purchase order filters.",
        "properties": {
          "filters": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PurchaseOrderSearchFiltersRequestBody"
              }
            ],
            "description": "Compact purchase order filters. Use search for PO numbers, request names, vendor names, or owner names, or payee_uuids for known vendor UUIDs. Then narrow by PO status, spend request status, owner, or approval queue when needed."
          },
          "include_progress": {
            "default": false,
            "description": "Attach each order's billed, remaining, and received amounts plus linked bill and item receipt counts. Costs extra reads; leave off unless the answer needs progress for every listed order.",
            "title": "Include Progress",
            "type": "boolean"
          },
          "limit": {
            "default": 10,
            "description": "Maximum number of purchase orders to return (max 50)",
            "maximum": 50,
            "minimum": 1,
            "title": "Limit",
            "type": "integer"
          },
          "page_cursor": {
            "default": null,
            "description": "Pagination cursor from a previous response's next_page_cursor. The only valid string values are encrypted cursor tokens from a previous response (long strings starting with 'gAAAAA'). For the first page, for no more results, or for anything that is not one of those encrypted tokens, pass None (never the string 'None').",
            "nullable": true,
            "title": "Page Cursor",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "SearchPurchaseOrders",
        "type": "object"
      },
      "SearchReceiptsRequestBody": {
        "description": "Search receipts by natural-language intent and/or OCR keywords, returning receipts and owners.\n\nOnly includes receipts attached to a transaction or reimbursement.\nRequires receipt keyword search to be enabled for the caller's business.\nCompany-wide discovery is limited to\nreceipts the caller can currently read under existing receipt/expense permissions.\nCombines independent keyword and semantic retrieval, not exact phrases or verified\ncategory classification. Falls back to OCR word matches if embedding is unavailable;\nretrieval_mode reports this even for empty results. Semantic relevance is provisional.\nSearch is bounded and index coverage may be incomplete; results are evidence,\nnot exhaustive spending analytics. Does not search bill/invoice documents.",
        "properties": {
          "keywords": {
            "description": "Up to 20 literal OCR search terms, 100 characters each. Any word can match. If query is omitted, these terms also provide semantic intent. Supply keywords or query (or both).",
            "items": {
              "maxLength": 100,
              "minLength": 1,
              "type": "string"
            },
            "maxItems": 20,
            "title": "Keywords",
            "type": "array"
          },
          "offset": {
            "default": 0,
            "description": "Use next_offset with identical arguments for the next page; 0 starts a search. Pages cover only the top 100 candidates, not all receipts.",
            "exclusiveMaximum": true,
            "maximum": 100,
            "minimum": 0,
            "title": "Offset",
            "type": "integer"
          },
          "page_size": {
            "default": 20,
            "description": "Maximum receipts on this page, up to 50, in fused relevance order (OCR relevance in lexical fallback).",
            "maximum": 50,
            "minimum": 1,
            "title": "Page Size",
            "type": "integer"
          },
          "query": {
            "default": null,
            "description": "Natural-language receipt search intent, e.g. coffee purchases or food items. Used for semantic retrieval. If keywords are absent, its words also drive OCR search and lexical fallback. With both, keywords drive OCR and query drives semantics; neither is a mandatory filter.",
            "maxLength": 2000,
            "minLength": 1,
            "nullable": true,
            "title": "Query",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "received_after": {
            "default": null,
            "description": "Inclusive receipt upload/received timestamp, ISO 8601 with timezone. This is not the purchase date. Omit for no lower bound.",
            "format": "date-time",
            "nullable": true,
            "title": "Received After",
            "type": "string"
          },
          "received_before": {
            "default": null,
            "description": "Exclusive receipt upload/received timestamp, ISO 8601 with timezone. This is not the purchase date. Omit for no upper bound.",
            "format": "date-time",
            "nullable": true,
            "title": "Received Before",
            "type": "string"
          },
          "scope": {
            "default": "accessible",
            "description": "accessible searches receipts you are permitted to read in the authenticated business (company-wide only with the required permissions); own narrows to receipts you own. Neither grants additional access.",
            "enum": [
              "accessible",
              "own"
            ],
            "title": "Scope",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "SearchReceipts",
        "type": "object"
      },
      "SearchReceiptsResultJsonMode": {
        "properties": {
          "coverage": {
            "default": "Search covers indexed OCR and receipt embeddings and may omit unindexed or recently changed receipts. Semantic relevance uses a provisional, uncalibrated distance cutoff; results are candidates, not verified item/category matches. At most 100 candidates per retrieval leg are fused to 100 before current access checks; pagination covers only that bounded set and can change as records change. No matches does not prove no spending occurred. Receipt totals are not item/category spending totals.",
            "title": "Coverage",
            "type": "string"
          },
          "next_offset": {
            "nullable": true,
            "title": "Next Offset",
            "type": "integer"
          },
          "receipts": {
            "items": {
              "$ref": "#/components/schemas/ReceiptSearchMatchJsonMode"
            },
            "title": "Receipts",
            "type": "array"
          },
          "retrieval_mode": {
            "description": "hybrid uses independent OCR keyword and semantic receipt retrieval; lexical_fallback means query embedding was unavailable and only OCR word matches were searched.",
            "enum": [
              "hybrid",
              "lexical_fallback"
            ],
            "title": "Retrieval Mode",
            "type": "string"
          }
        },
        "required": [
          "next_offset",
          "receipts",
          "retrieval_mode"
        ],
        "title": "SearchReceiptsResult",
        "type": "object"
      },
      "SearchReimbursementsRequestBody": {
        "additionalProperties": false,
        "description": "Search reimbursements across a business, optionally filtering to a specific user's reimbursements.",
        "properties": {
          "accounting_sync_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AccountingSyncStatusRequestBody"
              }
            ],
            "default": null,
            "description": "Filter by accounting sync status: UNSYNCED (not yet synced), NOT_SYNC_READY (unsynced and not marked ready to sync), SYNC_READY (unsynced and marked ready to sync), or SYNCED (already synced or exported).",
            "nullable": true
          },
          "currency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CurrencyRequestBody"
              }
            ],
            "default": null,
            "description": "ISO 4217 code of the currency the business pays the reimbursement in (the currency of the returned amount), such as 'USD'. Omit to match every currency; amount bounds then compare the same number across currencies.",
            "nullable": true
          },
          "filters": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FilterRequestBody"
              }
            ],
            "default": null,
            "description": "Text-based filters to search by. Provide human-readable names for tracking categories, merchants, or spend allocations and they will be resolved to the correct IDs automatically.",
            "nullable": true
          },
          "from_date": {
            "default": null,
            "description": "Inclusive record creation date lower bound (YYYY-MM-DD), not the expense transaction date or submission date. Historical expenses created later are filtered by their creation date. Example: '2024-01-01'",
            "nullable": true,
            "title": "From Date",
            "type": "string"
          },
          "from_submitted_date": {
            "default": null,
            "description": "Inclusive submission date lower bound (YYYY-MM-DD). Excludes reimbursements that were never submitted.",
            "format": "date",
            "nullable": true,
            "title": "From Submitted Date",
            "type": "string"
          },
          "include_comments": {
            "default": false,
            "description": "Include the comment thread for each returned reimbursement.",
            "title": "Include Comments",
            "type": "boolean"
          },
          "include_policy_assessment": {
            "default": false,
            "description": "Include the stored AI policy assessment for each reimbursement: a recommended approval action (approve, reject, or review) and rationale.",
            "title": "Include Policy Assessment",
            "type": "boolean"
          },
          "include_suggestions": {
            "default": false,
            "description": "Include suggested memos, codings, and funds for each reimbursement's missing items. Increases response time significantly; set only when autofill suggestions are needed.",
            "title": "Include Suggestions",
            "type": "boolean"
          },
          "max_amount": {
            "default": null,
            "description": "Inclusive upper bound on the same amount as min_amount, in major units. Must be greater than 0. Omit for no upper bound.",
            "nullable": true,
            "oneOf": [
              {
                "exclusiveMinimum": true,
                "minimum": 0.0,
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "title": "Max Amount"
          },
          "min_amount": {
            "default": null,
            "description": "Inclusive lower bound on the returned amount: what the business pays, fees included, in major units of its currency (e.g. '45.10', not cents). Not compared with payee_amount, and no currency conversion. For an exact amount, set min_amount and max_amount to the same value. Omit for no lower bound.",
            "nullable": true,
            "oneOf": [
              {
                "minimum": 0.0,
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "title": "Min Amount"
          },
          "next_page_cursor": {
            "default": null,
            "description": "Use this to get additional results after the first page. Copy the next_page_cursor value from a previous response to continue pagination",
            "nullable": true,
            "title": "Next Page Cursor",
            "type": "string"
          },
          "page_size": {
            "default": 50,
            "description": "Maximum number of reimbursements to return in one request. For the initial search, use 10-25 results. Increase the page size only when the user explicitly needs exhaustive results, and prefer pagination with next_page_cursor. Never request 200 results initially.",
            "maximum": 200,
            "minimum": 1,
            "title": "Page Size",
            "type": "integer"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "reimbursement_status": {
            "default": null,
            "description": "Filter by one or more reimbursement statuses. Multiple statuses are combined with OR logic.",
            "items": {
              "$ref": "#/components/schemas/ReimbursementStatusGroupRequestBody"
            },
            "nullable": true,
            "title": "Reimbursement Status",
            "type": "array"
          },
          "reimbursement_types": {
            "default": null,
            "description": "Filter by one or more reimbursement types. Multiple types are combined with OR logic.",
            "items": {
              "enum": [
                "MILEAGE",
                "OUT_OF_POCKET",
                "PER_DIEM"
              ],
              "type": "string"
            },
            "nullable": true,
            "title": "Reimbursement Types",
            "type": "array"
          },
          "reimbursement_uuids": {
            "default": null,
            "description": "Fetch these specific reimbursements by UUID or reimbursement alias.",
            "items": {
              "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
            },
            "maxItems": 100,
            "nullable": true,
            "title": "Reimbursement Uuids",
            "type": "array"
          },
          "reimbursements_to_retrieve": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReimbursementSearchScopeRequestBody"
              }
            ],
            "default": null,
            "description": "Which reimbursements to search: the acting user's own, those awaiting the acting user's approval, or all. When omitted, searches all reimbursements in the business (narrowed by user_id if given). my_reimbursements ignores any user filter; with reimbursements_awaiting_my_approval, a user filter narrows by submitter.",
            "nullable": true
          },
          "search_string": {
            "default": null,
            "description": "Search for reimbursements with matching merchant name, memo, or cardholder name. Does not match amounts; use min_amount and max_amount.",
            "nullable": true,
            "title": "Search String",
            "type": "string"
          },
          "to_date": {
            "default": null,
            "description": "Inclusive record creation date upper bound (YYYY-MM-DD), not the expense transaction date or submission date. Example: '2024-12-31'",
            "nullable": true,
            "title": "To Date",
            "type": "string"
          },
          "to_submitted_date": {
            "default": null,
            "description": "Inclusive submission date upper bound (YYYY-MM-DD). Excludes reimbursements that were never submitted.",
            "format": "date",
            "nullable": true,
            "title": "To Submitted Date",
            "type": "string"
          },
          "user_id": {
            "default": null,
            "description": "Optional user ID to filter results to a specific user's reimbursements. When omitted, searches across all reimbursements in the business.",
            "nullable": true,
            "title": "User Id",
            "type": "integer"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "SearchReimbursements",
        "type": "object"
      },
      "SearchReimbursementsResult": {
        "description": "Response containing reimbursements and next page cursor.",
        "properties": {
          "next_page_cursor": {
            "default": null,
            "description": "Cursor for the next page of results",
            "nullable": true,
            "title": "Next Page Cursor",
            "type": "string"
          },
          "reimbursements": {
            "description": "List of reimbursement metadata",
            "items": {
              "$ref": "#/components/schemas/ReimbursementInfo"
            },
            "title": "Reimbursements",
            "type": "array"
          }
        },
        "required": [
          "reimbursements"
        ],
        "title": "SearchReimbursementsResult",
        "type": "object"
      },
      "SearchReportingCatalogRequestBody": {
        "description": "Search the semantic reporting catalog with a natural-language query.\n\nUse this when a user describes a reporting question in plain English and\nyou need to choose the best semantic dataset and relevant fields.",
        "properties": {
          "limit": {
            "default": 5,
            "description": "Maximum number of catalog matches to return.",
            "maximum": 20,
            "minimum": 1,
            "title": "Limit",
            "type": "integer"
          },
          "nl_query": {
            "description": "Natural-language reporting question or catalog search text.",
            "maxLength": 500,
            "minLength": 1,
            "title": "Nl Query",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "nl_query",
          "rationale"
        ],
        "title": "SearchReportingCatalog",
        "type": "object"
      },
      "SearchReportingCatalogResult": {
        "properties": {
          "results": {
            "description": "Ranked semantic datasets and fields matching the search query.",
            "items": {
              "$ref": "#/components/schemas/CatalogSearchMatch"
            },
            "title": "Results",
            "type": "array"
          }
        },
        "required": [
          "results"
        ],
        "title": "SearchReportingCatalogResult",
        "type": "object"
      },
      "SearchRouterModelsRequestBody": {
        "description": "Search the model names that a Router model policy accepts.\n\nSearch the model names a Router model policy accepts. Returns up to 50\nmatches; managed aliases such as claude-opus-latest come first.\n\nOne model can have several names, such as a route name and a name for each\nprovider. For an alias, name the model in alias_for to the user.\n\nWhen 50 matches come back, the list may be partial: tell the user, and search\nwith a more specific query.\n\nResults do not show whether a model is blocked.",
        "properties": {
          "query": {
            "description": "Text in a model's name, for example opus or gpt-5.",
            "maxLength": 100,
            "minLength": 1,
            "title": "Query",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "query",
          "rationale"
        ],
        "title": "SearchRouterModels",
        "type": "object"
      },
      "SearchTagCategory": {
        "description": "This enum represents all possible categories of filters that can be applied to a\ntable search across all of Ramp.\n\nSubsets of these categories are used in different surfaces, such as transactions,\nreimbursements, bills, and reporting. The specific subsets used by each surface\nis declared below.\n\nThe values of these enums are persisted in the database as a part of saved table\nviews and reports, and thus they should never be renamed or deleted without migrating\nall saved table views and reports first, or ensuring that said enums are not\ncurrently being persisted in the database.\n\nSimilarly, each surface should not remove any supported categories without ensuring\nthat the categories are not currently being used in any saved table views or reports\nfor that surface.",
        "enum": [
          "absolute_approval_group",
          "accounting_status",
          "accrual_readiness",
          "affected_entity_owner",
          "ai_tsm_api_key_model",
          "ai_tsm_person_model",
          "ap_entity_type",
          "ap_events_currency",
          "api_key_tag_definition_value",
          "approval_group",
          "approval_policy",
          "approval_status",
          "approver",
          "ar_credit_note",
          "ar_customer",
          "ar_invoice_aging_bucket",
          "assignee",
          "automatic_flag_severity",
          "bill",
          "bill_approval_status",
          "bill_paid_status",
          "bill_pay_vendor_owner",
          "bill_payment_status",
          "booked_by_name",
          "budget_column",
          "budget_non_ramp_entity",
          "business_vendor",
          "business_vendor_payee",
          "canonical_vendor",
          "card_type",
          "category",
          "compliance_flag",
          "department",
          "direct_team",
          "due_aging_bucket",
          "entity",
          "erp_vendor",
          "event_actor_type",
          "expense_group",
          "expense_policy_acting_user",
          "expense_type",
          "external_integration",
          "flight_transaction_currency",
          "frontend_navigation",
          "future_approver",
          "healthcare_provider",
          "intake_spend_request_owner",
          "invoice_ocr",
          "invoice_submitter",
          "ironclad_workflow_schema",
          "limit_currency",
          "location",
          "manager",
          "marked_ready_by_user",
          "merchant",
          "next_approver",
          "paid_in_currency",
          "paid_status",
          "payee",
          "payee_agreement",
          "payee_custom_record_field_value",
          "payee_external_vendor_id",
          "payee_internal_vendor_id",
          "payee_name",
          "payee_owner",
          "payee_permissioned",
          "payee_request",
          "payment_run",
          "payment_type",
          "physical_card",
          "planning_budget_currency",
          "planning_dimension_value",
          "policy_assessment",
          "policy_document",
          "procurement_spend_request_currency",
          "procurement_spend_request_vendor",
          "program_currency",
          "provisional_bill",
          "purchase_order_currency",
          "purchase_order_spend_intent",
          "purchase_order_spend_request",
          "purchase_order_status",
          "receipt_availability",
          "receipt_verification_status",
          "received_aging_bucket",
          "reimbursement",
          "reimbursement_approval_status",
          "reimbursement_paid_status",
          "reimbursement_paid_status_v2",
          "reimbursement_policy_assessment_recommended_decision",
          "reimbursement_state",
          "reimbursement_status",
          "reimbursement_type",
          "relative_approval_group",
          "repayment_status",
          "reporting",
          "request_number",
          "review_prediction_agreement",
          "reviewer_action",
          "spend_allocation",
          "spend_intent",
          "spend_intent_custom_form_field",
          "spend_intent_custom_form_response",
          "spend_request",
          "spend_type",
          "statement",
          "statement_currency",
          "subledger_source",
          "submission_policy",
          "submission_policy_requirements_status",
          "tag_definition",
          "task_status",
          "task_type",
          "team",
          "tracking_category",
          "transaction",
          "transaction_approval_status",
          "transaction_charge_status",
          "transaction_paid_status",
          "transaction_policy_assessment_recommended_decision",
          "transaction_recommended_reviewer_action",
          "transaction_repayment_state",
          "travel_confirmation_number",
          "travel_location",
          "travel_merchant",
          "travel_spend_type",
          "traveler_name",
          "trip",
          "trip_destination",
          "unified_request_coordinator",
          "unified_request_currency",
          "unified_request_owner",
          "user",
          "user_approved",
          "user_custom_field",
          "virtual_card"
        ],
        "title": "SearchTagCategory",
        "type": "string"
      },
      "SearchUnifiedRequestsRequestBody": {
        "description": "Search for unified requests using free-text and structured request filters.\n\nUse this to find existing purchase orders, fund requests, procurement requests,\npolicy-backed requests, or approval-only requests by vendor, request name,\nspend program, owner UUID, requester UUID, status, type, exact request number,\napproval date, department, workflow-backed policy, or whether they require\naction. Only requests the acting user owns, requested, can approve, or is\notherwise permitted to view are searchable. Use\nGetRequestsToReview when the user is specifically asking what they need to\napprove right now. Use GetUnifiedRequestDetails once one request has been\nidentified. For a draft policy-backed request, pass the result's exact\nwbp_request_id to ResumeWbxRequest, not its unified_request_id.",
        "properties": {
          "filters": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UnifiedRequestSearchFiltersRequestBody"
              }
            ],
            "description": "Compact filters for unified request search. Use filters.search for free text, request_numbers for exact REQ-* identifiers, payee_ids for an exact vendor match, and the other fields to narrow by category, status, type, approval date, department, owner, requester, or approval queue."
          },
          "limit": {
            "default": 10,
            "description": "Maximum number of unified requests to return (max 100)",
            "maximum": 100,
            "minimum": 1,
            "title": "Limit",
            "type": "integer"
          },
          "page_cursor": {
            "default": null,
            "description": "Pagination cursor from a previous response's next_page_cursor. The only valid string values are encrypted cursor tokens from a previous response (long strings starting with 'gAAAAA'). For the first page, for no more results, or for anything that is not one of those encrypted tokens, pass None (never the string 'None').",
            "nullable": true,
            "title": "Page Cursor",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "SearchUnifiedRequests",
        "type": "object"
      },
      "SearchUserReimbursementsRequestBody": {
        "additionalProperties": false,
        "description": "View all reimbursements and their current statuses, or search past requests.\n\nIncludes older paid and rejected requests in the user's reimbursement history.\nOmitting date filters applies no time cutoff. Results are paginated: for the\ncomplete matching set, continue with each returned next_page_cursor until it\nis null, preserving scope and filters.\n\nSupports filtering by:\n- Specific reimbursement UUIDs\n- Scope: the current user's own reimbursements, reimbursements awaiting their\n  approval, or every reimbursement they can see\n- User name (e.g., 'John Smith'), merchant name, and spend allocation name,\n  resolved from text automatically\n- Accounting coding selections (tracking categories) like Department, Cost Center, Class, GL Account\n- One or more reimbursement statuses (DRAFT, PENDING, APPROVED, etc.)\n- One or more reimbursement types (out of pocket, mileage, per diem)\n- Accounting sync status (unsynced, sync ready, not sync ready, synced)\n- Record creation date range, submission date range, and text search\n- Amount range and currency of the amount the business pays\n\nOptionally includes comment threads, autofill suggestions for missing items,\nand AI policy assessments. All filters are combined with AND logic. This tool\ndoes not support filtering by expense transaction date or ranking employees\nby period totals.",
        "properties": {
          "accounting_sync_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AccountingSyncStatusRequestBody"
              }
            ],
            "default": null,
            "description": "Filter by accounting sync status: UNSYNCED (not yet synced), NOT_SYNC_READY (unsynced and not marked ready to sync), SYNC_READY (unsynced and marked ready to sync), or SYNCED (already synced or exported).",
            "nullable": true
          },
          "currency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CurrencyRequestBody"
              }
            ],
            "default": null,
            "description": "ISO 4217 code of the currency the business pays the reimbursement in (the currency of the returned amount), such as 'USD'. Omit to match every currency; amount bounds then compare the same number across currencies.",
            "nullable": true
          },
          "filters": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FilterRequestBody"
              }
            ],
            "default": null,
            "description": "Text-based filters to search by. Provide human-readable names for tracking categories, merchants, or spend allocations and they will be resolved to the correct IDs automatically.",
            "nullable": true
          },
          "from_date": {
            "default": null,
            "description": "Inclusive record creation date lower bound (YYYY-MM-DD), not the expense transaction date or submission date. Historical expenses created later are filtered by their creation date. Example: '2024-01-01'",
            "nullable": true,
            "title": "From Date",
            "type": "string"
          },
          "from_submitted_date": {
            "default": null,
            "description": "Inclusive submission date lower bound (YYYY-MM-DD). Excludes reimbursements that were never submitted.",
            "format": "date",
            "nullable": true,
            "title": "From Submitted Date",
            "type": "string"
          },
          "include_comments": {
            "default": false,
            "description": "Include the comment thread for each returned reimbursement.",
            "title": "Include Comments",
            "type": "boolean"
          },
          "include_policy_assessment": {
            "default": false,
            "description": "Include the stored AI policy assessment for each reimbursement: a recommended approval action (approve, reject, or review) and rationale.",
            "title": "Include Policy Assessment",
            "type": "boolean"
          },
          "include_suggestions": {
            "default": false,
            "description": "Include suggested memos, codings, and funds for each reimbursement's missing items. Increases response time significantly; set only when autofill suggestions are needed.",
            "title": "Include Suggestions",
            "type": "boolean"
          },
          "max_amount": {
            "default": null,
            "description": "Inclusive upper bound on the same amount as min_amount, in major units. Must be greater than 0. Omit for no upper bound.",
            "nullable": true,
            "oneOf": [
              {
                "exclusiveMinimum": true,
                "minimum": 0.0,
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "title": "Max Amount"
          },
          "min_amount": {
            "default": null,
            "description": "Inclusive lower bound on the returned amount: what the business pays, fees included, in major units of its currency (e.g. '45.10', not cents). Not compared with payee_amount, and no currency conversion. For an exact amount, set min_amount and max_amount to the same value. Omit for no lower bound.",
            "nullable": true,
            "oneOf": [
              {
                "minimum": 0.0,
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "title": "Min Amount"
          },
          "next_page_cursor": {
            "default": null,
            "description": "Use this to get additional results after the first page. Copy the next_page_cursor value from a previous response to continue pagination",
            "nullable": true,
            "title": "Next Page Cursor",
            "type": "string"
          },
          "page_size": {
            "default": 50,
            "description": "Maximum number of reimbursements to return in one request. For the initial search, use 10-25 results. Increase the page size only when the user explicitly needs exhaustive results, and prefer pagination with next_page_cursor. Never request 200 results initially.",
            "maximum": 200,
            "minimum": 1,
            "title": "Page Size",
            "type": "integer"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "reimbursement_status": {
            "default": null,
            "description": "Filter by one or more reimbursement statuses. Multiple statuses are combined with OR logic.",
            "items": {
              "$ref": "#/components/schemas/ReimbursementStatusGroupRequestBody"
            },
            "nullable": true,
            "title": "Reimbursement Status",
            "type": "array"
          },
          "reimbursement_types": {
            "default": null,
            "description": "Filter by one or more reimbursement types. Multiple types are combined with OR logic.",
            "items": {
              "enum": [
                "MILEAGE",
                "OUT_OF_POCKET",
                "PER_DIEM"
              ],
              "type": "string"
            },
            "nullable": true,
            "title": "Reimbursement Types",
            "type": "array"
          },
          "reimbursement_uuids": {
            "default": null,
            "description": "Fetch these specific reimbursements by UUID or reimbursement alias.",
            "items": {
              "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
            },
            "maxItems": 100,
            "nullable": true,
            "title": "Reimbursement Uuids",
            "type": "array"
          },
          "reimbursements_to_retrieve": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReimbursementSearchScopeRequestBody"
              }
            ],
            "default": null,
            "description": "Which reimbursements to search: the current user's own, those awaiting the current user's approval, or all reimbursements the current user can see. When omitted, searches the current user's own reimbursements unless a user filter or reimbursement_uuids is given. my_reimbursements ignores any user filter; with reimbursements_awaiting_my_approval, a user filter narrows by submitter.",
            "nullable": true
          },
          "search_string": {
            "default": null,
            "description": "Search for reimbursements with matching merchant name, memo, or cardholder name. Does not match amounts; use min_amount and max_amount.",
            "nullable": true,
            "title": "Search String",
            "type": "string"
          },
          "to_date": {
            "default": null,
            "description": "Inclusive record creation date upper bound (YYYY-MM-DD), not the expense transaction date or submission date. Example: '2024-12-31'",
            "nullable": true,
            "title": "To Date",
            "type": "string"
          },
          "to_submitted_date": {
            "default": null,
            "description": "Inclusive submission date upper bound (YYYY-MM-DD). Excludes reimbursements that were never submitted.",
            "format": "date",
            "nullable": true,
            "title": "To Submitted Date",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "SearchUserReimbursements",
        "type": "object"
      },
      "SearchUserResponse": {
        "description": "Response containing search results for users.",
        "properties": {
          "cardholder": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UserSearchReportingContext"
              }
            ],
            "default": null,
            "description": "Transaction cardholder and their reporting chain, for comparison with the search results. Shared ancestry alone does not establish attendance or a shared immediate team.",
            "nullable": true
          },
          "has_more": {
            "default": null,
            "description": "Whether the search has another page (including external attendees omitted here). True or null means this is not a known-complete candidate set; apparent uniqueness is insufficient to resolve an ambiguous name.",
            "nullable": true,
            "title": "Has More",
            "type": "boolean"
          },
          "users": {
            "description": "List of users matching the search criteria, ordered by text relevance, not team membership. Ordering alone does not identify the intended attendee.",
            "items": {
              "$ref": "#/components/schemas/SearchUserResult"
            },
            "title": "Users",
            "type": "array"
          }
        },
        "required": [
          "users"
        ],
        "title": "SearchUserResponse",
        "type": "object"
      },
      "SearchUserResult": {
        "description": "User information from search results.",
        "properties": {
          "description": {
            "description": "Additional info (e.g., email, department)",
            "title": "Description",
            "type": "string"
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "description": "User UUID"
          },
          "label": {
            "description": "Display name for the user",
            "title": "Label",
            "type": "string"
          },
          "name_match": {
            "default": null,
            "description": "Case-insensitive exact match against the search text. 'other' includes partial names and matches on department, location or partial email; null means unavailable.",
            "enum": [
              "email",
              "first_name",
              "full_name",
              "other"
            ],
            "nullable": true,
            "title": "Name Match",
            "type": "string"
          },
          "reporting_chain": {
            "default": null,
            "description": "Same-business managers ordered from direct manager upward, excluding this person, limited to 10 levels. Available regardless of profile-read permissions. May stop at missing, deleted or cross-business records or cycles; the last manager is not necessarily the root. Empty means no eligible manager was found; null means the person's organizational information is unavailable. Neither proves the person belongs to a different team.",
            "items": {
              "$ref": "#/components/schemas/UserSearchManager"
            },
            "nullable": true,
            "title": "Reporting Chain",
            "type": "array"
          }
        },
        "required": [
          "description",
          "id",
          "label"
        ],
        "title": "SearchUserResult",
        "type": "object"
      },
      "SearchVendorsBatchResult": {
        "properties": {
          "results": {
            "description": "Exact-name results in input order, including repeated inputs.",
            "items": {
              "$ref": "#/components/schemas/VendorNameSearchResult"
            },
            "title": "Results",
            "type": "array"
          }
        },
        "required": [
          "results"
        ],
        "title": "SearchVendorsBatchResult",
        "type": "object"
      },
      "SearchVendorsRequestBody": {
        "description": "Search for vendors (payees) within the business by name, or browse them.\n\nWith a search_term, this tool finds vendor records using both fuzzy SQL\nmatching (trigram similarity + substring) and semantic (vector) search.\nWithout either search input, it lists the business's vendors alphabetically.\nUse this to find vendor IDs when you need to:\n- Look up a vendor by partial name\n- Find the correct vendor UUID for further analysis\n- Discover vendors similar to a given name\n- List vendors, optionally filtered by 1099 tracking status\n\nExact display names, DBA names, and external vendor IDs are returned first.\nThe search is scoped to the current business and the caller's vendor\nvisibility. Results are\ncandidates, not confirmed identities. For a user, only vendors that user can\nfully view are searchable; vendors in restricted vendor groups are omitted.\nInactive vendors are included, but drafts are excluded unless include_draft\nis true. Empty or unrelated results do not establish that a vendor does not\nexist or that the caller has access to its profile.\n\nWith search_terms, look up up to 50 names by case-insensitive exact display\nor DBA name in one batch. Each input returns unique_exact, ambiguous, or\nno_exact_match, bounded candidates, and has_more. Batch mode does not run\nfuzzy or semantic search; no_exact_match does not establish absence.",
        "properties": {
          "include_draft": {
            "default": false,
            "description": "Whether to include draft vendors in the search results.",
            "title": "Include Draft",
            "type": "boolean"
          },
          "is_1099_tracking_enabled": {
            "default": null,
            "description": "Filter vendors by whether 1099 tax tracking is enabled for tax_1099_year. Requires tax_1099_year. When combined with a search term, only the top 50 name matches are considered, so matching vendors beyond those name matches are not returned.",
            "nullable": true,
            "title": "Is 1099 Tracking Enabled",
            "type": "boolean"
          },
          "limit": {
            "default": 10,
            "description": "Maximum vendors to return, per name in batch mode (default: 10)",
            "maximum": 50,
            "minimum": 1,
            "title": "Limit",
            "type": "integer"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "search_term": {
            "default": null,
            "description": "Optional vendor name or partial name to search for. Can be partial matches. When omitted, vendors are listed alphabetically. Use either this or search_terms.",
            "nullable": true,
            "title": "Search Term",
            "type": "string"
          },
          "search_terms": {
            "default": null,
            "description": "Optional batch of 1\u201350 vendor names for exact display/DBA matching. Whitespace is trimmed; results retain input order. If search_term is also given, it is merged into this batch. limit applies per name; ambiguous results never select an identity automatically.",
            "items": {
              "maxLength": 500,
              "minLength": 1,
              "type": "string"
            },
            "maxItems": 50,
            "minItems": 1,
            "nullable": true,
            "title": "Search Terms",
            "type": "array"
          },
          "tax_1099_year": {
            "default": null,
            "description": "Tax year used to populate is_1099_tracking_enabled and apply the 1099 tracking filter.",
            "maximum": 2100,
            "minimum": 2000,
            "nullable": true,
            "title": "Tax 1099 Year",
            "type": "integer"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "SearchVendors",
        "type": "object"
      },
      "SearchVendorsResponse": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/SearchVendorsBatchResult"
          },
          {
            "$ref": "#/components/schemas/SearchVendorsResult"
          }
        ],
        "title": "SearchVendorsResponse"
      },
      "SearchVendorsResult": {
        "description": "Results from searching for vendors.",
        "properties": {
          "search_term": {
            "description": "The search term that was used",
            "title": "Search Term",
            "type": "string"
          },
          "total_found": {
            "description": "Total number of vendors found",
            "title": "Total Found",
            "type": "integer"
          },
          "vendors": {
            "description": "List of matching vendors with their IDs and names",
            "items": {
              "$ref": "#/components/schemas/VendorResult"
            },
            "title": "Vendors",
            "type": "array"
          }
        },
        "required": [
          "search_term",
          "total_found",
          "vendors"
        ],
        "title": "SearchVendorsResult",
        "type": "object"
      },
      "SecondStage": {
        "description": "Second aggregation stage over the first-stage grouped result.\n\nThe first-stage dimension list defines what is being aggregated over:\n``dimensions`` are retained, every other selected dimension is collapsed,\nand each measure aggregates the collapsed groups' first-stage values.",
        "properties": {
          "dimensions": {
            "description": "Selected first-stage dimensions to retain in the final result; use [] for one scalar row. At least one first-stage dimension must be collapsed.",
            "items": {
              "type": "string"
            },
            "maxItems": 50,
            "title": "Dimensions",
            "type": "array"
          },
          "measures": {
            "description": "Aggregates computed over the collapsed first-stage groups.",
            "items": {
              "$ref": "#/components/schemas/SecondStageMeasure"
            },
            "maxItems": 20,
            "minItems": 1,
            "title": "Measures",
            "type": "array"
          }
        },
        "required": [
          "dimensions",
          "measures"
        ],
        "title": "SecondStage",
        "type": "object"
      },
      "SecondStageMeasure": {
        "description": "One aggregate over the first-stage groups collapsed into a retained grain.\n\nOperands are first-stage group values, so every group weighs one: ``AVG``\nof a first-stage measure is an average of groups, not the raw-row average,\nand only groups that exist count. A time bucket with no rows is absent,\nnot zero, so ``AVG`` over months is an average per active month.",
        "oneOf": [
          {
            "properties": {
              "agg": {
                "enum": [
                  "AVG",
                  "MAX",
                  "MIN",
                  "SUM"
                ]
              },
              "of": {
                "maxLength": 200,
                "minLength": 1,
                "type": "string"
              }
            },
            "required": [
              "of"
            ]
          },
          {
            "properties": {
              "agg": {
                "enum": [
                  "COUNT"
                ]
              }
            }
          }
        ],
        "properties": {
          "agg": {
            "description": "Aggregate applied across the first-stage groups collapsed into each retained-dimension row: SUM, AVG, MIN, MAX, or COUNT.",
            "enum": [
              "AVG",
              "COUNT",
              "MAX",
              "MIN",
              "SUM"
            ],
            "title": "Agg",
            "type": "string"
          },
          "display_name": {
            "default": null,
            "maxLength": 200,
            "minLength": 1,
            "nullable": true,
            "title": "Display Name",
            "type": "string"
          },
          "name": {
            "description": "Snake_case output column name, distinct from every selected first-stage dimension and measure output name.",
            "pattern": "^[a-z][a-z0-9_]*$",
            "title": "Name",
            "type": "string"
          },
          "of": {
            "default": null,
            "description": "Selected first-stage measure output name (aliases allowed) to aggregate across groups. Omit (or null) with COUNT to count the qualifying groups themselves; with an operand, COUNT counts groups whose value is not null.",
            "maxLength": 200,
            "minLength": 1,
            "nullable": true,
            "title": "Of",
            "type": "string"
          }
        },
        "required": [
          "agg",
          "name"
        ],
        "title": "SecondStageMeasure",
        "type": "object"
      },
      "SelectedHotel": {
        "properties": {
          "address": {
            "description": "Formatted hotel address for display.",
            "title": "Address",
            "type": "string"
          },
          "address_line_one": {
            "default": null,
            "description": "Hotel street address from the inventory provider.",
            "nullable": true,
            "title": "Address Line One",
            "type": "string"
          },
          "booking_tags": {
            "items": {
              "$ref": "#/components/schemas/HotelPreviouslyBookedTagSchema"
            },
            "title": "Booking Tags",
            "type": "array"
          },
          "chain": {
            "default": null,
            "nullable": true,
            "title": "Chain",
            "type": "string"
          },
          "city": {
            "default": null,
            "description": "Hotel city from the inventory provider.",
            "nullable": true,
            "title": "City",
            "type": "string"
          },
          "country": {
            "default": null,
            "description": "ISO 3166-1 alpha-2 hotel country code.",
            "nullable": true,
            "title": "Country",
            "type": "string"
          },
          "description": {
            "default": null,
            "description": "Property description from the inventory provider, when available.",
            "nullable": true,
            "title": "Description",
            "type": "string"
          },
          "hotel_amenities": {
            "items": {
              "type": "string"
            },
            "title": "Hotel Amenities",
            "type": "array"
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "description": "Hotel UUID."
          },
          "image_url": {
            "default": null,
            "nullable": true,
            "title": "Image Url",
            "type": "string"
          },
          "latitude": {
            "default": null,
            "description": "Hotel latitude from the inventory provider.",
            "nullable": true,
            "title": "Latitude",
            "type": "number"
          },
          "longitude": {
            "default": null,
            "description": "Hotel longitude from the inventory provider.",
            "nullable": true,
            "title": "Longitude",
            "type": "number"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "office_travel_mode": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TravelMode"
              }
            ],
            "default": null,
            "description": "Travel mode used for the office travel time.",
            "nullable": true
          },
          "office_travel_time_minutes": {
            "default": null,
            "description": "Travel time from the hotel to the selected company office, in minutes.",
            "nullable": true,
            "title": "Office Travel Time Minutes",
            "type": "integer"
          },
          "postal_code": {
            "default": null,
            "description": "Hotel postal code from the inventory provider.",
            "nullable": true,
            "title": "Postal Code",
            "type": "string"
          },
          "review_rating": {
            "default": null,
            "nullable": true,
            "title": "Review Rating",
            "type": "string"
          },
          "star_rating": {
            "default": null,
            "nullable": true,
            "title": "Star Rating",
            "type": "string"
          },
          "state": {
            "default": null,
            "description": "Hotel state or province from the inventory provider.",
            "nullable": true,
            "title": "State",
            "type": "string"
          }
        },
        "required": [
          "address",
          "id",
          "name"
        ],
        "title": "SelectedHotel",
        "type": "object"
      },
      "SemanticColumnSchema": {
        "properties": {
          "additive": {
            "default": null,
            "nullable": true,
            "title": "Additive",
            "type": "boolean"
          },
          "agg": {
            "default": null,
            "nullable": true,
            "title": "Agg",
            "type": "string"
          },
          "column_type": {
            "title": "Column Type",
            "type": "string"
          },
          "currency": {
            "default": null,
            "nullable": true,
            "title": "Currency",
            "type": "string"
          },
          "display_name": {
            "title": "Display Name",
            "type": "string"
          },
          "field": {
            "title": "Field",
            "type": "string"
          },
          "formula": {
            "default": null,
            "nullable": true,
            "title": "Formula",
            "type": "string"
          },
          "intent": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Intent"
              }
            ],
            "default": null,
            "nullable": true
          },
          "is_pending": {
            "default": false,
            "title": "Is Pending",
            "type": "boolean"
          },
          "is_reference": {
            "default": false,
            "title": "Is Reference",
            "type": "boolean"
          },
          "kind": {
            "enum": [
              "detail",
              "dimension",
              "measure"
            ],
            "title": "Kind",
            "type": "string"
          },
          "time_zone": {
            "default": null,
            "nullable": true,
            "title": "Time Zone",
            "type": "string"
          }
        },
        "required": [
          "additive",
          "agg",
          "column_type",
          "currency",
          "display_name",
          "field",
          "formula",
          "intent",
          "is_pending",
          "is_reference",
          "kind",
          "time_zone"
        ],
        "title": "SemanticColumnSchema",
        "type": "object"
      },
      "SemanticComparisonPeriod": {
        "properties": {
          "from_date": {
            "format": "date-time",
            "title": "From Date",
            "type": "string"
          },
          "to_date": {
            "format": "date-time",
            "title": "To Date",
            "type": "string"
          }
        },
        "required": [
          "from_date",
          "to_date"
        ],
        "title": "SemanticComparisonPeriod",
        "type": "object"
      },
      "SemanticComparisonRequest": {
        "additionalProperties": false,
        "description": "Compare every measure with the period immediately preceding ``time_range``.\n\nRequires at least one measure and both time bounds. Same-unit rolling ranges\nsnapped to unit boundaries shift by whole calendar units; every other range\nuses the preceding window of equal duration, ending one microsecond before\nthe current start. Unknown keys (such as custom baselines) are rejected.",
        "properties": {
          "mode": {
            "default": "AUTO",
            "description": "Comparison strategy; only AUTO (the preceding period) is supported.",
            "enum": [
              "AUTO"
            ],
            "title": "Mode",
            "type": "string"
          }
        },
        "title": "SemanticComparisonRequest",
        "type": "object"
      },
      "SemanticComparisonResult": {
        "description": "Previous-period companion to ``table.data`` and ``totals``.",
        "properties": {
          "period": {
            "$ref": "#/components/schemas/SemanticComparisonPeriod"
          },
          "rows": {
            "description": "One entry per table.data row, in the same order and column layout: the matching previous-period row, or null when the current group has no previous-period match. Groups are matched by typed dimension identity (never display labels); time buckets are matched by their position within each period, so the previous row's own bucket cells carry previous-period dates. Previous-only groups are omitted. Previous-period groups follow the groups selected by the current result, including its ranked Other residuals, instead of ranking previous-period groups independently.",
            "items": {
              "nullable": true,
              "oneOf": [
                {
                  "$ref": "#/components/schemas/ReportingTableRowV3"
                },
                {
                  "enum": [
                    null
                  ],
                  "nullable": true,
                  "type": "string"
                }
              ]
            },
            "title": "Rows",
            "type": "array"
          },
          "totals": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReportingTableRowV3"
              }
            ],
            "default": null,
            "description": "Previous-period grand-total measure cells with the same layout and semantics as the top-level totals, including null cell_data for measures without a grand total, or null when no previous-period group qualifies.",
            "nullable": true
          }
        },
        "required": [
          "period",
          "rows",
          "totals"
        ],
        "title": "SemanticComparisonResult",
        "type": "object"
      },
      "SemanticFilterValue": {
        "description": "One selectable filter value for a dimension.\n\n``id`` is in the dimension's filter-value id space \u2014 exactly what a\n``FilterClause.value`` should carry. Boolean dimensions return real JSON\nbooleans; enum and search-tag dimensions return strings.",
        "properties": {
          "description": {
            "default": null,
            "nullable": true,
            "title": "Description",
            "type": "string"
          },
          "group_id": {
            "default": null,
            "nullable": true,
            "title": "Group Id",
            "type": "string"
          },
          "id": {
            "oneOf": [
              {
                "type": "boolean"
              },
              {
                "type": "string"
              }
            ],
            "title": "Id"
          },
          "image_url": {
            "default": null,
            "nullable": true,
            "title": "Image Url",
            "type": "string"
          },
          "label": {
            "title": "Label",
            "type": "string"
          }
        },
        "required": [
          "description",
          "group_id",
          "id",
          "image_url",
          "label"
        ],
        "title": "SemanticFilterValue",
        "type": "object"
      },
      "SemanticFilterValuesResponse": {
        "properties": {
          "complete": {
            "title": "Complete",
            "type": "boolean"
          },
          "constrained": {
            "default": false,
            "title": "Constrained",
            "type": "boolean"
          },
          "dataset": {
            "title": "Dataset",
            "type": "string"
          },
          "dimension": {
            "title": "Dimension",
            "type": "string"
          },
          "filter_value_kind": {
            "$ref": "#/components/schemas/FilterValueKind"
          },
          "values": {
            "items": {
              "$ref": "#/components/schemas/SemanticFilterValue"
            },
            "title": "Values",
            "type": "array"
          }
        },
        "required": [
          "complete",
          "constrained",
          "dataset",
          "dimension",
          "filter_value_kind",
          "values"
        ],
        "title": "SemanticFilterValuesResponse",
        "type": "object"
      },
      "SemanticJoinPlanSchema": {
        "properties": {
          "cardinality": {
            "$ref": "#/components/schemas/JoinCardinality"
          },
          "on": {
            "items": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "title": "On",
            "type": "array"
          },
          "strategy": {
            "title": "Strategy",
            "type": "string"
          },
          "to": {
            "title": "To",
            "type": "string"
          }
        },
        "required": [
          "cardinality",
          "on",
          "strategy",
          "to"
        ],
        "title": "SemanticJoinPlanSchema",
        "type": "object"
      },
      "SemanticQueryResultMetadata": {
        "properties": {
          "effective_cap": {
            "maximum": 1000,
            "minimum": 1,
            "title": "Effective Cap",
            "type": "integer"
          },
          "exact_group_count": {
            "default": null,
            "nullable": true,
            "title": "Exact Group Count",
            "type": "integer"
          },
          "is_truncated": {
            "title": "Is Truncated",
            "type": "boolean"
          },
          "legacy_ranked_limit": {
            "default": false,
            "title": "Legacy Ranked Limit",
            "type": "boolean"
          },
          "predicate_migration": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PredicateMigration"
              }
            ],
            "default": null,
            "nullable": true
          },
          "ranking_migration": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RankingMigration"
              }
            ],
            "default": null,
            "nullable": true
          },
          "returned_count": {
            "maximum": 1000,
            "minimum": 0,
            "title": "Returned Count",
            "type": "integer"
          }
        },
        "required": [
          "effective_cap",
          "exact_group_count",
          "is_truncated",
          "legacy_ranked_limit",
          "returned_count"
        ],
        "title": "SemanticQueryResultMetadata",
        "type": "object"
      },
      "SemanticQueryScope": {
        "description": "Whether a semantic query should return a complete or ranked result set.",
        "enum": [
          "complete",
          "top_n"
        ],
        "title": "SemanticQueryScope",
        "type": "string"
      },
      "SemanticQueryScopeRequestBody": {
        "description": "Whether a semantic query should return a complete or ranked result set.",
        "enum": [
          "complete",
          "top_n"
        ],
        "title": "SemanticQueryScope",
        "type": "string"
      },
      "SemanticReportChartType": {
        "description": "Chart shapes the FE can render for a semantic report.\n\nChart values match Widget V3 where an equivalent chart exists. Preview is\nrendered directly from semantic cells because Widget V3 has no metric-card\nrepresentation.",
        "enum": [
          "area_chart",
          "line_chart",
          "pie_chart",
          "preview",
          "raw_table",
          "sankey_chart",
          "stacked_bar_chart"
        ],
        "title": "SemanticReportChartType",
        "type": "string"
      },
      "SemanticReportChartTypeRequestBody": {
        "description": "Chart shapes the FE can render for a semantic report.\n\nChart values match Widget V3 where an equivalent chart exists. Preview is\nrendered directly from semantic cells because Widget V3 has no metric-card\nrepresentation.",
        "enum": [
          "area_chart",
          "line_chart",
          "pie_chart",
          "preview",
          "raw_table",
          "sankey_chart",
          "stacked_bar_chart"
        ],
        "title": "SemanticReportChartType",
        "type": "string"
      },
      "SemanticReportMetadata": {
        "description": "Metadata for one semantic saved report (custom AI report).\n\nServed exclusively by ``/reporting/semantic/reports``; semantic reports\nare intentionally absent from the legacy ``ReportMetadataV2`` surfaces.\n``report_kind`` is a fixed marker so clients can discriminate this shape\nfrom legacy report metadata without inspecting optional fields.",
        "properties": {
          "created_at": {
            "default": null,
            "format": "date-time",
            "nullable": true,
            "title": "Created At",
            "type": "string"
          },
          "dashboard_id": {
            "default": null,
            "nullable": true,
            "title": "Dashboard Id",
            "type": "string"
          },
          "description": {
            "default": null,
            "nullable": true,
            "title": "Description",
            "type": "string"
          },
          "differs_from_ramp_template": {
            "default": null,
            "nullable": true,
            "title": "Differs From Ramp Template",
            "type": "boolean"
          },
          "height": {
            "default": null,
            "nullable": true,
            "title": "Height",
            "type": "integer"
          },
          "is_delegated_share": {
            "default": false,
            "title": "Is Delegated Share",
            "type": "boolean"
          },
          "position": {
            "default": null,
            "nullable": true,
            "title": "Position",
            "type": "integer"
          },
          "ramp_template_id": {
            "default": null,
            "nullable": true,
            "title": "Ramp Template Id",
            "type": "string"
          },
          "report_id": {
            "title": "Report Id",
            "type": "string"
          },
          "report_kind": {
            "default": "semantic",
            "enum": [
              "semantic"
            ],
            "title": "Report Kind",
            "type": "string"
          },
          "report_parent_id": {
            "default": null,
            "nullable": true,
            "title": "Report Parent Id",
            "type": "string"
          },
          "report_parent_metadata": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReportParentMetadataSchema"
              }
            ],
            "default": null,
            "nullable": true
          },
          "report_title": {
            "title": "Report Title",
            "type": "string"
          },
          "state": {
            "$ref": "#/components/schemas/SemanticReportState"
          },
          "updated_at": {
            "default": null,
            "format": "date-time",
            "nullable": true,
            "title": "Updated At",
            "type": "string"
          },
          "width": {
            "default": null,
            "nullable": true,
            "title": "Width",
            "type": "integer"
          }
        },
        "required": [
          "created_at",
          "dashboard_id",
          "description",
          "height",
          "is_delegated_share",
          "position",
          "report_id",
          "report_kind",
          "report_parent_id",
          "report_parent_metadata",
          "report_title",
          "state",
          "updated_at",
          "width"
        ],
        "title": "SemanticReportMetadata",
        "type": "object"
      },
      "SemanticReportPeerColumn": {
        "description": "Aggregate-table column showing one peer benchmark statistic for one measure.",
        "properties": {
          "measure_field": {
            "description": "Output field of the benchmarked measure, as in the response's columns[].field and benchmark row keys.",
            "title": "Measure Field",
            "type": "string"
          },
          "statistic": {
            "description": "Peer 25th percentile, median, or 75th percentile.",
            "enum": [
              "p25",
              "p50",
              "p75"
            ],
            "title": "Statistic",
            "type": "string"
          }
        },
        "required": [
          "measure_field",
          "statistic"
        ],
        "title": "SemanticReportPeerColumn",
        "type": "object"
      },
      "SemanticReportRawTableSort": {
        "description": "Persisted counterpart of Reporting's V2 raw-table field sort.",
        "properties": {
          "field": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/RelatedRowsColumn"
              },
              {
                "$ref": "#/components/schemas/SemanticReportRawTableSortField"
              }
            ],
            "title": "Field"
          },
          "order": {
            "enum": [
              "asc",
              "desc"
            ],
            "title": "Order",
            "type": "string"
          }
        },
        "required": [
          "field",
          "order"
        ],
        "title": "SemanticReportRawTableSort",
        "type": "object"
      },
      "SemanticReportRawTableSortField": {
        "properties": {
          "column_key": {
            "$ref": "#/components/schemas/ReportingDataTableColumnKey"
          },
          "identifier": {
            "default": null,
            "nullable": true,
            "title": "Identifier",
            "type": "string"
          }
        },
        "required": [
          "column_key"
        ],
        "title": "SemanticReportRawTableSortField",
        "type": "object"
      },
      "SemanticReportRawTableSortFieldRequestBody": {
        "properties": {
          "column_key": {
            "$ref": "#/components/schemas/ReportingDataTableColumnKeyRequestBody"
          },
          "identifier": {
            "default": null,
            "nullable": true,
            "title": "Identifier",
            "type": "string"
          }
        },
        "required": [
          "column_key"
        ],
        "title": "SemanticReportRawTableSortField",
        "type": "object"
      },
      "SemanticReportRawTableSortRequestBody": {
        "description": "Persisted counterpart of Reporting's V2 raw-table field sort.",
        "properties": {
          "field": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/RelatedRowsColumnRequestBody"
              },
              {
                "$ref": "#/components/schemas/SemanticReportRawTableSortFieldRequestBody"
              }
            ],
            "title": "Field"
          },
          "order": {
            "enum": [
              "asc",
              "desc"
            ],
            "title": "Order",
            "type": "string"
          }
        },
        "required": [
          "field",
          "order"
        ],
        "title": "SemanticReportRawTableSort",
        "type": "object"
      },
      "SemanticReportState": {
        "description": "The full persisted payload for a semantic saved report.",
        "properties": {
          "report_query": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReportQuery"
              }
            ],
            "description": "Semantic query to execute live when rendering the report.",
            "title": "Report Query"
          },
          "version": {
            "default": 1,
            "enum": [
              1
            ],
            "title": "Version",
            "type": "integer"
          },
          "view": {
            "$ref": "#/components/schemas/SemanticReportView"
          }
        },
        "required": [
          "report_query"
        ],
        "title": "SemanticReportState",
        "type": "object"
      },
      "SemanticReportView": {
        "description": "Presentation-only configuration; never affects the executed query.",
        "properties": {
          "chart_breakdown_field": {
            "default": null,
            "description": "Which of the query's dimensions the chart uses as the series breakdown. Null means no breakdown. Presentation-only.",
            "nullable": true,
            "title": "Chart Breakdown Field",
            "type": "string"
          },
          "chart_dimension_field": {
            "default": null,
            "description": "Which of the query's dimensions the chart plots on its primary axis. Null lets the FE pick (first dimension). Presentation-only projection: charts can display a subset of a multi-field query without rewriting it.",
            "nullable": true,
            "title": "Chart Dimension Field",
            "type": "string"
          },
          "chart_is_cumulative": {
            "default": false,
            "description": "Whether area chart values accumulate over time. Ignored for other chart types.",
            "title": "Chart Is Cumulative",
            "type": "boolean"
          },
          "chart_is_grouped": {
            "default": false,
            "description": "Whether bar chart series render side by side instead of stacked. Ignored for other chart types.",
            "title": "Chart Is Grouped",
            "type": "boolean"
          },
          "chart_measure_field": {
            "default": null,
            "description": "Which of the query's measures the chart plots as the value. Null lets the FE pick (first measure). Presentation-only.",
            "nullable": true,
            "title": "Chart Measure Field",
            "type": "string"
          },
          "chart_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SemanticReportChartType"
              }
            ],
            "default": null,
            "description": "Chart to render when mode=chart. Null lets the FE pick.",
            "nullable": true
          },
          "column_order": {
            "default": [],
            "description": "Optional display order of semantic output fields. Fields missing from this list render after the ordered ones, in query order.",
            "items": {
              "type": "string"
            },
            "title": "Column Order",
            "type": "array"
          },
          "hidden_fields": {
            "default": [],
            "description": "Semantic output fields hidden from the rendered table.",
            "items": {
              "type": "string"
            },
            "title": "Hidden Fields",
            "type": "array"
          },
          "mode": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SemanticReportViewMode"
              }
            ],
            "default": "table"
          },
          "peer_columns": {
            "default": [],
            "description": "Extra aggregate-table columns, in order, each showing one peer statistic for one measure. Rows without a peer band render empty, and entries for measures the query does not select are ignored. Web report page only: not included in CSV exports or agent report reads.",
            "items": {
              "$ref": "#/components/schemas/SemanticReportPeerColumn"
            },
            "title": "Peer Columns",
            "type": "array"
          },
          "preview": {
            "default": null,
            "description": "Which preview the web report page opens with: the peer benchmark or the report itself. Null means the report.",
            "enum": [
              "benchmark",
              "report"
            ],
            "nullable": true,
            "title": "Preview",
            "type": "string"
          },
          "raw_table_columns": {
            "default": [],
            "description": "Raw-table columns displayed on the row-level Data tab, in order. An empty list uses the datasource's default raw-table columns.",
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/RelatedRowsColumn"
                },
                {
                  "$ref": "#/components/schemas/SemanticReportRawTableSortField"
                }
              ]
            },
            "title": "Raw Table Columns",
            "type": "array"
          },
          "raw_table_sort": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SemanticReportRawTableSort"
              }
            ],
            "default": null,
            "description": "Sort applied to the row-level Data tab. Null uses the datasource's default raw-table sort.",
            "nullable": true
          },
          "show_peer_comparison": {
            "default": false,
            "description": "Whether measure cells with peer benchmark bands show their position among similar companies instead of previous-period changes.",
            "title": "Show Peer Comparison",
            "type": "boolean"
          },
          "table_pivot_column_field": {
            "default": null,
            "description": "Which of the query's dimensions the aggregate table spreads across its columns (one column per value). Null means the table is not pivoted. Presentation-only.",
            "nullable": true,
            "title": "Table Pivot Column Field",
            "type": "string"
          },
          "table_pivot_row_field": {
            "default": null,
            "description": "Which of the query's dimensions leads the pivoted table's rows; any other dimensions follow it as extra row labels. Null lets the FE pick. Ignored unless table_pivot_column_field is set.",
            "nullable": true,
            "title": "Table Pivot Row Field",
            "type": "string"
          }
        },
        "title": "SemanticReportView",
        "type": "object"
      },
      "SemanticReportViewMode": {
        "enum": [
          "chart",
          "table"
        ],
        "title": "SemanticReportViewMode",
        "type": "string"
      },
      "SemanticReportViewModeRequestBody": {
        "enum": [
          "chart",
          "table"
        ],
        "title": "SemanticReportViewMode",
        "type": "string"
      },
      "SemanticReportViewSpecRequestBody": {
        "description": "The view fields an agent chooses for a semantic report or query result.",
        "properties": {
          "chart_breakdown_field": {
            "default": null,
            "description": "Optional dimension that splits the chart into series. Use an exact dimension field selected by report_query, different from chart_dimension_field. Omit when no intentional breakdown is needed. Preview does not use this projection when rendering its total.",
            "nullable": true,
            "title": "Chart Breakdown Field",
            "type": "string"
          },
          "chart_dimension_field": {
            "default": null,
            "description": "Dimension plotted on the chart's primary axis. Use an exact dimension field selected by report_query. For trends, use the time dimension; for rankings, use the ranked category. Preview does not use this projection when rendering its total.",
            "nullable": true,
            "title": "Chart Dimension Field",
            "type": "string"
          },
          "chart_is_cumulative": {
            "default": false,
            "description": "Whether area chart values accumulate over time. Set true for a running total; the default renders per-period values. Ignored for other chart types.",
            "title": "Chart Is Cumulative",
            "type": "boolean"
          },
          "chart_is_grouped": {
            "default": false,
            "description": "Whether stacked_bar_chart series render as side-by-side grouped bars instead of stacked segments. Set true when comparing series independently; the default stacks them. Ignored for other chart types.",
            "title": "Chart Is Grouped",
            "type": "boolean"
          },
          "chart_measure_field": {
            "default": null,
            "description": "Measure emphasized by charts that only have room for one measure. Use an exact measure selected by report_query. For grouped bars, select multiple measures with compatible units, use stacked_bar_chart with chart_is_grouped=true and no chart_breakdown_field, and omit this field so every measure renders side by side, provided axis buckets times measures does not exceed 30. Preview renders this measure, or the query's first measure when omitted.",
            "nullable": true,
            "title": "Chart Measure Field",
            "type": "string"
          },
          "chart_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SemanticReportChartTypeRequestBody"
              }
            ],
            "default": null,
            "description": "Chart to render. Required when view_mode=chart; omit when view_mode=table. Choose a chart compatible with the validated query result shape. Use stacked_bar_chart for bar charts, then choose grouped or stacked layout with chart_is_grouped. Use preview with view_mode=chart to emphasize a selected measure. A query with dimensions can use preview only when its validated response includes totals. Use sankey_chart only when the user asks for a flow between two dimensions: the query needs two dimensions and keep few distinct values in each, because many nodes are unreadable. chart_dimension_field is the source and chart_breakdown_field is the target.",
            "nullable": true
          },
          "view_mode": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SemanticReportViewModeRequestBody"
              }
            ],
            "description": "Default view when the report opens: table or chart. Required; choose it from the analytical intent of the question (trend, share, comparison, single total, or a list of rows). Raw detail reports use chart with chart_type=raw_table; table is the grouped-result view."
          }
        },
        "required": [
          "view_mode"
        ],
        "title": "SemanticReportViewSpec",
        "type": "object"
      },
      "SemanticTimeRange": {
        "description": "Inclusive time bounds applied to the dataset's default time dimension\n(or ``dimension`` when set).\n\nNamed ``SemanticTimeRange`` (not ``TimeRange``) so its OpenAPI component\ndoes not collide with the unrelated GLA-staleness ``TimeRange`` schema.",
        "properties": {
          "dimension": {
            "default": null,
            "nullable": true,
            "title": "Dimension",
            "type": "string"
          },
          "end": {
            "default": null,
            "description": "Inclusive upper bound for the reporting window. To include a complete calendar end date, use end-of-day (for example, 2025-12-31T23:59:59.999999Z). Midnight is the start of that date and excludes later timestamped records from the same day. A relative date offset is resolved when the report runs.",
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/RelativeDate"
              },
              {
                "format": "date",
                "type": "string"
              },
              {
                "format": "date-time",
                "type": "string"
              }
            ],
            "title": "End"
          },
          "start": {
            "default": null,
            "description": "Inclusive lower bound: an ISO datetime or a legacy relative date offset.",
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/RelativeDate"
              },
              {
                "format": "date",
                "type": "string"
              },
              {
                "format": "date-time",
                "type": "string"
              }
            ],
            "title": "Start"
          }
        },
        "title": "SemanticTimeRange",
        "type": "object"
      },
      "SendRFXResponseReminderOutput": {
        "properties": {
          "invitation_cooldown_statuses": {
            "description": "Per-invitation cooldown state after this call",
            "items": {
              "$ref": "#/components/schemas/InvitationCooldownStatus"
            },
            "title": "Invitation Cooldown Statuses",
            "type": "array"
          },
          "message": {
            "description": "Human-readable summary of the reminder send",
            "title": "Message",
            "type": "string"
          },
          "reminder_sent_to_invitation_ids": {
            "description": "Invitation UUIDs a reminder email was scheduled for",
            "items": {
              "type": "string"
            },
            "title": "Reminder Sent To Invitation Ids",
            "type": "array"
          },
          "skipped_due_to_cooldown_invitation_ids": {
            "description": "Invitation UUIDs that were eligible but skipped because their reminder cooldown has not expired",
            "items": {
              "type": "string"
            },
            "title": "Skipped Due To Cooldown Invitation Ids",
            "type": "array"
          }
        },
        "required": [
          "invitation_cooldown_statuses",
          "message",
          "reminder_sent_to_invitation_ids",
          "skipped_due_to_cooldown_invitation_ids"
        ],
        "title": "SendRFXResponseReminderOutput",
        "type": "object"
      },
      "SendRFXResponseReminderRequestBody": {
        "description": "Send response reminder emails to invited vendors who have not yet\nsubmitted their RFX response.\n\nOnly ACTIVE invitations on a published RFX whose vendor has not rejected\nthe invitation and has not submitted are eligible. A per-vendor cooldown\nprevents spamming \u2014 recently reminded vendors are skipped and reported in\n``skipped_due_to_cooldown_invitation_ids``. Omit\n``rfx_vendor_invitation_ids`` to remind every eligible vendor.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "rfx_id": {
            "description": "UUID of the published RFX",
            "format": "uuid",
            "title": "Rfx Id",
            "type": "string"
          },
          "rfx_vendor_invitation_ids": {
            "default": null,
            "description": "Specific vendor invitation UUIDs to remind. Omit to send to all eligible vendors.",
            "items": {
              "$ref": "#/components/schemas/UUIDStrRequestBody"
            },
            "nullable": true,
            "title": "Rfx Vendor Invitation Ids",
            "type": "array"
          }
        },
        "required": [
          "rationale",
          "rfx_id"
        ],
        "title": "SendRFXResponseReminder",
        "type": "object"
      },
      "SeparationOfDutiesAdjustment": {
        "properties": {
          "added_users": {
            "items": {
              "$ref": "#/components/schemas/UserRef"
            },
            "title": "Added Users",
            "type": "array"
          },
          "removed_user": {
            "$ref": "#/components/schemas/UserRef"
          }
        },
        "required": [
          "added_users",
          "removed_user"
        ],
        "title": "SeparationOfDutiesAdjustment",
        "type": "object"
      },
      "SetDeclineBufferRequestBody": {
        "description": "Set or clear decline buffer percentages for business settings, spend programs, or funds.\n\nDecline buffers are stored as allowed overage percent. Use this purpose-built\ntool for decline/spend/overage buffer changes instead of generic endpoint\ntools. Always confirm the exact target and value with the user before\ncalling this tool.\n\nClear is distinct from 0%. Passing allowed_overage_percent=null removes the\nexplicit value at the target level so it can inherit from the next level.\nPassing allowed_overage_percent=0 sets an explicit zero-percent buffer.\n\nSpend-program changes always propagate to existing linked allocations.\nFor business-wide settings, buffer_application_mode is required when\nsetting a non-null percent.",
        "properties": {
          "allowed_overage_percent": {
            "description": "Percent buffer to set. Business and fund targets accept 0 to 100 inclusive; spend_program targets accept values greater than or equal to 0 and less than 100. Pass null to clear this target's explicit buffer so it inherits from the next level. Passing 0 explicitly sets no allowed overage.",
            "nullable": true,
            "oneOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "title": "Allowed Overage Percent"
          },
          "buffer_application_mode": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BufferApplicationModeRequestBody"
              }
            ],
            "default": null,
            "description": "For business target only when setting a non-null percent: all_funds to apply to all existing and future funds, or from_enabled_date to apply only to newly-created funds going forward.",
            "nullable": true
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "target_id": {
            "default": null,
            "description": "UUID of the spend program or fund. Leave empty only for target_type=business.",
            "nullable": true,
            "title": "Target Id",
            "type": "string"
          },
          "target_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DeclineBufferTargetRequestBody"
              }
            ],
            "description": "Where to apply the decline buffer: business for the business-wide default, spend_program for a spend program override, or fund for an individual fund override."
          }
        },
        "required": [
          "allowed_overage_percent",
          "rationale",
          "target_type"
        ],
        "title": "SetDeclineBuffer",
        "type": "object"
      },
      "SetDeclineBufferResult": {
        "properties": {
          "allowed_overage_percent": {
            "nullable": true,
            "title": "Allowed Overage Percent",
            "type": "number"
          },
          "cleared": {
            "title": "Cleared",
            "type": "boolean"
          },
          "job_id": {
            "default": null,
            "nullable": true,
            "title": "Job Id",
            "type": "string"
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "propagate_to_allocations": {
            "default": null,
            "nullable": true,
            "title": "Propagate To Allocations",
            "type": "boolean"
          },
          "spend_allocations_count": {
            "default": null,
            "nullable": true,
            "title": "Spend Allocations Count",
            "type": "integer"
          },
          "target_id": {
            "default": null,
            "nullable": true,
            "title": "Target Id",
            "type": "string"
          },
          "target_type": {
            "$ref": "#/components/schemas/DeclineBufferTarget"
          },
          "workflow_id": {
            "default": null,
            "nullable": true,
            "title": "Workflow Id",
            "type": "string"
          }
        },
        "required": [
          "allowed_overage_percent",
          "cleared",
          "message",
          "target_type"
        ],
        "title": "SetDeclineBufferResult",
        "type": "object"
      },
      "SetRFXCoverSheetOutput": {
        "properties": {
          "attachment_count": {
            "description": "Final number of attachments on the cover sheet after this update",
            "title": "Attachment Count",
            "type": "integer"
          },
          "body_set": {
            "description": "True if the cover sheet body was replaced by this call",
            "title": "Body Set",
            "type": "boolean"
          },
          "message": {
            "description": "Human-readable confirmation summary",
            "title": "Message",
            "type": "string"
          },
          "rfx_id": {
            "description": "ID of the RFX whose cover sheet was updated",
            "title": "Rfx Id",
            "type": "string"
          }
        },
        "required": [
          "attachment_count",
          "body_set",
          "message",
          "rfx_id"
        ],
        "title": "SetRFXCoverSheetOutput",
        "type": "object"
      },
      "SetRFXCoverSheetRequestBody": {
        "description": "Set or update the vendor-facing cover sheet on a DRAFT RFX. Pass body_markdown and/or attachment_ramp_document_ids, and get explicit user confirmation for the body and every attachment before calling.",
        "properties": {
          "attachment_ramp_document_ids": {
            "default": null,
            "description": "Ordered list of ramp_document_ids to attach (e.g. returned by the sourcing document upload API \u2014 `ramp sourcing upload`, a multipart file upload). Pass [] to clear attachments, [id1, id2, ...] to replace the attachment set in display order (max 20, no duplicates), or omit to leave attachments unchanged. Ids must belong to the user's business.",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "title": "Attachment Ramp Document Ids",
            "type": "array"
          },
          "body_markdown": {
            "default": null,
            "description": "Markdown content for the cover sheet body. Pass to replace the current body; omit to leave the body unchanged.",
            "nullable": true,
            "title": "Body Markdown",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "rfx_id": {
            "description": "UUID of the DRAFT RFX to update.",
            "format": "uuid",
            "title": "Rfx Id",
            "type": "string"
          }
        },
        "required": [
          "rationale",
          "rfx_id"
        ],
        "title": "SetRFXCoverSheet",
        "type": "object"
      },
      "SetRFXPricingSheetOutput": {
        "properties": {
          "attachment_count": {
            "description": "Final number of attachments on the pricing sheet after this update",
            "title": "Attachment Count",
            "type": "integer"
          },
          "currency": {
            "description": "ISO-4217 currency code after the update",
            "title": "Currency",
            "type": "string"
          },
          "guidance_set": {
            "description": "True if the pricing guidance was replaced by this call",
            "title": "Guidance Set",
            "type": "boolean"
          },
          "message": {
            "description": "Human-readable confirmation summary",
            "title": "Message",
            "type": "string"
          },
          "pricing_enabled": {
            "description": "True if vendor pricing is now enabled on the RFX (always True after success)",
            "title": "Pricing Enabled",
            "type": "boolean"
          },
          "rfx_id": {
            "description": "ID of the RFX whose pricing sheet was updated",
            "title": "Rfx Id",
            "type": "string"
          }
        },
        "required": [
          "attachment_count",
          "currency",
          "guidance_set",
          "message",
          "pricing_enabled",
          "rfx_id"
        ],
        "title": "SetRFXPricingSheetOutput",
        "type": "object"
      },
      "SetRFXPricingSheetRequestBody": {
        "description": "Set or update the pricing sheet on a DRAFT RFX during sourcing intake.\n\nThe pricing sheet configures how vendors submit pricing in response to the\nRFX: the currency they must quote in, a rich-text guidance memo explaining\npricing expectations (e.g. unit basis, term length, must include\nimplementation), and optional background attachments (rate cards, SOW\ntemplates) for vendors to reference.\n\nThe guidance memo and attachments are vendor-facing (sent on publish). The\nagent MUST get explicit user confirmation on the guidance wording and on\nevery attachment before calling this tool. Never auto-attach files the user\nuploaded earlier in the thread \u2014 those may be internal/confidential and\nattaching them to a vendor-facing surface is a data-leak risk.\n\nCreating a pricing sheet implicitly enables vendor pricing on the RFX \u2014\nonce this tool succeeds, vendors will see a pricing step in their response\nflow. The very first call (when no pricing sheet exists yet) must include\nboth `currency` and `guidance_markdown`. After that, partial updates are\nallowed.\n\nPatch semantics:\n- Pass `currency` to replace the currency. Omit (None) to leave unchanged.\n- Pass `guidance_markdown` to replace the guidance memo. Omit to leave\n  unchanged.\n- Pass `attachment_ramp_document_ids=[id1, id2]` to replace the attachment\n  set. Pass `[]` to clear all attachments. Omit (None) to leave unchanged.\n\nRequires the RFX to be in DRAFT state. The acting user must be an owner or\ncollaborator on the RFX.",
        "properties": {
          "attachment_ramp_document_ids": {
            "default": null,
            "description": "Ordered list of ramp_document_ids to attach (rate cards, SOWs). Pass [] to clear attachments, or omit to leave unchanged. Ids must belong to the user's business; agents should prefer ramp_document_ids the user has uploaded in this chat thread.",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "title": "Attachment Ramp Document Ids",
            "type": "array"
          },
          "currency": {
            "default": null,
            "description": "ISO-4217 currency code (e.g. 'USD', 'EUR', 'GBP'). Required on first creation; optional on subsequent updates.",
            "nullable": true,
            "title": "Currency",
            "type": "string"
          },
          "guidance_markdown": {
            "default": null,
            "description": "Markdown describing how vendors should quote pricing \u2014 unit basis, what's included, term length, payment terms. Required on first creation; optional on subsequent updates.",
            "nullable": true,
            "title": "Guidance Markdown",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "rfx_id": {
            "description": "UUID of the DRAFT RFX to update.",
            "format": "uuid",
            "title": "Rfx Id",
            "type": "string"
          }
        },
        "required": [
          "rationale",
          "rfx_id"
        ],
        "title": "SetRFXPricingSheet",
        "type": "object"
      },
      "SetRFXVendorInvitationContactOutput": {
        "properties": {
          "contact_email": {
            "default": null,
            "description": "Email of the invitation contact after the update",
            "nullable": true,
            "title": "Contact Email",
            "type": "string"
          },
          "contact_name": {
            "default": null,
            "description": "Name of the invitation contact after the update, when set",
            "nullable": true,
            "title": "Contact Name",
            "type": "string"
          },
          "invitation_id": {
            "description": "UUID of the vendor invitation",
            "title": "Invitation Id",
            "type": "string"
          },
          "invitation_status": {
            "description": "Invitation lifecycle status after the update: ACTIVE or REVOKED",
            "title": "Invitation Status",
            "type": "string"
          },
          "message": {
            "description": "Human-readable result of the contact update",
            "title": "Message",
            "type": "string"
          }
        },
        "required": [
          "contact_email",
          "contact_name",
          "invitation_id",
          "invitation_status",
          "message"
        ],
        "title": "SetRFXVendorInvitationContactOutput",
        "type": "object"
      },
      "SetRFXVendorInvitationContactRequestBody": {
        "description": "Set or replace the contact on an RFX vendor invitation.\n\nResolving a DRAFT invitation's contact activates it (DRAFT \u2192 ACTIVE) so\nthe RFX can publish; DRAFT invitations without a contact block publishing.\nOn an ACTIVE invitation this swaps the contact who receives vendor-facing\ncommunication. Use GetRFXDetail to find invitation ids and current\ncontacts, and the vendor contacts surface to find payee_contact_id values\nfor the invited vendor.",
        "properties": {
          "payee_contact_id": {
            "description": "UUID of the PayeeContact to set as the invitation contact. Must belong to the invited vendor (payee).",
            "format": "uuid",
            "title": "Payee Contact Id",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "rfx_vendor_invitation_id": {
            "description": "UUID of the RFX vendor invitation to update",
            "format": "uuid",
            "title": "Rfx Vendor Invitation Id",
            "type": "string"
          }
        },
        "required": [
          "payee_contact_id",
          "rationale",
          "rfx_vendor_invitation_id"
        ],
        "title": "SetRFXVendorInvitationContact",
        "type": "object"
      },
      "SetRouterApiKeyLimitRequestBody": {
        "description": "Set or replace a USD spend limit on Ramp Router API keys.\n\nDoes not set a limit on an OpenAI or Anthropic provider key. Returns the saved\nlimit for each key.\n\nA new limit stops the key when its spend reaches the amount. A changed limit\nkeeps its earlier setting. blocks_at_limit in the result tells which applies.\n\nA key's owner can change the limit on their own key. An admin can change the\nlimit on any key. A key owner who is not an admin cannot change or remove a\nlimit an admin set.\n\nWithout confirmed, the limit is saved directly, unless a key's spend this\nperiod is at or above 80% of the new limit. Then nothing is saved, and the\nresult is confirmation_needed with those keys, their spend this period, and\nthe new limit. Show these to the user and get an explicit yes in this\nconversation. Never set confirmed to true without that yes.",
        "properties": {
          "amount_usd": {
            "description": "The limit in USD.",
            "oneOf": [
              {
                "exclusiveMinimum": true,
                "minimum": 0.0,
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "title": "Amount Usd"
          },
          "api_key_ids": {
            "description": "Ramp ids of Router API keys; not OpenAI or Anthropic provider key ids.",
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "maxItems": 100,
            "minItems": 1,
            "title": "Api Key Ids",
            "type": "array"
          },
          "confirmed": {
            "default": false,
            "description": "Needed only when a key's spend this period is at or above 80% of the new limit. True only after the user said yes to the exact keys, their spend, and the new limit.",
            "title": "Confirmed",
            "type": "boolean"
          },
          "interval": {
            "description": "How often the limit resets: daily, weekly, monthly, yearly, or lifetime (never resets).",
            "enum": [
              "daily",
              "lifetime",
              "monthly",
              "weekly",
              "yearly"
            ],
            "title": "Interval",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "amount_usd",
          "api_key_ids",
          "interval",
          "rationale"
        ],
        "title": "SetRouterApiKeyLimit",
        "type": "object"
      },
      "SetRouterApiKeyLimitResponse": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/RouterApiKeyLimitChange"
          },
          {
            "$ref": "#/components/schemas/RouterApiKeyLimitConfirmationNeeded"
          }
        ],
        "title": "SetRouterApiKeyLimitResponse"
      },
      "SetTravelerLoyaltyProgramRequestBody": {
        "description": "Set one loyalty program on the user's traveler profile by program name and loyalty number.\n\nIf it already exists, update its loyalty number. After success, continue the\nactive workflow when it requires refreshed data; otherwise tell the user it is saved.",
        "properties": {
          "loyalty_number": {
            "description": "Loyalty number for the loyalty program.",
            "title": "Loyalty Number",
            "type": "string"
          },
          "program_name": {
            "description": "Loyalty program name, such as Delta SkyMiles, Hilton Honors, or Hertz Gold Plus Rewards.",
            "title": "Program Name",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "loyalty_number",
          "program_name",
          "rationale"
        ],
        "title": "SetTravelerLoyaltyProgram",
        "type": "object"
      },
      "SetTravelerLoyaltyProgramResult": {
        "properties": {
          "candidates": {
            "description": "Candidate program names when set could not resolve a unique program.",
            "items": {
              "$ref": "#/components/schemas/LoyaltyProgramCandidate"
            },
            "title": "Candidates",
            "type": "array"
          },
          "existing_traveler_loyalty_program_id": {
            "default": null,
            "description": "Existing saved loyalty program ID when an existing program was updated.",
            "nullable": true,
            "title": "Existing Traveler Loyalty Program Id",
            "type": "string"
          },
          "message": {
            "description": "Description of the result.",
            "title": "Message",
            "type": "string"
          },
          "program_name": {
            "default": null,
            "description": "Resolved loyalty program display name.",
            "nullable": true,
            "title": "Program Name",
            "type": "string"
          },
          "success": {
            "description": "Whether the loyalty program was successfully added or updated.",
            "title": "Success",
            "type": "boolean"
          },
          "traveler_loyalty_program_id": {
            "default": null,
            "description": "Saved traveler loyalty program ID when a program was added or updated.",
            "nullable": true,
            "title": "Traveler Loyalty Program Id",
            "type": "string"
          }
        },
        "required": [
          "message",
          "success"
        ],
        "title": "SetTravelerLoyaltyProgramResult",
        "type": "object"
      },
      "ShippingDeliveryEstimate": {
        "properties": {
          "max_days": {
            "title": "Max Days",
            "type": "integer"
          },
          "min_days": {
            "title": "Min Days",
            "type": "integer"
          }
        },
        "required": [
          "max_days",
          "min_days"
        ],
        "title": "ShippingDeliveryEstimate",
        "type": "object"
      },
      "ShippingTrackingStatus": {
        "enum": [
          "available",
          "pending",
          "unavailable"
        ],
        "title": "ShippingTrackingStatus",
        "type": "string"
      },
      "SimplifiedUserDetail": {
        "properties": {
          "business_id": {
            "description": "Business UUID",
            "title": "Business Id",
            "type": "string"
          },
          "department": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DepartmentDetails"
              }
            ],
            "description": "User's department details",
            "nullable": true
          },
          "email": {
            "description": "User's email address",
            "title": "Email",
            "type": "string"
          },
          "first_name": {
            "description": "User's first name",
            "title": "First Name",
            "type": "string"
          },
          "id": {
            "description": "User UUID",
            "title": "Id",
            "type": "string"
          },
          "last_name": {
            "description": "User's last name",
            "title": "Last Name",
            "type": "string"
          },
          "location_name": {
            "description": "User's location name",
            "nullable": true,
            "title": "Location Name",
            "type": "string"
          }
        },
        "required": [
          "business_id",
          "department",
          "email",
          "first_name",
          "id",
          "last_name",
          "location_name"
        ],
        "title": "SimplifiedUserDetail",
        "type": "object"
      },
      "SimplifiedUserDetailResponse": {
        "properties": {
          "agent_key": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AgentKeyDetail"
              }
            ],
            "default": null,
            "description": "Present when the caller is authenticated via an agent key. Identifies which agent key is in use.",
            "nullable": true
          },
          "users": {
            "description": "List of user details. Returns multiple results for users that are part of multiple businesses.",
            "items": {
              "$ref": "#/components/schemas/SimplifiedUserDetail"
            },
            "title": "Users",
            "type": "array"
          }
        },
        "required": [
          "users"
        ],
        "title": "SimplifiedUserDetailResponse",
        "type": "object"
      },
      "SimulatePolicyWorkflowForExpenseRequestBody": {
        "description": "Simulate an approval or submission policy workflow against an existing transaction or reimbursement to preview how the published policy (or a specific historical workflow version) would route it. Approval policies return the simulated approval steps; submission policies return the required and visible expense fields. Provide exactly one expense UUID.",
        "properties": {
          "kind": {
            "allOf": [
              {
                "$ref": "#/components/schemas/OmniPolicyWorkflowKindRequestBody"
              }
            ],
            "description": "Policy family to simulate. Use approval_policy for post-spend approval routing, or submission_policy for required expense fields."
          },
          "policy_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UUIDStrRequestBody"
              }
            ],
            "description": "UUID of the policy to simulate. This may be the policy UUID or the backing ProductWorkflow UUID from page context."
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "reimbursement_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "Reimbursement UUID or reimbursement alias to simulate. Provide exactly one expense reference.",
            "nullable": true
          },
          "transaction_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "Transaction UUID or transaction alias to simulate. Provide exactly one expense reference.",
            "nullable": true
          },
          "workflow_uuid": {
            "default": null,
            "description": "Optional historical Workflow UUID to simulate instead of the latest published workflow or saved draft.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "kind",
          "policy_uuid",
          "rationale"
        ],
        "title": "SimulatePolicyWorkflowForExpense",
        "type": "object"
      },
      "SimulatePolicyWorkflowForExpenseSuccess": {
        "description": "Result of running a workflow body against a past expense.",
        "properties": {
          "api_values": {
            "description": "Resolved workflow state values from the simulation. Money values are USD, the values conditions were evaluated against, so they can differ from expense.amount when the expense is in another currency.",
            "items": {
              "type": "object"
            },
            "title": "Api Values",
            "type": "array"
          },
          "expense": {
            "$ref": "#/components/schemas/SimulatedExpense"
          },
          "fallback_visited": {
            "default": false,
            "title": "Fallback Visited",
            "type": "boolean"
          },
          "identifier": {
            "default": null,
            "nullable": true,
            "title": "Identifier",
            "type": "string"
          },
          "not_visited_vertex_count": {
            "default": 0,
            "title": "Not Visited Vertex Count",
            "type": "integer"
          },
          "policy_display_name": {
            "default": null,
            "nullable": true,
            "title": "Policy Display Name",
            "type": "string"
          },
          "policy_uuid": {
            "$ref": "#/components/schemas/UUIDStr"
          },
          "product_workflow_uuid": {
            "$ref": "#/components/schemas/UUIDStr"
          },
          "simulation_result": {
            "description": "Workflow-specific result. Approval policies return approval steps; submission policies return required and visible expense fields.",
            "title": "Simulation Result",
            "type": "object"
          },
          "simulation_widget_object_id": {
            "default": null,
            "nullable": true,
            "title": "Simulation Widget Object Id",
            "type": "string"
          },
          "workflow_identifier": {
            "title": "Workflow Identifier",
            "type": "string"
          },
          "workflow_source": {
            "enum": [
              "historical_version",
              "provided_workflow",
              "published",
              "saved_draft"
            ],
            "title": "Workflow Source",
            "type": "string"
          },
          "workflow_uuid": {
            "default": null,
            "format": "uuid",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "expense",
          "policy_uuid",
          "product_workflow_uuid",
          "simulation_result",
          "workflow_identifier",
          "workflow_source"
        ],
        "title": "SimulatePolicyWorkflowForExpenseSuccess",
        "type": "object"
      },
      "SimulatedExpense": {
        "properties": {
          "amount": {
            "default": null,
            "nullable": true,
            "title": "Amount",
            "type": "number"
          },
          "currency": {
            "default": null,
            "description": "ISO 4217 code of amount, the expense's own currency.",
            "nullable": true,
            "title": "Currency",
            "type": "string"
          },
          "date": {
            "default": null,
            "format": "date-time",
            "nullable": true,
            "title": "Date",
            "type": "string"
          },
          "employee_name": {
            "default": null,
            "nullable": true,
            "title": "Employee Name",
            "type": "string"
          },
          "expense_type": {
            "enum": [
              "reimbursement",
              "transaction"
            ],
            "title": "Expense Type",
            "type": "string"
          },
          "merchant_name": {
            "default": null,
            "nullable": true,
            "title": "Merchant Name",
            "type": "string"
          },
          "spend_event_canonical_uuid": {
            "$ref": "#/components/schemas/UUIDStr"
          },
          "uuid": {
            "$ref": "#/components/schemas/UUIDStr"
          }
        },
        "required": [
          "expense_type",
          "spend_event_canonical_uuid",
          "uuid"
        ],
        "title": "SimulatedExpense",
        "type": "object"
      },
      "SingleTransaction": {
        "example": {
          "accounting_categories": [],
          "accounting_date": "2022-05-03T00:00:00+00:00",
          "accounting_field_selections": [
            {
              "category_info": {
                "external_id": "Category",
                "id": "0c0d0bcc-8716-4e05-a651-4ad5e64d2b3e",
                "name": "Category",
                "type": "GL_ACCOUNT"
              },
              "display_name": "Ramp Category",
              "external_id": "Category",
              "id": "07b4ce4d-2750-412e-aef4-6b7815f1411c",
              "name": "Category",
              "type": "GL_ACCOUNT"
            }
          ],
          "all_requirements_met_and_approved": true,
          "amount": 90.0,
          "attendees": [
            {
              "name": "Jack Johnson",
              "user_id": null
            },
            {
              "name": "Joe Johnson",
              "user_id": "7979392e-8d41-4f97-815b-ccd7584802bf"
            }
          ],
          "card_holder": {
            "department_id": "d471d830-2e73-4082-8a75-68540f83e86e",
            "department_name": "Executive",
            "first_name": "Patrick",
            "last_name": "Robinson",
            "location_id": "4fcf3423-a2e6-42f6-8dd8-9b3a8c51e069",
            "location_name": "San Francisco",
            "user_id": "a26c82c9-6b7d-4022-bc4b-a55b4c4743c7"
          },
          "card_id": "6bc41b14-f853-4862-bae5-4f122f123f6e",
          "currency_code": "USD",
          "disputes": [],
          "entity_amount": {
            "currency": "USD",
            "value": 9000
          },
          "entity_id": "24850cdb-1b3f-4eb9-bf20-967ca9f97605",
          "fund_id": "5e25f547-bd09-40ad-aab3-b8fefdf16885",
          "id": "fd14cd6a-846e-4994-9315-5a59e6bb465f",
          "limit_id": "5e25f547-bd09-40ad-aab3-b8fefdf16885",
          "line_items": [
            {
              "accounting_field_selections": [
                {
                  "category_info": {
                    "external_id": "Subsidiary",
                    "id": "15e9565d-7e73-40d8-9fbc-5f6f89b1c075",
                    "name": "Subsidiary",
                    "type": "SUBSIDIARY"
                  },
                  "display_name": "Ramp BV - EMEA",
                  "external_id": "426",
                  "id": "07b4ce4d-2750-412e-aef4-6b7815f1411a",
                  "name": "Ramp BV",
                  "type": "SUBSIDIARY"
                }
              ],
              "amount": {
                "amount": 5000,
                "currency_code": "USD"
              },
              "converted_amount": {
                "amount": 5000,
                "currency_code": "USD"
              },
              "id": "11111111-1111-1111-1111-111111111111"
            },
            {
              "accounting_field_selections": [
                {
                  "category_info": {
                    "external_id": "Subsidiary",
                    "id": "15e9565d-7e73-40d8-9fbc-5f6f89b1c075",
                    "name": "Subsidiary",
                    "type": "SUBSIDIARY"
                  },
                  "display_name": null,
                  "external_id": "425",
                  "id": "07b4ce4d-2750-412e-aef4-6b7815f1411b",
                  "name": "Ramp LP",
                  "type": "Subsidiary"
                }
              ],
              "amount": {
                "amount": 4000,
                "currency_code": "USD"
              },
              "converted_amount": {
                "amount": 4000,
                "currency_code": "USD"
              }
            }
          ],
          "memo": null,
          "merchant_amount": {
            "currency": "EUR",
            "value": 9000
          },
          "merchant_category_code": null,
          "merchant_category_code_description": null,
          "merchant_data": {
            "auto_rental": null,
            "flight": null,
            "fuel": null,
            "lodging": null,
            "receipt": [
              {
                "commodity_code": null,
                "description": "Vanta Automated Compliance",
                "discount": null,
                "quantity": 1,
                "tax": null,
                "total": 5000,
                "unit_cost": 5000
              },
              {
                "commodity_code": null,
                "description": "Vanta Risk Management",
                "discount": null,
                "quantity": 1,
                "tax": null,
                "total": 4000,
                "unit_cost": 4000
              }
            ],
            "reference": "343165593943"
          },
          "merchant_descriptor": "VANTA",
          "merchant_id": "2907e304-cac2-4abf-84c4-b3b454ae3b8c",
          "merchant_location": {
            "city": "SAN FRANCISCO",
            "country": "USA",
            "postal_code": "941050000",
            "state": "06"
          },
          "merchant_name": "Vanta",
          "network_merchant_id": "1234567890",
          "original_transaction_amount": {
            "amount": 9000,
            "currency_code": "EUR"
          },
          "original_transaction_id": null,
          "policy_violations": [],
          "receipts": [],
          "settlement_date": "2022-05-03T00:00:00+00:00",
          "sk_category_id": "40,41",
          "sk_category_name": "SaaS / Software",
          "spend_program_id": "4a2b8c1e-9f63-4d75-ae12-3b9d47f85e29",
          "state": "CLEARED",
          "synced_at": "2022-05-04T00:00:00+00:00",
          "trip_id": "ec6aae2b-38c6-4eeb-adf0-80f25dbf9aad",
          "trip_name": "Trip to Europe",
          "updated_at": "2022-05-03T00:00:00+00:00",
          "user_transaction_time": "2022-04-28T00:00:00+00:00"
        },
        "properties": {
          "accounting_categories": {
            "deprecated": true,
            "description": "[Deprecated - use accounting_field_selections instead] Accounting categories related to the transaction.",
            "items": {
              "$ref": "#/components/schemas/ApiAccountingCategory"
            },
            "readOnly": true,
            "type": "array"
          },
          "accounting_date": {
            "description": "The date for the transaction for accounting purposes, in ISO8601 format. Based on the cleared date, transaction date, or a manually overridden date, depending on your accounting preferences in Ramp.",
            "format": "date-time",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "accounting_field_selections": {
            "description": "List of accounting fields selected to code the transaction.",
            "items": {
              "$ref": "#/components/schemas/ApiTransactionAccountingFieldSelection"
            },
            "type": "array"
          },
          "all_requirements_met_and_approved": {
            "description": "Whether the transaction is fully approved and all cardholder requirements are met, including receipts, memos, and tracking categories.",
            "readOnly": true,
            "type": "boolean"
          },
          "amount": {
            "deprecated": true,
            "description": "Deprecated. Use `entity_amount`.",
            "type": "number"
          },
          "attendees": {
            "description": "List of attendees for the transaction",
            "items": {
              "$ref": "#/components/schemas/ApiTransactionAttendee"
            },
            "readOnly": true,
            "type": "array"
          },
          "card_holder": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiTransactionCardHolder"
              }
            ],
            "description": "Information about the card holder."
          },
          "card_id": {
            "description": "Identifier of the physical or virtual card associated with the transaction.",
            "format": "uuid",
            "type": "string",
            "x-relationship": {
              "inverse_field_name": null,
              "reference_field_name": "id",
              "target_resource": "cards",
              "type": "many-to-one"
            }
          },
          "card_present": {
            "description": "Whether the transaction was processed using a card present terminal.",
            "type": "boolean"
          },
          "currency_code": {
            "deprecated": true,
            "description": "Deprecated. Use `entity_amount.currency`.",
            "type": "string"
          },
          "decline_details": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiTransactionDeclineDetails"
              }
            ],
            "description": "Details about a transaction decline."
          },
          "disputes": {
            "description": "A list of disputes sorted in descending order by their creation time.",
            "items": {
              "$ref": "#/components/schemas/ApiTransactionDispute"
            },
            "readOnly": true,
            "type": "array"
          },
          "entity_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiSignedAmount"
              }
            ],
            "description": "The amount that settled to the entity, in the entity's settlement currency. The value is in the smallest denomination of the currency (e.g. cents for USD) and is signed: refunds and credits can be negative. Null when the transaction has no valid settlement currency recorded.",
            "nullable": true,
            "readOnly": true
          },
          "entity_id": {
            "description": "Unique identifier of business entity associated with the transaction.",
            "format": "uuid",
            "nullable": true,
            "type": "string",
            "x-relationship": {
              "inverse_field_name": null,
              "reference_field_name": "id",
              "target_resource": "entities",
              "type": "many-to-one"
            }
          },
          "external_approval": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ExternalApproval"
              }
            ],
            "description": "The current approval step awaiting the external approver. Only included when filtering by `awaiting_approval_by_external_approver`.",
            "readOnly": true
          },
          "fund_id": {
            "description": "Unique identifier of the fund associated with the transaction. Returns the same value as `limit_id`.",
            "format": "uuid",
            "readOnly": true,
            "type": "string",
            "x-relationship": {
              "inverse_field_name": null,
              "reference_field_name": "id",
              "target_resource": "funds",
              "type": "many-to-one"
            }
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "limit_id": {
            "deprecated": true,
            "description": "Alias of fund (`fund_id`). Unique identifier of the spend limit associated with the transaction. Returns the same value as `fund_id`.",
            "format": "uuid",
            "type": "string",
            "x-relationship": {
              "inverse_field_name": null,
              "reference_field_name": "id",
              "target_resource": "limits",
              "type": "many-to-one"
            }
          },
          "line_items": {
            "description": "List of line items related to the transaction.",
            "items": {
              "$ref": "#/components/schemas/ApiTransactionLineItem"
            },
            "type": "array"
          },
          "memo": {
            "nullable": true,
            "type": "string"
          },
          "merchant_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiSignedAmount"
              }
            ],
            "description": "The original amount charged by the merchant, in the currency the merchant charged. The value is in the smallest denomination of that currency (e.g. cents) and is signed: refunds and credits can be negative. Equal to `entity_amount` when no currency conversion occurred. Null when the original amount data is unavailable or invalid.",
            "nullable": true,
            "readOnly": true
          },
          "merchant_category_code": {
            "description": "Merchant category code is a four-digit number in ISP 18245 used to classify a business by the types of goods and services it provides.",
            "type": "string"
          },
          "merchant_category_code_description": {
            "description": "Description about the merchant category code.",
            "type": "string"
          },
          "merchant_data": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiTransactionPurchaseData"
              }
            ],
            "description": "Purchase data associated related to a transaction provided by the merchant"
          },
          "merchant_descriptor": {
            "description": "A merchant descriptor is the name that appears on a customer's bank statement when they make a purchase from that merchant.",
            "type": "string"
          },
          "merchant_id": {
            "format": "uuid",
            "nullable": true,
            "type": "string",
            "x-relationship": {
              "inverse_field_name": null,
              "reference_field_name": "id",
              "target_resource": "merchants",
              "type": "many-to-one"
            }
          },
          "merchant_location": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiMerchantLocation"
              }
            ],
            "description": "Card acceptor data such as country, city, state, and postal code if available.",
            "nullable": true
          },
          "merchant_name": {
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "minor_unit_conversion_rate": {
            "description": "The conversion factor to convert from the integer amount to the actual currency value. Divide amount by this value to get the real currency amount. For USD, this is 100 (e.g., 12034 / 100 = 120.34 USD).",
            "nullable": true,
            "readOnly": true,
            "type": "integer"
          },
          "network_merchant_id": {
            "description": "Network merchant identifier from the card acceptor.",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "original_transaction_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CurrencyAmount"
              }
            ],
            "description": "the original transaction amount before the currency conversion.",
            "nullable": true
          },
          "original_transaction_id": {
            "description": "Original transaction id for refund transactions.",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "policy_violations": {
            "description": "A list of policy violations sorted in descending order by their creation time.",
            "items": {
              "$ref": "#/components/schemas/ApiTransactionPolicyViolation"
            },
            "readOnly": true,
            "type": "array"
          },
          "receipt_affidavit": {
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "receipts": {
            "description": "Receipts listed in ascending order by their creation time, related to the transaction.",
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "readOnly": true,
            "type": "array"
          },
          "requires_accounting_vendor_creation_to_sync": {
            "description": "Whether the integrator must create an accounting vendor and code it to this transaction before syncing. True when the connection has transaction_accounting_vendor_creation_on_sync_enabled=true and the transaction has no vendor accounting field selection. Omitted when transaction_accounting_vendor_creation_on_sync_enabled=false.",
            "readOnly": true,
            "type": "boolean"
          },
          "settlement_date": {
            "description": "Time when funds were moved for a transaction, in ISO8601 format.",
            "format": "date-time",
            "type": "string"
          },
          "sk_category_id": {
            "description": "Ramp category code.",
            "enum": [
              1,
              10,
              11,
              12,
              13,
              14,
              15,
              16,
              17,
              18,
              19,
              2,
              20,
              21,
              23,
              24,
              25,
              26,
              27,
              28,
              29,
              3,
              30,
              31,
              32,
              33,
              34,
              35,
              36,
              37,
              38,
              39,
              4,
              40,
              41,
              42,
              43,
              44,
              5,
              6,
              7,
              8,
              9
            ],
            "nullable": true,
            "readOnly": true,
            "type": "integer",
            "x-enum-descriptions": {
              "1": "Pet",
              "10": "Shipping",
              "11": "Utilities",
              "12": "Office supplies and cleaning",
              "13": "General merchandise",
              "14": "Electronics",
              "15": "Clothing",
              "16": "Books and newspapers",
              "17": "Supermarkets and grocery stores",
              "18": "Fuel and gas",
              "19": "Restaurants",
              "2": "Other",
              "20": "Alcohol and bars",
              "21": "Medical",
              "23": "Fees and financial institutions",
              "24": "Entertainment",
              "25": "Professional services",
              "26": "Taxes and tax preparation",
              "27": "Advertising",
              "28": "Parking",
              "29": "Car services",
              "3": "Office",
              "30": "Gambling",
              "31": "Clubs and memberships",
              "32": "Legal",
              "33": "Education",
              "34": "Charitable donations",
              "35": "Political organizations",
              "36": "Religious organizations",
              "37": "Fines",
              "38": "Government services",
              "39": "Intra-company purchases",
              "4": "Airlines",
              "40": "SaaS / Software",
              "41": "Cloud computing",
              "42": "Streaming services",
              "43": "Internet and phone",
              "44": "Insurance",
              "5": "Car rental",
              "6": "Lodging",
              "7": "Travel miscellaneous",
              "8": "Taxi and rideshare",
              "9": "Freight, moving and delivery services"
            }
          },
          "sk_category_name": {
            "description": "Ramp category name.",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "spend_program_id": {
            "description": "Unique identifier of the spend program from which this limit was issued.",
            "format": "uuid",
            "type": "string",
            "x-relationship": {
              "inverse_field_name": null,
              "reference_field_name": "id",
              "target_resource": "spend_programs",
              "type": "many-to-one"
            }
          },
          "state": {
            "description": "transaction state.",
            "enum": [
              "ALL",
              "CLEARED",
              "COMPLETION",
              "DECLINED",
              "ERROR",
              "PENDING",
              "PENDING_INITIATION"
            ],
            "type": "string",
            "x-enum-descriptions": {
              "ALL": "Special filter value to include all transaction states",
              "CLEARED": "Transaction has been cleared and settled",
              "COMPLETION": "Transaction has completed processing",
              "DECLINED": "Transaction was declined",
              "ERROR": "Transaction encountered an error during processing",
              "PENDING": "Transaction is pending and has not yet cleared",
              "PENDING_INITIATION": "Transaction has not yet been initiated"
            }
          },
          "statement_id": {
            "description": "Statement ID associated with the transaction if one is available.",
            "format": "uuid",
            "type": "string",
            "x-relationship": {
              "inverse_field_name": null,
              "reference_field_name": "id",
              "target_resource": "statements",
              "type": "many-to-one"
            }
          },
          "sync_status": {
            "enum": [
              "NOT_SYNC_READY",
              "SYNCED",
              "SYNC_READY"
            ],
            "readOnly": true,
            "type": "string",
            "x-enum-descriptions": {
              "NOT_SYNC_READY": "The object is missing required accounting setup and is not ready to sync.",
              "SYNCED": "The object has already been synced to the accounting provider.",
              "SYNC_READY": "The object is ready to sync to the accounting provider."
            }
          },
          "synced_at": {
            "description": "Time when transaction has been synced, in ISO8601 format. Will be None if the transaction is not synced.",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "trip_id": {
            "description": "Trip ID associated with the transaction if one is available.",
            "format": "uuid",
            "nullable": true,
            "type": "string",
            "x-relationship": {
              "inverse_field_name": null,
              "reference_field_name": "id",
              "target_resource": "trips",
              "type": "many-to-one"
            }
          },
          "trip_name": {
            "description": "Trip name associated with the transaction if one is available.",
            "nullable": true,
            "type": "string"
          },
          "updated_at": {
            "description": "Approximate transaction updated timestamp used by the `updated_after` filter. Computed as the latest of user transaction time, settlement time, and transaction interaction state update time.",
            "format": "date-time",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "user_transaction_time": {
            "description": "Time when the transaction was created by the user, in ISO8601 format.",
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "accounting_date",
          "all_requirements_met_and_approved",
          "card_present",
          "entity_amount",
          "entity_id",
          "merchant_amount",
          "merchant_id",
          "merchant_location",
          "minor_unit_conversion_rate",
          "network_merchant_id",
          "original_transaction_amount",
          "original_transaction_id",
          "sk_category_id",
          "sk_category_name",
          "sync_status",
          "synced_at",
          "trip_id",
          "trip_name",
          "updated_at"
        ],
        "type": "object",
        "x-resource-name": "transactions"
      },
      "SkCategoryItem": {
        "properties": {
          "id": {
            "description": "Ramp merchant-category ID (SK category ID) for spend-control policies, including Agent Wallet allowed_category_codes. This is not a raw MCC or an accounting/tracking-category ID.",
            "title": "Id",
            "type": "integer"
          },
          "name": {
            "description": "Ramp merchant-category display name",
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "title": "SkCategoryItem",
        "type": "object"
      },
      "SortByRequestBody": {
        "enum": [
          "merchant",
          "transaction_date",
          "user"
        ],
        "title": "SortBy",
        "type": "string"
      },
      "SortDirectionRequestBody": {
        "enum": [
          "asc",
          "desc"
        ],
        "title": "SortDirection",
        "type": "string"
      },
      "SortRequestBody": {
        "properties": {
          "direction": {
            "$ref": "#/components/schemas/SortDirectionRequestBody"
          },
          "sort_by": {
            "$ref": "#/components/schemas/SortByRequestBody"
          }
        },
        "required": [
          "direction",
          "sort_by"
        ],
        "title": "Sort",
        "type": "object"
      },
      "SourcingEventCurrentRFXSummary": {
        "properties": {
          "accepted_vendor_count": {
            "default": null,
            "nullable": true,
            "title": "Accepted Vendor Count",
            "type": "integer"
          },
          "current_rfx_close_date": {
            "default": null,
            "description": "RSVP due date of the current RFX, if one is set",
            "format": "date",
            "nullable": true,
            "title": "Current Rfx Close Date",
            "type": "string"
          },
          "current_rfx_id": {
            "description": "UUID of the current RFX",
            "title": "Current Rfx Id",
            "type": "string"
          },
          "current_rfx_name": {
            "description": "Name of the current RFX",
            "title": "Current Rfx Name",
            "type": "string"
          },
          "current_rfx_status": {
            "description": "Status of the current RFX",
            "title": "Current Rfx Status",
            "type": "string"
          },
          "current_rfx_type": {
            "description": "Type of the current RFX",
            "title": "Current Rfx Type",
            "type": "string"
          },
          "grading_completed_count": {
            "default": null,
            "nullable": true,
            "title": "Grading Completed Count",
            "type": "integer"
          },
          "grading_total_count": {
            "default": null,
            "nullable": true,
            "title": "Grading Total Count",
            "type": "integer"
          },
          "invited_vendor_count": {
            "default": null,
            "nullable": true,
            "title": "Invited Vendor Count",
            "type": "integer"
          },
          "responded_vendor_count": {
            "default": null,
            "nullable": true,
            "title": "Responded Vendor Count",
            "type": "integer"
          }
        },
        "required": [
          "current_rfx_id",
          "current_rfx_name",
          "current_rfx_status",
          "current_rfx_type"
        ],
        "title": "SourcingEventCurrentRFXSummary",
        "type": "object"
      },
      "SourcingEventListItem": {
        "properties": {
          "accepted_vendor_count": {
            "default": null,
            "description": "Number of active invited vendors that have accepted the current RFX",
            "nullable": true,
            "title": "Accepted Vendor Count",
            "type": "integer"
          },
          "current_rfx_close_date": {
            "default": null,
            "description": "RSVP due date for the current RFX, if one exists",
            "format": "date",
            "nullable": true,
            "title": "Current Rfx Close Date",
            "type": "string"
          },
          "current_rfx_id": {
            "default": null,
            "description": "UUID of the current RFX for this sourcing event, if one exists",
            "nullable": true,
            "title": "Current Rfx Id",
            "type": "string"
          },
          "current_rfx_name": {
            "default": null,
            "description": "Name of the current RFX for this sourcing event, if one exists",
            "nullable": true,
            "title": "Current Rfx Name",
            "type": "string"
          },
          "current_rfx_status": {
            "default": null,
            "description": "Status of the current RFX, if one exists",
            "nullable": true,
            "title": "Current Rfx Status",
            "type": "string"
          },
          "current_rfx_type": {
            "default": null,
            "description": "Type of the current RFX (RFI, RFP, RFQ), if one exists",
            "nullable": true,
            "title": "Current Rfx Type",
            "type": "string"
          },
          "grading_completed_count": {
            "default": null,
            "description": "Number of submitted current-RFX responses whose grading is complete",
            "nullable": true,
            "title": "Grading Completed Count",
            "type": "integer"
          },
          "grading_total_count": {
            "default": null,
            "description": "Number of submitted current-RFX responses that are being tracked for grading",
            "nullable": true,
            "title": "Grading Total Count",
            "type": "integer"
          },
          "invited_vendor_count": {
            "default": null,
            "description": "Number of active vendor invitations on the current RFX",
            "nullable": true,
            "title": "Invited Vendor Count",
            "type": "integer"
          },
          "name": {
            "description": "Name of the sourcing event",
            "title": "Name",
            "type": "string"
          },
          "owner_name": {
            "default": null,
            "description": "Full name of the sourcing event owner, when available",
            "nullable": true,
            "title": "Owner Name",
            "type": "string"
          },
          "responded_vendor_count": {
            "default": null,
            "description": "Number of active invited vendors that have submitted a response to the current RFX",
            "nullable": true,
            "title": "Responded Vendor Count",
            "type": "integer"
          },
          "sourcing_event_id": {
            "description": "UUID of the sourcing event",
            "title": "Sourcing Event Id",
            "type": "string"
          },
          "status": {
            "description": "Lifecycle status of the sourcing event",
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "name",
          "sourcing_event_id",
          "status"
        ],
        "title": "SourcingEventListItem",
        "type": "object"
      },
      "SourcingEventRFXSummary": {
        "properties": {
          "accepted_vendor_count": {
            "description": "Number of active invited vendors that accepted this RFX",
            "title": "Accepted Vendor Count",
            "type": "integer"
          },
          "close_date": {
            "default": null,
            "description": "RSVP due date for the RFX, if one is set",
            "format": "date",
            "nullable": true,
            "title": "Close Date",
            "type": "string"
          },
          "description": {
            "default": null,
            "description": "Optional description of the RFX",
            "nullable": true,
            "title": "Description",
            "type": "string"
          },
          "invited_vendor_count": {
            "description": "Number of active vendor invitations on this RFX",
            "title": "Invited Vendor Count",
            "type": "integer"
          },
          "name": {
            "description": "Name of the RFX",
            "title": "Name",
            "type": "string"
          },
          "responded_vendor_count": {
            "description": "Number of active invited vendors that submitted a response",
            "title": "Responded Vendor Count",
            "type": "integer"
          },
          "revoked_vendor_count": {
            "description": "Number of revoked vendor invitations on this RFX",
            "title": "Revoked Vendor Count",
            "type": "integer"
          },
          "rfx_id": {
            "description": "UUID of the RFX",
            "title": "Rfx Id",
            "type": "string"
          },
          "rfx_type": {
            "description": "Type of RFX, such as RFI, RFP, or RFQ",
            "title": "Rfx Type",
            "type": "string"
          },
          "sections_count": {
            "description": "Number of sections in the questionnaire",
            "title": "Sections Count",
            "type": "integer"
          },
          "status": {
            "description": "Lifecycle status of the RFX",
            "title": "Status",
            "type": "string"
          },
          "vendors": {
            "description": "Vendor invitations grouped under this RFX",
            "items": {
              "$ref": "#/components/schemas/SourcingEventVendorSummary"
            },
            "title": "Vendors",
            "type": "array"
          }
        },
        "required": [
          "accepted_vendor_count",
          "invited_vendor_count",
          "name",
          "responded_vendor_count",
          "revoked_vendor_count",
          "rfx_id",
          "rfx_type",
          "sections_count",
          "status"
        ],
        "title": "SourcingEventRFXSummary",
        "type": "object"
      },
      "SourcingEventVendorSummary": {
        "properties": {
          "acceptance_status": {
            "description": "Vendor acceptance status, such as PENDING or ACCEPTED",
            "title": "Acceptance Status",
            "type": "string"
          },
          "contact_name": {
            "default": null,
            "description": "Name or email of the contact attached to the invitation",
            "nullable": true,
            "title": "Contact Name",
            "type": "string"
          },
          "has_submitted_response": {
            "description": "Whether this invited vendor has submitted a response",
            "title": "Has Submitted Response",
            "type": "boolean"
          },
          "invitation_id": {
            "description": "UUID of the vendor invitation",
            "title": "Invitation Id",
            "type": "string"
          },
          "invitation_status": {
            "description": "Invitation lifecycle status, such as ACTIVE or REVOKED",
            "title": "Invitation Status",
            "type": "string"
          },
          "vendor_name": {
            "description": "Vendor name",
            "title": "Vendor Name",
            "type": "string"
          },
          "vendor_uuid": {
            "default": null,
            "description": "UUID of the vendor payee, when available",
            "nullable": true,
            "title": "Vendor Uuid",
            "type": "string"
          }
        },
        "required": [
          "acceptance_status",
          "has_submitted_response",
          "invitation_id",
          "invitation_status",
          "vendor_name"
        ],
        "title": "SourcingEventVendorSummary",
        "type": "object"
      },
      "SpendAllocationBalanceData": {
        "description": "Utilization for the fund's current limit period, in the currency's largest unit.",
        "properties": {
          "accrued_rollover_amount": {
            "default": null,
            "nullable": true,
            "title": "Accrued Rollover Amount",
            "type": "number"
          },
          "currency": {
            "title": "Currency",
            "type": "string"
          },
          "limit_amount": {
            "description": "Active period limit in major currency units, including temporary adjustments and excluding rollover. Not the permanent reset limit or remaining balance.",
            "title": "Limit Amount",
            "type": "number"
          },
          "remaining_amount": {
            "title": "Remaining Amount",
            "type": "number"
          },
          "spent_amount": {
            "title": "Spent Amount",
            "type": "number"
          }
        },
        "required": [
          "currency",
          "limit_amount",
          "remaining_amount",
          "spent_amount"
        ],
        "title": "SpendAllocationBalanceData",
        "type": "object"
      },
      "SpendAllocationInfo": {
        "properties": {
          "agent_card_eligible": {
            "default": null,
            "description": "Whether this fund can be used for agent (virtual) card payments. True when the fund is active and permits virtual cards.",
            "nullable": true,
            "title": "Agent Card Eligible",
            "type": "boolean"
          },
          "allocation_url": {
            "default": null,
            "description": "Deep link URL to view this fund/allocation in the Ramp web app.",
            "nullable": true,
            "title": "Allocation Url",
            "type": "string"
          },
          "balance_data": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SpendAllocationBalanceData"
              }
            ],
            "default": null,
            "description": "Authoritative fund utilization for the current limit period. remaining_amount already accounts for applicable rollover, cleared charges and pending authorizations. Do not subtract those amounts again. A confirmed booking is only included when it has already produced a charge or pending authorization; confirmation alone does not mean a postpaid future charge has been deducted. A locked fund keeps its remaining_amount, but nothing can be spent from it until it is unlocked; check lock. Null when the user cannot view this fund's limit details.",
            "nullable": true
          },
          "id": {
            "$ref": "#/components/schemas/EntityUUIDStr"
          },
          "is_ramp_card_limit": {
            "default": false,
            "description": "True for the cardholder's default spend allocation: their own Ramp Card limit (usually named 'Ramp Card'), rather than a separate budget. Charges can be moved onto it like any other fund. Omitted when false.",
            "title": "Is Ramp Card Limit",
            "type": "boolean"
          },
          "last_used_at": {
            "default": null,
            "description": "When the fund last had spend recorded against it (ISO 8601); null when it has never been used.",
            "nullable": true,
            "title": "Last Used At",
            "type": "string"
          },
          "lock": {
            "allOf": [
              {
                "$ref": "#/components/schemas/LockInfo"
              }
            ],
            "default": null,
            "description": "Set when the whole fund is locked and can't be spent from; reason says why and how to unlock. Null when the fund is not locked.",
            "nullable": true
          },
          "member_locks": {
            "description": "Members individually locked out of this fund.",
            "items": {
              "$ref": "#/components/schemas/MemberLockInfo"
            },
            "title": "Member Locks",
            "type": "array"
          },
          "members": {
            "items": {
              "$ref": "#/components/schemas/MemberInfo"
            },
            "title": "Members",
            "type": "array"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "primary_card_eligible": {
            "default": null,
            "description": "Whether this fund can be linked to a physical (primary) card with LinkFundToPrimaryCard. True when the fund is active and permits primary-card spend. Linking also requires the cardholder to be a member of the fund and the fund's currency to match the card. Never offer to link a fund where this is false.",
            "nullable": true,
            "title": "Primary Card Eligible",
            "type": "boolean"
          },
          "restrictions": {
            "default": null,
            "nullable": true,
            "title": "Restrictions",
            "type": "string"
          },
          "restrictions_data": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SpendAllocationRestrictionsData"
              }
            ],
            "default": null,
            "description": "Structured restriction values for programmatic use. Use these raw values instead of parsing the formatted 'restrictions' string.",
            "nullable": true
          },
          "state": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SpendAllocationState"
              }
            ],
            "default": null,
            "nullable": true
          }
        },
        "required": [
          "id",
          "name"
        ],
        "title": "SpendAllocationInfo",
        "type": "object"
      },
      "SpendAllocationRestrictionsData": {
        "description": "Structured restriction values for programmatic use.\n\nAll monetary amounts are in the fund's currency's largest unit\n(e.g. 27500.00 USD, 3000000 JPY). Use these values instead of parsing\nthe formatted 'restrictions' string when constructing API payloads.",
        "properties": {
          "auto_lock_date": {
            "default": null,
            "description": "Auto lock date as ISO 8601 string. The PATCH endpoint also accepts this as 'lock_date'.",
            "nullable": true,
            "title": "Auto Lock Date",
            "type": "string"
          },
          "categories_blacklist": {
            "default": null,
            "description": "Blocked category IDs",
            "items": {
              "type": "integer"
            },
            "nullable": true,
            "title": "Categories Blacklist",
            "type": "array"
          },
          "categories_whitelist": {
            "default": null,
            "description": "Allowed category IDs",
            "items": {
              "type": "integer"
            },
            "nullable": true,
            "title": "Categories Whitelist",
            "type": "array"
          },
          "currency": {
            "default": null,
            "description": "ISO currency code (e.g. USD, JPY, GBP)",
            "nullable": true,
            "title": "Currency",
            "type": "string"
          },
          "interval": {
            "default": null,
            "description": "Spend interval (e.g. TOTAL, MONTHLY)",
            "nullable": true,
            "title": "Interval",
            "type": "string"
          },
          "limit_amount": {
            "default": null,
            "description": "Permanent fund limit in major currency units (e.g. 27500.00 for USD). During a temporary adjustment, this is the reset amount, not the active period limit.",
            "nullable": true,
            "title": "Limit Amount",
            "type": "number"
          },
          "start_date": {
            "default": null,
            "description": "Fund start date as ISO 8601 string",
            "nullable": true,
            "title": "Start Date",
            "type": "string"
          },
          "transaction_amount_limit": {
            "default": null,
            "description": "Per-transaction limit in the currency's largest unit",
            "nullable": true,
            "title": "Transaction Amount Limit",
            "type": "number"
          },
          "vendor_blacklist": {
            "default": null,
            "description": "Blocked merchant IDs",
            "items": {
              "type": "integer"
            },
            "nullable": true,
            "title": "Vendor Blacklist",
            "type": "array"
          },
          "vendor_whitelist": {
            "default": null,
            "description": "Allowed merchant IDs",
            "items": {
              "type": "integer"
            },
            "nullable": true,
            "title": "Vendor Whitelist",
            "type": "array"
          }
        },
        "title": "SpendAllocationRestrictionsData",
        "type": "object"
      },
      "SpendAllocationSpendIntentIssueV2Type": {
        "enum": [
          "ASYNC",
          "SYNC"
        ],
        "title": "SpendAllocationSpendIntentIssueV2Type",
        "type": "string"
      },
      "SpendAllocationState": {
        "enum": [
          "ACTIVE",
          "ARCHIVED",
          "TERMINATED"
        ],
        "title": "SpendAllocationState",
        "type": "string"
      },
      "SpendAllocationStateRequestBody": {
        "enum": [
          "ACTIVE",
          "ARCHIVED",
          "TERMINATED"
        ],
        "title": "SpendAllocationState",
        "type": "string"
      },
      "SpendAllocationUserAccessRole": {
        "enum": [
          "COORDINATOR",
          "COOWNER",
          "MEMBER",
          "OWNER"
        ],
        "title": "SpendAllocationUserAccessRole",
        "type": "string",
        "x-enum-descriptions": {
          "COOWNER": "The user is a co-owner of the spend allocation.",
          "MEMBER": "The user is a non-owner member of the spend allocation.",
          "OWNER": "The user owns the spend allocation."
        }
      },
      "SpendDateBasis": {
        "additionalProperties": false,
        "description": "Per-spend-type dates used by the consolidated spend date dimension.",
        "properties": {
          "bill": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BillDateFilterType"
              }
            ],
            "default": "paid_at"
          },
          "reimbursement": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReimbursementDateFilterType"
              }
            ],
            "default": "transaction_date"
          },
          "transaction": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TransactionDateFilterType"
              }
            ],
            "default": "transaction_time"
          }
        },
        "title": "SpendDateBasis",
        "type": "object"
      },
      "SpendIntentDeleteActionRequestBody": {
        "enum": [
          "bulk_lock",
          "detach",
          "terminate",
          "transfer"
        ],
        "title": "SpendIntentDeleteAction",
        "type": "string"
      },
      "SpendInterval": {
        "enum": [
          "ANNUAL",
          "DAILY",
          "MONTHLY",
          "QUARTERLY",
          "TERTIARY",
          "TOTAL",
          "WEEKLY",
          "YEARLY"
        ],
        "title": "SpendInterval",
        "type": "string",
        "x-enum-descriptions": {
          "ANNUAL": "The spend limit resets on an annual cycle based on the request or fund start date.",
          "DAILY": "The spend limit resets daily.",
          "MONTHLY": "The spend limit resets monthly.",
          "QUARTERLY": "The spend limit resets every three months.",
          "TERTIARY": "The spend limit resets every four months.",
          "TOTAL": "The spend limit does not reset.",
          "WEEKLY": "The spend limit resets weekly.",
          "YEARLY": "The spend limit resets on the calendar year."
        }
      },
      "SpendIntervalRequestBody": {
        "enum": [
          "ANNUAL",
          "DAILY",
          "MONTHLY",
          "QUARTERLY",
          "TERTIARY",
          "TOTAL",
          "WEEKLY",
          "YEARLY"
        ],
        "title": "SpendInterval",
        "type": "string",
        "x-enum-descriptions": {
          "ANNUAL": "The spend limit resets on an annual cycle based on the request or fund start date.",
          "DAILY": "The spend limit resets daily.",
          "MONTHLY": "The spend limit resets monthly.",
          "QUARTERLY": "The spend limit resets every three months.",
          "TERTIARY": "The spend limit resets every four months.",
          "TOTAL": "The spend limit does not reset.",
          "WEEKLY": "The spend limit resets weekly.",
          "YEARLY": "The spend limit resets on the calendar year."
        }
      },
      "SpendItemTypeRequestBody": {
        "description": "The kind of spend item to check against the budget.",
        "enum": [
          "bill",
          "reimbursement",
          "transaction"
        ],
        "title": "SpendItemType",
        "type": "string"
      },
      "SpendLimitBaseResponseSchema": {
        "description": "Shared spend-limit summary returned by public and embedded responses.",
        "properties": {
          "amount": {
            "title": "Amount",
            "type": "number"
          },
          "auto_lock_enabled": {
            "title": "Auto Lock Enabled",
            "type": "boolean"
          },
          "current_spend": {
            "title": "Current Spend",
            "type": "number"
          },
          "estimated_days_until_limit": {
            "nullable": true,
            "title": "Estimated Days Until Limit",
            "type": "integer"
          },
          "interval": {
            "$ref": "#/components/schemas/SpendInterval"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "threshold_percentages": {
            "items": {
              "type": "integer"
            },
            "title": "Threshold Percentages",
            "type": "array"
          },
          "uuid": {
            "title": "Uuid",
            "type": "string"
          }
        },
        "required": [
          "amount",
          "auto_lock_enabled",
          "current_spend",
          "estimated_days_until_limit",
          "interval",
          "name",
          "threshold_percentages",
          "uuid"
        ],
        "title": "SpendLimitBaseResponseSchema",
        "type": "object"
      },
      "SpendReportQuerySettings": {
        "additionalProperties": false,
        "description": "Spend-owned execution settings.",
        "properties": {
          "line_item_grain": {
            "allOf": [
              {
                "$ref": "#/components/schemas/LineItemGrain"
              }
            ],
            "default": null,
            "nullable": true
          },
          "spend_date_basis": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SpendDateBasis"
              }
            ],
            "default": null,
            "nullable": true
          }
        },
        "title": "SpendReportQuerySettings",
        "type": "object"
      },
      "SpendRequestAISummaryInfo": {
        "properties": {
          "summary": {
            "title": "Summary",
            "type": "string"
          },
          "takeaways": {
            "items": {
              "type": "string"
            },
            "title": "Takeaways",
            "type": "array"
          }
        },
        "required": [
          "summary"
        ],
        "title": "SpendRequestAISummaryInfo",
        "type": "object"
      },
      "SpendRequestStatusRequestBody": {
        "enum": [
          "APPROVED",
          "DRAFT",
          "REJECTED",
          "SUBMITTED"
        ],
        "title": "SpendRequestStatus",
        "type": "string"
      },
      "SpendRequestSummary": {
        "properties": {
          "currency": {
            "default": null,
            "description": "ISO currency code",
            "nullable": true,
            "title": "Currency",
            "type": "string"
          },
          "id": {
            "description": "Spend request UUID",
            "title": "Id",
            "type": "string"
          },
          "name": {
            "default": null,
            "description": "Spend request name",
            "nullable": true,
            "title": "Name",
            "type": "string"
          },
          "source": {
            "default": null,
            "description": "Mapping source (RENEWAL or EXPANSION_REQUEST)",
            "nullable": true,
            "title": "Source",
            "type": "string"
          },
          "status": {
            "default": null,
            "description": "Request status",
            "nullable": true,
            "title": "Status",
            "type": "string"
          },
          "submitted_at": {
            "default": null,
            "description": "Submission timestamp",
            "format": "date-time",
            "nullable": true,
            "title": "Submitted At",
            "type": "string"
          },
          "total_amount": {
            "default": null,
            "description": "Total amount",
            "nullable": true,
            "title": "Total Amount",
            "type": "number"
          }
        },
        "required": [
          "id"
        ],
        "title": "SpendRequestSummary",
        "type": "object"
      },
      "SpendSourceAmountsJsonMode": {
        "properties": {
          "bill_pay_spend": {
            "description": "Bill pay spend",
            "format": "decimal",
            "title": "Bill Pay Spend",
            "type": "string"
          },
          "card_spend": {
            "description": "Card transaction spend",
            "format": "decimal",
            "title": "Card Spend",
            "type": "string"
          },
          "currency": {
            "description": "Currency the business paid in: card and reimbursement funding currency, or bill invoice currency. Not the merchant or receipt currency.",
            "title": "Currency",
            "type": "string"
          },
          "reimbursement_spend": {
            "description": "Reimbursement spend",
            "format": "decimal",
            "title": "Reimbursement Spend",
            "type": "string"
          }
        },
        "required": [
          "bill_pay_spend",
          "card_spend",
          "currency",
          "reimbursement_spend"
        ],
        "title": "SpendSourceAmounts",
        "type": "object"
      },
      "SpendSummaryJsonMode": {
        "properties": {
          "currency": {
            "default": null,
            "description": "Currency code (e.g., USD)",
            "nullable": true,
            "title": "Currency",
            "type": "string"
          },
          "itd_spend": {
            "default": null,
            "description": "All-time (inception-to-date) spend",
            "format": "decimal",
            "nullable": true,
            "title": "Itd Spend",
            "type": "string"
          },
          "l30d_spend": {
            "default": null,
            "description": "Last 30 days spend",
            "format": "decimal",
            "nullable": true,
            "title": "L30D Spend",
            "type": "string"
          },
          "l365d_by_source": {
            "default": null,
            "description": "Live last-365-day spend by payment source, one entry per paid currency; empty when there is no spend, null unless include_spend_breakdown=true or when live spend data is unavailable in this environment. Amounts are not converted to the summary currency and can differ slightly from the precomputed l365d_spend.",
            "items": {
              "$ref": "#/components/schemas/SpendSourceAmountsJsonMode"
            },
            "nullable": true,
            "title": "L365D By Source",
            "type": "array"
          },
          "l365d_cardholder_count": {
            "default": null,
            "description": "Number of distinct users with net card spend at this vendor in the last 365 days; null when l365d_by_source is null",
            "nullable": true,
            "title": "L365D Cardholder Count",
            "type": "integer"
          },
          "l365d_spend": {
            "default": null,
            "description": "Last 365 days spend",
            "format": "decimal",
            "nullable": true,
            "title": "L365D Spend",
            "type": "string"
          },
          "ytd_spend": {
            "default": null,
            "description": "Year-to-date spend",
            "format": "decimal",
            "nullable": true,
            "title": "Ytd Spend",
            "type": "string"
          }
        },
        "title": "SpendSummary",
        "type": "object"
      },
      "Starlink": {
        "additionalProperties": false,
        "description": "Starlink evidence for one leg; it shows in place of the leg's Wi-Fi.\n\n`probability` is the 0-1 estimate behind a \"historical\" status, which needs it.\nThe renderer never presents Starlink as guaranteed.",
        "properties": {
          "probability": {
            "default": null,
            "maximum": 1,
            "minimum": 0,
            "nullable": true,
            "title": "Probability",
            "type": "number"
          },
          "status": {
            "enum": [
              "expected",
              "historical",
              "reported",
              "verified"
            ],
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "status"
        ],
        "title": "Starlink",
        "type": "object"
      },
      "Statement": {
        "example": {
          "balance_sections": [
            {
              "charges": {
                "amount": 180061925,
                "currency_code": "USD"
              },
              "credits": {
                "amount": 0,
                "currency_code": "USD"
              },
              "ending_balance": {
                "amount": 178098867,
                "currency_code": "USD"
              },
              "entity_id": "9d8abf0f-389c-4a18-816e-a6e1c5784624",
              "id": "6ff695fd-b09b-4529-a622-545d6c059129",
              "opening_balance": {
                "amount": 0,
                "currency_code": "USD"
              },
              "payments": {
                "amount": 1963058,
                "currency_code": "USD"
              }
            }
          ],
          "charges": {
            "amount": 180061925,
            "currency_code": "USD"
          },
          "credits": {
            "amount": 0,
            "currency_code": "USD"
          },
          "end_date": "2023-05-08T08:39:37+00:00",
          "ending_balance": {
            "amount": 178098867,
            "currency_code": "USD"
          },
          "id": "df44006c-410b-420e-80a2-1522a2e5b722",
          "opening_balance": {
            "amount": 0,
            "currency_code": "USD"
          },
          "payments": {
            "amount": 1963058,
            "currency_code": "USD"
          },
          "start_date": "2023-05-06T08:51:57+00:00",
          "statement_lines": [
            {
              "id": "06a09605-b0b8-4c89-b29f-d12c6aabac58",
              "type": "CARD_TRANSACTION"
            },
            {
              "id": "0f01bc2d-04cf-407a-8442-bcbdaf1c07f8",
              "type": "CARD_TRANSACTION"
            },
            {
              "id": "2682717d-8231-46f2-9e02-c0f4f7ef410a",
              "type": "TRANSFER_PAYMENT"
            },
            {
              "id": "415fe9fb-1608-4cd6-ac8b-d2fbb85bdc11",
              "type": "CARD_TRANSACTION"
            },
            {
              "id": "4c7700b6-1ff9-4228-9b13-73b38d5a7623",
              "type": "CARD_TRANSACTION"
            },
            {
              "id": "61b89311-f0b3-4689-91ee-8edb72054de4",
              "type": "CARD_TRANSACTION"
            },
            {
              "id": "78c9eac8-67ae-443d-998a-f416e959225c",
              "type": "CASHBACK"
            },
            {
              "id": "af87a6bd-929a-4de6-85f3-0105a046a608",
              "type": "CARD_TRANSACTION"
            }
          ],
          "statement_url": "https://customer-documents.ramp.com/card_statement/business_00000000-0000-4000-8000-000000000000/20230508_11111111-1111-7111-8111-111111111111.pdf?response-content-disposition=attachment%3B+filename%3D%222023-05-06-my-widget-store-overview.pdf%22&Expires=1704717900&Signature=EXAMPLESIGNATURE__&Key-Pair-Id=K1EXAMPLEKEYID&Hash-Algorithm=SHA256"
        },
        "properties": {
          "balance_sections": {
            "description": "Breakdown of statement balances by entity and currency.",
            "items": {
              "$ref": "#/components/schemas/StatementBalanceSection"
            },
            "type": "array"
          },
          "charges": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CurrencyAmount"
              }
            ],
            "deprecated": true,
            "description": "Total charges incurred during the statement period"
          },
          "credits": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CurrencyAmount"
              }
            ],
            "deprecated": true,
            "description": "Total credits accumulated during the statement period"
          },
          "end_date": {
            "description": "End date of the statement period.",
            "format": "date-time",
            "type": "string"
          },
          "ending_balance": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CurrencyAmount"
              }
            ],
            "deprecated": true,
            "description": "Balance at the end of the statement period"
          },
          "id": {
            "description": "Unique identifier for the statement.",
            "format": "uuid",
            "type": "string"
          },
          "opening_balance": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CurrencyAmount"
              }
            ],
            "deprecated": true,
            "description": "Balance at the beginning of the statement period"
          },
          "payments": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CurrencyAmount"
              }
            ],
            "deprecated": true,
            "description": "Total payments made during the statement period"
          },
          "preceding_statement_id": {
            "description": "Identifier of the previous statement in sequence.",
            "format": "uuid",
            "type": "string",
            "x-relationship": {
              "inverse_field_name": null,
              "reference_field_name": "id",
              "target_resource": "statements",
              "type": "one-to-one"
            }
          },
          "start_date": {
            "description": "Start date of the statement period.",
            "format": "date-time",
            "type": "string"
          },
          "statement_lines": {
            "description": "Financial activities including card transactions, transfers, and cashbacks during the statement period.",
            "items": {
              "$ref": "#/components/schemas/ApiStatementItem"
            },
            "type": "array"
          },
          "statement_url": {
            "description": "Pre-signed URL to download statement PDF, valid for 1 hour after generation.",
            "format": "url",
            "type": "string"
          }
        },
        "required": [
          "balance_sections",
          "charges",
          "credits",
          "end_date",
          "ending_balance",
          "id",
          "opening_balance",
          "payments",
          "start_date",
          "statement_lines"
        ],
        "type": "object",
        "x-resource-name": "statements"
      },
      "StatementBalanceBreakdownJsonMode": {
        "description": "Per-entity, per-currency breakdown of a card statement balance.",
        "properties": {
          "amount_spent": {
            "description": "Total card spend that posted during this statement period.",
            "format": "decimal",
            "title": "Amount Spent",
            "type": "string"
          },
          "curr_balance": {
            "description": "The remaining unpaid balance on this section right now, after payments made since the statement closed. Clamped at 0 (an overpaid section shows 0, not a negative balance). If > 0, the customer still owes this amount.",
            "format": "decimal",
            "title": "Curr Balance",
            "type": "string"
          },
          "currency": {
            "description": "ISO currency code for this balance section.",
            "title": "Currency",
            "type": "string"
          },
          "due_date": {
            "description": "Due date for this specific section. Multi-entity / extended-terms statements can have different due dates per section, so use this rather than assuming one date for the whole statement.",
            "format": "date",
            "title": "Due Date",
            "type": "string"
          },
          "entity_uuid": {
            "description": "UUID of the entity this balance section is for.",
            "title": "Entity Uuid",
            "type": "string"
          },
          "payments_applied": {
            "description": "Statement payments (ACH / wire / RBA / push) applied SINCE the statement was issued. Payments made during the period are already netted into statement_balance_due.",
            "format": "decimal",
            "title": "Payments Applied",
            "type": "string"
          },
          "prev_balance": {
            "description": "Balance carried over from the previous statement period (a starting balance, not new spend).",
            "format": "decimal",
            "title": "Prev Balance",
            "type": "string"
          },
          "statement_balance_due": {
            "description": "Amount the statement asked the customer to pay when it was issued \u2014 the issued balance, net of any payments and credits already applied during the period (prev_balance + amount_spent - statement_credit - payments_made). Not the gross spend.",
            "format": "decimal",
            "title": "Statement Balance Due",
            "type": "string"
          },
          "statement_credits_applied": {
            "description": "Cashback / promotional credits applied SINCE the statement was issued. Credits applied during the period are already netted into statement_balance_due.",
            "format": "decimal",
            "title": "Statement Credits Applied",
            "type": "string"
          }
        },
        "required": [
          "amount_spent",
          "curr_balance",
          "currency",
          "due_date",
          "entity_uuid",
          "payments_applied",
          "prev_balance",
          "statement_balance_due",
          "statement_credits_applied"
        ],
        "title": "StatementBalanceBreakdown",
        "type": "object"
      },
      "StatementBalanceSection": {
        "properties": {
          "charges": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CurrencyAmount"
              }
            ],
            "description": "Total charges incurred during the statement period."
          },
          "credits": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CurrencyAmount"
              }
            ],
            "description": "Total credits accumulated during the statement period."
          },
          "ending_balance": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CurrencyAmount"
              }
            ],
            "description": "Balance at the end of the statement period."
          },
          "entity_id": {
            "description": "Business entity this balance section belongs to.",
            "format": "uuid",
            "type": "string",
            "x-relationship": {
              "inverse_field_name": null,
              "reference_field_name": "id",
              "target_resource": "entities",
              "type": "many-to-one"
            }
          },
          "id": {
            "description": "Unique identifier for the balance section.",
            "format": "uuid",
            "type": "string"
          },
          "opening_balance": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CurrencyAmount"
              }
            ],
            "description": "Balance at the beginning of the statement period."
          },
          "payments": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CurrencyAmount"
              }
            ],
            "description": "Total payments made during the statement period."
          }
        },
        "required": [
          "charges",
          "credits",
          "ending_balance",
          "entity_id",
          "id",
          "opening_balance",
          "payments"
        ],
        "type": "object"
      },
      "StringFieldState": {
        "properties": {
          "description": {
            "title": "Description",
            "type": "string"
          },
          "fulfilled": {
            "title": "Fulfilled",
            "type": "boolean"
          },
          "required": {
            "title": "Required",
            "type": "boolean"
          },
          "value": {
            "nullable": true,
            "title": "Value",
            "type": "string"
          }
        },
        "required": [
          "description",
          "fulfilled",
          "required",
          "value"
        ],
        "title": "StringFieldState",
        "type": "object"
      },
      "StructuredReceiptDataJsonMode": {
        "properties": {
          "currency_code": {
            "default": null,
            "nullable": true,
            "title": "Currency Code",
            "type": "string"
          },
          "discounts": {
            "default": null,
            "nullable": true,
            "title": "Discounts"
          },
          "fees": {
            "default": null,
            "nullable": true,
            "title": "Fees"
          },
          "is_itemized": {
            "default": null,
            "nullable": true,
            "title": "Is Itemized",
            "type": "boolean"
          },
          "line_items": {
            "default": null,
            "nullable": true,
            "title": "Line Items"
          },
          "merchant_address": {
            "default": null,
            "nullable": true,
            "title": "Merchant Address",
            "type": "string"
          },
          "merchant_name": {
            "default": null,
            "nullable": true,
            "title": "Merchant Name",
            "type": "string"
          },
          "subtotal": {
            "default": null,
            "nullable": true,
            "title": "Subtotal",
            "type": "number"
          },
          "taxes": {
            "default": null,
            "nullable": true,
            "title": "Taxes"
          },
          "tip": {
            "default": null,
            "nullable": true,
            "title": "Tip",
            "type": "number"
          },
          "total_amount": {
            "default": null,
            "nullable": true,
            "title": "Total Amount",
            "type": "number"
          },
          "transaction_date": {
            "default": null,
            "description": "Transaction date from receipt (ISO format)",
            "nullable": true,
            "title": "Transaction Date",
            "type": "string"
          }
        },
        "title": "StructuredReceiptData",
        "type": "object"
      },
      "SubmitDraftBillRequestBody": {
        "description": "Submit a DRAFT_READY bill draft so it becomes a bill and enters approval. Readiness requires at least one bill date, an active existing vendor with required bill-pay details, invoice currency, a positive amount, complete line items, required accounting fields, no duplicate vendor invoice number, and no submission-policy violation. The bill keeps the same ID as the draft. The call waits up to about 10 seconds for the bill to be created: creation_status is CREATED when the bill exists, or PENDING when creation is still running in the background. If creation fails during the wait, an error is returned. Some submissions require identity verification that agents cannot complete; in that case the error includes a redirect_url that the human user must open in a browser to finish submitting in the Ramp web app. This action does not schedule, release, or pay the bill.",
        "properties": {
          "draft_bill_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UUIDStrRequestBody"
              }
            ],
            "description": "UUID of the active DRAFT_READY bill draft to submit."
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "draft_bill_id",
          "rationale"
        ],
        "title": "SubmitDraftBill",
        "type": "object"
      },
      "SubmitDraftBillResult": {
        "properties": {
          "bill_id": {
            "description": "UUID of the bill being created. It is the same UUID as the draft bill and remains the stable identifier after submission.",
            "title": "Bill Id",
            "type": "string"
          },
          "bill_url": {
            "default": null,
            "description": "Link to the bill page in the Ramp web app.",
            "nullable": true,
            "title": "Bill Url",
            "type": "string"
          },
          "creation_job_id": {
            "default": null,
            "description": "Background bill-creation job UUID, set only when PENDING.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "creation_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BillCreationStatus"
              }
            ],
            "default": "CREATED",
            "description": "CREATED if the bill exists, PENDING if it was still being created."
          },
          "message": {
            "description": "Human-readable summary of the submission outcome.",
            "title": "Message",
            "type": "string"
          }
        },
        "required": [
          "bill_id",
          "message"
        ],
        "title": "SubmitDraftBillResult",
        "type": "object"
      },
      "SubmitFlightBookingRequestBody": {
        "description": "Book a selected flight offer.\n\nFour explicit actions: use action=preview for an authoritative preview, action=save_seats to update a persisted quote's seats and return a refreshed preview, action=apply_credit to apply or remove a flight credit the traveler chose on a persisted quote and return a refreshed preview, and action=confirm only after a new, explicit user-authored approval of that latest preview. The legacy confirm input remains supported for existing clients but new callers must use action. The preview (itinerary, price, in-policy status, and required approvals) without booking. When no fund is supplied, the preview uses the recommended eligible fund, if one exists, to determine required approvals. action=confirm requires the previewed expected_total_amount (copied verbatim, digits and decimal point only, no currency symbol) only after a new, explicit user-authored response approves that latest preview. If the fare changes, preview the new total and obtain fresh approval before confirming.\n\nflight_offer_uuid is the literal id from search: the outbound flight for one-way, the return flight for round trips (it carries both legs), or a fare option's id to book that fare. Alternatively pass a previous preview's flight_quote_uuid (never both) to preview or confirm that exact persisted quote. On confirmation, pass exactly one funding choice: spend_allocation_id with an eligible fund UUID from the preview, or request_new_fund=true with reason set to the trip purpose. This includes fares a business UATP card pays, such as United PassPlus fares (the preview names the card): the card pays the fare and the fund pays only the agency's booking fees. If the chosen flight is out of policy, you MUST collect an oop_reason from the traveler and pass it here.\n\nBefore previewing or confirming, call GetTravelerProfile (passing the same traveler_user_id from search for delegated booking); if has_profile is false, collect the traveler's identity details and call UpdateTravelerProfile first. This always creates a new booking and never changes or cancels an existing one; to replace an existing flight with a new booking, follow the ramp-rebook-flight skill.\n\nFlight credits, only when the business has flight credits enabled: a preview lists the credits of the quote's traveler (traveler_user_id) that may apply in available_airline_credits, each with an ISO 4217 currency code; currency is the fare's. action=apply_credit with flight_quote_uuid and the chosen credit_id as airline_credit_id applies it (null removes it) and returns a refreshed preview. airline_credit_applied is true only when a credit is applied; then payment_breakdown splits the fare (with any redemption fee as penalty_amount) and card_charge_amount is what the card pays, while expected_total_amount stays the full fare. An apply error changes nothing: the quote keeps the last successful preview, including any credit already applied. On action=confirm, pass the applied credit_id as airline_credit_id, or omit it when none is applied; a mismatch books nothing.",
        "properties": {
          "action": {
            "default": "preview",
            "description": "Operation to perform: preview returns the current booking review without booking; save_seats saves seat_selections to a persisted quote and returns a refreshed preview; apply_credit applies or removes airline_credit_id on a persisted quote and returns a refreshed preview; confirm submits a traveler-approved preview. New callers must set this explicitly.",
            "enum": [
              "apply_credit",
              "confirm",
              "preview",
              "save_seats"
            ],
            "title": "Action",
            "type": "string"
          },
          "airline_credit_id": {
            "default": null,
            "description": "A credit_id from the latest preview's available_airline_credits. With action=apply_credit (requires flight_quote_uuid), applies that credit to the quote, or removes the applied credit when null, and returns a refreshed preview with the payment split. With action=confirm when no review card is used, pass the credit_id the traveler approved; booking refuses if it does not match the credit applied to the quote. Only when the traveler chose the credit.",
            "maxLength": 64,
            "nullable": true,
            "title": "Airline Credit Id",
            "type": "string"
          },
          "airline_credit_surface_call_id": {
            "default": null,
            "description": "When the booking review card showed a Flight credit picker (the preview had available_airline_credits), pass that card's UI-surface call_id on action=confirm. Booking refuses if the credit selected on the card no longer matches the credit applied to the quote. Defaults to seat_selection_surface_call_id when omitted, since both live on the same card.",
            "maxLength": 255,
            "nullable": true,
            "title": "Airline Credit Surface Call Id",
            "type": "string"
          },
          "confirm": {
            "default": false,
            "deprecated": true,
            "description": "Deprecated compatibility input. Use action=confirm only after a new, explicit user-authored response approves the latest preview.",
            "title": "Confirm",
            "type": "boolean"
          },
          "expected_total_amount": {
            "default": null,
            "description": "Prefer a JSON string copied verbatim from the preview's expected_total_amount, for example \"248.40\". JSON numbers are accepted for compatibility. Never include a currency symbol. Required with action=confirm; the booking is rejected if the fare was repriced since.",
            "nullable": true,
            "oneOf": [
              {
                "type": "integer"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "title": "Expected Total Amount"
          },
          "flight_offer_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "Literal 'id' of the chosen flight offer from search (the return flight id for round trips; a fare option's id to book that fare; or a complete itinerary's flight_offer_uuid). Pass exactly one of flight_offer_uuid or flight_quote_uuid.",
            "nullable": true
          },
          "flight_quote_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "flight_quote_uuid from an earlier preview result. Previews or confirms that exact persisted quote instead of creating a fresh quote from the offer, preserving quote-specific state. Pass exactly one of flight_offer_uuid or flight_quote_uuid.",
            "nullable": true
          },
          "include_seat_options": {
            "default": null,
            "description": "On previews, defaults to true and returns a compact, price-ranked set of selectable seats from the persisted quote. Set false to skip them and any automatic seat pick, for example after the traveler declines seats. Ignored on action=confirm.",
            "nullable": true,
            "title": "Include Seat Options",
            "type": "boolean"
          },
          "oop_reason": {
            "default": null,
            "description": "Justification for why this booking is out of policy; approvers see this reason. REQUIRED when the selected flight is out of policy: if the user chooses an out-of-policy flight you MUST collect a reason from them and pass it here.",
            "nullable": true,
            "title": "Oop Reason",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "reason": {
            "default": null,
            "description": "Trip purpose shown to approvers. REQUIRED when request_new_fund=true: ask the traveler what the purpose of the trip is and pass their answer here.",
            "nullable": true,
            "title": "Reason",
            "type": "string"
          },
          "request_new_fund": {
            "default": false,
            "description": "Set true to explicitly request a new allocation instead of using an eligible fund.",
            "title": "Request New Fund",
            "type": "boolean"
          },
          "seat_position": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FlightSeatPositionRequestBody"
              }
            ],
            "default": null,
            "description": "The traveler's seat position for this booking ('window', 'aisle', or 'middle'), taken from this conversation or interpreted from their saved preferences text. Returned as traveler_seat_preference on previews that include seat_options so matching seats can be recommended. On text-message surfaces, a preview may save the best free seat in this position on each leg. Never authorizes a paid seat.",
            "nullable": true
          },
          "seat_selection_surface_call_id": {
            "default": null,
            "description": "When the booking review card offered seat selection, pass that card's UI-surface call_id on action=confirm. Booking re-validates the traveler's current seat selection and books at the total shown on that card, which outranks a stale expected_total_amount; no extra preview call is needed before confirming. Still pass the latest previewed expected_total_amount as a fallback.",
            "maxLength": 255,
            "nullable": true,
            "title": "Seat Selection Surface Call Id",
            "type": "string"
          },
          "seat_selections": {
            "description": "Seat choices to save to the persisted quote before this preview is built: one entry per changed segment, using segment_id and service_id values from seat_options. Set service_id to null to clear that segment's saved seat. Requires flight_quote_uuid and is rejected unless action=save_seats; a seat change always needs a fresh preview and a fresh explicit confirmation of the refreshed total. Never supply a price.",
            "items": {
              "$ref": "#/components/schemas/FlightSeatSelectionRequestBody"
            },
            "title": "Seat Selections",
            "type": "array"
          },
          "selection_surface_call_id": {
            "default": null,
            "description": "When the booked option was chosen on a rendered card, pass that card's UI-surface call_id here on the confirm=true call. The booking then re-validates the persisted card selection at execution time and refuses to book if the traveler's selection changed after the preview. Omit for options chosen in conversation rather than on a card.",
            "maxLength": 255,
            "nullable": true,
            "title": "Selection Surface Call Id",
            "type": "string"
          },
          "spend_allocation_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "Eligible fund UUID to pay with. A preview without one uses the recommended eligible fund when available. On confirmation, provide this or set request_new_fund=true, including for fares a UATP card pays (such as United PassPlus fares), where the fund pays only the agency's booking fees.",
            "nullable": true
          },
          "traveler_user_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "Traveler UUID when booking for someone else; use the value from search. Requires delegate or travel-manager permission. Omit for self-booking.",
            "nullable": true
          },
          "trip_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "Trip to attach the booking to. Omit to auto-select or create one.",
            "nullable": true
          }
        },
        "required": [
          "rationale"
        ],
        "title": "SubmitFlightBooking",
        "type": "object"
      },
      "SubmitFlightBookingTicketPriceBreakdownV1": {
        "description": "The authoritative expected price of one independently issued ticket.",
        "properties": {
          "amount": {
            "description": "Raw unrounded expected ticket amount as a decimal string.",
            "title": "Amount",
            "type": "string"
          },
          "amount_display": {
            "description": "Display-final expected ticket amount, e.g. '$250.40'.",
            "title": "Amount Display",
            "type": "string"
          },
          "currency": {
            "description": "ISO 4217 currency code for amount.",
            "title": "Currency",
            "type": "string"
          },
          "slice_id": {
            "description": "Provider slice id this ticket covers (primary anchor).",
            "title": "Slice Id",
            "type": "string"
          }
        },
        "required": [
          "amount",
          "amount_display",
          "currency",
          "slice_id"
        ],
        "title": "SubmitFlightBookingTicketPriceBreakdownV1",
        "type": "object"
      },
      "SubmitFlightCancellationRequestBody": {
        "description": "Preview or confirm cancellation of an existing flight booking.\n\nIdentify the booking with exactly one booking identifier field and leave the\nothers null; passing several IDs for the same booking is rejected.\n\nAlways call with ``confirm=false`` first. That call is read-only and returns\nthe complete itinerary, fresh authoritative terms, and a ``preview_id``. Only\nafter a new, explicit user-authored approval of that latest preview may you\ncall again with ``confirm=true`` and the exact ``preview_id``. Earlier\ncancellation intent, standing approval, or instructions not to ask questions\nare not confirmation.\n\nAtlas- and Duffel-booked flights are supported. Confirmation refetches the\ncanonical details used by the Ramp web flow and refuses to cancel if any term\nchanged. If the provider rejected the approved quote as changed, a new preview\ncan refresh the terms; cancellation still requires a separate approval of that\npreview. By default the action cancels the entire booking. When a booking's\nflights are ticketed separately, ``flight_leg_index`` previews and cancels\none flight on its own, and an entire-booking preview lists those flights in\n``cancellable_legs``. Partial passenger cancellation is not supported.\n\nWhen a new flight replaces this one, pass its booking request as\n``replacement_booking_request_id`` on confirmation: this flight is then\ncancelled only once the replacement is ticketed, and kept if it is not\nbooked. The ``replacement_status`` of the result, or of an error, says which\nhappened; only ``FULFILLED`` means the new flight is confirmed. A\nconfirmation without it is refused while the traveler has a new flight still\nawaiting approval or ticketing; the error's ``unconfirmed_booking_request_id``\nis that booking request.\n\nPreview ``rendered_response`` contains authoritative plain-text copy to display\nverbatim. Booking identifiers and the HTTPS ``booking_url`` are separate\nmetadata for client presentation; they are not embedded in that copy.",
        "properties": {
          "booking_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "Parent booking UUID returned by a travel tool",
            "nullable": true
          },
          "booking_request_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "Booking request UUID from GetBookings or the booking result",
            "nullable": true
          },
          "confirm": {
            "default": false,
            "description": "Set true only after a new, explicit user-authored response approves the latest preview",
            "title": "Confirm",
            "type": "boolean"
          },
          "flight_booking_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "Flight booking UUID from GetBookings",
            "nullable": true
          },
          "flight_leg_index": {
            "default": null,
            "description": "0-based leg, in itinerary order, to cancel on its own when the booking's flights are ticketed separately; the rest of the booking stays booked. Omit to cancel the entire booking. With confirm=true, pass the same value as the approved preview.",
            "minimum": 0,
            "nullable": true,
            "title": "Flight Leg Index",
            "type": "integer"
          },
          "preview_id": {
            "default": null,
            "description": "Exact 64-character lowercase hexadecimal preview_id from the latest approved preview. Copy the complete value unchanged. Required with confirm=true and rejected if cancellation terms changed.",
            "nullable": true,
            "title": "Preview Id",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "replacement_booking_request_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "With confirm=true, the booking request UUID of the new flight that replaces this one. This flight is cancelled only once that booking is ticketed: immediately if it already is, automatically later while it awaits approval or ticketing, and never if it fails. Omit when nothing replaces this flight.",
            "nullable": true
          }
        },
        "required": [
          "rationale"
        ],
        "title": "SubmitFlightCancellation",
        "type": "object"
      },
      "SubmitFlightModificationRequestBody": {
        "description": "Preview or confirm replacement flights for an existing booking.\n\nIdentify the booking with exactly one booking identifier field and leave the\nothers null; passing several IDs for the same booking is rejected.\n\nAlways call with ``confirm=false`` first. The returned preview contains the\nauthoritative itinerary, policy results, and exchange economics; search prices\nare only estimates. Present the complete preview and request explicit user\nconfirmation before submitting. When ``economics.pricing_is_final`` is false,\nthe airline still reports these amounts as estimates that can change when the\nticket is reissued; say so before asking for confirmation.\n\nAfter explicit confirmation, call again with ``confirm=true`` and the exact,\nunchanged ``preview_id`` from that preview. Confirmation re-quotes the offer\nand submits only when the terms still match. If the tool returns changed terms,\ndo not auto-confirm: present the new preview and wait for a new explicit\nconfirmation. If the user changes any requested terms, search and preview again.",
        "properties": {
          "booking_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "Parent booking UUID returned by a travel tool",
            "nullable": true
          },
          "booking_request_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "Booking request UUID of an already fulfilled flight booking",
            "nullable": true
          },
          "confirm": {
            "default": false,
            "description": "False to preview authoritative terms; true only after explicit confirmation",
            "title": "Confirm",
            "type": "boolean"
          },
          "flight_booking_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "Flight booking UUID from GetBookings",
            "nullable": true
          },
          "offer_id": {
            "description": "Exact ID of the replacement to exchange into, from SearchFlightModifications: an offer's own `id`, or a `fare_options[].id` to select that specific fare",
            "title": "Offer Id",
            "type": "string"
          },
          "oop_reason": {
            "default": null,
            "description": "Justification for why this modification is out of policy; approvers see this reason. REQUIRED when the replacement flight is out of policy: collect the reason from the traveler and pass it here",
            "nullable": true,
            "title": "Oop Reason",
            "type": "string"
          },
          "preview_id": {
            "default": null,
            "description": "Exact unchanged preview ID from the terms explicitly confirmed by the user. Required when confirm=true",
            "nullable": true,
            "title": "Preview Id",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "offer_id",
          "rationale"
        ],
        "title": "SubmitFlightModification",
        "type": "object"
      },
      "SubmitFundRequestRequestBody": {
        "description": "Submit a request for new funds (General Expenses, including a shared fund) or a Virtual Card.\n\nDefaults to the signed-in user. It can also request for another employee the\nuser may request funds for, such as a manager's direct report; those requests\nfollow the business's approval workflow rather than direct issuance.\nPass `member_user_uuids` to request a shared fund that those coworkers can\nalso spend from once approved.\n\nRequires a separate user confirmation after the assistant summarizes the\nrequest details and asks whether to submit. The initial request for funds is\nnot confirmation. Never invent approval on the user's behalf.\nReturns the submitted request's detail URL, or the issued fund's URL when\nthe request is automatically approved.",
        "properties": {
          "amount": {
            "description": "Requested spending limit. Pass a decimal string like \"5000.00\" in the major currency unit, never minor units, a currency symbol, or thousands separators.",
            "title": "Amount",
            "type": "string"
          },
          "currency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CurrencyRequestBody"
              }
            ],
            "default": "USD",
            "description": "ISO 4217 currency code. Defaults to USD; do not ask the user to specify it unless they want a different currency."
          },
          "description": {
            "description": "Business reason for the request.",
            "minLength": 1,
            "title": "Description",
            "type": "string"
          },
          "frequency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SpendIntervalRequestBody"
              }
            ],
            "description": "How often the spending limit resets. Prefer TOTAL (one-time, no reset) unless the user's request indicates recurring spending. Use a clearly specified recurring interval; clarify only when there is reason to suspect recurrence but its interval is unclear, or the context conflicts. Include the chosen frequency in the summary the user confirms."
          },
          "member_user_uuids": {
            "default": null,
            "description": "Ramp user UUIDs or user aliases of coworkers to share the funds with as members, for a shared fund or team budget. The recipient stays the owner; do not list them here. Omit for funds only the recipient spends.",
            "items": {
              "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
            },
            "nullable": true,
            "title": "Member User Uuids",
            "type": "array"
          },
          "name": {
            "description": "Display name for the requested funds.",
            "minLength": 1,
            "title": "Name",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "recipient_user_uuid": {
            "default": null,
            "description": "Ramp user UUID of the employee the funds are for. Omit for the signed-in user, who is the default owner; do not ask the user to choose an owner unless they named someone else. A request for someone else follows the approval workflow.",
            "format": "uuid",
            "nullable": true,
            "title": "Recipient User Uuid",
            "type": "string"
          },
          "request_type": {
            "default": "general_expense",
            "description": "Type of request: general_expense or virtual_card. Defaults to general_expense; do not ask the user to specify it unless they want a different type.",
            "enum": [
              "general_expense",
              "virtual_card"
            ],
            "title": "Request Type",
            "type": "string"
          },
          "user_confirmation": {
            "description": "The user's exact approval words after reviewing the request type, recipient, members, name, reason, amount, currency, and frequency, including any defaults. Do not call this tool before the user explicitly confirms submission.",
            "minLength": 1,
            "title": "User Confirmation",
            "type": "string"
          }
        },
        "required": [
          "amount",
          "description",
          "frequency",
          "name",
          "rationale",
          "user_confirmation"
        ],
        "title": "SubmitFundRequest",
        "type": "object"
      },
      "SubmitHotelBookingRequestBody": {
        "description": "Book a selected hotel rate.\n\nTwo-step flow: call without confirm for the authoritative preview (price, policy, and required approvals) without creating a booking. When no fund is supplied, the preview uses the recommended eligible fund, if one exists, to determine required approvals. Then call with confirm=true and the previewed expected_total_amount (copied verbatim, digits and decimal point only, no currency symbol) only after a new, explicit user-authored response approves that latest preview. If the rate changes, preview the new total and obtain fresh approval before confirming.\n\nEach cancellation_timeline description applies from starts_at (inclusive, null for the first window) until deadline (exclusive), in the hotel's timezone. A check-in title labels the final window's end, not its start.\n\nUse the exact hotel_id from SearchHotels and rate_id from GetHotelRates. On confirmation, pass exactly one funding choice: spend_allocation_id with an eligible fund UUID from the preview, or request_new_fund=true with reason set to the trip purpose. If the chosen hotel rate is out of policy, you MUST collect an oop_reason from the traveler and pass it here.\n\nBefore previewing or confirming, call GetTravelerProfile (passing the same traveler_user_id for delegated booking); if has_profile is false, collect the traveler's identity details and call UpdateTravelerProfile first. This always creates a new booking; it never changes or cancels an existing one.",
        "properties": {
          "check_in_date": {
            "description": "Hotel check-in date in YYYY-MM-DD format",
            "format": "date",
            "title": "Check In Date",
            "type": "string"
          },
          "check_out_date": {
            "description": "Hotel check-out date in YYYY-MM-DD format",
            "format": "date",
            "title": "Check Out Date",
            "type": "string"
          },
          "confirm": {
            "default": false,
            "description": "Set true only after a new, explicit user-authored response approves the latest preview. Earlier intent, rate selection, standing approval, a reason, a fund choice, or an instruction not to ask questions is not confirmation. Otherwise omit or set false to return a preview without booking.",
            "title": "Confirm",
            "type": "boolean"
          },
          "expected_total_amount": {
            "default": null,
            "description": "Prefer a JSON string copied verbatim from the preview's expected_total_amount, for example \"248.40\". JSON numbers are accepted for compatibility. Never include a currency symbol. Required with confirm; the booking is rejected if the rate was repriced since.",
            "nullable": true,
            "oneOf": [
              {
                "type": "integer"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "title": "Expected Total Amount"
          },
          "hotel_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "description": "Hotel UUID from SearchHotels results."
          },
          "oop_reason": {
            "default": null,
            "description": "Justification for why this booking is out of policy; approvers see this reason. REQUIRED when the selected hotel rate is out of policy: if the user chooses an out-of-policy rate you MUST collect a reason from them and pass it here.",
            "nullable": true,
            "title": "Oop Reason",
            "type": "string"
          },
          "rate_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "description": "Rate UUID from GetHotelRates for the selected hotel."
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "reason": {
            "default": null,
            "description": "Trip purpose shown to approvers. REQUIRED when request_new_fund=true: ask the traveler what the purpose of the trip is and pass their answer here.",
            "nullable": true,
            "title": "Reason",
            "type": "string"
          },
          "request_new_fund": {
            "default": false,
            "description": "Set true to explicitly request a new allocation instead of using an eligible fund.",
            "title": "Request New Fund",
            "type": "boolean"
          },
          "selection_surface_call_id": {
            "default": null,
            "description": "When the booked option was chosen on a rendered card, pass that card's UI-surface call_id here on the confirm=true call. The booking then re-validates the persisted card selection at execution time and refuses to book if the traveler's selection changed after the preview. Omit for options chosen in conversation rather than on a card.",
            "maxLength": 255,
            "nullable": true,
            "title": "Selection Surface Call Id",
            "type": "string"
          },
          "spend_allocation_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "Eligible fund UUID to pay with. A preview without one uses the recommended eligible fund when available. On confirmation, provide this or set request_new_fund=true.",
            "nullable": true
          },
          "traveler_user_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "Traveler UUID when booking for someone else.",
            "nullable": true
          },
          "trip_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "Trip UUID to attach this booking to. Omit to auto-select or create.",
            "nullable": true
          }
        },
        "required": [
          "check_in_date",
          "check_out_date",
          "hotel_id",
          "rate_id",
          "rationale"
        ],
        "title": "SubmitHotelBooking",
        "type": "object"
      },
      "SubmitHotelCancellationRequestBody": {
        "description": "Preview or confirm cancellation of an existing hotel booking.\n\nIdentify the booking with exactly one booking identifier field and leave the\nothers null; passing several IDs for the same booking is rejected.\n\nAlways call with ``confirm=false`` first. That call is read-only and returns\nfresh authoritative terms plus a ``preview_id``. Only after a new, explicit\nuser-authored approval of that latest preview may you call again with\n``confirm=true`` and the exact ``preview_id``. Earlier cancellation intent,\nstanding approval, or instructions not to ask questions are not confirmation.\nConfirmation refetches the canonical details and refuses to cancel if any\nmaterial hotel cancellation term changed. This tool always cancels the entire\nhotel booking; use the flight cancellation tool for flights.\n\nPreview ``rendered_response`` contains authoritative plain-text copy to display\nverbatim. Booking identifiers and the HTTPS ``booking_url`` are separate\nmetadata for client presentation; they are not embedded in that copy.",
        "properties": {
          "booking_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "Parent booking UUID returned by a travel tool",
            "nullable": true
          },
          "booking_request_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "Booking request UUID from GetBookings or the booking result",
            "nullable": true
          },
          "confirm": {
            "default": false,
            "description": "Set true only after a new, explicit user-authored response approves the latest preview. Otherwise omit or set false for a non-mutating preview.",
            "title": "Confirm",
            "type": "boolean"
          },
          "hotel_room_booking_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "Hotel room booking UUID from GetBookings",
            "nullable": true
          },
          "preview_id": {
            "default": null,
            "description": "Exact 64-character lowercase hexadecimal preview_id from the latest approved preview. Copy the complete value unchanged. Required with confirm=true and rejected if cancellation terms changed.",
            "nullable": true,
            "title": "Preview Id",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "SubmitHotelCancellation",
        "type": "object"
      },
      "SubmitPluginToMarketplaceRequestBody": {
        "description": "Submit a plugin draft to the Ramp plugin marketplace for review.\n\nThe draft is frozen as submitted and can no longer be edited. Returns the version's\nnew status and the plugin's new revision. Does not publish the plugin.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "revision": {
            "description": "The plugin's revision as last returned for it. The call is rejected if the plugin has changed since, so that newer edits are not overwritten.",
            "title": "Revision",
            "type": "integer"
          },
          "version_id": {
            "description": "UUID of the draft version to submit.",
            "format": "uuid",
            "title": "Version Id",
            "type": "string"
          }
        },
        "required": [
          "rationale",
          "revision",
          "version_id"
        ],
        "title": "SubmitPluginToMarketplace",
        "type": "object"
      },
      "SubmitProcurementRequestRequestBody": {
        "description": "Submit a procurement draft after explicit user confirmation.",
        "properties": {
          "confirmed": {
            "description": "Must be true only after explicit user confirmation.",
            "title": "Confirmed",
            "type": "boolean"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "spend_request_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UUIDStrRequestBody"
              }
            ],
            "description": "Draft spend request UUID returned by draft."
          }
        },
        "required": [
          "confirmed",
          "rationale",
          "spend_request_uuid"
        ],
        "title": "SubmitProcurementRequest",
        "type": "object"
      },
      "SubmitReimbursementRequestBody": {
        "description": "Submit an existing out-of-pocket or mileage reimbursement draft for approval.\nEnforces the saved claim's permissions and required fields; does not create a claim.\nRepeated submission of an already-pending reimbursement returns success.\nUnmet requirements are returned as structured validation errors. Pending processing\nis distinguished from completed submission; neither means approval or payment.\nRequirements that cannot be resolved here may require the reimbursement link.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "reimbursement_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "description": "UUID of the existing reimbursement draft to submit for approval. Look up the reimbursement if the UUID is not available from context.",
            "nullable": true
          }
        },
        "required": [
          "rationale",
          "reimbursement_uuid"
        ],
        "title": "SubmitReimbursement",
        "type": "object"
      },
      "SubmitReimbursementSuccess": {
        "properties": {
          "already_submitted": {
            "default": false,
            "description": "Whether the reimbursement was already pending before this call.",
            "title": "Already Submitted",
            "type": "boolean"
          },
          "error_message": {
            "default": null,
            "description": "Deprecated: always null. Failures are returned as structured errors.",
            "nullable": true,
            "title": "Error Message",
            "type": "string"
          },
          "reimbursement_link": {
            "default": null,
            "description": "Link to open the reimbursement in Ramp.",
            "nullable": true,
            "title": "Reimbursement Link",
            "type": "string"
          },
          "reimbursement_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "nullable": true
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReimbursementStatusGroup"
              }
            ],
            "default": null,
            "description": "Reimbursement status after the submission was processed. Processing is asynchronous and the tool waits briefly for it, so this reads DRAFT only if it has not finished; see submission_pending.",
            "nullable": true
          },
          "submission_pending": {
            "default": false,
            "description": "True when the submission was accepted but had not finished processing when the tool stopped waiting, so the reimbursement is still DRAFT.",
            "title": "Submission Pending",
            "type": "boolean"
          },
          "submitted_at": {
            "default": null,
            "format": "date-time",
            "nullable": true,
            "title": "Submitted At",
            "type": "string"
          }
        },
        "title": "SubmitReimbursementSuccess",
        "type": "object"
      },
      "SubmitVersionResult": {
        "properties": {
          "plugin_id": {
            "format": "uuid",
            "title": "Plugin Id",
            "type": "string"
          },
          "revision": {
            "title": "Revision",
            "type": "integer"
          },
          "status": {
            "title": "Status",
            "type": "string"
          },
          "version_id": {
            "format": "uuid",
            "title": "Version Id",
            "type": "string"
          }
        },
        "required": [
          "plugin_id",
          "revision",
          "status",
          "version_id"
        ],
        "title": "SubmitVersionResult",
        "type": "object"
      },
      "SuggestedCodingsInfo": {
        "properties": {
          "category_name": {
            "title": "Category Name",
            "type": "string"
          },
          "category_uuid": {
            "$ref": "#/components/schemas/EntityUUIDStr"
          },
          "suggested_codings": {
            "items": {
              "$ref": "#/components/schemas/TrackingCategoryOptionInfo"
            },
            "title": "Suggested Codings",
            "type": "array"
          }
        },
        "required": [
          "category_name",
          "category_uuid"
        ],
        "title": "SuggestedCodingsInfo",
        "type": "object"
      },
      "SuggestedFundInfo": {
        "description": "Suggested fund/card information for travel booking.",
        "properties": {
          "available_balance": {
            "default": null,
            "description": "Formatted available balance remaining on this fund (e.g., '$1,500.00 USD').",
            "nullable": true,
            "title": "Available Balance",
            "type": "string"
          },
          "fund_name": {
            "description": "Display name of the fund",
            "title": "Fund Name",
            "type": "string"
          },
          "fund_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "description": "UUID of the suggested fund"
          },
          "is_booker_fund": {
            "default": false,
            "description": "True when this fund belongs to the person booking on the traveler's behalf, not the traveler; the booker's card is charged.",
            "title": "Is Booker Fund",
            "type": "boolean"
          },
          "spending_limit": {
            "default": null,
            "description": "Formatted total spending limit for this fund (e.g., '$5,000.00 USD'). Present this alongside available_balance for context.",
            "nullable": true,
            "title": "Spending Limit",
            "type": "string"
          }
        },
        "required": [
          "fund_name",
          "fund_uuid"
        ],
        "title": "SuggestedFundInfo",
        "type": "object"
      },
      "SuggestedMemos": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "string"
          },
          "memos": {
            "items": {
              "type": "string"
            },
            "title": "Memos",
            "type": "array"
          }
        },
        "required": [
          "id",
          "memos"
        ],
        "title": "SuggestedMemos",
        "type": "object"
      },
      "SyncCommitStatus": {
        "enum": [
          "CSV_FAILURE",
          "CSV_SUCCESS",
          "IN_PROGRESS",
          "MARKED_CANCELED",
          "PARTIAL_FAILURE",
          "QUEUED",
          "SYNC_FAILURE",
          "SYNC_SUCCESS",
          "TIMEOUT_FAILURE",
          "UNKNOWN_ERROR",
          "VENDOR_FAIL"
        ],
        "title": "SyncCommitStatus",
        "type": "string"
      },
      "SyncCommitType": {
        "enum": [
          "API",
          "CSV",
          "MANUAL",
          "SYNC"
        ],
        "title": "SyncCommitType",
        "type": "string"
      },
      "SyncType": {
        "enum": [
          "ACCRUAL_SYNC",
          "AMORTIZATION_ENTRY_REVISION_BATCH_SYNC",
          "AMORTIZATION_ENTRY_SYNC",
          "APPLIED_VENDOR_CREDIT_SYNC",
          "BANKING_TRANSACTION_SYNC",
          "BANK_DEPOSIT_SYNC",
          "BILL_PAYMENT_DELETE_SYNC",
          "BILL_PAYMENT_SYNC",
          "BILL_PAYMENT_VOID_SYNC",
          "BILL_SYNC",
          "BROKERAGE_ORDER_SYNC",
          "CREDIT_NOTE_APPLICATION_SYNC",
          "CREDIT_NOTE_SYNC",
          "CUSTOMER_SYNC",
          "INVOICE_PAYMENT_SYNC",
          "INVOICE_PAYMENT_VOID_SYNC",
          "INVOICE_SYNC",
          "ITEM_RECEIPT_SYNC",
          "ITEM_SYNC",
          "MANAGED_PORTFOLIO_ACTIVITY_SYNC",
          "MANAGED_PORTFOLIO_TRANSFER_SYNC",
          "PAYEE_SYNC",
          "REFUND_SYNC",
          "REIMBURSEMENT_BATCH_SYNC",
          "REIMBURSEMENT_SYNC",
          "REPAYMENT_SYNC",
          "STATEMENT_CREDIT_SYNC",
          "TRACKING_CATEGORY_OPTION_SYNC",
          "TRANSACTION_SYNC",
          "TRANSACTION_SYNC_BILL_PAYMENT",
          "TRANSACTION_SYNC_PAID_BILL",
          "TRANSFER_SYNC",
          "VENDOR_CREDIT_APPLY_SYNC",
          "VENDOR_CREDIT_DELETE_SYNC",
          "VENDOR_CREDIT_SYNC",
          "VENDOR_CREDIT_UNAPPLY_SYNC",
          "WALLET_TLEM_SYNC",
          "WALLET_TRANSFER_SYNC"
        ],
        "title": "SyncType",
        "type": "string"
      },
      "TagDefinitionSchema": {
        "description": "A tag group with its allowed values.",
        "properties": {
          "id": {
            "title": "Id",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "rationale": {
            "default": null,
            "nullable": true,
            "title": "Rationale",
            "type": "string"
          },
          "required": {
            "title": "Required",
            "type": "boolean"
          },
          "reviewed_at": {
            "default": null,
            "format": "date-time",
            "nullable": true,
            "title": "Reviewed At",
            "type": "string"
          },
          "source": {
            "$ref": "#/components/schemas/TagDefinitionSource"
          },
          "tag_suggestion_job_uuid": {
            "default": null,
            "nullable": true,
            "title": "Tag Suggestion Job Uuid",
            "type": "string"
          },
          "tagging_instructions": {
            "default": null,
            "nullable": true,
            "title": "Tagging Instructions",
            "type": "string"
          },
          "type": {
            "$ref": "#/components/schemas/TagDefinitionType"
          },
          "values": {
            "items": {
              "$ref": "#/components/schemas/TagDefinitionValueItem"
            },
            "title": "Values",
            "type": "array"
          }
        },
        "required": [
          "id",
          "name",
          "rationale",
          "required",
          "reviewed_at",
          "source",
          "tag_suggestion_job_uuid",
          "tagging_instructions",
          "type",
          "values"
        ],
        "title": "TagDefinitionSchema",
        "type": "object"
      },
      "TagDefinitionSource": {
        "enum": [
          "manual",
          "suggested"
        ],
        "title": "TagDefinitionSource",
        "type": "string"
      },
      "TagDefinitionType": {
        "enum": [
          "CUSTOM",
          "DEPARTMENT",
          "LOCATION"
        ],
        "title": "TagDefinitionType",
        "type": "string"
      },
      "TagDefinitionValueItem": {
        "description": "A single assignable value for a tag definition, type-agnostic.\n\nUsed across tag-definition CRUD responses **and** the paginated values\nlisting so that consumers see a consistent ``{id, label, rationale}`` shape\nregardless of the endpoint.",
        "properties": {
          "id": {
            "title": "Id",
            "type": "string"
          },
          "label": {
            "title": "Label",
            "type": "string"
          },
          "rationale": {
            "default": null,
            "nullable": true,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "id",
          "label",
          "rationale"
        ],
        "title": "TagDefinitionValueItem",
        "type": "object"
      },
      "TaskFeedErrorCode": {
        "description": "Error codes for task feed failures (sections and hydration).",
        "enum": [
          "error",
          "forbidden",
          "timeout"
        ],
        "title": "TaskFeedErrorCode",
        "type": "string"
      },
      "TaskFeedErrorInfo": {
        "description": "Error information for task feed failures (sections and hydration).",
        "properties": {
          "code": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TaskFeedErrorCode"
              }
            ],
            "description": "Error code indicating the type of failure"
          },
          "message": {
            "description": "User-friendly error message",
            "title": "Message",
            "type": "string"
          }
        },
        "required": [
          "code",
          "message"
        ],
        "title": "TaskFeedErrorInfo",
        "type": "object"
      },
      "TaskFeedSectionType": {
        "description": "Sections for organizing tasks in the task feed.\n\nDeprecated (kept for backward compatibility): TASKS_PENDING_YOUR_APPROVAL,\nTASKS_REQUIRING_YOUR_ACTION, BILLS_FOR_REVIEW (use BILL_APPROVALS instead).",
        "enum": [
          "ACCOUNTING",
          "ACCOUNTING_AGENT",
          "ACCOUNT_HEALTH",
          "AGENT_MANAGEMENT",
          "AGENT_TICKET",
          "AUTHENTICATION",
          "BEFORE_YOU_SPEND",
          "BILLS_FOR_REVIEW",
          "BILL_APPROVALS",
          "BILL_DRAFTS",
          "BUSINESS_ENTITY_KYB",
          "BUSINESS_SETUP",
          "COMPLETE_MY_DRAFTS",
          "COMPLETE_MY_EXPENSES",
          "COMPLETE_PROCUREMENT_AND_BILL_DRAFTS",
          "COMPLETE_REIMBURSEMENT_DRAFTS",
          "CONTRACT_RENEWALS",
          "DORMANT_FUNDS",
          "EARN_REWARDS",
          "EMPLOYEE_HANDBOOK",
          "EXPENSES_FOR_REVIEW",
          "EXPENSE_COWORKER",
          "EXPENSE_GROUP_APPROVALS",
          "EXPENSE_POLICY",
          "FUNDS_REQUESTS",
          "INTELLIGENCE_SUGGESTIONS",
          "MOBILE_INTAKE_APPROVALS",
          "MOBILE_SPEND_ALLOCATION_APPROVALS",
          "OMNI_AGENT_RESULTS",
          "ONBOARDING_INVITE_SUGGESTIONS",
          "PAYMENT_RUNS",
          "PAYMENT_RUNS_AWAITING_RELEASE",
          "PERSONAL_CARD_MANAGEMENT",
          "PERSONAL_EXPENSES_REQUIRING_ACTION",
          "POLICY_CHANGE_APPROVALS",
          "PROACTIVE_INSIGHTS",
          "PROCUREMENT_APPROVALS",
          "PROCUREMENT_INTEGRATIONS",
          "PROCUREMENT_INTEGRATION_APPROVALS",
          "READY_TO_APPROVE",
          "READY_TO_REJECT",
          "REDEEM_REWARDS",
          "REIMBURSEMENTS_TO_REVIEW",
          "REIMBURSEMENT_APPROVALS",
          "REIMBURSEMENT_READY_TO_APPROVE",
          "REIMBURSEMENT_READY_TO_REJECT",
          "SALES_TAX_EXEMPTION_CERTIFICATES",
          "SANCTION_SCREENING_DATA_COLLECTION",
          "SHARED_FUND_JOIN_REQUESTS",
          "SOURCING",
          "STACK",
          "STANDALONE_WORKFLOW_APPROVALS",
          "TASKS_PENDING_YOUR_APPROVAL",
          "TASKS_REQUIRING_YOUR_ACTION",
          "TICKETS",
          "TRANSACTIONS_TO_REVIEW",
          "TRANSACTION_APPROVALS",
          "TRANSACTION_READY_TO_APPROVE",
          "TRANSACTION_READY_TO_REJECT",
          "TRAVEL",
          "TREASURY_AND_TRANSFERS",
          "TRIPS",
          "USER_MANAGEMENT",
          "VENDOR_COMPLIANCE",
          "VENDOR_INFORMATION_REVIEW",
          "VENDOR_MANAGEMENT",
          "VENDOR_UPDATES"
        ],
        "title": "TaskFeedSectionType",
        "type": "string"
      },
      "TaskFeedSectionTypeRequestBody": {
        "description": "Sections for organizing tasks in the task feed.\n\nDeprecated (kept for backward compatibility): TASKS_PENDING_YOUR_APPROVAL,\nTASKS_REQUIRING_YOUR_ACTION, BILLS_FOR_REVIEW (use BILL_APPROVALS instead).",
        "enum": [
          "ACCOUNTING",
          "ACCOUNTING_AGENT",
          "ACCOUNT_HEALTH",
          "AGENT_MANAGEMENT",
          "AGENT_TICKET",
          "AUTHENTICATION",
          "BEFORE_YOU_SPEND",
          "BILLS_FOR_REVIEW",
          "BILL_APPROVALS",
          "BILL_DRAFTS",
          "BUSINESS_ENTITY_KYB",
          "BUSINESS_SETUP",
          "COMPLETE_MY_DRAFTS",
          "COMPLETE_MY_EXPENSES",
          "COMPLETE_PROCUREMENT_AND_BILL_DRAFTS",
          "COMPLETE_REIMBURSEMENT_DRAFTS",
          "CONTRACT_RENEWALS",
          "DORMANT_FUNDS",
          "EARN_REWARDS",
          "EMPLOYEE_HANDBOOK",
          "EXPENSES_FOR_REVIEW",
          "EXPENSE_COWORKER",
          "EXPENSE_GROUP_APPROVALS",
          "EXPENSE_POLICY",
          "FUNDS_REQUESTS",
          "INTELLIGENCE_SUGGESTIONS",
          "MOBILE_INTAKE_APPROVALS",
          "MOBILE_SPEND_ALLOCATION_APPROVALS",
          "OMNI_AGENT_RESULTS",
          "ONBOARDING_INVITE_SUGGESTIONS",
          "PAYMENT_RUNS",
          "PAYMENT_RUNS_AWAITING_RELEASE",
          "PERSONAL_CARD_MANAGEMENT",
          "PERSONAL_EXPENSES_REQUIRING_ACTION",
          "POLICY_CHANGE_APPROVALS",
          "PROACTIVE_INSIGHTS",
          "PROCUREMENT_APPROVALS",
          "PROCUREMENT_INTEGRATIONS",
          "PROCUREMENT_INTEGRATION_APPROVALS",
          "READY_TO_APPROVE",
          "READY_TO_REJECT",
          "REDEEM_REWARDS",
          "REIMBURSEMENTS_TO_REVIEW",
          "REIMBURSEMENT_APPROVALS",
          "REIMBURSEMENT_READY_TO_APPROVE",
          "REIMBURSEMENT_READY_TO_REJECT",
          "SALES_TAX_EXEMPTION_CERTIFICATES",
          "SANCTION_SCREENING_DATA_COLLECTION",
          "SHARED_FUND_JOIN_REQUESTS",
          "SOURCING",
          "STACK",
          "STANDALONE_WORKFLOW_APPROVALS",
          "TASKS_PENDING_YOUR_APPROVAL",
          "TASKS_REQUIRING_YOUR_ACTION",
          "TICKETS",
          "TRANSACTIONS_TO_REVIEW",
          "TRANSACTION_APPROVALS",
          "TRANSACTION_READY_TO_APPROVE",
          "TRANSACTION_READY_TO_REJECT",
          "TRAVEL",
          "TREASURY_AND_TRANSFERS",
          "TRIPS",
          "USER_MANAGEMENT",
          "VENDOR_COMPLIANCE",
          "VENDOR_INFORMATION_REVIEW",
          "VENDOR_MANAGEMENT",
          "VENDOR_UPDATES"
        ],
        "title": "TaskFeedSectionType",
        "type": "string"
      },
      "TerminateRouterApiKeyRequestBody": {
        "description": "Permanently terminate (delete) a Router API key. This cannot be undone.\n\nBefore calling, show the user the key's name, owner, and provider, and its spend\nin the last 30 days when the key list includes it. Say that termination cannot\nbe undone. Get an explicit yes in this conversation. Never set ``confirmed`` to\ntrue without that yes.\n\nRouter admins can terminate any Router key in the business; other users only\ntheir own keys.",
        "properties": {
          "api_key_id": {
            "description": "Ramp id of the Router API key.",
            "format": "uuid",
            "title": "Api Key Id",
            "type": "string"
          },
          "confirmed": {
            "description": "Must be true to confirm that the user explicitly approved terminating this key after seeing its name, owner, and provider, and its spend in the last 30 days when known.",
            "title": "Confirmed",
            "type": "boolean"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "api_key_id",
          "confirmed",
          "rationale"
        ],
        "title": "TerminateRouterApiKey",
        "type": "object"
      },
      "TimeGrain": {
        "enum": [
          "day",
          "month",
          "quarter",
          "week",
          "year"
        ],
        "title": "TimeGrain",
        "type": "string"
      },
      "TimeInterval": {
        "enum": [
          "AUTO",
          "DAILY",
          "MONTHLY",
          "NO_INTERVAL",
          "QUARTERLY",
          "WEEKLY",
          "YEARLY"
        ],
        "title": "TimeInterval",
        "type": "string"
      },
      "TinType": {
        "enum": [
          "EIN",
          "SSN"
        ],
        "title": "TinType",
        "type": "string"
      },
      "TopGroupsClause": {
        "description": "Legacy input migrated to independent ranking of every non-time dimension.",
        "properties": {
          "dimensions": {
            "description": "Historical selected axes, retained as migration history. Execution ranks every selected non-time dimension independently.",
            "items": {
              "type": "string"
            },
            "maxItems": 5,
            "minItems": 1,
            "title": "Dimensions",
            "type": "array"
          },
          "limit": {
            "description": "Historical group count; migrates to max_groups for every selected non-time dimension. Any flat query limit submitted alongside is dropped.",
            "maximum": 100,
            "minimum": 1,
            "title": "Limit",
            "type": "integer"
          },
          "order_by": {
            "description": "Selected measure outputs used to rank the groups.",
            "items": {
              "$ref": "#/components/schemas/OrderByClause"
            },
            "maxItems": 5,
            "minItems": 1,
            "title": "Order By",
            "type": "array"
          }
        },
        "required": [
          "dimensions",
          "limit",
          "order_by"
        ],
        "title": "TopGroupsClause",
        "type": "object"
      },
      "TrackingCategoryBusinessScope": {
        "properties": {
          "business_name": {
            "description": "Business legal name, falling back to its display name or UUID when no name is available",
            "title": "Business Name",
            "type": "string"
          },
          "business_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "description": "Business UUID"
          },
          "entities_without_connected_provider": {
            "description": "Entities whose accounting fields are unavailable because no connected provider was found.",
            "items": {
              "$ref": "#/components/schemas/TrackingCategoryEntityScope"
            },
            "title": "Entities Without Connected Provider",
            "type": "array"
          },
          "providers": {
            "description": "Connected accounting providers, each with its own fields",
            "items": {
              "$ref": "#/components/schemas/TrackingCategoryProviderScope"
            },
            "title": "Providers",
            "type": "array"
          }
        },
        "required": [
          "business_name",
          "business_uuid",
          "entities_without_connected_provider",
          "providers"
        ],
        "title": "TrackingCategoryBusinessScope",
        "type": "object"
      },
      "TrackingCategoryEntityScope": {
        "properties": {
          "entity_name": {
            "description": "Entity name",
            "title": "Entity Name",
            "type": "string"
          },
          "entity_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "description": "Entity UUID"
          }
        },
        "required": [
          "entity_name",
          "entity_uuid"
        ],
        "title": "TrackingCategoryEntityScope",
        "type": "object"
      },
      "TrackingCategoryFieldState": {
        "properties": {
          "description": {
            "title": "Description",
            "type": "string"
          },
          "fulfilled": {
            "title": "Fulfilled",
            "type": "boolean"
          },
          "required": {
            "title": "Required",
            "type": "boolean"
          },
          "value": {
            "$ref": "#/components/schemas/TrackingCategoryFieldValue"
          }
        },
        "required": [
          "description",
          "fulfilled",
          "required",
          "value"
        ],
        "title": "TrackingCategoryFieldState",
        "type": "object"
      },
      "TrackingCategoryFieldValue": {
        "description": "Current tracking category selection metadata.",
        "properties": {
          "category_input_type": {
            "$ref": "#/components/schemas/TrackingCategoryInputType"
          },
          "category_name": {
            "title": "Category Name",
            "type": "string"
          },
          "category_type": {
            "$ref": "#/components/schemas/TrackingCategoryType"
          },
          "category_uuid": {
            "$ref": "#/components/schemas/EntityUUIDStr"
          },
          "selected_freeform_text": {
            "default": null,
            "nullable": true,
            "title": "Selected Freeform Text",
            "type": "string"
          },
          "selected_option_name": {
            "default": null,
            "nullable": true,
            "title": "Selected Option Name",
            "type": "string"
          },
          "selected_option_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "nullable": true
          }
        },
        "required": [
          "category_input_type",
          "category_name",
          "category_type",
          "category_uuid"
        ],
        "title": "TrackingCategoryFieldValue",
        "type": "object"
      },
      "TrackingCategoryHint": {
        "properties": {
          "extracted_text": {
            "title": "Extracted Text",
            "type": "string"
          },
          "tracking_category_name": {
            "title": "Tracking Category Name",
            "type": "string"
          }
        },
        "required": [
          "extracted_text",
          "tracking_category_name"
        ],
        "title": "TrackingCategoryHint",
        "type": "object"
      },
      "TrackingCategoryInfo": {
        "properties": {
          "category_id": {
            "title": "Category Id",
            "type": "string"
          },
          "category_name": {
            "title": "Category Name",
            "type": "string"
          },
          "option_id": {
            "default": null,
            "nullable": true,
            "title": "Option Id",
            "type": "string"
          },
          "option_label": {
            "default": null,
            "nullable": true,
            "title": "Option Label",
            "type": "string"
          }
        },
        "required": [
          "category_id",
          "category_name"
        ],
        "title": "TrackingCategoryInfo",
        "type": "object"
      },
      "TrackingCategoryInputType": {
        "enum": [
          "BOOLEAN",
          "DATE",
          "FREE_FORM_TEXT",
          "SINGLE_CHOICE"
        ],
        "title": "TrackingCategoryInputType",
        "type": "string"
      },
      "TrackingCategoryMetadata": {
        "description": "Represents a tracking category.",
        "properties": {
          "input_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TrackingCategoryInputType"
              }
            ],
            "description": "Input type: SINGLE_CHOICE (select from options), BOOLEAN (yes/no), or FREE_FORM_TEXT (user enters text)"
          },
          "is_hidden": {
            "description": "Whether this tracking category is hidden from users in the UI",
            "title": "Is Hidden",
            "type": "boolean"
          },
          "name": {
            "description": "Display name of the tracking category",
            "title": "Name",
            "type": "string"
          },
          "source_name": {
            "default": null,
            "description": "Provider-origin name of the tracking category, which may differ from the display name configured in Ramp",
            "nullable": true,
            "title": "Source Name",
            "type": "string"
          },
          "tracking_category_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "description": "UUID of the tracking category"
          },
          "type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TrackingCategoryType"
              }
            ],
            "description": "Type of tracking category (e.g., GL_ACCOUNT, PROJECT, OTHER)"
          }
        },
        "required": [
          "input_type",
          "is_hidden",
          "name",
          "tracking_category_uuid",
          "type"
        ],
        "title": "TrackingCategoryMetadata",
        "type": "object"
      },
      "TrackingCategoryOptionHiddenReason": {
        "enum": [
          "CLASSIFICATION_FILTERING",
          "FILTER_WORKFLOW",
          "GLOBAL_VISIBILITY",
          "INVENTORY_ITEM_USAGE_FILTERING",
          "SUBSIDIARY_FILTERING"
        ],
        "title": "TrackingCategoryOptionHiddenReason",
        "type": "string"
      },
      "TrackingCategoryOptionInfo": {
        "properties": {
          "code": {
            "default": null,
            "description": "Code/identifier for the option, when available.",
            "nullable": true,
            "title": "Code",
            "type": "string"
          },
          "is_hidden": {
            "default": null,
            "description": "Whether this option is hidden from users in the UI, when available.",
            "nullable": true,
            "title": "Is Hidden",
            "type": "boolean"
          },
          "name": {
            "default": null,
            "description": "Display name returned by GetTrackingCategoryOptions.",
            "nullable": true,
            "title": "Name",
            "type": "string"
          },
          "option_name": {
            "title": "Option Name",
            "type": "string"
          },
          "option_uuid": {
            "$ref": "#/components/schemas/EntityUUIDStr"
          },
          "tax_rates": {
            "description": "Tax rates associated with this option, when available.",
            "items": {
              "type": "string"
            },
            "title": "Tax Rates",
            "type": "array"
          },
          "tracking_category_option_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "description": "UUID of the tracking category option returned by GetTrackingCategoryOptions.",
            "nullable": true
          }
        },
        "required": [
          "option_name",
          "option_uuid"
        ],
        "title": "TrackingCategoryOptionInfo",
        "type": "object"
      },
      "TrackingCategoryOptionResult": {
        "description": "Represents a single option within a tracking category.",
        "properties": {
          "account_classification": {
            "default": null,
            "nullable": true,
            "title": "Account Classification",
            "type": "string"
          },
          "code": {
            "default": null,
            "description": "Code/identifier for the option (if available)",
            "nullable": true,
            "title": "Code",
            "type": "string"
          },
          "hidden_reason": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TrackingCategoryOptionHiddenReason"
              }
            ],
            "default": null,
            "description": "Why the option is unavailable in the UI when hidden options were requested. FILTER_WORKFLOW means conditional filtering excluded it.",
            "nullable": true
          },
          "is_hidden": {
            "description": "Whether the option is globally hidden by its visibility setting",
            "title": "Is Hidden",
            "type": "boolean"
          },
          "name": {
            "description": "Display name of the option",
            "title": "Name",
            "type": "string"
          },
          "option_name": {
            "default": null,
            "description": "Compatibility alias for `name`.",
            "nullable": true,
            "title": "Option Name",
            "type": "string"
          },
          "option_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "description": "Compatibility alias for `tracking_category_option_uuid`.",
            "nullable": true
          },
          "tax_rates": {
            "description": "Tax rates associated with this option, when available.",
            "items": {
              "type": "string"
            },
            "title": "Tax Rates",
            "type": "array"
          },
          "tracking_category_option_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "description": "UUID of the tracking category option"
          }
        },
        "required": [
          "is_hidden",
          "name",
          "tracking_category_option_uuid"
        ],
        "title": "TrackingCategoryOptionResult",
        "type": "object"
      },
      "TrackingCategoryProviderScope": {
        "properties": {
          "accounting_provider_access_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "description": "Accounting provider connection UUID"
          },
          "entities": {
            "description": "Entities using this connection",
            "items": {
              "$ref": "#/components/schemas/TrackingCategoryEntityScope"
            },
            "title": "Entities",
            "type": "array"
          },
          "provider_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProviderType"
              }
            ],
            "description": "Accounting provider for this connection"
          },
          "tracking_categories": {
            "description": "Active fields for this connection",
            "items": {
              "$ref": "#/components/schemas/TrackingCategoryMetadata"
            },
            "title": "Tracking Categories",
            "type": "array"
          }
        },
        "required": [
          "accounting_provider_access_uuid",
          "entities",
          "provider_type",
          "tracking_categories"
        ],
        "title": "TrackingCategoryProviderScope",
        "type": "object"
      },
      "TrackingCategorySelectionRequestBody": {
        "description": "A tracking category assignment with both category and option.\n\nThe canonical write field names are `category_uuid` and `option_selection`.\nResponse-copied aliases are normalized when they identify the same values\nunambiguously.",
        "properties": {
          "category_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UUIDStrRequestBody"
              }
            ],
            "description": "Tracking Categories (e.g. Department/Project/Booking) UUID value from a valid source. Alias `tracking_category_uuid` accepted from read responses. From suggested_codings, use only after the user accepts the suggestion."
          },
          "option_selection": {
            "description": "Selected value: option UUID for BOOLEAN/SINGLE_CHOICE, freeform text for FREE_FORM_TEXT, calendar date in YYYY-MM-DD format for DATE, or null to clear when allowed. Existing DATE option UUIDs are also accepted. Aliases: tracking_category_option_uuid, option_uuid, selected_option_uuid. Source from GetTrackingCategoryOptions or accepted suggested_codings; copy a known option UUID directly without re-fetching.",
            "nullable": true,
            "title": "Option Selection",
            "type": "string"
          },
          "prefilled_suggested_coding_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "UUID of the suggested coding that was shown to the user as a prefill. Only set when the user is accepting a prefilled suggestion.",
            "nullable": true
          }
        },
        "required": [
          "category_uuid",
          "option_selection"
        ],
        "title": "TrackingCategorySelection",
        "type": "object"
      },
      "TrackingCategoryType": {
        "enum": [
          "AMORTIZATION_TEMPLATE",
          "BILLABLE",
          "COST_CENTER",
          "CUSTOMERS_JOBS",
          "DEFERRAL_CODE",
          "EXPENSE_ENTITY",
          "GL_ACCOUNT",
          "INVENTORY_ITEM",
          "JOURNAL",
          "MERCHANT",
          "NON_ERP",
          "OTHER",
          "PAYROLL_PROVIDER",
          "PROJECT",
          "REPORTING_TAG",
          "SALES_TAX_CODE",
          "SUBSIDIARY",
          "TAX_CODE",
          "UNIT_OF_MEASURE"
        ],
        "title": "TrackingCategoryType",
        "type": "string",
        "x-enum-descriptions": {
          "SALES_TAX_CODE": "A sales tax code from the accounting provider."
        }
      },
      "TransactionActionRequestBody": {
        "enum": [
          "APPROVE",
          "REJECT_AND_REQUEST_CHANGES",
          "REJECT_AND_REQUEST_FULL_REPAYMENT"
        ],
        "title": "TransactionAction",
        "type": "string"
      },
      "TransactionActionResult": {
        "properties": {
          "action": {
            "title": "Action",
            "type": "string"
          },
          "already_applied": {
            "default": false,
            "description": "True when the transaction was already approved, so nothing changed.",
            "title": "Already Applied",
            "type": "boolean"
          },
          "docstring": {
            "default": "Result of approving or rejecting a transaction. Fields: transaction_id is the UUID of the transaction that was processed, action is the attempted action (APPROVE, REJECT_AND_REQUEST_CHANGES, or REJECT_AND_REQUEST_FULL_REPAYMENT), success indicates whether the action completed successfully, already_applied is true when the transaction was already approved so nothing changed, and message provides details about the result.",
            "title": "Docstring",
            "type": "string"
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "success": {
            "title": "Success",
            "type": "boolean"
          },
          "transaction_id": {
            "$ref": "#/components/schemas/EntityUUIDStr"
          }
        },
        "required": [
          "action",
          "message",
          "success",
          "transaction_id"
        ],
        "title": "TransactionActionResult",
        "type": "object"
      },
      "TransactionAmountFilterRequestBody": {
        "properties": {
          "basis": {
            "description": "Signed statement-currency amount (authorized amount while pending; the declined amount with state='declined'). Original merchant-currency amounts are not searched; no FX conversion.",
            "enum": [
              "settlement"
            ],
            "title": "Basis",
            "type": "string"
          },
          "currency": {
            "default": null,
            "description": "Uppercase alphabetic ISO 4217 code (e.g. 'USD'). Omit to match the number in any currency; don't assume USD.",
            "nullable": true,
            "type": "string"
          },
          "exact_amount": {
            "default": null,
            "description": "Exact signed amount in major units, preferably a decimal string ('12.34', not cents). Zero and negative refunds allowed; no tolerance. Not combined with min_amount/max_amount.",
            "nullable": true,
            "oneOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "title": "Exact Amount"
          },
          "max_amount": {
            "default": null,
            "description": "Inclusive signed upper bound in major units.",
            "nullable": true,
            "oneOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "title": "Max Amount"
          },
          "min_amount": {
            "default": null,
            "description": "Inclusive signed lower bound in major units.",
            "nullable": true,
            "oneOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "title": "Min Amount"
          }
        },
        "required": [
          "basis"
        ],
        "title": "TransactionAmountFilter",
        "type": "object"
      },
      "TransactionDateFilterType": {
        "enum": [
          "accounting_date",
          "cleared_at",
          "transaction_time"
        ],
        "title": "TransactionDateFilterType",
        "type": "string"
      },
      "TransactionInfo": {
        "properties": {
          "accounting_categories": {
            "default": null,
            "items": {
              "$ref": "#/components/schemas/AccountingCategorySelectionInfo"
            },
            "nullable": true,
            "title": "Accounting Categories",
            "type": "array"
          },
          "accounting_date": {
            "default": null,
            "description": "Effective date the transaction posts to the accounting ledger, in ISO8601 format. Reflects accountant overrides and business sync settings, so it can differ from transaction_time and cleared_at. Null for DECLINED transactions and when not yet determined \u2014 most businesses book transactions on their cleared date, so PENDING transactions have no accounting date. Use this to determine the accounting period when reconciling against the general ledger/ERP.",
            "format": "date-time",
            "nullable": true,
            "title": "Accounting Date",
            "type": "string"
          },
          "amount": {
            "title": "Amount",
            "type": "string"
          },
          "amount_currency": {
            "default": null,
            "description": "ISO 4217 alphabetic currency of amount and amount_value (for example USD or CAD). Null when unavailable.",
            "nullable": true,
            "title": "Amount Currency",
            "type": "string"
          },
          "amount_value": {
            "default": null,
            "description": "Numeric form of amount as a decimal string in major units (for example 1234.56), with the same sign as amount and paired with amount_currency. Sum this, not the formatted amount, when totaling transactions, and only across rows with the same amount_currency. Null when unavailable.",
            "nullable": true,
            "title": "Amount Value",
            "type": "string"
          },
          "attendees": {
            "default": null,
            "items": {
              "$ref": "#/components/schemas/AttendeeInfo"
            },
            "nullable": true,
            "title": "Attendees",
            "type": "array"
          },
          "card": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CardInfo"
              }
            ],
            "default": null,
            "nullable": true
          },
          "cleared_at": {
            "default": null,
            "description": "Time the transaction cleared with the card network, in ISO8601 format. Null while the transaction is PENDING and for DECLINED transactions. Use this (not transaction_time) to match card statement lines, since a transaction can clear days after the purchase.",
            "format": "date-time",
            "nullable": true,
            "title": "Cleared At",
            "type": "string"
          },
          "decline_reason": {
            "default": null,
            "description": "Reason the transaction was declined, if available",
            "nullable": true,
            "title": "Decline Reason",
            "type": "string"
          },
          "entity_name": {
            "default": null,
            "description": "Display name of the business entity in entity_uuid, as shown in the Ramp Entity column of the transactions CSV export.",
            "nullable": true,
            "title": "Entity Name",
            "type": "string"
          },
          "entity_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "description": "UUID of the Ramp business entity (subsidiary or legal company) this transaction belongs to. Single-entity businesses return their primary entity. Group or filter by entity using this rather than entity_name. Does not reflect accounting entity overrides.",
            "nullable": true
          },
          "merchant_category": {
            "default": null,
            "description": "Ramp category of the matched merchant record. A generic merchant match can make this differ from transaction_category.",
            "nullable": true,
            "title": "Merchant Category",
            "type": "string"
          },
          "merchant_name": {
            "default": null,
            "nullable": true,
            "title": "Merchant Name",
            "type": "string"
          },
          "missing_fields_required_to_sync": {
            "default": null,
            "description": "Names of accounting fields required to sync to the accounting system that are still empty. Only returned with only_missing_fields_required_to_sync=true; null otherwise.",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "title": "Missing Fields Required To Sync",
            "type": "array"
          },
          "missing_items": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TransactionMissingItemsInfo"
              }
            ],
            "nullable": true
          },
          "original_amount": {
            "default": null,
            "description": "Original purchase amount as a decimal string in major units, paired with original_currency. May differ from the existing billing/display amount because of currency conversion. Null when original monetary data is unavailable; never an FX estimate.",
            "nullable": true,
            "title": "Original Amount",
            "type": "string"
          },
          "original_currency": {
            "default": null,
            "description": "ISO 4217 alphabetic currency of original_amount (for example USD or CAD). Null when original monetary data is unavailable.",
            "nullable": true,
            "title": "Original Currency",
            "type": "string"
          },
          "reason_or_justification": {
            "nullable": true,
            "title": "Reason Or Justification",
            "type": "string"
          },
          "receipt_uuids": {
            "default": null,
            "items": {
              "$ref": "#/components/schemas/EntityUUIDStr"
            },
            "nullable": true,
            "title": "Receipt Uuids",
            "type": "array"
          },
          "settlement_date": {
            "default": null,
            "description": "Date funds moved for the transaction (for refunds, the date funds were credited back), in YYYY-MM-DD format. Only present for CLEARED transactions; null while funds have not moved.",
            "nullable": true,
            "title": "Settlement Date",
            "type": "string"
          },
          "spend_allocation_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "description": "UUID of the fund/spend allocation this transaction is charged to",
            "nullable": true
          },
          "spend_allocation_name": {
            "default": null,
            "description": "The name of the fund/spend allocation this transaction is charged to",
            "nullable": true,
            "title": "Spend Allocation Name",
            "type": "string"
          },
          "spent_by_user": {
            "nullable": true,
            "title": "Spent By User",
            "type": "string"
          },
          "spent_by_user_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "description": "UUID of the Ramp user shown in spent_by_user. Group or count per person by this rather than by the display name, which two employees can share.",
            "nullable": true
          },
          "state": {
            "default": null,
            "description": "Transaction state, such as PENDING, CLEARED, or DECLINED",
            "nullable": true,
            "title": "State",
            "type": "string"
          },
          "suggested_codings": {
            "items": {
              "$ref": "#/components/schemas/SuggestedCodingsInfo"
            },
            "title": "Suggested Codings",
            "type": "array"
          },
          "suggested_memos": {
            "items": {
              "type": "string"
            },
            "title": "Suggested Memos",
            "type": "array"
          },
          "synced_at": {
            "default": null,
            "description": "Time when the transaction was synced to the customer's accounting system, in ISO8601 format. Null if not yet synced.",
            "format": "date-time",
            "nullable": true,
            "title": "Synced At",
            "type": "string"
          },
          "system_in_or_out_of_policy_assessment": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TransactionPolicyAssessment"
              }
            ],
            "nullable": true
          },
          "transaction_category": {
            "default": null,
            "description": "Ramp category of this transaction, derived from its card network MCC when Ramp maps that MCC, otherwise from the merchant (for example Fuel and Gas). Null when neither is known.",
            "nullable": true,
            "title": "Transaction Category",
            "type": "string"
          },
          "transaction_link": {
            "default": null,
            "description": "Ramp page for this transaction.",
            "nullable": true,
            "title": "Transaction Link",
            "type": "string"
          },
          "transaction_time": {
            "title": "Transaction Time",
            "type": "string"
          },
          "transaction_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "nullable": true
          },
          "trip_name": {
            "default": null,
            "nullable": true,
            "title": "Trip Name",
            "type": "string"
          },
          "trip_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "default": null,
            "nullable": true
          }
        },
        "required": [
          "amount",
          "missing_items",
          "reason_or_justification",
          "spent_by_user",
          "system_in_or_out_of_policy_assessment",
          "transaction_time",
          "transaction_uuid"
        ],
        "title": "TransactionInfo",
        "type": "object"
      },
      "TransactionLineAccountingField": {
        "properties": {
          "category": {
            "description": "Accounting field name, e.g. \"GL Account\".",
            "title": "Category",
            "type": "string"
          },
          "option": {
            "description": "Selected option name.",
            "title": "Option",
            "type": "string"
          },
          "option_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UUIDStr"
              }
            ],
            "description": "Selected option UUID."
          }
        },
        "required": [
          "category",
          "option",
          "option_id"
        ],
        "title": "TransactionLineAccountingField",
        "type": "object"
      },
      "TransactionLineItem": {
        "properties": {
          "accounting_fields": {
            "items": {
              "$ref": "#/components/schemas/TransactionLineAccountingField"
            },
            "title": "Accounting Fields",
            "type": "array"
          },
          "amount": {
            "description": "Line amount in the transaction currency's major unit, e.g. \"412.40\".",
            "title": "Amount",
            "type": "string"
          },
          "currency": {
            "description": "ISO 4217 currency code of `amount`.",
            "title": "Currency",
            "type": "string"
          },
          "id": {
            "description": "Persisted split line UUID; null for generated lines.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "memo": {
            "nullable": true,
            "title": "Memo",
            "type": "string"
          }
        },
        "required": [
          "accounting_fields",
          "amount",
          "currency",
          "id",
          "memo"
        ],
        "title": "TransactionLineItem",
        "type": "object"
      },
      "TransactionMissingItems": {
        "properties": {
          "missing_accounting_items": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/MissingAccountingItem"
            },
            "title": "Missing Accounting Items",
            "type": "array"
          },
          "missing_attendees": {
            "default": false,
            "title": "Missing Attendees",
            "type": "boolean"
          },
          "missing_memo": {
            "title": "Missing Memo",
            "type": "boolean"
          },
          "missing_receipt": {
            "title": "Missing Receipt",
            "type": "boolean"
          },
          "open_change_request": {
            "allOf": [
              {
                "$ref": "#/components/schemas/OpenChangeRequestInfo"
              }
            ],
            "default": null,
            "description": "A reviewer sent this transaction back with Request changes. Until the cardholder makes the changes and selects Send for review, it waits on the cardholder, even when no other item is missing and whatever `status` shows to a reviewer. Null when none is open.",
            "nullable": true
          },
          "policy_agent_requirements": {
            "default": [],
            "description": "Still-missing fields that Policy Agent required after reading the business's written expense policy. The submission policy may also require the same field. These count as missing items like any other.",
            "items": {
              "$ref": "#/components/schemas/PolicyAgentRequirement"
            },
            "title": "Policy Agent Requirements",
            "type": "array"
          },
          "receipt_upload_hint": {
            "default": null,
            "description": "How to upload the missing receipt, when available.",
            "nullable": true,
            "title": "Receipt Upload Hint",
            "type": "string"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TransactionStatus"
              }
            ],
            "default": null,
            "description": "Where the transaction stands and whose move it is.",
            "nullable": true
          },
          "transaction_id": {
            "title": "Transaction Id",
            "type": "string"
          }
        },
        "required": [
          "missing_memo",
          "missing_receipt",
          "transaction_id"
        ],
        "title": "TransactionMissingItems",
        "type": "object"
      },
      "TransactionMissingItemsInfo": {
        "properties": {
          "missing_attendee": {
            "default": false,
            "title": "Missing Attendee",
            "type": "boolean"
          },
          "missing_memo": {
            "default": false,
            "title": "Missing Memo",
            "type": "boolean"
          },
          "missing_purchase_order": {
            "default": false,
            "title": "Missing Purchase Order",
            "type": "boolean"
          },
          "missing_receipt": {
            "default": false,
            "title": "Missing Receipt",
            "type": "boolean"
          },
          "missing_tracking_categories": {
            "items": {
              "$ref": "#/components/schemas/TrackingCategoryInfo"
            },
            "title": "Missing Tracking Categories",
            "type": "array"
          },
          "missing_trip": {
            "default": false,
            "title": "Missing Trip",
            "type": "boolean"
          },
          "open_change_request": {
            "allOf": [
              {
                "$ref": "#/components/schemas/OpenChangeRequestInfo"
              }
            ],
            "default": null,
            "description": "A reviewer sent this transaction back with Request changes. Until the cardholder makes the changes and selects Send for review, it waits on the cardholder, even when no other item is missing. Null when none is open.",
            "nullable": true
          }
        },
        "title": "TransactionMissingItemsInfo",
        "type": "object"
      },
      "TransactionPolicyAssessment": {
        "description": "Assessment data for transaction approval decisions, focused on agent consumption.",
        "properties": {
          "recommended_action": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewRecommendedDecision"
              }
            ],
            "nullable": true
          },
          "recommended_action_rationale": {
            "nullable": true,
            "title": "Recommended Action Rationale",
            "type": "string"
          }
        },
        "required": [
          "recommended_action",
          "recommended_action_rationale"
        ],
        "title": "TransactionPolicyAssessment",
        "type": "object"
      },
      "TransactionRevisionSanctionLiftStatus": {
        "enum": [
          "PENDING_VERIFICATION"
        ],
        "title": "TransactionRevisionSanctionLiftStatus",
        "type": "string"
      },
      "TransactionRevisionTaskCompletionStatus": {
        "enum": [
          "COMPLETED"
        ],
        "title": "TransactionRevisionTaskCompletionStatus",
        "type": "string"
      },
      "TransactionSearchScopeRequestBody": {
        "enum": [
          "all_transactions_across_entire_business",
          "my_and_assisted_users_transactions",
          "my_transactions",
          "transactions_awaiting_my_approval",
          "transactions_made_by_my_team",
          "unsynced_transactions"
        ],
        "title": "TransactionSearchScope",
        "type": "string"
      },
      "TransactionStateFilterRequestBody": {
        "enum": [
          "all",
          "cleared",
          "declined",
          "pending"
        ],
        "title": "TransactionStateFilter",
        "type": "string"
      },
      "TransactionStatus": {
        "properties": {
          "details": {
            "default": null,
            "description": "A short explanation of the status, when there is one.",
            "nullable": true,
            "title": "Details",
            "type": "string"
          },
          "label": {
            "description": "Where the transaction stands for the acting user, such as 'Missing items' or 'Awaiting reviewer'.",
            "title": "Label",
            "type": "string"
          },
          "next_action": {
            "default": null,
            "description": "Whose move it is, such as AWAITING_CARDHOLDER or AWAITING_REVIEWER.",
            "nullable": true,
            "title": "Next Action",
            "type": "string"
          }
        },
        "required": [
          "label"
        ],
        "title": "TransactionStatus",
        "type": "object"
      },
      "TransferSpendAllocationOwnershipPublicRequestRequestBody": {
        "description": "Transfer ownership of a spend allocation using the current and new owners' emails. The new owner must be within the acting user's permitted scope. Transfers requiring approval are rejected without changes.",
        "properties": {
          "current_user_email": {
            "description": "Email of the current owner",
            "title": "Current User Email",
            "type": "string"
          },
          "new_user_email": {
            "description": "Email of the new owner",
            "title": "New User Email",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "spend_allocation_uuid": {
            "description": "UUID of the spend allocation to transfer",
            "title": "Spend Allocation Uuid",
            "type": "string"
          }
        },
        "required": [
          "current_user_email",
          "new_user_email",
          "rationale",
          "spend_allocation_uuid"
        ],
        "title": "TransferSpendAllocationOwnershipPublicRequest",
        "type": "object"
      },
      "TransferSpendAllocationOwnershipPublicResult": {
        "properties": {
          "message": {
            "title": "Message",
            "type": "string"
          },
          "spend_allocation_uuid": {
            "default": null,
            "description": "UUID of the spend allocation",
            "nullable": true,
            "title": "Spend Allocation Uuid",
            "type": "string"
          }
        },
        "required": [
          "message"
        ],
        "title": "TransferSpendAllocationOwnershipPublicResult",
        "type": "object"
      },
      "TravelLocationRequestBody": {
        "properties": {
          "city": {
            "default": null,
            "description": "City name",
            "nullable": true,
            "title": "City",
            "type": "string"
          },
          "country": {
            "default": null,
            "description": "Country name",
            "nullable": true,
            "title": "Country",
            "type": "string"
          },
          "lat": {
            "description": "Required latitude; city, state, and country are not geocoded.",
            "title": "Lat",
            "type": "number"
          },
          "lng": {
            "description": "Required longitude; city, state, and country are not geocoded.",
            "title": "Lng",
            "type": "number"
          },
          "state": {
            "default": null,
            "description": "State name",
            "nullable": true,
            "title": "State",
            "type": "string"
          },
          "timezone": {
            "default": null,
            "description": "Timezone",
            "nullable": true,
            "title": "Timezone",
            "type": "string"
          }
        },
        "required": [
          "lat",
          "lng"
        ],
        "title": "TravelLocation",
        "type": "object"
      },
      "TravelMode": {
        "enum": [
          "bicycling",
          "driving",
          "transit",
          "walking"
        ],
        "title": "TravelMode",
        "type": "string"
      },
      "TravelRequestActionRequestBody": {
        "description": "Approve or reject a travel request, or withdraw your own request still awaiting approval.\n\nCancel requires a standalone REQUESTED request with a PENDING approval and no\nreservation, soft approval, bundle, or modification. APPROVED requests cannot be\nwithdrawn, even with no linked reservation; absent linkage does not establish\nwhether purchase or ticketing has started. Only the request's traveler can withdraw\nit, not an arranger, administrator, or approver acting for someone else. It never\ndeletes records or cancels reservations. Already cancelled/rejected requests are unchanged.\n\nOnly act when the user's current instruction explicitly identifies this request or\nunambiguously refers to this exact request from the immediately preceding assistant\npreview. Never infer another pending or remaining request after completing an action.",
        "properties": {
          "action": {
            "description": "Approve/reject as an approver, or cancel to withdraw your own booking request only while its status is REQUESTED and approval is PENDING, without a reservation. APPROVED requests are not withdrawable even when no booking is linked.",
            "enum": [
              "approve",
              "cancel",
              "reject"
            ],
            "title": "Action",
            "type": "string"
          },
          "booking_request_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "description": "The UUID of the booking request to take action on."
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "rejection_reason": {
            "default": null,
            "description": "The reason for rejecting the booking request. Only used when action is 'reject'.",
            "nullable": true,
            "title": "Rejection Reason",
            "type": "string"
          }
        },
        "required": [
          "action",
          "booking_request_id",
          "rationale"
        ],
        "title": "TravelRequestAction",
        "type": "object"
      },
      "TravelRequestActionResult": {
        "description": "Result of an approval decision or requester withdrawal.",
        "properties": {
          "action": {
            "description": "The requested action: 'approve', 'reject', or 'cancel'",
            "title": "Action",
            "type": "string"
          },
          "cancellation_state": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BookingCancellationState"
              }
            ],
            "default": null,
            "description": "Canonical cancellation state when rejection requires cancellation",
            "nullable": true
          },
          "changed": {
            "default": null,
            "description": "For withdrawal, whether this call changed the request. Null for legacy approval decisions.",
            "nullable": true,
            "title": "Changed",
            "type": "boolean"
          },
          "message": {
            "description": "Result message describing what happened",
            "title": "Message",
            "type": "string"
          },
          "request_id": {
            "$ref": "#/components/schemas/EntityUUIDStr"
          },
          "request_status": {
            "default": null,
            "description": "Actual request state after withdrawal; this does not establish completion of background cleanup.",
            "nullable": true,
            "title": "Request Status",
            "type": "string"
          },
          "success": {
            "description": "Whether the action succeeded",
            "title": "Success",
            "type": "boolean"
          }
        },
        "required": [
          "action",
          "message",
          "request_id",
          "success"
        ],
        "title": "TravelRequestActionResult",
        "type": "object"
      },
      "TravelRequestInfo": {
        "description": "Information about a travel/booking request pending approval.",
        "properties": {
          "booking_details": {
            "description": "Details about the booking (destination, hotel name, etc.)",
            "title": "Booking Details",
            "type": "string"
          },
          "booking_type": {
            "description": "Type of booking (FLIGHT, HOTEL, CAR)",
            "title": "Booking Type",
            "type": "string"
          },
          "policy_violations": {
            "default": null,
            "description": "List of policy violations, if any",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "title": "Policy Violations",
            "type": "array"
          },
          "request_id": {
            "$ref": "#/components/schemas/EntityUUIDStr"
          },
          "requester_name": {
            "description": "Name of the person who made the request",
            "title": "Requester Name",
            "type": "string"
          },
          "soft_approval_notice": {
            "default": null,
            "description": "Display-ready consequence and deadline for a pending soft-approved booking. Present verbatim as its own bullet.",
            "nullable": true,
            "title": "Soft Approval Notice",
            "type": "string"
          },
          "total_amount": {
            "description": "Formatted total booking amount. Present this as its own bullet.",
            "title": "Total Amount",
            "type": "string"
          },
          "traveler_name": {
            "default": null,
            "description": "Name of the traveler (if different from requester)",
            "nullable": true,
            "title": "Traveler Name",
            "type": "string"
          }
        },
        "required": [
          "booking_details",
          "booking_type",
          "request_id",
          "requester_name",
          "total_amount"
        ],
        "title": "TravelRequestInfo",
        "type": "object"
      },
      "TravelRequestListResult": {
        "description": "Result of retrieving pending travel requests.",
        "properties": {
          "next_page_cursor": {
            "default": null,
            "description": "Cursor for the next page. Pass this value back unchanged; null means there are no more results.",
            "nullable": true,
            "title": "Next Page Cursor",
            "type": "string"
          },
          "requests": {
            "description": "List of pending travel requests",
            "items": {
              "$ref": "#/components/schemas/TravelRequestInfo"
            },
            "title": "Requests",
            "type": "array"
          },
          "summary": {
            "description": "Human-readable summary of the results",
            "title": "Summary",
            "type": "string"
          },
          "total_count": {
            "description": "Total number of pending requests",
            "title": "Total Count",
            "type": "integer"
          }
        },
        "required": [
          "summary",
          "total_count"
        ],
        "title": "TravelRequestListResult",
        "type": "object"
      },
      "TravelSeatPreferenceRequestBody": {
        "enum": [
          "aisle",
          "middle",
          "no_preference",
          "window"
        ],
        "title": "TravelSeatPreference",
        "type": "string"
      },
      "TravelTimeWindowRequestBody": {
        "enum": [
          "afternoon",
          "evening",
          "morning",
          "no_preference"
        ],
        "title": "TravelTimeWindow",
        "type": "string"
      },
      "TravelerLoyaltyProgramDataSchema": {
        "description": "Pydantic schema for traveler loyalty program data.",
        "properties": {
          "id": {
            "title": "Id",
            "type": "string"
          },
          "loyalty_number": {
            "title": "Loyalty Number",
            "type": "string"
          },
          "loyalty_program": {
            "$ref": "#/components/schemas/LoyaltyProgramDataSchema"
          }
        },
        "required": [
          "id",
          "loyalty_number",
          "loyalty_program"
        ],
        "title": "TravelerLoyaltyProgramDataSchema",
        "type": "object"
      },
      "TravelerProfileDataSchema": {
        "description": "Pydantic schema for traveler profile data, reusable by agent tools.\n\nMatches TravelerProfileSchema field structure. Required fields are always\npopulated when a profile exists (these are non-nullable in TravelerProfile).",
        "properties": {
          "comments": {
            "default": null,
            "description": "Saved free-text flight and hotel preferences used for future recommendations; null when none are saved",
            "nullable": true,
            "title": "Comments",
            "type": "string"
          },
          "date_of_birth": {
            "nullable": true,
            "oneOf": [
              {
                "format": "date",
                "type": "string"
              },
              {
                "type": "string"
              }
            ],
            "title": "Date Of Birth"
          },
          "email": {
            "title": "Email",
            "type": "string"
          },
          "first_name": {
            "title": "First Name",
            "type": "string"
          },
          "id_gender": {
            "default": null,
            "nullable": true,
            "title": "Id Gender",
            "type": "string"
          },
          "known_traveler_number": {
            "default": null,
            "nullable": true,
            "title": "Known Traveler Number",
            "type": "string"
          },
          "last_name": {
            "title": "Last Name",
            "type": "string"
          },
          "loyalty_programs": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/TravelerLoyaltyProgramDataSchema"
            },
            "title": "Loyalty Programs",
            "type": "array"
          },
          "middle_name": {
            "default": null,
            "nullable": true,
            "title": "Middle Name",
            "type": "string"
          },
          "name_prefix": {
            "default": null,
            "nullable": true,
            "title": "Name Prefix",
            "type": "string"
          },
          "name_suffix": {
            "default": null,
            "nullable": true,
            "title": "Name Suffix",
            "type": "string"
          },
          "phone_country_code": {
            "default": null,
            "nullable": true,
            "title": "Phone Country Code",
            "type": "string"
          },
          "phone_number": {
            "nullable": true,
            "title": "Phone Number",
            "type": "string"
          },
          "redress_number": {
            "default": null,
            "nullable": true,
            "title": "Redress Number",
            "type": "string"
          }
        },
        "required": [
          "date_of_birth",
          "email",
          "first_name",
          "last_name",
          "phone_number"
        ],
        "title": "TravelerProfileDataSchema",
        "type": "object"
      },
      "TreasuryAccountInfo": {
        "properties": {
          "account_type": {
            "title": "Account Type",
            "type": "string"
          },
          "account_type_label": {
            "title": "Account Type Label",
            "type": "string"
          },
          "available_balance": {
            "default": null,
            "nullable": true,
            "title": "Available Balance",
            "type": "number"
          },
          "currency": {
            "default": null,
            "nullable": true,
            "title": "Currency",
            "type": "string"
          },
          "entity_name": {
            "default": null,
            "nullable": true,
            "title": "Entity Name",
            "type": "string"
          },
          "entity_uuid": {
            "default": null,
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "statement_balance": {
            "default": null,
            "nullable": true,
            "title": "Statement Balance",
            "type": "number"
          },
          "status": {
            "default": null,
            "nullable": true,
            "title": "Status",
            "type": "string"
          },
          "total_earnings": {
            "default": null,
            "nullable": true,
            "title": "Total Earnings",
            "type": "number"
          },
          "uuid": {
            "$ref": "#/components/schemas/UUIDStr"
          },
          "yield_rate": {
            "default": null,
            "nullable": true,
            "title": "Yield Rate",
            "type": "number"
          }
        },
        "required": [
          "account_type",
          "account_type_label",
          "name",
          "uuid"
        ],
        "title": "TreasuryAccountInfo",
        "type": "object"
      },
      "TreasuryDocumentInfoJsonMode": {
        "properties": {
          "account_name": {
            "title": "Account Name",
            "type": "string"
          },
          "account_type": {
            "title": "Account Type",
            "type": "string"
          },
          "account_uuid": {
            "$ref": "#/components/schemas/UUIDStrJsonMode"
          },
          "created_at": {
            "title": "Created At",
            "type": "string"
          },
          "document_end_date": {
            "format": "date",
            "title": "Document End Date",
            "type": "string"
          },
          "document_start_date": {
            "format": "date",
            "title": "Document Start Date",
            "type": "string"
          },
          "document_type": {
            "title": "Document Type",
            "type": "string"
          },
          "document_uuid": {
            "$ref": "#/components/schemas/UUIDStrJsonMode"
          },
          "entity_name": {
            "title": "Entity Name",
            "type": "string"
          },
          "entity_uuid": {
            "$ref": "#/components/schemas/UUIDStrJsonMode"
          },
          "legal_entity_name": {
            "title": "Legal Entity Name",
            "type": "string"
          },
          "legal_entity_uuid": {
            "$ref": "#/components/schemas/UUIDStrJsonMode"
          }
        },
        "required": [
          "account_name",
          "account_type",
          "account_uuid",
          "created_at",
          "document_end_date",
          "document_start_date",
          "document_type",
          "document_uuid",
          "entity_name",
          "entity_uuid",
          "legal_entity_name",
          "legal_entity_uuid"
        ],
        "title": "TreasuryDocumentInfo",
        "type": "object"
      },
      "TreasuryStatementPublicSelectionRequestBody": {
        "properties": {
          "document_type": {
            "description": "Monthly Ramp Checking Account statements are supported.",
            "enum": [
              "MONTHLY_STATEMENT"
            ],
            "title": "Document Type",
            "type": "string"
          },
          "document_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UUIDStrRequestBody"
              }
            ],
            "description": "UUID of the statement to include."
          }
        },
        "required": [
          "document_type",
          "document_uuid"
        ],
        "title": "TreasuryStatementPublicSelection",
        "type": "object"
      },
      "TripCreationResult": {
        "properties": {
          "end_date": {
            "description": "End date of the trip",
            "title": "End Date",
            "type": "string"
          },
          "start_date": {
            "description": "Start date of the trip",
            "title": "Start Date",
            "type": "string"
          },
          "trip_name": {
            "default": null,
            "description": "Name of the created trip",
            "nullable": true,
            "title": "Trip Name",
            "type": "string"
          },
          "trip_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "description": "UUID of the created trip"
          }
        },
        "required": [
          "end_date",
          "start_date",
          "trip_uuid"
        ],
        "title": "TripCreationResult",
        "type": "object"
      },
      "TripFollowUp": {
        "description": "A trip the new booking joined, and the booking it still lacks.",
        "properties": {
          "end_date": {
            "description": "Trip end date (YYYY-MM-DD).",
            "title": "End Date",
            "type": "string"
          },
          "flight_origin": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DefaultFlightDeparture"
              }
            ],
            "default": null,
            "description": "For a flight offer, the origin a flight search would default to. Null when no origin could be inferred, or for other offers.",
            "nullable": true
          },
          "name": {
            "description": "Trip name.",
            "title": "Name",
            "type": "string"
          },
          "offer": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TripFollowUpOffer"
              }
            ],
            "description": "The booking the trip still lacks and that you may offer next."
          },
          "start_date": {
            "description": "Trip start date (YYYY-MM-DD).",
            "title": "Start Date",
            "type": "string"
          },
          "trip_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "description": "Trip the booking was attached to. Pass as trip_id when booking the offered flight or hotel."
          }
        },
        "required": [
          "end_date",
          "name",
          "offer",
          "start_date",
          "trip_id"
        ],
        "title": "TripFollowUp",
        "type": "object"
      },
      "TripFollowUpOffer": {
        "enum": [
          "flight",
          "hotel"
        ],
        "title": "TripFollowUpOffer",
        "type": "string"
      },
      "TripListResult": {
        "properties": {
          "trips": {
            "items": {
              "type": "object"
            },
            "title": "Trips",
            "type": "array"
          }
        },
        "title": "TripListResult",
        "type": "object"
      },
      "TripLocationRequestBody": {
        "properties": {
          "end_date": {
            "default": null,
            "description": "End of the stay at this location as an RFC3339 datetime with a UTC offset (for example 2026-07-23T18:00:00-04:00). Required for every destination when more than one destination is provided; ignored for a single destination.",
            "format": "date-time",
            "nullable": true,
            "title": "End Date",
            "type": "string"
          },
          "location": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TravelLocationRequestBody"
              }
            ],
            "description": "The location details"
          },
          "start_date": {
            "default": null,
            "description": "Start of the stay at this location as an RFC3339 datetime with a UTC offset (for example 2026-07-21T08:00:00-04:00). Required for every destination when more than one destination is provided; ignored for a single destination.",
            "format": "date-time",
            "nullable": true,
            "title": "Start Date",
            "type": "string"
          }
        },
        "required": [
          "location"
        ],
        "title": "TripLocation",
        "type": "object"
      },
      "TripSelectionRequestBody": {
        "description": "Trip selection configuration for a transaction.",
        "properties": {
          "mark_not_part_of_trip": {
            "default": false,
            "description": "Whether the transaction genuinely is not part of any trip. This satisfies trip policy requirements; do not use it merely to correct a wrong attached trip.",
            "title": "Mark Not Part Of Trip",
            "type": "boolean"
          },
          "trip_uuid": {
            "default": null,
            "description": "UUID of the trip to assign. Set to None to detach a wrong trip while leaving the transaction eligible for another trip.",
            "nullable": true,
            "title": "Trip Uuid",
            "type": "string"
          }
        },
        "title": "TripSelection",
        "type": "object"
      },
      "UUIDStr": {
        "format": "uuid",
        "type": "string"
      },
      "UUIDStrJsonMode": {
        "format": "uuid",
        "type": "string"
      },
      "UUIDStrRequestBody": {
        "format": "uuid",
        "type": "string"
      },
      "UatpProgram": {
        "description": "UATP payment programs Ramp supports.\n\nDeliberately separate from ``FlightFareProgram``, which mirrors Atlas: a new\nAtlas fare program must not become a UATP payment program implicitly.",
        "enum": [
          "UNITED_PASSPLUS"
        ],
        "title": "UatpProgram",
        "type": "string"
      },
      "UnarchiveSpendAllocationOutput": {
        "properties": {
          "message": {
            "description": "Result message",
            "title": "Message",
            "type": "string"
          },
          "success": {
            "description": "Whether the unarchive operation succeeded",
            "title": "Success",
            "type": "boolean"
          }
        },
        "required": [
          "message",
          "success"
        ],
        "title": "UnarchiveSpendAllocationOutput",
        "type": "object"
      },
      "UnarchiveSpendAllocationToolRequestBody": {
        "description": "Unarchive a fund so it becomes visible and spendable again.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "spend_allocation_uuid": {
            "description": "The UUID of the spend allocation to unarchive",
            "title": "Spend Allocation Uuid",
            "type": "string"
          }
        },
        "required": [
          "rationale",
          "spend_allocation_uuid"
        ],
        "title": "UnarchiveSpendAllocationTool",
        "type": "object"
      },
      "UnifiedFieldView": {
        "description": "LLM-facing projection of a :class:`UnifiedField`, shared by the WBX read\nand update tools.\n\nFlattens the field's schema (type, select options, conditional\nrequiredness) alongside its current value and attribution into a single\nmodel the agent can read, so it always sees canonical types and allowed\noptions when deciding what to write \u2014 including immediately after a write,\nfrom the update tool's return. Distinct from ``UnifiedField`` (a frozen\ndomain dataclass nesting ``input_field``); this is the tool-output schema.",
        "properties": {
          "actor": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FieldValueActor"
              }
            ],
            "default": null,
            "nullable": true
          },
          "allowed_file_types": {
            "default": null,
            "description": "Allowed filename extensions for file-upload fields.",
            "items": {
              "$ref": "#/components/schemas/Filetype"
            },
            "nullable": true,
            "title": "Allowed File Types",
            "type": "array"
          },
          "description": {
            "default": null,
            "description": "Optional helper text / guidance for the field.",
            "nullable": true,
            "title": "Description",
            "type": "string"
          },
          "exclude_from_ai_prefill": {
            "default": false,
            "description": "Whether this field only accepts explicit user answers, not AI-inferred values.",
            "title": "Exclude From Ai Prefill",
            "type": "boolean"
          },
          "field_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CustomFormFieldType"
              }
            ],
            "description": "Schema field type; determines the value format to write."
          },
          "has_value": {
            "description": "Whether a value has been collected.",
            "title": "Has Value",
            "type": "boolean"
          },
          "label": {
            "description": "Human-readable field label.",
            "title": "Label",
            "type": "string"
          },
          "name": {
            "description": "Field name; pass this as the write key.",
            "title": "Name",
            "type": "string"
          },
          "options": {
            "default": null,
            "description": "Allowed values for select fields; write exactly one of these.",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "title": "Options",
            "type": "array"
          },
          "required": {
            "description": "Whether the field must be filled given its current visibility.",
            "title": "Required",
            "type": "boolean"
          },
          "requiredness": {
            "default": "",
            "description": "Requiredness including any conditional gate, e.g. 'required when visible if has_sow=\"Yes\"'.",
            "title": "Requiredness",
            "type": "string"
          },
          "source_detail": {
            "default": null,
            "nullable": true,
            "title": "Source Detail",
            "type": "string"
          },
          "source_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FieldValueSourceType"
              }
            ],
            "default": null,
            "nullable": true
          },
          "source_url": {
            "default": null,
            "nullable": true,
            "title": "Source Url",
            "type": "string"
          },
          "validation_errors": {
            "description": "Validation errors on the current value, if any.",
            "items": {
              "type": "string"
            },
            "title": "Validation Errors",
            "type": "array"
          },
          "value": {
            "default": null,
            "description": "Current value, JSON-encoded, for reading. Do not echo it back as a write: some stored dumps differ from the write payload (e.g. FILE_UPLOAD stores file metadata but is written as attachment IDs). Build write values from the field_type formats documented on the update tool.",
            "nullable": true,
            "title": "Value",
            "type": "string"
          },
          "writable": {
            "default": true,
            "description": "Whether the field-update tool accepts this field in `fields`. False = read-only/derived \u2014 never write it.",
            "title": "Writable",
            "type": "boolean"
          }
        },
        "required": [
          "field_type",
          "has_value",
          "label",
          "name",
          "required"
        ],
        "title": "UnifiedFieldView",
        "type": "object"
      },
      "UnifiedRequestActionResult": {
        "properties": {
          "action": {
            "title": "Action",
            "type": "string"
          },
          "already_applied": {
            "default": false,
            "description": "True when the request was already in the state this action produces, so nothing changed.",
            "title": "Already Applied",
            "type": "boolean"
          },
          "approval_candidates": {
            "description": "Pending admin approval steps when selection is required.",
            "items": {
              "$ref": "#/components/schemas/AdminApprovalCandidate"
            },
            "title": "Approval Candidates",
            "type": "array"
          },
          "approval_instance_uuid": {
            "default": null,
            "description": "Exact step UUID to reuse when confirming admin approval.",
            "nullable": true,
            "title": "Approval Instance Uuid",
            "type": "string"
          },
          "confirmation_required": {
            "default": false,
            "description": "True when approval awaits confirmation; ask the question in message and wait for the user's answer.",
            "title": "Confirmation Required",
            "type": "boolean"
          },
          "docstring": {
            "default": "Request decision result; selection_required or confirmation_required means no approval was applied.",
            "title": "Docstring",
            "type": "string"
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "request_status": {
            "default": null,
            "description": "Request status after the action (DRAFT, SUBMITTED, APPROVED, or REJECTED).",
            "nullable": true,
            "title": "Request Status",
            "type": "string"
          },
          "selection_required": {
            "default": false,
            "description": "True when the user must select a pending step; selection is not confirmation.",
            "title": "Selection Required",
            "type": "boolean"
          },
          "success": {
            "description": "True if handled; selection_required or confirmation_required means no approval was applied.",
            "title": "Success",
            "type": "boolean"
          },
          "unified_request_id": {
            "description": "UUID for the unified request",
            "title": "Unified Request Id",
            "type": "string"
          }
        },
        "required": [
          "action",
          "message",
          "success",
          "unified_request_id"
        ],
        "title": "UnifiedRequestActionResult",
        "type": "object"
      },
      "UnifiedRequestCategoryRequestBody": {
        "description": "- SPEND_ALLOCATION: Originally referred only to SpendAllocation (funds) requests, but was\n  expanded to also include Travel requests (i.e. Travel & Expenses), hence the name not\n  fully reflecting its scope. Matches requests where spend_request_type is SPEND_ALLOCATION\n  or TRAVEL, and either there is no SpendIntent (e.g. one-off flows like `General expenses`\n  and `Product or service`) or the spend_intent_type is SPEND_ALLOCATION or TRAVEL.\n- PROCUREMENT: Refers to requests whose spend_intent_type is PROCUREMENT.",
        "enum": [
          "PROCUREMENT",
          "SPEND_ALLOCATION"
        ],
        "title": "UnifiedRequestCategory",
        "type": "string"
      },
      "UnifiedRequestDetails": {
        "description": "Core details about the request.",
        "properties": {
          "amount_per_period": {
            "default": null,
            "description": "Formatted amount (e.g., '$1,234.56'), to be available for spending at the indicated frequency (e.g. $50.00 monthly)",
            "nullable": true,
            "title": "Amount Per Period",
            "type": "string"
          },
          "business_entity": {
            "default": null,
            "description": "Entity name",
            "nullable": true,
            "title": "Business Entity",
            "type": "string"
          },
          "docstring": {
            "default": "Describes what the requester is requesting, typically some amount of money, to be spent at an optional frequency period if it's recurring.",
            "title": "Docstring",
            "type": "string"
          },
          "name": {
            "default": null,
            "description": "Name/title of the request",
            "nullable": true,
            "title": "Name",
            "type": "string"
          },
          "payment_method": {
            "default": null,
            "description": "Allowed payment methods (comma-separated)",
            "nullable": true,
            "title": "Payment Method",
            "type": "string"
          },
          "period_frequency": {
            "default": null,
            "description": "Spending frequency (e.g., 'Total', 'Monthly')",
            "nullable": true,
            "title": "Period Frequency",
            "type": "string"
          },
          "reason_or_justification": {
            "default": null,
            "description": "Reason or justification for the request",
            "nullable": true,
            "title": "Reason Or Justification",
            "type": "string"
          },
          "request_type": {
            "description": "Type of request (e.g., 'Purchase order', 'New funds')",
            "title": "Request Type",
            "type": "string"
          },
          "spend_program": {
            "default": null,
            "description": "Associated spend program name",
            "nullable": true,
            "title": "Spend Program",
            "type": "string"
          },
          "total_amount_over_all_periods": {
            "default": null,
            "description": "Formatted total amount (e.g., '$1,234.56')",
            "nullable": true,
            "title": "Total Amount Over All Periods",
            "type": "string"
          }
        },
        "required": [
          "request_type"
        ],
        "title": "UnifiedRequestDetails",
        "type": "object"
      },
      "UnifiedRequestDetailsOutput": {
        "properties": {
          "agent_reports": {
            "items": {
              "$ref": "#/components/schemas/AgentReportSummary"
            },
            "title": "Agent Reports",
            "type": "array"
          },
          "ai_summary": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SpendRequestAISummaryInfo"
              }
            ],
            "default": null,
            "nullable": true
          },
          "amount": {
            "default": null,
            "nullable": true,
            "title": "Amount",
            "type": "string"
          },
          "approval_workflow": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApprovalWorkflowStatus"
              }
            ],
            "default": null,
            "nullable": true
          },
          "attachments": {
            "description": "Every file in the request's Documents section: request uploads, purchase order documents, and intake and approval-workflow form field uploads, each once at its latest version, newest first, capped at 50. Only populated when include_form_details is set. Each has a download URL when the acting user can read it; no file contents.",
            "items": {
              "$ref": "#/components/schemas/AttachmentInfo"
            },
            "title": "Attachments",
            "type": "array"
          },
          "change_options": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RequestChangeOptions"
              }
            ],
            "default": null,
            "description": "The acting user's ways to change a submitted, approved, or rejected procurement request, which cannot be edited in chat. Null for drafts, policy-backed requests, and non-procurement requests.",
            "nullable": true
          },
          "change_request_diff": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProcurementChangeRequestFieldsDiff"
              }
            ],
            "default": null,
            "description": "Changes from the original purchase order. Each line item includes only the values that changed; a line item with no new value was removed.",
            "nullable": true
          },
          "comments": {
            "items": {
              "$ref": "#/components/schemas/CommentInfo"
            },
            "title": "Comments",
            "type": "array"
          },
          "custom_field_answers": {
            "description": "Answers to the spend program's custom form, one entry per form field (unanswered fields have a null value), capped at 100. File-upload answers list their files, which also appear in attachments. Only populated when include_form_details is set. Empty for policy-backed requests, whose fields are in workflow_backed_request, and for requests without a form.",
            "items": {
              "$ref": "#/components/schemas/CustomFieldAnswerInfo"
            },
            "title": "Custom Field Answers",
            "type": "array"
          },
          "display_request_number": {
            "default": null,
            "description": "Human-facing request number, for example \"REQ-35\"",
            "nullable": true,
            "title": "Display Request Number",
            "type": "string"
          },
          "event_history": {
            "items": {
              "$ref": "#/components/schemas/EventInfo"
            },
            "title": "Event History",
            "type": "array"
          },
          "has_pending_change_request": {
            "default": false,
            "description": "True when a submitted change request against this request's purchase order is awaiting approval; a new change request cannot be drafted until it is resolved.",
            "title": "Has Pending Change Request",
            "type": "boolean"
          },
          "internal_memo": {
            "default": null,
            "description": "The request's internal memo; only populated when include_form_details is set, null when none was written.",
            "nullable": true,
            "title": "Internal Memo",
            "type": "string"
          },
          "is_change_request": {
            "description": "Whether this request modifies an existing request.",
            "title": "Is Change Request",
            "type": "boolean"
          },
          "original_request": {
            "allOf": [
              {
                "$ref": "#/components/schemas/OriginalProcurementRequest"
              }
            ],
            "default": null,
            "nullable": true
          },
          "pending_change_request_uuid": {
            "default": null,
            "description": "spend_request_uuid of the pending change request, accepted by this lookup.",
            "nullable": true,
            "title": "Pending Change Request Uuid",
            "type": "string"
          },
          "purchase_order_id": {
            "default": null,
            "nullable": true,
            "title": "Purchase Order Id",
            "type": "string"
          },
          "reason": {
            "default": null,
            "nullable": true,
            "title": "Reason",
            "type": "string"
          },
          "request_name": {
            "title": "Request Name",
            "type": "string"
          },
          "request_type": {
            "description": "The request's resource category, such as SPEND_ALLOCATION or PURCHASE_ORDER. This does not indicate whether the request is new or modifies an existing request.",
            "title": "Request Type",
            "type": "string"
          },
          "requester_email": {
            "title": "Requester Email",
            "type": "string"
          },
          "requester_name": {
            "title": "Requester Name",
            "type": "string"
          },
          "spend_allocation_uuid": {
            "default": null,
            "nullable": true,
            "title": "Spend Allocation Uuid",
            "type": "string"
          },
          "spend_request_uuid": {
            "default": null,
            "nullable": true,
            "title": "Spend Request Uuid",
            "type": "string"
          },
          "status": {
            "title": "Status",
            "type": "string"
          },
          "submitted_date": {
            "default": null,
            "nullable": true,
            "title": "Submitted Date",
            "type": "string"
          },
          "unified_request_id": {
            "description": "UUID for the unified request",
            "title": "Unified Request Id",
            "type": "string"
          },
          "workflow_backed_request": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WorkflowBackedRequestDetails"
              }
            ],
            "default": null,
            "description": "Policy, custom fields, missing fields, and canonical wbp_request_id when this unified request is workflow-backed. Use wbp_request_id only with tools that explicitly request it, such as ResumeWbxRequest.",
            "nullable": true
          }
        },
        "required": [
          "is_change_request",
          "request_name",
          "request_type",
          "requester_email",
          "requester_name",
          "status",
          "unified_request_id"
        ],
        "title": "UnifiedRequestDetailsOutput",
        "type": "object"
      },
      "UnifiedRequestInfo": {
        "description": "Comprehensive information about a unified request.",
        "properties": {
          "approved_date": {
            "default": null,
            "description": "Date when the request was approved",
            "nullable": true,
            "title": "Approved Date",
            "type": "string"
          },
          "auto_lock_date": {
            "default": null,
            "description": "Date when the request will auto-lock",
            "nullable": true,
            "title": "Auto Lock Date",
            "type": "string"
          },
          "details": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UnifiedRequestDetails"
              }
            ],
            "description": "Request details"
          },
          "display_request_number": {
            "default": null,
            "description": "Human-facing request number, for example \"REQ-35\"",
            "nullable": true,
            "title": "Display Request Number",
            "type": "string"
          },
          "end_date": {
            "default": null,
            "description": "End date for spending",
            "nullable": true,
            "title": "End Date",
            "type": "string"
          },
          "owner": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UnifiedRequestOwner"
              }
            ],
            "description": "The user who owns the object that the request is changing"
          },
          "purchase_order_id": {
            "default": null,
            "description": "UUID of the purchase order this request created or changes, when one exists. This is the only identifier purchase-order detail lookups accept; it differs from unified_request_id even when the two share a prefix.",
            "nullable": true,
            "title": "Purchase Order Id",
            "type": "string"
          },
          "purchase_order_number": {
            "default": null,
            "description": "Purchase order number if applicable",
            "nullable": true,
            "title": "Purchase Order Number",
            "type": "string"
          },
          "request_date": {
            "default": null,
            "description": "Date when the request was submitted",
            "nullable": true,
            "title": "Request Date",
            "type": "string"
          },
          "requester": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UnifiedRequestRequester"
              }
            ],
            "description": "The user who made the request, possibly on the owner's behalf"
          },
          "spend_request_uuid": {
            "default": null,
            "description": "UUID for the underlying spend request, when one exists.",
            "nullable": true,
            "title": "Spend Request Uuid",
            "type": "string"
          },
          "start_date": {
            "default": null,
            "description": "Start date for spending eligibility",
            "nullable": true,
            "title": "Start Date",
            "type": "string"
          },
          "status": {
            "default": null,
            "description": "Current request status",
            "nullable": true,
            "title": "Status",
            "type": "string"
          },
          "unified_request_id": {
            "description": "UUID for the unified request. For a DRAFT, pass it as ResumeUnifiedRequest.request_id to pick the draft back up.",
            "title": "Unified Request Id",
            "type": "string"
          },
          "vendor_name": {
            "default": null,
            "description": "Vendor or payee name associated with the request",
            "nullable": true,
            "title": "Vendor Name",
            "type": "string"
          },
          "wbp_request_id": {
            "default": null,
            "description": "Canonical workflow-backed policy request UUID. Present only when the unified request is WBP-backed.",
            "nullable": true,
            "title": "Wbp Request Id",
            "type": "string"
          },
          "workflow_backed_policy_id": {
            "default": null,
            "description": "Workflow-backed policy UUID for a policy-backed request. Present only when wbp_request_id is present.",
            "nullable": true,
            "title": "Workflow Backed Policy Id",
            "type": "string"
          },
          "workflow_backed_policy_name": {
            "default": null,
            "description": "Display name of the workflow-backed policy for a policy-backed request.",
            "nullable": true,
            "title": "Workflow Backed Policy Name",
            "type": "string"
          }
        },
        "required": [
          "details",
          "owner",
          "requester",
          "unified_request_id"
        ],
        "title": "UnifiedRequestInfo",
        "type": "object"
      },
      "UnifiedRequestListResult": {
        "description": "Result of fetching a paginated list of requests.",
        "properties": {
          "next_page_cursor": {
            "default": null,
            "description": "Cursor for fetching the next page",
            "nullable": true,
            "title": "Next Page Cursor",
            "type": "string"
          },
          "requests": {
            "description": "List of requests",
            "items": {
              "$ref": "#/components/schemas/UnifiedRequestInfo"
            },
            "title": "Requests",
            "type": "array"
          },
          "summary": {
            "description": "Natural language summary of the results",
            "title": "Summary",
            "type": "string"
          },
          "total_count": {
            "default": null,
            "description": "Total number of requests for badges",
            "nullable": true,
            "title": "Total Count",
            "type": "integer"
          }
        },
        "required": [
          "requests",
          "summary"
        ],
        "title": "UnifiedRequestListResult",
        "type": "object"
      },
      "UnifiedRequestNoMatch": {
        "properties": {
          "found": {
            "default": false,
            "description": "Always false: the identifier matched no request for this user.",
            "enum": [
              false
            ],
            "title": "Found",
            "type": "boolean"
          },
          "message": {
            "description": "What did not match and how to continue. Nothing was changed.",
            "title": "Message",
            "type": "string"
          },
          "reason": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UnifiedRequestNoMatchReason"
              }
            ],
            "description": "not_found_or_not_visible: no visible request has this identifier. invalid_identifier: the value is not a request UUID or display number. purchase_order_without_request: a visible purchase order with no request."
          },
          "requested_id": {
            "description": "The identifier exactly as supplied.",
            "title": "Requested Id",
            "type": "string"
          }
        },
        "required": [
          "message",
          "reason",
          "requested_id"
        ],
        "title": "UnifiedRequestNoMatch",
        "type": "object"
      },
      "UnifiedRequestNoMatchReason": {
        "enum": [
          "invalid_identifier",
          "not_found_or_not_visible",
          "purchase_order_without_request"
        ],
        "title": "UnifiedRequestNoMatchReason",
        "type": "string"
      },
      "UnifiedRequestOwner": {
        "description": "Information about the owner of the request.",
        "properties": {
          "department": {
            "default": null,
            "description": "Owner's department",
            "nullable": true,
            "title": "Department",
            "type": "string"
          },
          "email": {
            "description": "Email address of the owner",
            "title": "Email",
            "type": "string"
          },
          "location": {
            "default": null,
            "description": "Owner's location",
            "nullable": true,
            "title": "Location",
            "type": "string"
          },
          "name": {
            "description": "Full name of the owner",
            "title": "Name",
            "type": "string"
          },
          "user_id": {
            "description": "UUID of the owner",
            "title": "User Id",
            "type": "string"
          }
        },
        "required": [
          "email",
          "name",
          "user_id"
        ],
        "title": "UnifiedRequestOwner",
        "type": "object"
      },
      "UnifiedRequestRequester": {
        "description": "Information about the person who created the request.",
        "properties": {
          "email": {
            "description": "Email address of the requester",
            "title": "Email",
            "type": "string"
          },
          "name": {
            "description": "Full name of the requester",
            "title": "Name",
            "type": "string"
          },
          "user_id": {
            "description": "UUID of the requester",
            "title": "User Id",
            "type": "string"
          }
        },
        "required": [
          "email",
          "name",
          "user_id"
        ],
        "title": "UnifiedRequestRequester",
        "type": "object"
      },
      "UnifiedRequestSearchFiltersRequestBody": {
        "properties": {
          "approved_at_max": {
            "default": null,
            "description": "Inclusive latest approval timestamp in ISO 8601 format.",
            "format": "date-time",
            "nullable": true,
            "title": "Approved At Max",
            "type": "string"
          },
          "approved_at_min": {
            "default": null,
            "description": "Inclusive earliest approval timestamp in ISO 8601 format.",
            "format": "date-time",
            "nullable": true,
            "title": "Approved At Min",
            "type": "string"
          },
          "department_ids": {
            "default": null,
            "description": "Exact owner department UUIDs. Use ListDepartments to resolve department names first.",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "title": "Department Ids",
            "type": "array"
          },
          "is_change_request": {
            "default": null,
            "description": "True for change orders, false to exclude change orders. To find new procurement requests, set this and is_renewal_request to false.",
            "nullable": true,
            "title": "Is Change Request",
            "type": "boolean"
          },
          "is_renewal_request": {
            "default": null,
            "description": "True for renewals, false to exclude renewals. To find new procurement requests, set this and is_change_request to false.",
            "nullable": true,
            "title": "Is Renewal Request",
            "type": "boolean"
          },
          "owner_ids": {
            "default": null,
            "description": "Exact owner user UUIDs.",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "title": "Owner Ids",
            "type": "array"
          },
          "payee_ids": {
            "default": null,
            "description": "Exact vendor or payee UUIDs.",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "title": "Payee Ids",
            "type": "array"
          },
          "request_categories": {
            "default": null,
            "description": "Request categories to include. Use PROCUREMENT for procurement requests and SPEND_ALLOCATION for card, funds, or travel requests.",
            "items": {
              "$ref": "#/components/schemas/UnifiedRequestCategoryRequestBody"
            },
            "nullable": true,
            "title": "Request Categories",
            "type": "array"
          },
          "request_numbers": {
            "default": null,
            "description": "Exact unified request numbers. Convert a human-readable identifier such as REQ-35 to 35. Omit this filter when the user did not supply a request number.",
            "items": {
              "exclusiveMinimum": true,
              "maximum": 9223372036854775807,
              "minimum": 0,
              "type": "integer"
            },
            "nullable": true,
            "title": "Request Numbers",
            "type": "array"
          },
          "request_statuses": {
            "default": null,
            "description": "Exact request statuses to include.",
            "items": {
              "$ref": "#/components/schemas/UnifiedRequestStatusRequestBody"
            },
            "nullable": true,
            "title": "Request Statuses",
            "type": "array"
          },
          "requester_ids": {
            "default": null,
            "description": "Exact requester user UUIDs.",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "title": "Requester Ids",
            "type": "array"
          },
          "requires_user_action": {
            "default": null,
            "description": "True to only show requests waiting on the acting user.",
            "nullable": true,
            "title": "Requires User Action",
            "type": "boolean"
          },
          "search": {
            "default": null,
            "description": "Free-text match on request name, spend program name, vendor/payee name, PO number, or REQ-N display number. It does not match owner or requester names/emails (use owner_ids or requester_ids) or the request reason. Fund and card requests are named after their spend program, so search by program or vendor name rather than the request's purpose.",
            "nullable": true,
            "title": "Search",
            "type": "string"
          },
          "unified_spend_request_types": {
            "default": null,
            "description": "Exact request types, for example PURCHASE_ORDER or SPEND_ALLOCATION.",
            "items": {
              "$ref": "#/components/schemas/UnifiedSpendRequestTypeRequestBody"
            },
            "nullable": true,
            "title": "Unified Spend Request Types",
            "type": "array"
          },
          "workflow_backed_policy_ids": {
            "default": null,
            "description": "Exact workflow-backed policy UUIDs.",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "title": "Workflow Backed Policy Ids",
            "type": "array"
          }
        },
        "title": "UnifiedRequestSearchFilters",
        "type": "object"
      },
      "UnifiedRequestStatusRequestBody": {
        "enum": [
          "APPROVED",
          "DRAFT",
          "PENDING",
          "REJECTED"
        ],
        "title": "UnifiedRequestStatus",
        "type": "string"
      },
      "UnifiedSpendRequestTypeRequestBody": {
        "enum": [
          "APPROVAL_ONLY",
          "FUND_UNARCHIVE",
          "PROCUREMENT_SPEND_ALLOCATION",
          "PURCHASE_ORDER",
          "SPEND_ALLOCATION",
          "TRAVEL"
        ],
        "title": "UnifiedSpendRequestType",
        "type": "string",
        "x-enum-descriptions": {
          "FUND_UNARCHIVE": "A request to restore an existing archived fund without issuing or changing funding."
        }
      },
      "UnknownReportingField": {
        "properties": {
          "did_you_mean": {
            "description": "Field names in this dataset with similar names or synonyms.",
            "items": {
              "type": "string"
            },
            "title": "Did You Mean",
            "type": "array"
          },
          "name": {
            "description": "Requested name that matches no field.",
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "did_you_mean",
          "name"
        ],
        "title": "UnknownReportingField",
        "type": "object"
      },
      "UnlockFraudLockedCardRequestBody": {
        "description": "Unlock a card that was locked due to a suspicious transaction. Requires the user to confirm they recognize the flagged transaction.",
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "description": "UUID of the fraud-locked card to unlock, e.g. from a card listing or the card_uuid in a decline remediation hint. Fund (spend allocation) UUIDs, transaction UUIDs, last-four digits, and placeholder values are not accepted."
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "user_confirmed_fraud_whitelist": {
            "default": false,
            "title": "User Confirmed Fraud Whitelist",
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "rationale"
        ],
        "title": "UnlockFraudLockedCard",
        "type": "object"
      },
      "UnmatchedReceiptJsonMode": {
        "properties": {
          "amount": {
            "default": null,
            "description": "Receipt total in major units of currency_code.",
            "format": "decimal",
            "nullable": true,
            "title": "Amount",
            "type": "string"
          },
          "created_at": {
            "description": "When Ramp received the receipt.",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "currency_code": {
            "default": null,
            "nullable": true,
            "title": "Currency Code",
            "type": "string"
          },
          "merchant": {
            "default": null,
            "description": "Merchant name extracted from the receipt.",
            "nullable": true,
            "title": "Merchant",
            "type": "string"
          },
          "receipt_uuid": {
            "$ref": "#/components/schemas/EntityUUIDStrJsonMode"
          },
          "transaction_date": {
            "default": null,
            "description": "Transaction date extracted from the receipt.",
            "format": "date",
            "nullable": true,
            "title": "Transaction Date",
            "type": "string"
          },
          "upload_source": {
            "default": null,
            "description": "How the receipt reached Ramp (e.g. EMAIL, MOBILE_APP_IOS, DASHBOARD).",
            "nullable": true,
            "title": "Upload Source",
            "type": "string"
          }
        },
        "required": [
          "created_at",
          "receipt_uuid"
        ],
        "title": "UnmatchedReceipt",
        "type": "object"
      },
      "UnvalidatedMailingAddress": {
        "additionalProperties": true,
        "description": "Represents a mailing address that has not yet been validated.",
        "properties": {
          "address_line_1": {
            "description": "Primary address line.",
            "title": "Address Line 1",
            "type": "string"
          },
          "address_line_2": {
            "default": null,
            "description": "Secondary address line.",
            "nullable": true,
            "title": "Address Line 2",
            "type": "string"
          },
          "administrative_area": {
            "default": null,
            "description": "State, province, or administrative area.",
            "nullable": true,
            "title": "Administrative Area",
            "type": "string"
          },
          "country_code": {
            "default": null,
            "description": "Country code.",
            "nullable": true,
            "title": "Country Code",
            "type": "string"
          },
          "country_name": {
            "default": null,
            "description": "Country name.",
            "nullable": true,
            "title": "Country Name",
            "type": "string"
          },
          "locality": {
            "description": "City or locality.",
            "title": "Locality",
            "type": "string"
          },
          "owner_name": {
            "description": "Name of the address owner.",
            "title": "Owner Name",
            "type": "string"
          },
          "owner_type": {
            "description": "Type of address owner.",
            "title": "Owner Type",
            "type": "string"
          },
          "postal_code": {
            "description": "Postal code.",
            "title": "Postal Code",
            "type": "string"
          },
          "secondary_owner_line": {
            "default": null,
            "description": "Additional address owner information.",
            "nullable": true,
            "title": "Secondary Owner Line",
            "type": "string"
          }
        },
        "required": [
          "address_line_1",
          "locality",
          "owner_name",
          "owner_type",
          "postal_code"
        ],
        "title": "UnvalidatedMailingAddress",
        "type": "object"
      },
      "UpdateCategoryRestrictionsRequestBody": {
        "description": "Update spending category restrictions (whitelist or blacklist) on a single fund. Manages spend types (e.g., Restaurants, Travel), not individual merchants.",
        "properties": {
          "action": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CategoryRestrictionActionRequestBody"
              }
            ],
            "description": "The action to perform: 'add_to_whitelist' (restrict to only these categories), 'remove_from_whitelist', 'add_to_blacklist' (block these categories), or 'remove_from_blacklist'."
          },
          "category_ids": {
            "description": "The category IDs to add or remove. Must be non-empty. Operation is atomic: if any ID is invalid, the entire request fails. Valid IDs (id=name): 1=Pet, 2=Other, 3=Office, 4=Airlines, 5=Car Rental, 6=Lodging, 7=Travel, 8=Taxi & Rideshare, 9=Freight/Moving/Delivery, 10=Shipping, 11=Utilities, 12=Office Supplies & Cleaning, 13=General Merchandise, 14=Electronics, 15=Clothing, 16=Books & Newspapers, 17=Supermarkets & Grocery, 18=Fuel & Gas, 19=Restaurants, 20=Alcohol & Bars, 21=Medical, 23=Fees & Financial Institutions, 24=Entertainment, 25=Professional Services, 26=Taxes & Tax Prep, 27=Advertising, 28=Parking, 29=Car Services, 30=Gambling, 31=Clubs & Memberships, 32=Legal, 33=Education, 34=Charitable Donations, 35=Political Organizations, 36=Religious Organizations, 37=Fines, 38=Government Services, 39=Intra-Company Purchases, 40=SaaS/Software, 41=Cloud Computing, 42=Streaming Services, 43=Internet & Phone, 44=Insurance; there is no ID 22.",
            "items": {
              "type": "integer"
            },
            "title": "Category Ids",
            "type": "array"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "spend_allocation_id": {
            "description": "The fund UUID whose category restrictions should be updated. Single-fund only. Get this from GetUserFunds tool (the 'id' field). For bulk operations, use GetSpendAllocationsByFiltersTool via bulk_funds_actions.",
            "title": "Spend Allocation Id",
            "type": "string"
          }
        },
        "required": [
          "action",
          "category_ids",
          "rationale",
          "spend_allocation_id"
        ],
        "title": "UpdateCategoryRestrictions",
        "type": "object"
      },
      "UpdateCategoryRestrictionsResult": {
        "properties": {
          "created_spend_request_uuid": {
            "default": null,
            "nullable": true,
            "title": "Created Spend Request Uuid",
            "type": "string"
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/UpdateCategoryRestrictionsStatus"
          },
          "updated_fund_id": {
            "title": "Updated Fund Id",
            "type": "string"
          }
        },
        "required": [
          "message",
          "status",
          "updated_fund_id"
        ],
        "title": "UpdateCategoryRestrictionsResult",
        "type": "object"
      },
      "UpdateCategoryRestrictionsStatus": {
        "enum": [
          "request_pending",
          "success"
        ],
        "title": "UpdateCategoryRestrictionsStatus",
        "type": "string"
      },
      "UpdateClientFinancingApplicationRequestBody": {
        "description": "Fill in or correct draft details on the Ramp financing application your accounting firm is preparing for a client (an assisted application): business and incorporation details, expected monthly spend, the controlling officer, and beneficial owners.\n\nRun this on the client business, not your firm's own business; only the firm member\npreparing the application can use it, and only while the application can still be\nedited. Only the fields you provide are saved: omitted and null fields keep their\ncurrent values, and saved values cannot be cleared. Beneficial owners are matched by\nemail and added or updated, never removed. The update is all or nothing, and it does\nnot submit the application or contact the client. Returns the application's saved\ndetails; dates of birth, SSN and passport digits, and the EIN are reported only as\nprovided or not.",
        "properties": {
          "beneficial_owners": {
            "default": null,
            "description": "Individuals other than the controlling officer who own 25% or more of the business, up to 4 in total on the application. Requires ownership_acknowledgement.",
            "items": {
              "$ref": "#/components/schemas/ClientBeneficialOwnerInputRequestBody"
            },
            "maxItems": 4,
            "nullable": true,
            "title": "Beneficial Owners",
            "type": "array"
          },
          "business": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ClientBusinessInputRequestBody"
              }
            ],
            "default": null,
            "description": "Business details to save.",
            "nullable": true
          },
          "controlling_officer": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ClientControllingOfficerInputRequestBody"
              }
            ],
            "default": null,
            "description": "The person with significant responsibility for managing the business, such as the CEO or managing member. Updates the application's controlling officer, adding one if none is entered yet.",
            "nullable": true
          },
          "financial_details": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ClientFinancialDetailsInputRequestBody"
              }
            ],
            "default": null,
            "description": "Expected monthly spend to save.",
            "nullable": true
          },
          "ownership_acknowledgement": {
            "default": null,
            "description": "Attestation about the business's owners, recorded as made by you. CONFIRM_ALL_MAJOR_OWNERS_ENTERED: every individual owning 25% or more is on the application, including a controlling officer who is an owner. CONFIRM_NO_INDIVIDUAL_OWNS_25_PCT: no individual owns 25% or more. Required with beneficial_owners.",
            "enum": [
              "CONFIRM_ALL_MAJOR_OWNERS_ENTERED",
              "CONFIRM_NO_INDIVIDUAL_OWNS_25_PCT"
            ],
            "nullable": true,
            "title": "Ownership Acknowledgement",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "UpdateClientFinancingApplication",
        "type": "object"
      },
      "UpdateFundEntityFundResult": {
        "properties": {
          "error_message": {
            "default": null,
            "description": "Why the fund was not moved, when status is failed.",
            "nullable": true,
            "title": "Error Message",
            "type": "string"
          },
          "fund_id": {
            "title": "Fund Id",
            "type": "string"
          },
          "new_entity": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FundBusinessEntity"
              }
            ],
            "default": null,
            "description": "Business entity the fund is on after this call. Omitted unless status is updated or already_on_entity.",
            "nullable": true
          },
          "previous_entity": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FundBusinessEntity"
              }
            ],
            "default": null,
            "description": "Business entity the fund was on before this call. Omitted when the fund was not found.",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/UpdateFundEntityStatus"
          }
        },
        "required": [
          "fund_id",
          "status"
        ],
        "title": "UpdateFundEntityFundResult",
        "type": "object"
      },
      "UpdateFundEntityRequestBody": {
        "description": "Move existing funds (spend allocations) and their cards to a different business entity.\n\nEach fund is updated independently and the result reports, per fund, the previous and\nnew business entity or why the fund could not be moved, so partial failures are visible.\nOnly future spend moves: past transactions stay on the previous business entity.\nThe target business entity must issue in a currency compatible with the fund and its\nactive cards, otherwise that fund is rejected. A fund already on the target business\nentity succeeds without changes. Applies the same permission and approval rules as\nediting the fund in Ramp; if the edit requires approval, the fund is reported as\npending approval and is not moved yet.",
        "properties": {
          "entity_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UUIDStrRequestBody"
              }
            ],
            "description": "UUID of the business entity to move the funds to."
          },
          "fund_ids": {
            "description": "UUIDs of the funds (spend allocations) to move. Split larger moves into multiple calls.",
            "items": {
              "$ref": "#/components/schemas/UUIDStrRequestBody"
            },
            "maxItems": 25,
            "minItems": 1,
            "title": "Fund Ids",
            "type": "array"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "entity_id",
          "fund_ids",
          "rationale"
        ],
        "title": "UpdateFundEntity",
        "type": "object"
      },
      "UpdateFundEntityResult": {
        "properties": {
          "already_on_entity_count": {
            "title": "Already On Entity Count",
            "type": "integer"
          },
          "failed_count": {
            "title": "Failed Count",
            "type": "integer"
          },
          "pending_approval_count": {
            "title": "Pending Approval Count",
            "type": "integer"
          },
          "results": {
            "items": {
              "$ref": "#/components/schemas/UpdateFundEntityFundResult"
            },
            "title": "Results",
            "type": "array"
          },
          "target_entity": {
            "$ref": "#/components/schemas/FundBusinessEntity"
          },
          "updated_count": {
            "title": "Updated Count",
            "type": "integer"
          }
        },
        "required": [
          "already_on_entity_count",
          "failed_count",
          "pending_approval_count",
          "results",
          "target_entity",
          "updated_count"
        ],
        "title": "UpdateFundEntityResult",
        "type": "object"
      },
      "UpdateFundEntityStatus": {
        "enum": [
          "already_on_entity",
          "failed",
          "pending_approval",
          "updated"
        ],
        "title": "UpdateFundEntityStatus",
        "type": "string"
      },
      "UpdateMerchantRestrictionsRequestBody": {
        "description": "Update merchant restrictions (whitelist or blacklist) on a fund (spend allocation).\n- Add or remove merchants from the allowed merchants list (whitelist)\n- Add or remove merchants from the blocked merchants list (blacklist)\n\nUse this when a user wants to:\n- Allow specific merchants on a fund (add to whitelist)\n- Block specific merchants on a fund (add to blacklist)\n- Remove merchants from the allowed or blocked lists",
        "properties": {
          "action": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MerchantRestrictionActionRequestBody"
              }
            ],
            "description": "Whether to add or remove merchants from the list."
          },
          "merchant_uuids": {
            "description": "List of merchant UUIDs to add or remove.",
            "items": {
              "type": "string"
            },
            "title": "Merchant Uuids",
            "type": "array"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "restriction_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MerchantRestrictionListTypeRequestBody"
              }
            ],
            "description": "Whether to modify the allowed merchants (whitelist) or blocked merchants (blacklist)."
          },
          "spend_allocation_id": {
            "description": "The fund UUID to modify merchant restrictions on.",
            "title": "Spend Allocation Id",
            "type": "string"
          }
        },
        "required": [
          "action",
          "merchant_uuids",
          "rationale",
          "restriction_type",
          "spend_allocation_id"
        ],
        "title": "UpdateMerchantRestrictions",
        "type": "object"
      },
      "UpdateMerchantRestrictionsResult": {
        "description": "Result of a merchant restrictions update operation",
        "properties": {
          "created_spend_request_uuid": {
            "default": null,
            "nullable": true,
            "title": "Created Spend Request Uuid",
            "type": "string"
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "resolved_merchants": {
            "default": null,
            "description": "Names of merchants that were resolved",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "title": "Resolved Merchants",
            "type": "array"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MerchantRestrictionUpdateStatus"
              }
            ],
            "description": "\"success\" (restrictions updated immediately), or \"request_pending\" (request submitted, awaiting approval)"
          },
          "updated_fund_id": {
            "title": "Updated Fund Id",
            "type": "string"
          }
        },
        "required": [
          "message",
          "status",
          "updated_fund_id"
        ],
        "title": "UpdateMerchantRestrictionsResult",
        "type": "object"
      },
      "UpdateOrCreateAmortizationSchema": {
        "properties": {
          "amortization_mode": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AmortizationMode"
              }
            ],
            "default": null,
            "nullable": true
          },
          "amortization_period": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AmortizationPeriod"
              }
            ],
            "default": null,
            "nullable": true
          },
          "amortization_proration_period": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AmortizationPeriod"
              }
            ],
            "default": null,
            "nullable": true
          },
          "amortization_schedule_tracking_category_option_id": {
            "default": null,
            "nullable": true,
            "title": "Amortization Schedule Tracking Category Option Id",
            "type": "integer"
          },
          "end_date": {
            "default": null,
            "format": "date",
            "nullable": true,
            "title": "End Date",
            "type": "string"
          },
          "expense_account_tracking_category_option_id": {
            "default": null,
            "nullable": true,
            "title": "Expense Account Tracking Category Option Id",
            "type": "integer"
          },
          "fixed_asset_account_tracking_category_option_id": {
            "default": null,
            "nullable": true,
            "title": "Fixed Asset Account Tracking Category Option Id",
            "type": "integer"
          },
          "fixed_asset_class_uuid": {
            "default": null,
            "format": "uuid",
            "nullable": true,
            "title": "Fixed Asset Class Uuid",
            "type": "string"
          },
          "in_service_date": {
            "default": null,
            "format": "date",
            "nullable": true,
            "title": "In Service Date",
            "type": "string"
          },
          "prepaid_account_tracking_category_option_id": {
            "default": null,
            "nullable": true,
            "title": "Prepaid Account Tracking Category Option Id",
            "type": "integer"
          },
          "salvage_value": {
            "default": null,
            "nullable": true,
            "title": "Salvage Value",
            "type": "number"
          },
          "schedule_type": {
            "default": "PREPAID_AMORTIZATION",
            "enum": [
              "FIXED_ASSET",
              "PREPAID_AMORTIZATION"
            ],
            "nullable": true,
            "title": "Schedule Type",
            "type": "string"
          },
          "start_date": {
            "default": null,
            "format": "date",
            "nullable": true,
            "title": "Start Date",
            "type": "string"
          },
          "useful_life_months_override": {
            "default": null,
            "exclusiveMinimum": true,
            "minimum": 0,
            "nullable": true,
            "title": "Useful Life Months Override",
            "type": "integer"
          }
        },
        "title": "UpdateOrCreateAmortizationSchema",
        "type": "object"
      },
      "UpdateOrCreateBillInventoryLineItemSchema": {
        "properties": {
          "amortization": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UpdateOrCreateAmortizationSchema"
              }
            ],
            "default": null,
            "nullable": true
          },
          "amount": {
            "default": null,
            "nullable": true,
            "title": "Amount",
            "type": "number"
          },
          "bill_line_item_tracking_category_selections": {
            "items": {
              "$ref": "#/components/schemas/UpdateOrCreateBillTrackingCategorySchema"
            },
            "title": "Bill Line Item Tracking Category Selections",
            "type": "array"
          },
          "client_id": {
            "default": null,
            "nullable": true,
            "title": "Client Id",
            "type": "string"
          },
          "index": {
            "default": null,
            "nullable": true,
            "title": "Index",
            "type": "integer"
          },
          "item_receipt_line_item_uuid": {
            "default": null,
            "nullable": true,
            "title": "Item Receipt Line Item Uuid",
            "type": "string"
          },
          "memo": {
            "default": null,
            "nullable": true,
            "title": "Memo",
            "type": "string"
          },
          "ocr_data": {
            "allOf": [
              {
                "$ref": "#/components/schemas/LineItemOCRData"
              }
            ],
            "default": null,
            "nullable": true
          },
          "purchase_order_id": {
            "default": null,
            "nullable": true,
            "title": "Purchase Order Id",
            "type": "string"
          },
          "purchase_order_line_item_log_entry_uuid": {
            "default": null,
            "nullable": true,
            "title": "Purchase Order Line Item Log Entry Uuid",
            "type": "string"
          },
          "quantity": {
            "default": null,
            "nullable": true,
            "title": "Quantity",
            "type": "number"
          },
          "remote_id": {
            "title": "Remote Id",
            "type": "string"
          },
          "service_end_date": {
            "default": null,
            "format": "date",
            "nullable": true,
            "title": "Service End Date",
            "type": "string"
          },
          "service_start_date": {
            "default": null,
            "format": "date",
            "nullable": true,
            "title": "Service Start Date",
            "type": "string"
          },
          "unit_price": {
            "default": null,
            "nullable": true,
            "title": "Unit Price",
            "type": "number"
          },
          "uom_conversion_factor": {
            "default": null,
            "nullable": true,
            "title": "Uom Conversion Factor",
            "type": "number"
          },
          "uploaded_bill_line_item_tracking_category_selections": {
            "items": {
              "$ref": "#/components/schemas/UpdateOrCreateTrackingCategoryFromUploadSchema"
            },
            "title": "Uploaded Bill Line Item Tracking Category Selections",
            "type": "array"
          },
          "uuid": {
            "default": null,
            "nullable": true,
            "title": "Uuid",
            "type": "string"
          },
          "withholding_amount": {
            "default": null,
            "nullable": true,
            "title": "Withholding Amount",
            "type": "number"
          }
        },
        "title": "UpdateOrCreateBillInventoryLineItemSchema",
        "type": "object"
      },
      "UpdateOrCreateBillLineItemSchema": {
        "properties": {
          "amortization": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UpdateOrCreateAmortizationSchema"
              }
            ],
            "default": null,
            "nullable": true
          },
          "amount": {
            "default": null,
            "nullable": true,
            "title": "Amount",
            "type": "number"
          },
          "bill_line_item_tracking_category_selections": {
            "items": {
              "$ref": "#/components/schemas/UpdateOrCreateBillTrackingCategorySchema"
            },
            "title": "Bill Line Item Tracking Category Selections",
            "type": "array"
          },
          "client_id": {
            "default": null,
            "nullable": true,
            "title": "Client Id",
            "type": "string"
          },
          "index": {
            "default": null,
            "nullable": true,
            "title": "Index",
            "type": "integer"
          },
          "is_single_line_form": {
            "default": null,
            "nullable": true,
            "title": "Is Single Line Form",
            "type": "boolean"
          },
          "item_receipt_line_item_uuid": {
            "default": null,
            "nullable": true,
            "title": "Item Receipt Line Item Uuid",
            "type": "string"
          },
          "memo": {
            "default": null,
            "nullable": true,
            "title": "Memo",
            "type": "string"
          },
          "ocr_data": {
            "allOf": [
              {
                "$ref": "#/components/schemas/LineItemOCRData"
              }
            ],
            "default": null,
            "nullable": true
          },
          "purchase_order_id": {
            "default": null,
            "nullable": true,
            "title": "Purchase Order Id",
            "type": "string"
          },
          "purchase_order_line_item_log_entry_uuid": {
            "default": null,
            "nullable": true,
            "title": "Purchase Order Line Item Log Entry Uuid",
            "type": "string"
          },
          "remote_id": {
            "title": "Remote Id",
            "type": "string"
          },
          "service_end_date": {
            "default": null,
            "format": "date",
            "nullable": true,
            "title": "Service End Date",
            "type": "string"
          },
          "service_start_date": {
            "default": null,
            "format": "date",
            "nullable": true,
            "title": "Service Start Date",
            "type": "string"
          },
          "tax_rate_uuid": {
            "default": null,
            "nullable": true,
            "title": "Tax Rate Uuid",
            "type": "string"
          },
          "unit_price": {
            "default": null,
            "nullable": true,
            "title": "Unit Price",
            "type": "number"
          },
          "unit_quantity": {
            "default": null,
            "nullable": true,
            "title": "Unit Quantity",
            "type": "number"
          },
          "uploaded_bill_line_item_tracking_category_selections": {
            "items": {
              "$ref": "#/components/schemas/UpdateOrCreateTrackingCategoryFromUploadSchema"
            },
            "title": "Uploaded Bill Line Item Tracking Category Selections",
            "type": "array"
          },
          "uuid": {
            "default": null,
            "nullable": true,
            "title": "Uuid",
            "type": "string"
          },
          "withholding_amount": {
            "default": null,
            "nullable": true,
            "title": "Withholding Amount",
            "type": "number"
          }
        },
        "title": "UpdateOrCreateBillLineItemSchema",
        "type": "object"
      },
      "UpdateOrCreateBillTrackingCategorySchema": {
        "properties": {
          "date": {
            "default": null,
            "format": "date",
            "nullable": true,
            "title": "Date",
            "type": "string"
          },
          "free_form_text": {
            "default": null,
            "nullable": true,
            "title": "Free Form Text",
            "type": "string"
          },
          "initially_autocoded": {
            "default": false,
            "title": "Initially Autocoded",
            "type": "boolean"
          },
          "source": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BillCodingSource"
              }
            ],
            "default": "UNKNOWN"
          },
          "tracking_category_id": {
            "title": "Tracking Category Id",
            "type": "integer"
          },
          "tracking_category_option_id": {
            "default": null,
            "nullable": true,
            "title": "Tracking Category Option Id",
            "type": "integer"
          }
        },
        "required": [
          "tracking_category_id"
        ],
        "title": "UpdateOrCreateBillTrackingCategorySchema",
        "type": "object"
      },
      "UpdateOrCreateInvoiceSchema": {
        "properties": {
          "attachment_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BillPayAttachmentType"
              }
            ],
            "default": null,
            "nullable": true
          },
          "document_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BillDocumentType"
              }
            ],
            "nullable": true,
            "title": "Document Type"
          },
          "id": {
            "title": "Id",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "title": "UpdateOrCreateInvoiceSchema",
        "type": "object"
      },
      "UpdateOrCreatePaymentDetailsSchema": {
        "properties": {
          "bank_account_id": {
            "default": null,
            "nullable": true,
            "title": "Bank Account Id",
            "type": "integer"
          },
          "check_attachment_id": {
            "default": null,
            "nullable": true,
            "title": "Check Attachment Id",
            "type": "string"
          },
          "payment_currency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Currency"
              }
            ],
            "default": null,
            "nullable": true
          },
          "payment_date": {
            "default": null,
            "format": "date",
            "nullable": true,
            "title": "Payment Date",
            "type": "string"
          },
          "payment_method": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BillPaymentMethod"
              }
            ],
            "default": null,
            "nullable": true
          },
          "payment_speed": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BillPayVendorPaymentSpeed"
              }
            ],
            "default": null,
            "nullable": true
          },
          "vendor_address_uuid": {
            "default": null,
            "nullable": true,
            "title": "Vendor Address Uuid",
            "type": "string"
          },
          "vendor_bank_account_uuid": {
            "default": null,
            "nullable": true,
            "title": "Vendor Bank Account Uuid",
            "type": "string"
          },
          "vendor_payment_details_magic_link_id": {
            "default": null,
            "nullable": true,
            "title": "Vendor Payment Details Magic Link Id",
            "type": "string"
          },
          "vendor_should_upload_ach_details": {
            "default": false,
            "title": "Vendor Should Upload Ach Details",
            "type": "boolean"
          },
          "vendor_should_upload_check_mailing_address": {
            "default": false,
            "title": "Vendor Should Upload Check Mailing Address",
            "type": "boolean"
          },
          "vendor_should_upload_international_wire_details": {
            "default": false,
            "title": "Vendor Should Upload International Wire Details",
            "type": "boolean"
          },
          "vendor_should_upload_tax_details": {
            "default": false,
            "title": "Vendor Should Upload Tax Details",
            "type": "boolean"
          }
        },
        "title": "UpdateOrCreatePaymentDetailsSchema",
        "type": "object"
      },
      "UpdateOrCreateProvisionalBillSchema": {
        "properties": {
          "accounting_sync_date": {
            "format": "date",
            "nullable": true,
            "title": "Accounting Sync Date",
            "type": "string"
          },
          "agreement_uuids": {
            "items": {
              "type": "string"
            },
            "title": "Agreement Uuids",
            "type": "array"
          },
          "bill_due_at": {
            "format": "date",
            "nullable": true,
            "title": "Bill Due At",
            "type": "string"
          },
          "bill_inventory_line_items": {
            "items": {
              "$ref": "#/components/schemas/UpdateOrCreateBillInventoryLineItemSchema"
            },
            "nullable": true,
            "title": "Bill Inventory Line Items",
            "type": "array"
          },
          "bill_issued_at": {
            "format": "date",
            "nullable": true,
            "title": "Bill Issued At",
            "type": "string"
          },
          "bill_line_items": {
            "items": {
              "$ref": "#/components/schemas/UpdateOrCreateBillLineItemSchema"
            },
            "nullable": true,
            "title": "Bill Line Items",
            "type": "array"
          },
          "bill_owner_user_uuids": {
            "description": "Replace bill owners; an empty list clears ownership. Omission preserves existing draft owners.",
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "title": "Bill Owner User Uuids",
            "type": "array"
          },
          "bill_tracking_category_selections": {
            "items": {
              "$ref": "#/components/schemas/UpdateOrCreateBillTrackingCategorySchema"
            },
            "nullable": true,
            "title": "Bill Tracking Category Selections",
            "type": "array"
          },
          "business_vendor_contact_uuid": {
            "nullable": true,
            "title": "Business Vendor Contact Uuid",
            "type": "string"
          },
          "card_uuid": {
            "nullable": true,
            "title": "Card Uuid",
            "type": "string"
          },
          "draft_approval_instance_uuid": {
            "nullable": true,
            "title": "Draft Approval Instance Uuid",
            "type": "string"
          },
          "entity_uuid": {
            "nullable": true,
            "title": "Entity Uuid",
            "type": "string"
          },
          "float_offer_term_uuid": {
            "nullable": true,
            "title": "Float Offer Term Uuid",
            "type": "string"
          },
          "float_pay_fee_with_cashback": {
            "nullable": true,
            "title": "Float Pay Fee With Cashback",
            "type": "boolean"
          },
          "invoice_currency": {
            "nullable": true,
            "title": "Invoice Currency",
            "type": "string"
          },
          "invoice_number": {
            "nullable": true,
            "title": "Invoice Number",
            "type": "string"
          },
          "invoices": {
            "items": {
              "$ref": "#/components/schemas/UpdateOrCreateInvoiceSchema"
            },
            "nullable": true,
            "title": "Invoices",
            "type": "array"
          },
          "is_accruable": {
            "nullable": true,
            "title": "Is Accruable",
            "type": "boolean"
          },
          "is_queued": {
            "title": "Is Queued",
            "type": "boolean"
          },
          "is_queued_for_kyb": {
            "title": "Is Queued For Kyb",
            "type": "boolean"
          },
          "is_queued_for_po_approval": {
            "title": "Is Queued For Po Approval",
            "type": "boolean"
          },
          "is_withholding_release": {
            "nullable": true,
            "title": "Is Withholding Release",
            "type": "boolean"
          },
          "memo": {
            "nullable": true,
            "title": "Memo",
            "type": "string"
          },
          "payee_external_vendor_id": {
            "nullable": true,
            "title": "Payee External Vendor Id",
            "type": "string"
          },
          "payee_internal_vendor_id": {
            "nullable": true,
            "title": "Payee Internal Vendor Id",
            "type": "string"
          },
          "payee_name": {
            "nullable": true,
            "title": "Payee Name",
            "type": "string"
          },
          "payee_uuid": {
            "nullable": true,
            "title": "Payee Uuid",
            "type": "string"
          },
          "payment_details": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UpdateOrCreatePaymentDetailsSchema"
              }
            ],
            "nullable": true,
            "title": "Payment Details"
          },
          "prematched_transaction_canonical_uuid": {
            "nullable": true,
            "title": "Prematched Transaction Canonical Uuid",
            "type": "string"
          },
          "purchase_order_ids": {
            "items": {
              "type": "string"
            },
            "title": "Purchase Order Ids",
            "type": "array"
          },
          "purchase_order_links": {
            "items": {
              "$ref": "#/components/schemas/PurchaseOrderLinkSchema"
            },
            "nullable": true,
            "title": "Purchase Order Links",
            "type": "array"
          },
          "purchase_order_uuid": {
            "nullable": true,
            "title": "Purchase Order Uuid",
            "type": "string"
          },
          "remote_id": {
            "nullable": true,
            "title": "Remote Id",
            "type": "string"
          },
          "service_end_date": {
            "format": "date",
            "nullable": true,
            "title": "Service End Date",
            "type": "string"
          },
          "service_start_date": {
            "format": "date",
            "nullable": true,
            "title": "Service Start Date",
            "type": "string"
          },
          "spend_request_uuid": {
            "nullable": true,
            "title": "Spend Request Uuid",
            "type": "string"
          },
          "uploaded_bill_tracking_category_selections": {
            "items": {
              "$ref": "#/components/schemas/UpdateOrCreateTrackingCategoryFromUploadSchema"
            },
            "nullable": true,
            "title": "Uploaded Bill Tracking Category Selections",
            "type": "array"
          },
          "vendor_memo": {
            "nullable": true,
            "title": "Vendor Memo",
            "type": "string"
          }
        },
        "title": "UpdateOrCreateProvisionalBillSchema",
        "type": "object"
      },
      "UpdateOrCreateTrackingCategoryFromUploadSchema": {
        "properties": {
          "tracking_category_option_name": {
            "nullable": true,
            "title": "Tracking Category Option Name",
            "type": "string"
          },
          "tracking_category_remote_id": {
            "title": "Tracking Category Remote Id",
            "type": "string"
          }
        },
        "required": [
          "tracking_category_option_name",
          "tracking_category_remote_id"
        ],
        "title": "UpdateOrCreateTrackingCategoryFromUploadSchema",
        "type": "object"
      },
      "UpdatePurchaseOrderOwnerRequestBody": {
        "description": "Update the owner for one existing purchase order.\n\nUse this only after the user has identified a single purchase order and the\nnew owner. For multiple purchase orders, search for the affected POs first\nand ask the user to confirm each one; do not perform unbounded bulk owner\nchanges.",
        "properties": {
          "new_owner_uuid": {
            "description": "UUID of the user who should become the purchase order owner.",
            "title": "New Owner Uuid",
            "type": "string"
          },
          "purchase_order_uuid": {
            "description": "UUID of the purchase order whose owner should be updated.",
            "title": "Purchase Order Uuid",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "new_owner_uuid",
          "purchase_order_uuid",
          "rationale"
        ],
        "title": "UpdatePurchaseOrderOwner",
        "type": "object"
      },
      "UpdatePurchaseOrderOwnerSuccess": {
        "properties": {
          "new_owner": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PurchaseOrderOwnerSummary"
              }
            ],
            "description": "New purchase order owner"
          },
          "owner_changed": {
            "description": "Whether the owner actually changed (false if the new owner was already the owner)",
            "title": "Owner Changed",
            "type": "boolean"
          },
          "previous_owner": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PurchaseOrderOwnerSummary"
              }
            ],
            "description": "Previous purchase order owner"
          },
          "purchase_order_uuid": {
            "description": "Updated purchase order UUID",
            "title": "Purchase Order Uuid",
            "type": "string"
          }
        },
        "required": [
          "new_owner",
          "owner_changed",
          "previous_owner",
          "purchase_order_uuid"
        ],
        "title": "UpdatePurchaseOrderOwnerSuccess",
        "type": "object"
      },
      "UpdateRFXOutput": {
        "properties": {
          "name": {
            "description": "Name of the RFX after the update",
            "title": "Name",
            "type": "string"
          },
          "rfx_id": {
            "description": "UUID of the updated RFX",
            "title": "Rfx Id",
            "type": "string"
          },
          "sections_count": {
            "description": "Number of questionnaire sections after the update",
            "title": "Sections Count",
            "type": "integer"
          },
          "status": {
            "description": "Lifecycle status of the RFX",
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "name",
          "rfx_id",
          "sections_count",
          "status"
        ],
        "title": "UpdateRFXOutput",
        "type": "object"
      },
      "UpdateRFXRequestBody": {
        "description": "Update an RFX's name, description, dates, and questionnaire sections.\n\n``sections`` is a complete replacement of the questionnaire \u2014 resubmit the\nfull section list on every update. Use GetRFXDetail first to see the\ncurrent structure. Optional scalar fields left unset are unchanged.",
        "properties": {
          "close_date": {
            "default": null,
            "description": "New RSVP deadline (YYYY-MM-DD). Must be in the future. Omit to leave unchanged.",
            "format": "date",
            "nullable": true,
            "title": "Close Date",
            "type": "string"
          },
          "description": {
            "default": null,
            "description": "New description for the RFX. Omit to leave unchanged.",
            "nullable": true,
            "title": "Description",
            "type": "string"
          },
          "name": {
            "default": null,
            "description": "New name for the RFX. Omit to leave unchanged.",
            "nullable": true,
            "title": "Name",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "response_submission_deadline": {
            "default": null,
            "description": "New response submission deadline (YYYY-MM-DD). Must be in the future and on or after close_date. Omit to leave unchanged.",
            "format": "date",
            "nullable": true,
            "title": "Response Submission Deadline",
            "type": "string"
          },
          "rfx_id": {
            "description": "UUID of the RFX to update",
            "format": "uuid",
            "title": "Rfx Id",
            "type": "string"
          },
          "sections": {
            "description": "Complete replacement of the questionnaire \u2014 resubmit the full section list, including unchanged sections. GetRFXDetail shows the current structure.",
            "items": {
              "$ref": "#/components/schemas/RFXSectionSpecRequestBody"
            },
            "minItems": 1,
            "title": "Sections",
            "type": "array"
          }
        },
        "required": [
          "rationale",
          "rfx_id",
          "sections"
        ],
        "title": "UpdateRFX",
        "type": "object"
      },
      "UpdateRouterModelPolicyRequestBody": {
        "description": "Change which Router models the company, people, or departments can use.\n\nBlock or unblock Router models and providers, or turn fast mode and frontier\nmodels on or off, for the company, listed people, or listed departments. Other\nsaved settings are kept. Returns the saved policy and the catalog models that\nthe changed names cover.\n\nNames must be exact Router catalog names. A block on a name covers every name\nof that same model, including a managed alias that points to it, and the alias\nitself. A block on the first-party name also covers its Bedrock copies. It\ndoes not cover the same model on another host. To block a model everywhere,\nblock its first-party name and each other host's name. You do not need the\nBedrock names. Report each changed name with its providers from models. A\nmanaged alias (alias_for set) follows the newest model of a family, so block it\nonly when the user asks to always block the newest model.\n\nA department rule also applies to future members. Never list a department's\nmembers as people instead. An unblock for a person or department lifts only a\nblock saved under the exact same name. An unblocked provider covers all of its\nmodels, including models added later. still_blocked lists unblocked names that\nthe target still cannot use and what blocks each one; never report those names\nas allowed.\n\nAny block, frontier_enabled or fast_mode_enabled false, or fast_mode_off_action\nblock makes a change blocking, even when the same call also unblocks\nsomething. Without confirmed, a blocking change for the company or departments\nsaves nothing. It returns confirmation_needed with its impact, whatever the\ntraffic. A blocking change for people does the same only when its impact has\nrequests or stops fast requests. Otherwise it is saved directly. A change that\nonly unblocks, turns frontier or fast mode on, or sets fast_mode_off_action to\ndowngrade is saved directly.\n\nSet confirmed only after the user says yes in this conversation to a preview of\nthe exact names with providers, the targets, anyone not on Router, and the\nimpact. Give the period as dates from impact.start_at to impact.end_at, such as\n\"since Nov 6\", not as a length such as \"last week\". The newest hour may not be\ncounted yet, and the count can include people whose own rule allows the model,\nso say \"up to\" when that matters. When impact.stops_fast_requests is true, say\nthat fast requests will fail, not slow down, and that the count can miss\nAnthropic fast requests. Offer downgrade instead, which serves them at standard\nspeed, and say that fast_mode_off_action is one setting for the whole company.",
        "properties": {
          "block_models": {
            "description": "Model names to block.",
            "items": {
              "type": "string"
            },
            "maxItems": 200,
            "title": "Block Models",
            "type": "array"
          },
          "block_providers": {
            "description": "Provider ids to block, for example anthropic or openai.",
            "items": {
              "type": "string"
            },
            "maxItems": 200,
            "title": "Block Providers",
            "type": "array"
          },
          "confirmed": {
            "default": false,
            "description": "Required to save a blocking change for the company or departments, or a blocking change for people whose impact has requests or stops fast requests. True only after the user said yes to a preview of the exact change and its impact. Other changes are saved without it.",
            "title": "Confirmed",
            "type": "boolean"
          },
          "core_department_uuids": {
            "default": null,
            "description": "Ramp department UUIDs of the departments to change. Not with core_user_uuids.",
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "maxItems": 100,
            "minItems": 1,
            "nullable": true,
            "title": "Core Department Uuids",
            "type": "array"
          },
          "core_user_uuids": {
            "default": null,
            "description": "Ramp user UUIDs of the people to change. Omit both this and core_department_uuids to change the company policy.",
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "maxItems": 100,
            "minItems": 1,
            "nullable": true,
            "title": "Core User Uuids",
            "type": "array"
          },
          "fast_mode_enabled": {
            "default": null,
            "description": "Allow fast or priority tiers. Omit to keep the saved value.",
            "nullable": true,
            "title": "Fast Mode Enabled",
            "type": "boolean"
          },
          "fast_mode_off_action": {
            "default": null,
            "description": "Company only; one setting for everyone. What a fast-mode request gets while fast mode is off: block rejects it; downgrade serves it at standard speed. Set block only when the user asks for fast requests to fail. Omit to keep the saved value.",
            "enum": [
              "block",
              "downgrade"
            ],
            "nullable": true,
            "title": "Fast Mode Off Action",
            "type": "string"
          },
          "frontier_enabled": {
            "default": null,
            "description": "Allow frontier models. Omit to keep the saved value.",
            "nullable": true,
            "title": "Frontier Enabled",
            "type": "boolean"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "unblock_models": {
            "description": "Model names to unblock.",
            "items": {
              "type": "string"
            },
            "maxItems": 200,
            "title": "Unblock Models",
            "type": "array"
          },
          "unblock_providers": {
            "description": "Provider ids to unblock.",
            "items": {
              "type": "string"
            },
            "maxItems": 200,
            "title": "Unblock Providers",
            "type": "array"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "UpdateRouterModelPolicy",
        "type": "object"
      },
      "UpdateRouterModelPolicyResponse": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/RouterModelPolicyChangeResult"
          },
          {
            "$ref": "#/components/schemas/RouterModelPolicyConfirmationNeeded"
          }
        ],
        "title": "UpdateRouterModelPolicyResponse"
      },
      "UpdateRouterWorkloadRequestBody": {
        "description": "Create, change, or delete one of your Router coding models, the names you pick with /model, or change your default settings.\n\nSend exactly one target. slug finds a coding model (a Router workload): a new\nslug creates one, an existing slug changes it, and delete true deletes it.\nThe slug is the name to pick with /model in Claude Code or Codex and cannot\nchange later, so always ask the user for it; never invent one. Each coding\nmodel has one strategy:\n- switchyard: a capable model for hard requests and an efficient model for\n  easy ones;\n- classifier: Router picks from 2 to 6 models by each model's description;\n- model_list: models tried in order, the first that can serve wins, so a\n  fallback goes last;\n- benchmark: Router picks by 1 to 3 weighted benchmark scores.\nA change can replace the strategy, change Flex, the provider preference, or\n(only when Router reports subagent routing as available for the user)\nsubagent_routing_mode or subagent_routing_models, or do both. Do not assume\nor mention subagent routing defaults when subagent routing is unavailable.\ndefault true changes the same settings, without a strategy, for requests\nthat pick a regular model instead of a slug.\n\nWithout confirmed, nothing is saved when the server needs the user: it\nreturns needs_input with the missing item and its choices, or\nconfirmation_needed with the would-be result and defaults_applied. Ask the\nuser for the missing item, or show the draft and its defaults and get an\nexplicit yes in this conversation; then call again with confirmed true. A\ncreate, a delete, or a default settings change always needs that yes. A\ncoding model change needs it only when the coding model had requests in the\nlast 7 days or the count is unknown; otherwise it is saved directly. After a\nsave, changes reach new sessions in about a minute.",
        "properties": {
          "confirmed": {
            "default": false,
            "description": "True only after the user said yes to the draft in this conversation.",
            "title": "Confirmed",
            "type": "boolean"
          },
          "cost_efficient_routing_enabled": {
            "default": null,
            "description": "Flex: route eligible requests through the cheaper flex tier. Omit to keep; a create defaults to true.",
            "nullable": true,
            "title": "Cost Efficient Routing Enabled",
            "type": "boolean"
          },
          "default": {
            "default": false,
            "description": "Change the default settings instead of a coding model.",
            "title": "Default",
            "type": "boolean"
          },
          "delete": {
            "default": false,
            "description": "Delete the coding model.",
            "title": "Delete",
            "type": "boolean"
          },
          "provider_routing_preference": {
            "default": null,
            "description": "Which providers serve requests, by cost or speed. inherit uses the company's. Omit to keep; a create defaults to favor_cost.",
            "nullable": true,
            "oneOf": [
              {
                "enum": [
                  "cost_only",
                  "favor_cost",
                  "favor_throughput",
                  "throughput_only"
                ],
                "type": "string"
              },
              {
                "enum": [
                  "inherit"
                ],
                "type": "string"
              }
            ],
            "title": "Provider Routing Preference"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "slug": {
            "default": null,
            "description": "Name of the coding model, for example fast-fix: lowercase letters, digits and single hyphens. Only from the user.",
            "maxLength": 64,
            "nullable": true,
            "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$",
            "title": "Slug",
            "type": "string"
          },
          "strategy": {
            "default": null,
            "description": "Required to create. On a change, replaces the strategy. Omit to keep it.",
            "discriminator": {
              "mapping": {
                "benchmark": "#/components/schemas/RouterBenchmarkStrategyRequestBody",
                "classifier": "#/components/schemas/RouterClassifierStrategyRequestBody",
                "model_list": "#/components/schemas/RouterModelListStrategyRequestBody",
                "switchyard": "#/components/schemas/RouterSwitchyardStrategyRequestBody"
              },
              "propertyName": "type"
            },
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/RouterBenchmarkStrategyRequestBody"
              },
              {
                "$ref": "#/components/schemas/RouterClassifierStrategyRequestBody"
              },
              {
                "$ref": "#/components/schemas/RouterModelListStrategyRequestBody"
              },
              {
                "$ref": "#/components/schemas/RouterSwitchyardStrategyRequestBody"
              }
            ],
            "title": "Strategy"
          },
          "subagent_routing_mode": {
            "default": null,
            "description": "How Router routes a coding agent's subagent requests, from quality_first to savings_first, or off. inherit uses the company default. Applies only when subagent routing is available for the user. Omit to keep; a create inherits when available.",
            "nullable": true,
            "oneOf": [
              {
                "enum": [
                  "balanced",
                  "off",
                  "quality_first",
                  "savings_first"
                ],
                "type": "string"
              },
              {
                "enum": [
                  "inherit"
                ],
                "type": "string"
              }
            ],
            "title": "Subagent Routing Mode"
          },
          "subagent_routing_models": {
            "default": null,
            "description": "Custom models per subagent class (research, review, small_change), each 1 to 2 models (empty list or null clears a class). Replaces all custom subagent models; inherit clears them all. Applies only when subagent routing is available for the user. Omit to keep.",
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/RouterSubagentRoutingModelsRequestBody"
              },
              {
                "enum": [
                  "inherit"
                ],
                "type": "string"
              }
            ],
            "title": "Subagent Routing Models"
          }
        },
        "required": [
          "rationale"
        ],
        "title": "UpdateRouterWorkload",
        "type": "object"
      },
      "UpdateRouterWorkloadResponse": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/RouterWorkloadDraft"
          },
          {
            "$ref": "#/components/schemas/RouterWorkloadInputNeeded"
          },
          {
            "$ref": "#/components/schemas/RouterWorkloadSaved"
          }
        ],
        "title": "UpdateRouterWorkloadResponse"
      },
      "UpdateSpendAllocationIntervalOutput": {
        "properties": {
          "interval": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SpendInterval"
              }
            ],
            "default": null,
            "description": "Updated spend interval when successful",
            "nullable": true
          },
          "message": {
            "description": "Result message",
            "title": "Message",
            "type": "string"
          },
          "status": {
            "description": "Whether the update was applied immediately or requires approval",
            "enum": [
              "request_pending",
              "success"
            ],
            "title": "Status",
            "type": "string"
          },
          "success": {
            "description": "Whether the interval update succeeded",
            "title": "Success",
            "type": "boolean"
          }
        },
        "required": [
          "message",
          "status",
          "success"
        ],
        "title": "UpdateSpendAllocationIntervalOutput",
        "type": "object"
      },
      "UpdateSpendAllocationIntervalToolRequestBody": {
        "description": "Update only the spend interval for a spend allocation.",
        "properties": {
          "interval": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SpendIntervalRequestBody"
              }
            ],
            "description": "New spend interval (for example: DAILY, WEEKLY, MONTHLY, TOTAL)"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "spend_allocation_uuid": {
            "description": "The UUID of the spend allocation to update",
            "title": "Spend Allocation Uuid",
            "type": "string"
          }
        },
        "required": [
          "interval",
          "rationale",
          "spend_allocation_uuid"
        ],
        "title": "UpdateSpendAllocationIntervalTool",
        "type": "object"
      },
      "UpdateSubmittedProcurementRequestRequestBody": {
        "description": "Edit an in-flight procurement request that is submitted and still waiting for approval, and return its current state.\n\nChanges the name, memo, spend dates, request-level accounting coding, and line\nitems (add, split, edit, or remove lines). Saved edits are visible to approvers\nright away and can restart approvals, as an edit in Ramp does. Call with only\nspend_request_uuid to read the current values and line item UUIDs. Set\nconfirmed=true only after the user has agreed to the exact changes; until then\nnothing is saved. Only pending requests qualify: drafts, rejected requests, and\nchange orders are refused, and so is a request that is already approved; an\napproved purchase order changes through a change order that goes through approval.\nCurrency, entity, vendor, and intake form answers cannot be changed.",
        "properties": {
          "accounting_tracking_category_selections": {
            "default": null,
            "description": "Complete request-level accounting coding for a purchase-order request. Replaces every current request-level selection, so [] clears them.",
            "items": {
              "$ref": "#/components/schemas/PurchaseOrderTrackingCategorySelectionInputRequestBody"
            },
            "nullable": true,
            "title": "Accounting Tracking Category Selections",
            "type": "array"
          },
          "confirmed": {
            "default": false,
            "description": "Set true to save the changes, only after the user confirmed them. When false, nothing is saved and the current state is returned.",
            "title": "Confirmed",
            "type": "boolean"
          },
          "internal_memo": {
            "default": null,
            "description": "New internal memo. Omit to keep it; null clears it.",
            "nullable": true,
            "title": "Internal Memo",
            "type": "string"
          },
          "line_items": {
            "default": null,
            "description": "Complete desired line item list; it replaces the request's current lines, so include every line that should remain. Read the request first and reuse each kept line's uuid, editing only the values that should change; omit uuid for a new line. To split a line, lower its amount and add a new line for the rest. Use string money values such as amount='90000.00'.",
            "items": {
              "$ref": "#/components/schemas/ProcurementLineItemDataRequestBody"
            },
            "nullable": true,
            "title": "Line Items",
            "type": "array"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "request_name": {
            "default": null,
            "description": "New request name.",
            "nullable": true,
            "title": "Request Name",
            "type": "string"
          },
          "spend_end_date": {
            "default": null,
            "description": "New spend end date (YYYY-MM-DD). Omit to keep it; null clears it.",
            "format": "date",
            "nullable": true,
            "title": "Spend End Date",
            "type": "string"
          },
          "spend_request_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UUIDStrRequestBody"
              }
            ],
            "description": "spend_request_uuid of a procurement request that is submitted and waiting for approval; not the unified request ID."
          },
          "spend_start_date": {
            "default": null,
            "description": "New spend start date (YYYY-MM-DD). Omit to keep it; null clears it.",
            "format": "date",
            "nullable": true,
            "title": "Spend Start Date",
            "type": "string"
          }
        },
        "required": [
          "rationale",
          "spend_request_uuid"
        ],
        "title": "UpdateSubmittedProcurementRequest",
        "type": "object"
      },
      "UpdateTransactionAmountLimitRequestBody": {
        "description": "Set a fund's maximum amount for one transaction. Use this for decline action\nINCREASE_TRANSACTION_AMOUNT_LIMIT or requests about a per-transaction,\nsingle-transaction, or max-expense limit. Use LimitIncrease for the period total.\n\nSet any positive value to raise or lower the cap. AP-card and bill-pay funds are\nunsupported. Provide exactly one of spend_allocation_id or card_id.",
        "properties": {
          "card_id": {
            "default": null,
            "description": "The card UUID whose fund's per-transaction limit should be updated. Provide either this or spend_allocation_id, not both.",
            "nullable": true,
            "title": "Card Id",
            "type": "string"
          },
          "new_transaction_amount_limit": {
            "description": "The new per-transaction limit, in the fund's currency. Must be greater than zero. This sets the cap directly \u2014 to raise it by a delta, compute the new total before calling.",
            "oneOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "title": "New Transaction Amount Limit"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "spend_allocation_id": {
            "default": null,
            "description": "The fund (spend allocation) UUID whose per-transaction limit should be updated. Provide either this or card_id, not both.",
            "nullable": true,
            "title": "Spend Allocation Id",
            "type": "string"
          }
        },
        "required": [
          "new_transaction_amount_limit",
          "rationale"
        ],
        "title": "UpdateTransactionAmountLimit",
        "type": "object"
      },
      "UpdateTransactionAmountLimitResult": {
        "description": "Result of a per-transaction amount limit update.",
        "properties": {
          "created_spend_request_uuid": {
            "default": null,
            "nullable": true,
            "title": "Created Spend Request Uuid",
            "type": "string"
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "new_transaction_amount_limit": {
            "title": "New Transaction Amount Limit",
            "type": "string"
          },
          "status": {
            "description": "\"success\" \u2014 limit was updated immediately. \"request_pending\" \u2014 a spend request was created and is awaiting approval.",
            "enum": [
              "request_pending",
              "success"
            ],
            "title": "Status",
            "type": "string"
          },
          "updated_fund_id": {
            "title": "Updated Fund Id",
            "type": "string"
          }
        },
        "required": [
          "message",
          "new_transaction_amount_limit",
          "status",
          "updated_fund_id"
        ],
        "title": "UpdateTransactionAmountLimitResult",
        "type": "object"
      },
      "UpdateTravelPreferencesRequestBody": {
        "description": "Save, change, or remove the acting user's free-text flight and hotel preferences.\n\nReturns save status, the traveler's UUID, a summary, and the updated preference\ntext. Requires an existing traveler profile; does not update another traveler.\nUnrelated saved preferences are preserved. An explicit airline, seat-position, or\nhotel-chain answer, or a flight Starlink request (not general Wi-Fi), can\ninitialize a missing preference, and explicit hotel amenities can be added,\nwithout save wording. Replacing one, or saving another\ncategory, requires a lasting preference or a request to save.\nInferred preferences require the user's confirmation before saving. Do not save\none-trip constraints, company policy, fund choices, or sensitive identity,\npayment, or loyalty account numbers.",
        "properties": {
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "request": {
            "description": "The requested future preference change or removal, using the user's words and any confirmed suggestion. Distinguish saved defaults from one-trip choices.",
            "title": "Request",
            "type": "string"
          }
        },
        "required": [
          "rationale",
          "request"
        ],
        "title": "UpdateTravelPreferences",
        "type": "object"
      },
      "UpdateTravelerProfileRequestBody": {
        "description": "Create or update traveler identity, contact details, and travel document numbers.\n\nProfile-detail updates preserve saved preference text. Legacy\nstructured flight defaults remain accepted and are converted to free text.\nDoes not accept free-text preference changes or natural-language loyalty requests.\nDefaults to the acting user; another traveler requires their user UUID and\ndelegate or travel-manager permission. Creating a profile requires its identity\nand contact fields.",
        "properties": {
          "avoid_red_eye_flights": {
            "description": "Durable preference to avoid red-eye flights. Set true for 'never book red-eyes' and false to clear.",
            "title": "Avoid Red Eye Flights",
            "type": "boolean"
          },
          "date_of_birth": {
            "default": null,
            "description": "Date of birth in YYYY-MM-DD format",
            "format": "date",
            "nullable": true,
            "title": "Date Of Birth",
            "type": "string"
          },
          "email": {
            "default": null,
            "description": "Email address for travel communications",
            "nullable": true,
            "title": "Email",
            "type": "string"
          },
          "first_name": {
            "default": null,
            "description": "First name (as it appears on government-issued ID)",
            "nullable": true,
            "title": "First Name",
            "type": "string"
          },
          "home_airport_code": {
            "description": "Durable default home or usual departure airport IATA code. Do not use for a one-off trip origin.",
            "nullable": true,
            "title": "Home Airport Code",
            "type": "string"
          },
          "id_gender": {
            "default": null,
            "description": "Gender as shown on government-issued ID. Must be MALE, FEMALE, or UNSPECIFIED for an X marker.",
            "nullable": true,
            "title": "Id Gender",
            "type": "string"
          },
          "known_traveler_number": {
            "default": null,
            "description": "Known Traveler Number (KTN) for TSA PreCheck. Must be 8-10 alphanumeric characters.",
            "nullable": true,
            "title": "Known Traveler Number",
            "type": "string"
          },
          "last_name": {
            "default": null,
            "description": "Last name (as it appears on government-issued ID)",
            "nullable": true,
            "title": "Last Name",
            "type": "string"
          },
          "loyalty_programs": {
            "default": null,
            "description": "Loyalty updates using existing internal program IDs, not natural-language program names. Not for loyalty-only requests.",
            "items": {
              "$ref": "#/components/schemas/LoyaltyProgramInputRequestBody"
            },
            "nullable": true,
            "title": "Loyalty Programs",
            "type": "array"
          },
          "max_stops": {
            "description": "Durable maximum number of stops the user generally accepts. Do not use for one search only.",
            "minimum": 0,
            "nullable": true,
            "title": "Max Stops",
            "type": "integer"
          },
          "middle_name": {
            "default": null,
            "description": "Middle name (as it appears on government-issued ID)",
            "nullable": true,
            "title": "Middle Name",
            "type": "string"
          },
          "name_prefix": {
            "default": null,
            "description": "Name prefix (e.g., Mr., Ms., Dr.)",
            "nullable": true,
            "title": "Name Prefix",
            "type": "string"
          },
          "name_suffix": {
            "default": null,
            "description": "Name suffix (e.g., Jr., Sr., III)",
            "nullable": true,
            "title": "Name Suffix",
            "type": "string"
          },
          "phone_country_code": {
            "default": null,
            "description": "ISO 3166-1 alpha-2 country code for phone number (e.g., US, GB)",
            "nullable": true,
            "title": "Phone Country Code",
            "type": "string"
          },
          "phone_number": {
            "default": null,
            "description": "Phone number for travel communications (always use E.164 formatting)",
            "nullable": true,
            "title": "Phone Number",
            "type": "string"
          },
          "preferred_airlines": {
            "description": "Durable preferred airlines by airline name or IATA code, e.g. ['Air Canada'] or ['AC']. Use [] to clear. Do not infer from one booking.",
            "items": {
              "type": "string"
            },
            "maxItems": 10,
            "title": "Preferred Airlines",
            "type": "array"
          },
          "preferred_arrival_time_window": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TravelTimeWindowRequestBody"
              }
            ],
            "description": "Durable preferred arrival time window. Do not use for a one-off requested arrival deadline.",
            "nullable": true,
            "title": "Preferred Arrival Time Window"
          },
          "preferred_cabin_class": {
            "allOf": [
              {
                "$ref": "#/components/schemas/InventoryCabinClassRequestBody"
              }
            ],
            "description": "Durable preferred flight cabin class. Do not use for policy- or trip-specific cabin limits.",
            "nullable": true,
            "title": "Preferred Cabin Class"
          },
          "preferred_departure_time_window": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TravelTimeWindowRequestBody"
              }
            ],
            "description": "Durable preferred departure time window. Do not use for a one-off requested departure time.",
            "nullable": true,
            "title": "Preferred Departure Time Window"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "redress_number": {
            "default": null,
            "description": "Redress number from the DHS Traveler Redress Inquiry Program (DHS TRIP). Must be a 7-digit number.",
            "nullable": true,
            "title": "Redress Number",
            "type": "string"
          },
          "seat_preference": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TravelSeatPreferenceRequestBody"
              }
            ],
            "description": "Durable seat preference, only when the user states it as a future default.",
            "nullable": true,
            "title": "Seat Preference"
          },
          "traveler_user_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
              }
            ],
            "default": null,
            "description": "Traveler user UUID for delegated profile updates. Requires delegate or travel-manager permission. Omit for self-booking.",
            "nullable": true
          }
        },
        "required": [
          "rationale"
        ],
        "title": "UpdateTravelerProfile",
        "type": "object"
      },
      "UpdateTravelerProfileResult": {
        "description": "Result of updating traveler profile.",
        "properties": {
          "message": {
            "description": "Description of what was updated",
            "title": "Message",
            "type": "string"
          },
          "success": {
            "description": "Whether the update was successful",
            "title": "Success",
            "type": "boolean"
          }
        },
        "required": [
          "message",
          "success"
        ],
        "title": "UpdateTravelerProfileResult",
        "type": "object"
      },
      "UpdateVendorAccountingDefaultsRequestBody": {
        "description": "Set or clear default accounting field values, such as the default GL account,\ndepartment, class or location, on up to 50 vendors in one call.\n\nOne call applies the same change to every listed vendor. When vendors need\ndifferent values, make one call per distinct value, each listing the vendors that\ntake it. These defaults prefill the coding of the vendor's new bills and spend.\nChanges apply immediately, like editing the vendor's accounting defaults in Ramp.\nThe listed fields are merged into each vendor's current defaults: only those\nfields change, and the vendor's other defaults keep their values. Field and option\nIDs are the UUIDs returned by GetTrackingCategories and GetTrackingCategoryOptions\nfor the business's connected accounting integrations; free-text and date fields\ncannot be set here.\n\nUnknown or inactive field and option IDs reject the whole call before anything\nchanges. After that, each vendor succeeds or fails on its own, and a failure for\none vendor does not undo the others. The result lists every vendor's defaults\nbefore and after.",
        "properties": {
          "fields": {
            "description": "Fields to set or clear on every listed vendor, each field once. Fields not listed keep each vendor's current default.",
            "items": {
              "$ref": "#/components/schemas/VendorAccountingFieldValueRequestBody"
            },
            "minItems": 1,
            "title": "Fields",
            "type": "array"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "vendor_ids": {
            "description": "UUIDs of the vendors to update, 1 to 50 (vendor_uuid from vendor search or GetVendorDetails). Every vendor gets the same change.",
            "items": {
              "$ref": "#/components/schemas/UUIDStrRequestBody"
            },
            "maxItems": 50,
            "minItems": 1,
            "title": "Vendor Ids",
            "type": "array"
          }
        },
        "required": [
          "fields",
          "rationale",
          "vendor_ids"
        ],
        "title": "UpdateVendorAccountingDefaults",
        "type": "object"
      },
      "UpdateVendorAccountingDefaultsResult": {
        "properties": {
          "vendors": {
            "description": "One outcome per requested vendor, in request order",
            "items": {
              "$ref": "#/components/schemas/VendorAccountingDefaultsOutcome"
            },
            "title": "Vendors",
            "type": "array"
          }
        },
        "required": [
          "vendors"
        ],
        "title": "UpdateVendorAccountingDefaultsResult",
        "type": "object"
      },
      "UpdatedPreferences": {
        "description": "Save status and the complete saved preference text.",
        "properties": {
          "comments": {
            "default": null,
            "description": "Complete saved free-text travel preferences after the update",
            "nullable": true,
            "title": "Comments",
            "type": "string"
          },
          "summary": {
            "description": "Summary of the save outcome or why nothing changed",
            "title": "Summary",
            "type": "string"
          },
          "traveler_user_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "description": "UUID of the traveler whose preferences this result describes"
          },
          "updated": {
            "description": "Whether travel preferences were saved successfully",
            "title": "Updated",
            "type": "boolean"
          }
        },
        "required": [
          "summary",
          "traveler_user_id",
          "updated"
        ],
        "title": "UpdatedPreferences",
        "type": "object"
      },
      "UploadProcurementFileContentRequestBody": {
        "description": "Save base64-encoded file content to a file field on your procurement draft.\n\nThe file is saved to the field right away; do not also send it as a draft\nanswer. Read the draft again to see what is still missing.",
        "properties": {
          "content_type": {
            "description": "MIME type of the file, for example \"application/pdf\".",
            "minLength": 1,
            "title": "Content Type",
            "type": "string"
          },
          "field_id": {
            "description": "ID of a visible file_upload field from the draft's draft_state.fields or change_request_state.fields.",
            "minLength": 1,
            "title": "Field Id",
            "type": "string"
          },
          "file_content_base64": {
            "description": "Base64-encoded file content, at most 40 MB decoded.",
            "title": "File Content Base64",
            "type": "string"
          },
          "filename": {
            "description": "Original filename with extension, for example \"quote.pdf\".",
            "minLength": 1,
            "title": "Filename",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "spend_request_uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UUIDStrRequestBody"
              }
            ],
            "description": "Draft spend request UUID returned by draft_procurement_request."
          }
        },
        "required": [
          "content_type",
          "field_id",
          "file_content_base64",
          "filename",
          "rationale",
          "spend_request_uuid"
        ],
        "title": "UploadProcurementFileContent",
        "type": "object"
      },
      "UploadReceiptFileRequestBody": {
        "description": "Upload a receipt from base64-encoded file content.\n\nUse this tool to create a receipt from raw file data (PNG, JPEG, PDF, HEIC, WEBP).\nOptionally attach it to a transaction by providing a transaction UUID.\nThis tool is designed for CLI callers that have the file content directly.",
        "properties": {
          "content_type": {
            "description": "MIME type of the file, e.g. \"image/png\".",
            "title": "Content Type",
            "type": "string"
          },
          "file_content_base64": {
            "description": "Base64-encoded file content (PNG, JPEG, PDF, HEIC, WEBP).",
            "title": "File Content Base64",
            "type": "string"
          },
          "filename": {
            "description": "Original filename with extension, e.g. \"receipt.png\".",
            "title": "Filename",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          },
          "transaction_uuid": {
            "default": null,
            "description": "Optional UUID of a transaction to auto-attach the receipt to.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "content_type",
          "file_content_base64",
          "filename",
          "rationale"
        ],
        "title": "UploadReceiptFile",
        "type": "object"
      },
      "UploadedFileInfo": {
        "properties": {
          "created_at": {
            "description": "When the file was uploaded.",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "filename": {
            "description": "Name of the uploaded file.",
            "title": "Filename",
            "type": "string"
          },
          "uploader_name": {
            "description": "Name of the user who uploaded the file.",
            "title": "Uploader Name",
            "type": "string"
          },
          "uuid": {
            "description": "UUID of the uploaded file.",
            "title": "Uuid",
            "type": "string"
          }
        },
        "required": [
          "created_at",
          "filename",
          "uploader_name",
          "uuid"
        ],
        "title": "UploadedFileInfo",
        "type": "object"
      },
      "UploadedFileRequestBody": {
        "format": "binary",
        "title": "UploadedFile",
        "type": "string"
      },
      "UserFunds": {
        "properties": {
          "funds": {
            "items": {
              "$ref": "#/components/schemas/SpendAllocationInfo"
            },
            "title": "Funds",
            "type": "array"
          },
          "next_cursor": {
            "default": null,
            "description": "Cursor to pass to the next request, or null when there are no more funds.",
            "nullable": true,
            "title": "Next Cursor",
            "type": "string"
          },
          "total_count": {
            "description": "Upper bound on matching funds. Excludes funds without spend rules on this page only, so it can differ between pages; use next_cursor, not this count, to decide whether more funds exist.",
            "title": "Total Count",
            "type": "integer"
          }
        },
        "required": [
          "funds",
          "total_count"
        ],
        "title": "UserFunds",
        "type": "object"
      },
      "UserMissingItems": {
        "properties": {
          "transaction_count": {
            "description": "Total number of transactions with missing items for this user",
            "title": "Transaction Count",
            "type": "integer"
          },
          "transactions": {
            "description": "Sample of transactions with missing items (limited by user_limit)",
            "items": {
              "$ref": "#/components/schemas/MissingItemTransaction"
            },
            "title": "Transactions",
            "type": "array"
          },
          "user_department": {
            "default": null,
            "description": "User department",
            "nullable": true,
            "title": "User Department",
            "type": "string"
          },
          "user_email": {
            "default": null,
            "description": "User email",
            "nullable": true,
            "title": "User Email",
            "type": "string"
          },
          "user_first_name": {
            "default": null,
            "description": "User first name",
            "nullable": true,
            "title": "User First Name",
            "type": "string"
          },
          "user_id": {
            "description": "User UUID",
            "title": "User Id",
            "type": "string"
          },
          "user_last_name": {
            "default": null,
            "description": "User last name",
            "nullable": true,
            "title": "User Last Name",
            "type": "string"
          },
          "user_status": {
            "default": null,
            "description": "User status (e.g. active, inactive/terminated)",
            "nullable": true,
            "title": "User Status",
            "type": "string"
          }
        },
        "required": [
          "transaction_count",
          "transactions",
          "user_id"
        ],
        "title": "UserMissingItems",
        "type": "object"
      },
      "UserRef": {
        "properties": {
          "is_active": {
            "title": "Is Active",
            "type": "boolean"
          },
          "is_deleted": {
            "title": "Is Deleted",
            "type": "boolean"
          },
          "name": {
            "nullable": true,
            "title": "Name",
            "type": "string"
          },
          "uuid": {
            "format": "uuid",
            "title": "Uuid",
            "type": "string"
          }
        },
        "required": [
          "is_active",
          "is_deleted",
          "name",
          "uuid"
        ],
        "title": "UserRef",
        "type": "object"
      },
      "UserSearchManager": {
        "description": "A manager's identity, without their private profile details.",
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "description": "Manager's user UUID"
          },
          "name": {
            "description": "Manager's display name; compare IDs, not names",
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "title": "UserSearchManager",
        "type": "object"
      },
      "UserSearchReportingContext": {
        "description": "A person's identity and their same-business, ordered chain of managers.",
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStr"
              }
            ],
            "description": "User UUID"
          },
          "label": {
            "description": "Display name for the user",
            "title": "Label",
            "type": "string"
          },
          "reporting_chain": {
            "default": null,
            "description": "Same-business managers ordered from direct manager upward, excluding this person, limited to 10 levels. Available regardless of profile-read permissions. May stop at missing, deleted or cross-business records or cycles; the last manager is not necessarily the root. Empty means no eligible manager was found; null means the person's organizational information is unavailable. Neither proves the person belongs to a different team.",
            "items": {
              "$ref": "#/components/schemas/UserSearchManager"
            },
            "nullable": true,
            "title": "Reporting Chain",
            "type": "array"
          }
        },
        "required": [
          "id",
          "label"
        ],
        "title": "UserSearchReportingContext",
        "type": "object"
      },
      "VehicleMileageClassRequestBody": {
        "enum": [
          "AUSTRIA_BICYCLE",
          "AUSTRIA_CAR",
          "AUSTRIA_CAR_WITH_PASSENGER",
          "AUSTRIA_MOTORBIKE",
          "CZECH_CAR",
          "CZECH_MOTORCYCLE",
          "DENMARK_BIKE_SCOOTER",
          "DENMARK_CAR_MOTORCYCLE",
          "FINLAND_ATV",
          "FINLAND_CAR",
          "FINLAND_CAR_HEAVY_CARGO",
          "FINLAND_CAR_TOWING_CARAVAN",
          "FINLAND_CAR_TOWING_HEAVY_LOAD",
          "FINLAND_CAR_TOWING_TRAILER",
          "FINLAND_CAR_TRANSPORTING_DOG",
          "FINLAND_CAR_UNPAVED_ROADS",
          "FINLAND_COMPANY_CAR",
          "FINLAND_MOPED",
          "FINLAND_MOTORBOAT_50_HP_OR_LESS",
          "FINLAND_MOTORBOAT_OVER_50_HP",
          "FINLAND_MOTORCYCLE",
          "FINLAND_OTHER",
          "FINLAND_SNOWMOBILE",
          "FRANCE_3_CV_AND_LESS",
          "FRANCE_3_CV_AND_LESS_ELECTRIC",
          "FRANCE_4_CV",
          "FRANCE_4_CV_ELECTRIC",
          "FRANCE_5_CV",
          "FRANCE_5_CV_ELECTRIC",
          "FRANCE_6_CV",
          "FRANCE_6_CV_ELECTRIC",
          "FRANCE_7_CV_AND_MORE",
          "FRANCE_7_CV_AND_MORE_ELECTRIC",
          "IRELAND_1200_CC_AND_LESS",
          "IRELAND_1201_CC_TO_1500_CC",
          "IRELAND_1501_CC_AND_MORE",
          "NETHERLANDS_CAR_DIESEL",
          "NETHERLANDS_CAR_FULLY_ELECTRIC",
          "NETHERLANDS_CAR_GASOLINE",
          "NETHERLANDS_CAR_OTHER_FUELS",
          "NETHERLANDS_CAR_PLUG_IN_HYBRID",
          "NETHERLANDS_CYCLING_WALKING",
          "NETHERLANDS_MOPED_SCOOTER_ELECTRIC",
          "NETHERLANDS_MOPED_SCOOTER_PETROL",
          "NETHERLANDS_MOTORCYCLE_ELECTRIC",
          "NETHERLANDS_MOTORCYCLE_GASOLINE",
          "NETHERLANDS_PUBLIC_TRANSPORT",
          "NEW_ZEALAND_DIESEL",
          "NEW_ZEALAND_ELECTRIC",
          "NEW_ZEALAND_PETROL",
          "NEW_ZEALAND_PETROL_HYBRID",
          "NORWAY_CAR",
          "NORWAY_HEAVY_MOTORCYCLE",
          "NORWAY_MOPED_LIGHT_MOTORCYCLE",
          "POLAND_900_CC_AND_LESS",
          "POLAND_900_CC_AND_MORE",
          "UK_BICYCLES",
          "UK_CARS_AND_VANS",
          "UK_COMPANY_DIESEL_1600_CC_AND_LESS",
          "UK_COMPANY_DIESEL_1601_TO_2000_CC",
          "UK_COMPANY_DIESEL_OVER_2000_CC",
          "UK_COMPANY_ELECTRIC_HOME",
          "UK_COMPANY_ELECTRIC_PUBLIC",
          "UK_COMPANY_LPG_1400_CC_AND_LESS",
          "UK_COMPANY_LPG_1401_TO_2000_CC",
          "UK_COMPANY_LPG_OVER_2000_CC",
          "UK_COMPANY_PETROL_1400_CC_AND_LESS",
          "UK_COMPANY_PETROL_1401_TO_2000_CC",
          "UK_COMPANY_PETROL_OVER_2000_CC",
          "UK_MOTORCYCLES"
        ],
        "title": "VehicleMileageClass",
        "type": "string"
      },
      "Vendor1099StatusJsonMode": {
        "properties": {
          "is_1099_enabled": {
            "description": "Whether the vendor is marked as a 1099 vendor for this year",
            "title": "Is 1099 Enabled",
            "type": "boolean"
          },
          "year": {
            "description": "Tax year",
            "title": "Year",
            "type": "integer"
          }
        },
        "required": [
          "is_1099_enabled",
          "year"
        ],
        "title": "Vendor1099Status",
        "type": "object"
      },
      "VendorAccountingDefault": {
        "properties": {
          "field_id": {
            "description": "Accounting field UUID",
            "title": "Field Id",
            "type": "string"
          },
          "field_name": {
            "description": "Accounting field name",
            "title": "Field Name",
            "type": "string"
          },
          "option_id": {
            "description": "Default option UUID",
            "title": "Option Id",
            "type": "string"
          },
          "option_name": {
            "description": "Default option name",
            "title": "Option Name",
            "type": "string"
          }
        },
        "required": [
          "field_id",
          "field_name",
          "option_id",
          "option_name"
        ],
        "title": "VendorAccountingDefault",
        "type": "object"
      },
      "VendorAccountingDefaultsOutcome": {
        "properties": {
          "defaults_after": {
            "description": "All of the vendor's accounting defaults after this call",
            "items": {
              "$ref": "#/components/schemas/VendorAccountingDefault"
            },
            "title": "Defaults After",
            "type": "array"
          },
          "defaults_before": {
            "description": "All of the vendor's accounting defaults before this call",
            "items": {
              "$ref": "#/components/schemas/VendorAccountingDefault"
            },
            "title": "Defaults Before",
            "type": "array"
          },
          "error": {
            "default": null,
            "description": "Why this vendor failed, when status is failed",
            "nullable": true,
            "title": "Error",
            "type": "string"
          },
          "status": {
            "description": "updated: the defaults changed; unchanged: they already had the requested values; failed: nothing changed for this vendor, see error",
            "enum": [
              "failed",
              "unchanged",
              "updated"
            ],
            "title": "Status",
            "type": "string"
          },
          "vendor_id": {
            "description": "Vendor UUID from the request",
            "title": "Vendor Id",
            "type": "string"
          },
          "vendor_name": {
            "default": null,
            "description": "Vendor name, when the vendor was found",
            "nullable": true,
            "title": "Vendor Name",
            "type": "string"
          }
        },
        "required": [
          "status",
          "vendor_id"
        ],
        "title": "VendorAccountingDefaultsOutcome",
        "type": "object"
      },
      "VendorAccountingFieldValueRequestBody": {
        "properties": {
          "field_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UUIDStrRequestBody"
              }
            ],
            "description": "Accounting field UUID (tracking_category_uuid from GetTrackingCategories), such as the GL account, department, class or location field"
          },
          "option_id": {
            "description": "Option UUID for this field (tracking_category_option_uuid from GetTrackingCategoryOptions), or null to clear the vendor's default for this field",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "field_id",
          "option_id"
        ],
        "title": "VendorAccountingFieldValue",
        "type": "object"
      },
      "VendorBankAccountPublicSummary": {
        "description": "A vendor bank account on file, without full account or routing numbers.",
        "properties": {
          "account_name": {
            "description": "Nickname of the account, if any.",
            "nullable": true,
            "title": "Account Name",
            "type": "string"
          },
          "account_number_last_four": {
            "description": "Last four characters of the account number or IBAN, if any.",
            "nullable": true,
            "title": "Account Number Last Four",
            "type": "string"
          },
          "currency": {
            "description": "ISO 4217 currency code of the account.",
            "title": "Currency",
            "type": "string"
          },
          "is_default": {
            "description": "Whether this is the vendor's default bank account.",
            "title": "Is Default",
            "type": "boolean"
          },
          "is_verified": {
            "description": "Whether an actor confirmed access to this account; null when not applicable. It does not identify the account holder.",
            "nullable": true,
            "title": "Is Verified",
            "type": "boolean"
          },
          "payment_method": {
            "description": "Payment rail of the account, such as ACH, WIRE, SWIFT, or INTERNATIONAL.",
            "title": "Payment Method",
            "type": "string"
          },
          "vendor_bank_account_uuid": {
            "description": "UUID of the vendor bank account. A bill's vendor bank account or payee bank account UUID field accepts this value.",
            "title": "Vendor Bank Account Uuid",
            "type": "string"
          }
        },
        "required": [
          "account_name",
          "account_number_last_four",
          "currency",
          "is_default",
          "is_verified",
          "payment_method",
          "vendor_bank_account_uuid"
        ],
        "title": "VendorBankAccountPublicSummary",
        "type": "object"
      },
      "VendorContactResult": {
        "properties": {
          "contact_uuid": {
            "description": "UUID of the vendor contact",
            "title": "Contact Uuid",
            "type": "string"
          },
          "email": {
            "default": null,
            "description": "Contact email address",
            "nullable": true,
            "title": "Email",
            "type": "string"
          },
          "first_name": {
            "default": null,
            "description": "Contact first name",
            "nullable": true,
            "title": "First Name",
            "type": "string"
          },
          "is_default": {
            "description": "Whether this is the default contact",
            "title": "Is Default",
            "type": "boolean"
          },
          "last_name": {
            "default": null,
            "description": "Contact last name",
            "nullable": true,
            "title": "Last Name",
            "type": "string"
          },
          "phone": {
            "default": null,
            "description": "Contact phone number",
            "nullable": true,
            "title": "Phone",
            "type": "string"
          }
        },
        "required": [
          "contact_uuid",
          "is_default"
        ],
        "title": "VendorContactResult",
        "type": "object"
      },
      "VendorContactResultJsonMode": {
        "properties": {
          "contact_uuid": {
            "description": "UUID of the vendor contact",
            "title": "Contact Uuid",
            "type": "string"
          },
          "email": {
            "default": null,
            "description": "Contact email address",
            "nullable": true,
            "title": "Email",
            "type": "string"
          },
          "first_name": {
            "default": null,
            "description": "Contact first name",
            "nullable": true,
            "title": "First Name",
            "type": "string"
          },
          "is_default": {
            "description": "Whether this is the default contact",
            "title": "Is Default",
            "type": "boolean"
          },
          "last_name": {
            "default": null,
            "description": "Contact last name",
            "nullable": true,
            "title": "Last Name",
            "type": "string"
          },
          "phone": {
            "default": null,
            "description": "Contact phone number",
            "nullable": true,
            "title": "Phone",
            "type": "string"
          }
        },
        "required": [
          "contact_uuid",
          "is_default"
        ],
        "title": "VendorContactResult",
        "type": "object"
      },
      "VendorCustomFieldJsonMode": {
        "properties": {
          "field_type": {
            "description": "Vendor custom field value type",
            "title": "Field Type",
            "type": "string"
          },
          "name": {
            "description": "Vendor custom field display name",
            "title": "Name",
            "type": "string"
          },
          "value": {
            "description": "Current human-readable value",
            "title": "Value",
            "type": "string"
          },
          "values_truncated": {
            "default": false,
            "description": "Whether additional referenced values were omitted from this result",
            "title": "Values Truncated",
            "type": "boolean"
          }
        },
        "required": [
          "field_type",
          "name",
          "value"
        ],
        "title": "VendorCustomField",
        "type": "object"
      },
      "VendorDefaultAccountingFieldJsonMode": {
        "properties": {
          "field_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrJsonMode"
              }
            ],
            "description": "UUID of the accounting field, as tracking_category_uuid in GetTrackingCategories"
          },
          "field_name": {
            "description": "Display name of the accounting field",
            "title": "Field Name",
            "type": "string"
          },
          "option_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntityUUIDStrJsonMode"
              }
            ],
            "description": "UUID of the default option, as tracking_category_option_uuid in GetTrackingCategoryOptions"
          },
          "option_name": {
            "description": "Display name of the default option",
            "title": "Option Name",
            "type": "string"
          }
        },
        "required": [
          "field_id",
          "field_name",
          "option_id",
          "option_name"
        ],
        "title": "VendorDefaultAccountingField",
        "type": "object"
      },
      "VendorDetailsResultJsonMode": {
        "description": "Full vendor details. Each field below costs an additional query.",
        "properties": {
          "approval_status": {
            "default": null,
            "description": "Vendor approval status",
            "nullable": true,
            "title": "Approval Status",
            "type": "string"
          },
          "billing_frequency": {
            "default": null,
            "description": "Billing frequency",
            "nullable": true,
            "title": "Billing Frequency",
            "type": "string"
          },
          "country": {
            "default": null,
            "description": "Vendor country (ISO alpha-2 code)",
            "nullable": true,
            "title": "Country",
            "type": "string"
          },
          "created_at": {
            "default": null,
            "description": "When the vendor was created",
            "format": "date-time",
            "nullable": true,
            "title": "Created At",
            "type": "string"
          },
          "creation_source": {
            "default": null,
            "description": "How the vendor was created (e.g., MANUAL, ERP)",
            "nullable": true,
            "title": "Creation Source",
            "type": "string"
          },
          "custom_fields": {
            "description": "Populated custom fields on the vendor, sorted by field name",
            "items": {
              "$ref": "#/components/schemas/VendorCustomFieldJsonMode"
            },
            "title": "Custom Fields",
            "type": "array"
          },
          "default_accounting_fields": {
            "default": null,
            "description": "Default accounting field values (including GL account) applied to this vendor's bills, for the accounting connection of the vendor's default entity (or the primary entity), sorted by field name; empty when none are set, null when that entity has no active accounting connection",
            "items": {
              "$ref": "#/components/schemas/VendorDefaultAccountingFieldJsonMode"
            },
            "nullable": true,
            "title": "Default Accounting Fields",
            "type": "array"
          },
          "department": {
            "default": null,
            "description": "Department name",
            "nullable": true,
            "title": "Department",
            "type": "string"
          },
          "description": {
            "default": null,
            "description": "Vendor description",
            "nullable": true,
            "title": "Description",
            "type": "string"
          },
          "external_point_of_contact": {
            "allOf": [
              {
                "$ref": "#/components/schemas/VendorContactResultJsonMode"
              }
            ],
            "default": null,
            "description": "External (vendor-side) point of contact stored on the vendor: the default contact if one is set, otherwise the most recently added contact. None when no contact is stored.",
            "nullable": true
          },
          "field_histories": {
            "default": null,
            "description": "Optional history for requested core vendor profile fields",
            "items": {
              "$ref": "#/components/schemas/VendorFieldHistoryJsonMode"
            },
            "nullable": true,
            "title": "Field Histories",
            "type": "array"
          },
          "is_active": {
            "description": "Whether the vendor is currently active",
            "title": "Is Active",
            "type": "boolean"
          },
          "is_draft": {
            "description": "Whether the vendor is in draft state",
            "title": "Is Draft",
            "type": "boolean"
          },
          "metadata_flags": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MetadataFlagsJsonMode"
              }
            ],
            "description": "Cached relationship hints that may be incomplete; false values do not establish absence or the source of recorded spend."
          },
          "name": {
            "description": "Vendor name",
            "title": "Name",
            "type": "string"
          },
          "net_payment_terms": {
            "default": null,
            "description": "Payment terms in days (e.g., 30 for Net 30)",
            "nullable": true,
            "title": "Net Payment Terms",
            "type": "integer"
          },
          "next_billing_amount": {
            "default": null,
            "description": "Next billing amount",
            "format": "decimal",
            "nullable": true,
            "title": "Next Billing Amount",
            "type": "string"
          },
          "next_billing_date": {
            "default": null,
            "description": "Next billing date",
            "format": "date-time",
            "nullable": true,
            "title": "Next Billing Date",
            "type": "string"
          },
          "owners": {
            "description": "Vendor owners",
            "items": {
              "$ref": "#/components/schemas/OwnerInfoJsonMode"
            },
            "title": "Owners",
            "type": "array"
          },
          "spend_category": {
            "default": null,
            "description": "Spend category name",
            "nullable": true,
            "title": "Spend Category",
            "type": "string"
          },
          "spend_summary": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SpendSummaryJsonMode"
              }
            ],
            "default": null,
            "description": "Aggregated spend data; precomputed totals are null when they are not available for this vendor",
            "nullable": true
          },
          "tax_1099_statuses": {
            "description": "1099 eligibility status by tax year; empty when the caller cannot view the vendor's payment and tax details",
            "items": {
              "$ref": "#/components/schemas/Vendor1099StatusJsonMode"
            },
            "title": "Tax 1099 Statuses",
            "type": "array"
          },
          "vendor_type": {
            "default": null,
            "description": "Vendor type (e.g., BUSINESS, INDIVIDUAL)",
            "nullable": true,
            "title": "Vendor Type",
            "type": "string"
          },
          "vendor_uuid": {
            "description": "UUID of the vendor",
            "title": "Vendor Uuid",
            "type": "string"
          },
          "website": {
            "default": null,
            "description": "Vendor website URL",
            "nullable": true,
            "title": "Website",
            "type": "string"
          }
        },
        "required": [
          "is_active",
          "is_draft",
          "name",
          "vendor_uuid"
        ],
        "title": "VendorDetailsResult",
        "type": "object"
      },
      "VendorDocumentBulkStatusItem": {
        "properties": {
          "created_at": {
            "description": "When the document record was created.",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "document_category": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayeeDocumentCategory"
              }
            ],
            "description": "Current document category assigned to the document."
          },
          "document_url": {
            "default": null,
            "description": "Temporary download URL for the document, when available.",
            "nullable": true,
            "title": "Document Url",
            "type": "string"
          },
          "document_uuid": {
            "description": "UUID of the uploaded vendor document.",
            "title": "Document Uuid",
            "type": "string"
          },
          "is_likely_w8": {
            "default": null,
            "description": "Whether the OCR pipeline believes this is likely a W-8.",
            "nullable": true,
            "title": "Is Likely W8",
            "type": "boolean"
          },
          "is_likely_w9": {
            "default": null,
            "description": "Whether the OCR pipeline believes this is likely a W-9.",
            "nullable": true,
            "title": "Is Likely W9",
            "type": "boolean"
          },
          "needs_attention": {
            "description": "Whether the document still needs user attention in triage.",
            "title": "Needs Attention",
            "type": "boolean"
          },
          "original_filename": {
            "description": "Original filename of the document.",
            "title": "Original Filename",
            "type": "string"
          },
          "running_ocr_job": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RunningAsyncJob"
              }
            ],
            "default": null,
            "description": "OCR job that is still running for this document, when available.",
            "nullable": true
          },
          "tax_details": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DocumentTaxDetailsSchema"
              }
            ],
            "default": null,
            "description": "Extracted tax details for W-form documents, when available.",
            "nullable": true
          },
          "updated_at": {
            "description": "When the document record was last updated.",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          },
          "vendor": {
            "allOf": [
              {
                "$ref": "#/components/schemas/VendorDocumentBulkStatusVendor"
              }
            ],
            "default": null,
            "description": "Vendor matched or attached to the document, when available.",
            "nullable": true
          },
          "vendor_match_score": {
            "default": null,
            "description": "Match score for the detected vendor, when available.",
            "nullable": true,
            "title": "Vendor Match Score",
            "type": "number"
          }
        },
        "required": [
          "created_at",
          "document_category",
          "document_uuid",
          "needs_attention",
          "original_filename",
          "updated_at"
        ],
        "title": "VendorDocumentBulkStatusItem",
        "type": "object"
      },
      "VendorDocumentBulkStatusVendor": {
        "properties": {
          "vendor_logo_url": {
            "default": null,
            "description": "Logo URL for the matched vendor, when available.",
            "nullable": true,
            "title": "Vendor Logo Url",
            "type": "string"
          },
          "vendor_name": {
            "default": null,
            "description": "Name of the matched vendor, when available.",
            "nullable": true,
            "title": "Vendor Name",
            "type": "string"
          },
          "vendor_uuid": {
            "description": "UUID of the matched vendor.",
            "title": "Vendor Uuid",
            "type": "string"
          }
        },
        "required": [
          "vendor_uuid"
        ],
        "title": "VendorDocumentBulkStatusVendor",
        "type": "object"
      },
      "VendorDocumentBulkUploadJob": {
        "properties": {
          "is_terminal": {
            "description": "Whether the bulk upload job has finished processing.",
            "title": "Is Terminal",
            "type": "boolean"
          },
          "job_type": {
            "description": "Async job type used to process the bulk upload batch (e.g. BULK_PAYEE_DOCUMENT_UPLOAD).",
            "title": "Job Type",
            "type": "string"
          },
          "job_uuid": {
            "description": "Async job UUID created for the bulk upload batch.",
            "title": "Job Uuid",
            "type": "string"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AsyncJobStatus"
              }
            ],
            "description": "Current lifecycle state of the bulk upload job."
          },
          "status_reason": {
            "description": "Human-readable summary of the current bulk upload job state.",
            "title": "Status Reason",
            "type": "string"
          }
        },
        "required": [
          "is_terminal",
          "job_type",
          "job_uuid",
          "status",
          "status_reason"
        ],
        "title": "VendorDocumentBulkUploadJob",
        "type": "object"
      },
      "VendorDocumentInfo": {
        "properties": {
          "category": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayeeDocumentCategory"
              }
            ],
            "description": "Document category (e.g. W9, MSA, VENDOR_CONTRACT)"
          },
          "category_display_name": {
            "description": "Human-readable document category name",
            "title": "Category Display Name",
            "type": "string"
          },
          "created_at": {
            "default": null,
            "description": "When the document was uploaded",
            "format": "date-time",
            "nullable": true,
            "title": "Created At",
            "type": "string"
          },
          "filename": {
            "description": "Current filename of the document",
            "title": "Filename",
            "type": "string"
          },
          "page_url": {
            "default": null,
            "description": "Ramp page that shows the document; use this when citing it",
            "nullable": true,
            "title": "Page Url",
            "type": "string"
          },
          "pages": {
            "description": "Matched page snippets sorted by page number. Empty when no content search was performed.",
            "items": {
              "$ref": "#/components/schemas/VendorDocumentPageInfo"
            },
            "title": "Pages",
            "type": "array"
          },
          "payee_name": {
            "default": null,
            "description": "Name of the vendor this document belongs to",
            "nullable": true,
            "title": "Payee Name",
            "type": "string"
          },
          "payee_uuid": {
            "default": null,
            "description": "UUID of the vendor this document belongs to",
            "nullable": true,
            "title": "Payee Uuid",
            "type": "string"
          },
          "ramp_document_id": {
            "default": null,
            "description": "Shared file UUID; the same stored file is returned once",
            "nullable": true,
            "title": "Ramp Document Id",
            "type": "string"
          },
          "request_document_id": {
            "default": null,
            "description": "SpendRequestDocument UUID for a request attachment; usable when reusing the file on another draft",
            "nullable": true,
            "title": "Request Document Id",
            "type": "string"
          },
          "source": {
            "default": "vendor_upload",
            "enum": [
              "request_attachment",
              "vendor_upload"
            ],
            "title": "Source",
            "type": "string"
          },
          "source_request_id": {
            "default": null,
            "description": "Unified request UUID for the attachment's source request",
            "nullable": true,
            "title": "Source Request Id",
            "type": "string"
          },
          "state": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayeeDocumentState"
              }
            ],
            "description": "Document processing state"
          },
          "url": {
            "default": null,
            "description": "Pre-signed URL to download the document",
            "nullable": true,
            "title": "Url",
            "type": "string"
          },
          "uuid": {
            "description": "Document UUID: PayeeDocument for vendor uploads; SpendRequestDocument or FormFile for request attachments. Only request_document_id is usable for request-file reuse.",
            "title": "Uuid",
            "type": "string"
          }
        },
        "required": [
          "category",
          "category_display_name",
          "filename",
          "state",
          "uuid"
        ],
        "title": "VendorDocumentInfo",
        "type": "object"
      },
      "VendorDocumentPageInfo": {
        "properties": {
          "extracted_text": {
            "description": "Text extracted from this page that matched the search query",
            "title": "Extracted Text",
            "type": "string"
          },
          "page_number": {
            "description": "1-indexed page number within the document",
            "title": "Page Number",
            "type": "integer"
          }
        },
        "required": [
          "extracted_text",
          "page_number"
        ],
        "title": "VendorDocumentPageInfo",
        "type": "object"
      },
      "VendorDocumentSearchScope": {
        "enum": [
          "vendor_uploads_and_request_attachments",
          "vendor_uploads_only"
        ],
        "title": "VendorDocumentSearchScope",
        "type": "string"
      },
      "VendorDocumentUploadPayloadRequestBody": {
        "properties": {
          "content_type": {
            "description": "MIME type of the file, for example \"application/pdf\".",
            "title": "Content Type",
            "type": "string"
          },
          "file_content_base64": {
            "description": "Base64-encoded file content for the vendor document.",
            "title": "File Content Base64",
            "type": "string"
          },
          "filename": {
            "description": "Original filename with extension, for example \"contract.pdf\".",
            "title": "Filename",
            "type": "string"
          }
        },
        "required": [
          "content_type",
          "file_content_base64",
          "filename"
        ],
        "title": "VendorDocumentUploadPayload",
        "type": "object"
      },
      "VendorFieldGradeDetail": {
        "properties": {
          "field_id": {
            "description": "Stable UUID of the graded questionnaire field; matches GetRFXDetail's field_id",
            "title": "Field Id",
            "type": "string"
          },
          "field_label": {
            "default": null,
            "description": "Label of the graded questionnaire field, when resolvable",
            "nullable": true,
            "title": "Field Label",
            "type": "string"
          },
          "grade_state": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RFXFormFieldResponseGradeState"
              }
            ],
            "description": "Provenance state of the recorded grade, such as AUTO_ACCEPTED or HUMAN_EDITED"
          },
          "grading_score": {
            "description": "Recorded grade score",
            "title": "Grading Score",
            "type": "integer"
          },
          "grading_user_uuid": {
            "default": null,
            "description": "UUID of the user who recorded this grade for MANUAL_REVIEW; None for AI_ONLY",
            "nullable": true,
            "title": "Grading User Uuid",
            "type": "string"
          },
          "justification": {
            "default": null,
            "description": "Justification recorded with the grade, when set",
            "nullable": true,
            "title": "Justification",
            "type": "string"
          }
        },
        "required": [
          "field_id",
          "field_label",
          "grade_state",
          "grading_score",
          "grading_user_uuid",
          "justification"
        ],
        "title": "VendorFieldGradeDetail",
        "type": "object"
      },
      "VendorFieldHistoryChangeJsonMode": {
        "properties": {
          "change_type": {
            "description": "Type of change: added, removed, or updated",
            "title": "Change Type",
            "type": "string"
          },
          "changed_at": {
            "description": "When the change was recorded",
            "format": "date-time",
            "title": "Changed At",
            "type": "string"
          },
          "changed_by": {
            "description": "Who made the change, or Ramp for system changes",
            "title": "Changed By",
            "type": "string"
          },
          "new_value": {
            "default": null,
            "description": "New value after the change",
            "nullable": true,
            "title": "New Value",
            "type": "string"
          },
          "old_value": {
            "default": null,
            "description": "Previous value before the change",
            "nullable": true,
            "title": "Old Value",
            "type": "string"
          },
          "reason": {
            "default": null,
            "description": "Why Ramp made this system change, when Ramp recorded it. When absent, no reason is recorded; say so rather than guessing a cause.",
            "nullable": true,
            "title": "Reason",
            "type": "string"
          },
          "summary": {
            "description": "Short natural-language description of the change",
            "title": "Summary",
            "type": "string"
          }
        },
        "required": [
          "change_type",
          "changed_at",
          "changed_by",
          "summary"
        ],
        "title": "VendorFieldHistoryChange",
        "type": "object"
      },
      "VendorFieldHistoryJsonMode": {
        "properties": {
          "changes": {
            "description": "Chronological list of recorded changes for the field",
            "items": {
              "$ref": "#/components/schemas/VendorFieldHistoryChangeJsonMode"
            },
            "title": "Changes",
            "type": "array"
          },
          "current_value": {
            "default": null,
            "description": "Current field value in a display-friendly format",
            "nullable": true,
            "title": "Current Value",
            "type": "string"
          },
          "display_name": {
            "description": "Human-readable name for the field",
            "title": "Display Name",
            "type": "string"
          },
          "field_name": {
            "description": "Canonical field name requested for history",
            "title": "Field Name",
            "type": "string"
          }
        },
        "required": [
          "display_name",
          "field_name"
        ],
        "title": "VendorFieldHistory",
        "type": "object"
      },
      "VendorGradingDetail": {
        "properties": {
          "has_submitted_response": {
            "description": "Whether this vendor has a submitted response to grade",
            "title": "Has Submitted Response",
            "type": "boolean"
          },
          "invitation_id": {
            "description": "UUID of the vendor invitation",
            "title": "Invitation Id",
            "type": "string"
          },
          "sections": {
            "items": {
              "$ref": "#/components/schemas/VendorSectionGradingDetail"
            },
            "title": "Sections",
            "type": "array"
          },
          "vendor_name": {
            "description": "Vendor name",
            "title": "Vendor Name",
            "type": "string"
          },
          "vendor_uuid": {
            "description": "UUID of the vendor payee",
            "title": "Vendor Uuid",
            "type": "string"
          }
        },
        "required": [
          "has_submitted_response",
          "invitation_id",
          "sections",
          "vendor_name",
          "vendor_uuid"
        ],
        "title": "VendorGradingDetail",
        "type": "object"
      },
      "VendorInviteRequestBody": {
        "properties": {
          "payee_uuid": {
            "description": "UUID of an existing payee (vendor), including draft payees.",
            "title": "Payee Uuid",
            "type": "string"
          }
        },
        "required": [
          "payee_uuid"
        ],
        "title": "VendorInvite",
        "type": "object"
      },
      "VendorInviteResult": {
        "properties": {
          "error": {
            "default": null,
            "nullable": true,
            "title": "Error",
            "type": "string"
          },
          "message": {
            "default": null,
            "nullable": true,
            "title": "Message",
            "type": "string"
          },
          "payee_uuid": {
            "title": "Payee Uuid",
            "type": "string"
          },
          "status": {
            "default": null,
            "description": "'active' when the invitation is ready to send on publish. 'draft' when the vendor has no contact on file and the user must resolve it on the RFX detail page before publishing. None on failure.",
            "enum": [
              "active",
              "draft"
            ],
            "nullable": true,
            "title": "Status",
            "type": "string"
          },
          "success": {
            "title": "Success",
            "type": "boolean"
          }
        },
        "required": [
          "payee_uuid",
          "success"
        ],
        "title": "VendorInviteResult",
        "type": "object"
      },
      "VendorNameMatch": {
        "properties": {
          "id": {
            "$ref": "#/components/schemas/UUIDStr"
          },
          "name": {
            "description": "Vendor display name.",
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "title": "VendorNameMatch",
        "type": "object"
      },
      "VendorNameSearchResult": {
        "properties": {
          "has_more": {
            "description": "Whether more exact-name candidates were omitted.",
            "title": "Has More",
            "type": "boolean"
          },
          "search_term": {
            "description": "Trimmed input vendor name.",
            "title": "Search Term",
            "type": "string"
          },
          "status": {
            "description": "Whether exactly one, multiple, or no visible vendors match the name.",
            "enum": [
              "ambiguous",
              "no_exact_match",
              "unique_exact"
            ],
            "title": "Status",
            "type": "string"
          },
          "vendors": {
            "description": "Visible exact-name candidates, up to limit.",
            "items": {
              "$ref": "#/components/schemas/VendorNameMatch"
            },
            "title": "Vendors",
            "type": "array"
          }
        },
        "required": [
          "has_more",
          "search_term",
          "status",
          "vendors"
        ],
        "title": "VendorNameSearchResult",
        "type": "object"
      },
      "VendorOwnerApproverRef": {
        "properties": {
          "full_name": {
            "description": "Name of the approver or approver group.",
            "title": "Full Name",
            "type": "string"
          },
          "user_uuid": {
            "description": "UUID of the approving user; null for a role-based approver.",
            "nullable": true,
            "title": "User Uuid",
            "type": "string"
          }
        },
        "required": [
          "full_name",
          "user_uuid"
        ],
        "title": "VendorOwnerApproverRef",
        "type": "object"
      },
      "VendorOwnerRef": {
        "properties": {
          "full_name": {
            "description": "Full name of the Ramp user.",
            "title": "Full Name",
            "type": "string"
          },
          "user_uuid": {
            "description": "UUID of the Ramp user.",
            "title": "User Uuid",
            "type": "string"
          }
        },
        "required": [
          "full_name",
          "user_uuid"
        ],
        "title": "VendorOwnerRef",
        "type": "object"
      },
      "VendorResult": {
        "description": "A vendor search result.",
        "properties": {
          "description": {
            "default": null,
            "description": "Additional description if available",
            "nullable": true,
            "title": "Description",
            "type": "string"
          },
          "id": {
            "$ref": "#/components/schemas/UUIDStr"
          },
          "is_1099_tracking_enabled": {
            "default": null,
            "description": "Whether 1099 tax tracking is enabled for this vendor in tax_1099_year. Null when tax_1099_year is not provided.",
            "nullable": true,
            "title": "Is 1099 Tracking Enabled",
            "type": "boolean"
          },
          "is_draft": {
            "description": "Indicates if this is a draft or published vendor.",
            "title": "Is Draft",
            "type": "boolean"
          },
          "name": {
            "description": "Display name of the vendor",
            "title": "Name",
            "type": "string"
          },
          "num_procurement_requests": {
            "default": 0,
            "description": "Number of submitted or approved procurement requests using this vendor.",
            "title": "Num Procurement Requests",
            "type": "integer"
          }
        },
        "required": [
          "id",
          "is_draft",
          "name"
        ],
        "title": "VendorResult",
        "type": "object"
      },
      "VendorSectionGradingDetail": {
        "properties": {
          "aggregate_grading_score": {
            "default": null,
            "description": "Aggregate score for this vendor section, when graded",
            "nullable": true,
            "title": "Aggregate Grading Score",
            "type": "number"
          },
          "field_grades": {
            "description": "Recorded grades on individual fields, when any exist",
            "items": {
              "$ref": "#/components/schemas/VendorFieldGradeDetail"
            },
            "title": "Field Grades",
            "type": "array"
          },
          "grading_status": {
            "description": "Grading status for this vendor section",
            "title": "Grading Status",
            "type": "string"
          },
          "section_name": {
            "description": "Section label",
            "title": "Section Name",
            "type": "string"
          }
        },
        "required": [
          "aggregate_grading_score",
          "field_grades",
          "grading_status",
          "section_name"
        ],
        "title": "VendorSectionGradingDetail",
        "type": "object"
      },
      "VendorSpendSummary": {
        "properties": {
          "currency": {
            "description": "ISO currency code of the spend figures",
            "title": "Currency",
            "type": "string"
          },
          "inception_to_date": {
            "description": "All-time vendor spend on Ramp",
            "title": "Inception To Date",
            "type": "number"
          },
          "last_30_days": {
            "description": "Vendor spend in the last 30 days",
            "title": "Last 30 Days",
            "type": "number"
          },
          "last_365_days": {
            "description": "Vendor spend in the last 365 days",
            "title": "Last 365 Days",
            "type": "number"
          },
          "year_to_date": {
            "description": "Vendor spend this calendar year",
            "title": "Year To Date",
            "type": "number"
          }
        },
        "required": [
          "currency",
          "inception_to_date",
          "last_30_days",
          "last_365_days",
          "year_to_date"
        ],
        "title": "VendorSpendSummary",
        "type": "object"
      },
      "VisibleProcurementDeflectionMatchJsonMode": {
        "properties": {
          "amount": {
            "format": "decimal",
            "nullable": true,
            "title": "Amount",
            "type": "string"
          },
          "currency": {
            "nullable": true,
            "title": "Currency",
            "type": "string"
          },
          "end_date": {
            "format": "date",
            "nullable": true,
            "title": "End Date",
            "type": "string"
          },
          "link": {
            "title": "Link",
            "type": "string"
          },
          "name": {
            "nullable": true,
            "title": "Name",
            "type": "string"
          },
          "object_type": {
            "$ref": "#/components/schemas/ProcurementDeflectionObjectTypeJsonMode"
          },
          "owner_display_names": {
            "items": {
              "type": "string"
            },
            "title": "Owner Display Names",
            "type": "array"
          },
          "start_date": {
            "format": "date",
            "nullable": true,
            "title": "Start Date",
            "type": "string"
          },
          "status": {
            "title": "Status",
            "type": "string"
          },
          "visibility": {
            "default": "visible",
            "enum": [
              "visible"
            ],
            "title": "Visibility",
            "type": "string"
          },
          "wbp_request_id": {
            "default": null,
            "description": "Canonical workflow-backed policy request UUID, when this object is WBP-backed.",
            "nullable": true,
            "title": "Wbp Request Id",
            "type": "string"
          }
        },
        "required": [
          "amount",
          "currency",
          "end_date",
          "link",
          "name",
          "object_type",
          "owner_display_names",
          "start_date",
          "status"
        ],
        "title": "VisibleProcurementDeflectionMatch",
        "type": "object"
      },
      "WalletConstraints": {
        "additionalProperties": false,
        "properties": {
          "currency": {
            "pattern": "^[A-Z][A-Z0-9_]{2,31}$",
            "title": "Currency",
            "type": "string"
          },
          "ends_at": {
            "format": "date-time",
            "title": "Ends At",
            "type": "string"
          },
          "max_amount": {
            "exclusiveMinimum": true,
            "minimum": 0,
            "title": "Max Amount",
            "type": "number"
          },
          "max_amount_per_payment": {
            "exclusiveMinimum": true,
            "minimum": 0,
            "title": "Max Amount Per Payment",
            "type": "number"
          },
          "max_payments": {
            "default": null,
            "exclusiveMinimum": true,
            "minimum": 0,
            "nullable": true,
            "title": "Max Payments",
            "type": "integer"
          },
          "starts_at": {
            "format": "date-time",
            "title": "Starts At",
            "type": "string"
          }
        },
        "required": [
          "currency",
          "ends_at",
          "max_amount",
          "max_amount_per_payment",
          "starts_at"
        ],
        "title": "WalletConstraints",
        "type": "object"
      },
      "WalletConstraintsRequestBody": {
        "additionalProperties": false,
        "properties": {
          "currency": {
            "pattern": "^[A-Z][A-Z0-9_]{2,31}$",
            "title": "Currency",
            "type": "string"
          },
          "ends_at": {
            "format": "date-time",
            "title": "Ends At",
            "type": "string"
          },
          "max_amount": {
            "exclusiveMinimum": true,
            "minimum": 0,
            "oneOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "title": "Max Amount"
          },
          "max_amount_per_payment": {
            "exclusiveMinimum": true,
            "minimum": 0,
            "oneOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "title": "Max Amount Per Payment"
          },
          "max_payments": {
            "default": null,
            "exclusiveMinimum": true,
            "minimum": 0,
            "nullable": true,
            "title": "Max Payments",
            "type": "integer"
          },
          "starts_at": {
            "format": "date-time",
            "title": "Starts At",
            "type": "string"
          }
        },
        "required": [
          "currency",
          "ends_at",
          "max_amount",
          "max_amount_per_payment",
          "starts_at"
        ],
        "title": "WalletConstraints",
        "type": "object"
      },
      "WalletTransferInfo": {
        "description": "Agent projection of the authorized wallet-transfer response.",
        "properties": {
          "amount": {
            "title": "Amount",
            "type": "number"
          },
          "cancelable": {
            "title": "Cancelable",
            "type": "boolean"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "currency": {
            "title": "Currency",
            "type": "string"
          },
          "destination_account_name": {
            "default": null,
            "nullable": true,
            "title": "Destination Account Name",
            "type": "string"
          },
          "expected_settlement_date": {
            "default": null,
            "format": "date-time",
            "nullable": true,
            "title": "Expected Settlement Date",
            "type": "string"
          },
          "has_payment_confirmation": {
            "title": "Has Payment Confirmation",
            "type": "boolean"
          },
          "memo": {
            "default": null,
            "nullable": true,
            "title": "Memo",
            "type": "string"
          },
          "signed_amount": {
            "title": "Signed Amount",
            "type": "number"
          },
          "source_account_name": {
            "default": null,
            "nullable": true,
            "title": "Source Account Name",
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/WalletTransferUserPaymentStatus"
          },
          "status_updated_at": {
            "format": "date-time",
            "title": "Status Updated At",
            "type": "string"
          },
          "transaction_details": {
            "title": "Transaction Details",
            "type": "string"
          },
          "transaction_type": {
            "title": "Transaction Type",
            "type": "string"
          },
          "transfer_type": {
            "$ref": "#/components/schemas/WalletTransferType"
          },
          "uuid": {
            "$ref": "#/components/schemas/UUIDStr"
          }
        },
        "required": [
          "amount",
          "cancelable",
          "created_at",
          "currency",
          "has_payment_confirmation",
          "signed_amount",
          "status",
          "status_updated_at",
          "transaction_details",
          "transaction_type",
          "transfer_type",
          "uuid"
        ],
        "title": "WalletTransferInfo",
        "type": "object"
      },
      "WalletTransferType": {
        "description": "Enum representing the wallet transfer type",
        "enum": [
          "ACCOUNTS_RECEIVABLE_DEPOSIT",
          "ACCRUED_YIELD_PAYMENT",
          "BILLPAY_PAYMENT",
          "BROKERAGE_BUY_ORDER",
          "BROKERAGE_CASH_DIVIDEND",
          "BROKERAGE_SELL_ORDER",
          "CHECK_DEPOSIT",
          "CHECK_DEPOSIT_ADJUSTMENT_CREDIT",
          "CHECK_DEPOSIT_ADJUSTMENT_DEBIT",
          "CHECK_WITHDRAWAL",
          "DAILY_CARD_NET_SETTLEMENT_DEPOSIT",
          "DAILY_CARD_NET_SETTLEMENT_WITHDRAWAL",
          "DEPOSIT",
          "DQ_FORGIVENESS",
          "DQ_PAYMENT_PLAN_PAYMENT",
          "FLEX_INSTALLMENT_PAYMENT",
          "FLEX_INSTALLMENT_PAYMENT_REFUND",
          "INCENTIVE_DEPOSIT",
          "MANAGED_PORTFOLIO_DEPOSIT",
          "MANAGED_PORTFOLIO_WITHDRAWAL",
          "PROVIDER_INTEREST_PAYMENT",
          "RAMP_BILLING_PAYMENT",
          "RAMP_BILLING_REFUND",
          "RAMP_MANUAL_CREDIT",
          "RAMP_MANUAL_DEBIT",
          "REIMBURSEMENT_PAYMENT",
          "REVERSE_REIMBURSEMENT_PAYMENT",
          "REWARDS_REDEMPTION_PAYOUT",
          "STATEMENT_PAYMENT",
          "WITHDRAWAL"
        ],
        "title": "WalletTransferType",
        "type": "string"
      },
      "WalletTransferUserPaymentStatus": {
        "description": "Enum representing wallet transfer payment status to show users",
        "enum": [
          "BLOCKED",
          "CANCELED",
          "CHECK_DEPOSIT_ATTEMPT_REJECTED",
          "COMPLETED",
          "ERROR",
          "HELD_AFTER_RECONCILIATION",
          "HELD_BEFORE_INITIATION",
          "HELD_FOR_AUTO_RETRY",
          "ISSUED",
          "PARTIALLY_AVAILABLE",
          "PENDING_INBOUND_REQUEST_REVIEW",
          "PROCESSING",
          "REJECTED",
          "REQUESTED",
          "REVERSED",
          "SCHEDULED"
        ],
        "title": "WalletTransferUserPaymentStatus",
        "type": "string"
      },
      "WbpRequestStatus": {
        "description": "Lifecycle status of a WBP request. Stored on `WbpRequest.status`.",
        "enum": [
          "approved",
          "draft",
          "rejected",
          "submitted"
        ],
        "title": "WbpRequestStatus",
        "type": "string"
      },
      "WbxMissingRequiredFieldInfo": {
        "description": "A required field with no value yet; the request cannot be submitted until\nevery entry here is written.",
        "properties": {
          "display_name": {
            "description": "Human-readable label to show the user when asking for it.",
            "title": "Display Name",
            "type": "string"
          },
          "kind": {
            "description": "How to write this field. 'form_field': a `fields` entry whose `name` is write_key. Entity-bound kinds are NOT `fields` entries \u2014 satisfy them on EVERY purchase_order_line_items item: 'tracking_category' as {tracking_category_uuid: write_key, tracking_category_option_uuid: <option uuid>} in tracking_category_selections, 'custom_field' as {custom_field_id: write_key, value: <value>} in custom_field_values.",
            "title": "Kind",
            "type": "string"
          },
          "missing_line_item_uuids": {
            "default": null,
            "description": "For line-item codings, the purchase_order_line_items uuids still missing this field; null for form fields and header codings.",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "title": "Missing Line Item Uuids",
            "type": "array"
          },
          "nudge_line": {
            "title": "Nudge Line",
            "type": "string"
          },
          "write_key": {
            "description": "Stable write key: the `fields[].name` for kind 'form_field', or the custom-field/tracking-category UUID for entity-bound kinds.",
            "title": "Write Key",
            "type": "string"
          }
        },
        "required": [
          "display_name",
          "kind",
          "nudge_line",
          "write_key"
        ],
        "title": "WbxMissingRequiredFieldInfo",
        "type": "object"
      },
      "WeekdayRequestBody": {
        "description": "Lowercase weekday names for tool inputs; date math maps through calendar.Day.",
        "enum": [
          "friday",
          "monday",
          "saturday",
          "sunday",
          "thursday",
          "tuesday",
          "wednesday"
        ],
        "title": "Weekday",
        "type": "string"
      },
      "WireCounterpartyDetails": {
        "additionalProperties": true,
        "description": "Bank account details for domestic wire payments.",
        "properties": {
          "account_name": {
            "description": "Name on the destination account.",
            "title": "Account Name",
            "type": "string"
          },
          "account_number": {
            "description": "Destination bank account number.",
            "title": "Account Number",
            "type": "string"
          },
          "bank_mailing_address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UnvalidatedMailingAddress"
              }
            ],
            "description": "Mailing address of the destination bank.",
            "title": "Bank Mailing Address"
          },
          "currency": {
            "default": "USD",
            "description": "Currency of the destination account.",
            "enum": [
              "USD"
            ],
            "title": "Currency",
            "type": "string"
          },
          "mailing_address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UnvalidatedMailingAddress"
              }
            ],
            "default": null,
            "description": "Mailing address of the counterparty.",
            "nullable": true
          },
          "payment_method": {
            "default": "WIRE",
            "description": "Payment method.",
            "enum": [
              "WIRE"
            ],
            "title": "Payment Method",
            "type": "string"
          },
          "routing_number": {
            "description": "Destination bank routing number.",
            "title": "Routing Number",
            "type": "string"
          },
          "type": {
            "default": "wire",
            "description": "Counterparty details type.",
            "enum": [
              "wire"
            ],
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "account_number",
          "routing_number"
        ],
        "title": "WireCounterpartyDetails",
        "type": "object"
      },
      "WithdrawX402WalletRequestBody": {
        "description": "Withdraw the business's x402 wallet balance to a Ramp Checking Account.\n\nBefore calling, use ListBusinessAccounts to obtain the destination account UUID;\nnever guess it. Confirm the exact destination account and USDC amount with the\nuser before creating this irreversible transfer. MCP and CLI callers must provide\nan idempotency key. Only active Increase USD accounts are supported.",
        "properties": {
          "amount": {
            "description": "Exact USDC amount the user confirmed for withdrawal.",
            "oneOf": [
              {
                "minimum": 1.0,
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "title": "Amount"
          },
          "destination_wallet_account_uuid": {
            "description": "UUID of the destination Ramp Checking Account returned by ListBusinessAccounts. Never guess an account UUID.",
            "format": "uuid",
            "title": "Destination Wallet Account Uuid",
            "type": "string"
          },
          "idempotency_key": {
            "default": null,
            "description": "Caller-generated UUID used to prevent duplicate withdrawals. Reuse it only when retrying the same request.",
            "format": "uuid",
            "nullable": true,
            "title": "Idempotency Key",
            "type": "string"
          },
          "rationale": {
            "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Rationale",
            "type": "string"
          }
        },
        "required": [
          "amount",
          "destination_wallet_account_uuid",
          "rationale"
        ],
        "title": "WithdrawX402Wallet",
        "type": "object"
      },
      "WithdrawX402WalletResult": {
        "properties": {
          "amount": {
            "title": "Amount",
            "type": "number"
          },
          "currency": {
            "title": "Currency",
            "type": "string"
          },
          "destination_name": {
            "title": "Destination Name",
            "type": "string"
          },
          "source_name": {
            "title": "Source Name",
            "type": "string"
          },
          "status": {
            "title": "Status",
            "type": "string"
          },
          "transfer_uuid": {
            "title": "Transfer Uuid",
            "type": "string"
          }
        },
        "required": [
          "amount",
          "currency",
          "destination_name",
          "source_name",
          "status",
          "transfer_uuid"
        ],
        "title": "WithdrawX402WalletResult",
        "type": "object"
      },
      "WorkflowBackedRequestDetails": {
        "description": "Policy-backed request state associated with this unified request.",
        "properties": {
          "fields": {
            "description": "Every field on the request \u2014 form-schema fields and entity-bound fields (currency, purchase-order line items, request owner, ...) \u2014 with values, types, select options, and attribution. Write any entry with writable=true via the `fields` argument of UpdateWbpRequestFields; never write writable=false entries.",
            "items": {
              "$ref": "#/components/schemas/UnifiedFieldView"
            },
            "title": "Fields",
            "type": "array"
          },
          "missing_required_fields": {
            "description": "Required fields still unwritten; empty when done.",
            "items": {
              "$ref": "#/components/schemas/WbxMissingRequiredFieldInfo"
            },
            "title": "Missing Required Fields",
            "type": "array"
          },
          "pending_field_resolution": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PendingWbpRequestFieldResolution"
              }
            ],
            "default": null,
            "description": "Background job still running that may auto-fill the listed `fields` write keys; do not ask the user for those fields while it is set. When `line_item_field_write_keys` is present, the job fills only those (line_item_uuid, tracking_category_uuid) slots and `header_field_write_keys`; still ask for the same tracking category on any other line item that is missing it.",
            "nullable": true
          },
          "policy_id": {
            "title": "Policy Id",
            "type": "string"
          },
          "policy_name": {
            "title": "Policy Name",
            "type": "string"
          },
          "ready_for_preview": {
            "default": false,
            "description": "True when every required field is written and no field has validation errors \u2014 the request can be previewed for submission.",
            "title": "Ready For Preview",
            "type": "boolean"
          },
          "request_name": {
            "title": "Request Name",
            "type": "string"
          },
          "spend_request_url": {
            "default": null,
            "nullable": true,
            "title": "Spend Request Url",
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/WbpRequestStatus"
          },
          "wbp_request_id": {
            "description": "Canonical workflow-backed policy request UUID. Reuse this exact value only where a tool asks for wbp_request_id.",
            "title": "Wbp Request Id",
            "type": "string"
          }
        },
        "required": [
          "policy_id",
          "policy_name",
          "request_name",
          "status",
          "wbp_request_id"
        ],
        "title": "WorkflowBackedRequestDetails",
        "type": "object"
      },
      "WorkflowCatalogOption": {
        "properties": {
          "display_name": {
            "description": "Human-readable option name.",
            "title": "Display Name",
            "type": "string"
          },
          "id": {
            "description": "Stable option ID to copy into workflow edits.",
            "title": "Id",
            "type": "string"
          }
        },
        "required": [
          "display_name",
          "id"
        ],
        "title": "WorkflowCatalogOption",
        "type": "object"
      },
      "WorkflowConditionOperand": {
        "properties": {
          "child_type": {
            "default": null,
            "description": "Workflow child value type for array operands, when available.",
            "nullable": true,
            "title": "Child Type",
            "type": "string"
          },
          "default_currency": {
            "default": null,
            "description": "For CURRENCY operands on workflows with threshold currencies, the currency a new condition on this operand uses when none is given. A saved condition without a currency is USD.",
            "nullable": true,
            "title": "Default Currency",
            "type": "string"
          },
          "default_operator": {
            "default": null,
            "description": "Default operator identifier for this operand. Prefer this when it matches the user's intent; boolean flags usually use bool_is_true, not ==.",
            "nullable": true,
            "title": "Default Operator",
            "type": "string"
          },
          "description": {
            "default": null,
            "description": "Configured meaning of this condition field.",
            "nullable": true,
            "title": "Description",
            "type": "string"
          },
          "display": {
            "default": null,
            "description": "Human-readable condition operand name.",
            "nullable": true,
            "title": "Display",
            "type": "string"
          },
          "mask": {
            "default": null,
            "description": "Formatting/semantic mask for the operand, such as DAY, CURRENCY, or PERCENTAGE. Use this to translate user language like older than 30 days into transaction_age_days > 30.",
            "nullable": true,
            "title": "Mask",
            "type": "string"
          },
          "object_list_type": {
            "default": null,
            "description": "Workflow object-list catalog key for operands that compare lists of selectable objects, such as vendor owner users or custom groups.",
            "nullable": true,
            "title": "Object List Type",
            "type": "string"
          },
          "object_type": {
            "default": null,
            "description": "Workflow object catalog key to use with SearchWorkflowObjectOptions when this condition operand compares against a selectable object. For example, Employee uses object_type=user.",
            "nullable": true,
            "title": "Object Type",
            "type": "string"
          },
          "operand_type": {
            "default": null,
            "description": "Workflow operand type, when available.",
            "nullable": true,
            "title": "Operand Type",
            "type": "string"
          },
          "operator_right_operand_types": {
            "additionalProperties": {
              "items": {
                "$ref": "#/components/schemas/WorkflowConditionRightOperandType"
              },
              "type": "array"
            },
            "description": "For each supported operator, the right_operand type shapes accepted with this left operand. Use this to choose STATIC_VALUE vs OBJECT vs OBJECT_LIST and the right value type before saving edits.",
            "title": "Operator Right Operand Types",
            "type": "object"
          },
          "operators": {
            "description": "Supported operator identifiers for this operand when provided by the workflow configuration.",
            "items": {
              "type": "string"
            },
            "title": "Operators",
            "type": "array"
          },
          "state_type": {
            "default": null,
            "description": "Whether this operand is static or dynamically populated.",
            "nullable": true,
            "title": "State Type",
            "type": "string"
          },
          "value_type": {
            "default": null,
            "description": "Workflow value type, when available.",
            "nullable": true,
            "title": "Value Type",
            "type": "string"
          },
          "variable_name": {
            "description": "Accessor to use as left_operand.variable_name in workflow conditions. For example, Employee uses user_uuid.",
            "title": "Variable Name",
            "type": "string"
          }
        },
        "required": [
          "variable_name"
        ],
        "title": "WorkflowConditionOperand",
        "type": "object"
      },
      "WorkflowConditionRightOperandType": {
        "properties": {
          "child_type": {
            "default": null,
            "nullable": true,
            "title": "Child Type",
            "type": "string"
          },
          "object_list_type": {
            "default": null,
            "nullable": true,
            "title": "Object List Type",
            "type": "string"
          },
          "object_type": {
            "default": null,
            "nullable": true,
            "title": "Object Type",
            "type": "string"
          },
          "type": {
            "default": null,
            "nullable": true,
            "title": "Type",
            "type": "string"
          }
        },
        "title": "WorkflowConditionRightOperandType",
        "type": "object"
      },
      "WorkflowOptionCatalog": {
        "properties": {
          "object_type": {
            "description": "Object catalog key referenced by condition operands or action arguments.",
            "title": "Object Type",
            "type": "string"
          },
          "options": {
            "description": "Every currently selectable option when search_required is false.",
            "items": {
              "$ref": "#/components/schemas/WorkflowCatalogOption"
            },
            "title": "Options",
            "type": "array"
          },
          "search_required": {
            "description": "True when this catalog is business-defined or too large to inline. Options are then empty and values must be resolved by searching the catalog.",
            "title": "Search Required",
            "type": "boolean"
          }
        },
        "required": [
          "object_type",
          "options",
          "search_required"
        ],
        "title": "WorkflowOptionCatalog",
        "type": "object"
      },
      "WorkflowOutline": {
        "properties": {
          "containers": {
            "items": {
              "$ref": "#/components/schemas/WorkflowOutlineContainer"
            },
            "title": "Containers",
            "type": "array"
          }
        },
        "title": "WorkflowOutline",
        "type": "object"
      },
      "WorkflowOutlineContainer": {
        "properties": {
          "branch_index": {
            "default": null,
            "nullable": true,
            "title": "Branch Index",
            "type": "integer"
          },
          "container": {
            "$ref": "#/components/schemas/PolicyWorkflowStepContainer"
          },
          "parent_condition_uuid": {
            "default": null,
            "description": "DAG-local parent condition identifier; may be an opaque string.",
            "nullable": true,
            "title": "Parent Condition Uuid",
            "type": "string"
          },
          "vertices": {
            "items": {
              "$ref": "#/components/schemas/WorkflowOutlineVertex"
            },
            "title": "Vertices",
            "type": "array"
          }
        },
        "required": [
          "container"
        ],
        "title": "WorkflowOutlineContainer",
        "type": "object"
      },
      "WorkflowOutlineVertex": {
        "properties": {
          "action_identifier": {
            "default": null,
            "nullable": true,
            "title": "Action Identifier",
            "type": "string"
          },
          "condition_branch_count": {
            "default": null,
            "nullable": true,
            "title": "Condition Branch Count",
            "type": "integer"
          },
          "has_after": {
            "default": false,
            "title": "Has After",
            "type": "boolean"
          },
          "has_else": {
            "default": false,
            "title": "Has Else",
            "type": "boolean"
          },
          "label": {
            "default": null,
            "nullable": true,
            "title": "Label",
            "type": "string"
          },
          "position": {
            "title": "Position",
            "type": "integer"
          },
          "uuid": {
            "default": null,
            "description": "DAG-local node identifier; may be an opaque string.",
            "nullable": true,
            "title": "Uuid",
            "type": "string"
          },
          "vertex_type": {
            "default": null,
            "nullable": true,
            "title": "Vertex Type",
            "type": "string"
          }
        },
        "required": [
          "position"
        ],
        "title": "WorkflowOutlineVertex",
        "type": "object"
      },
      "WorkflowsDebuggerViewerContext": {
        "properties": {
          "current_local_time": {
            "title": "Current Local Time",
            "type": "string"
          },
          "timezone": {
            "title": "Timezone",
            "type": "string"
          },
          "timezone_is_fallback": {
            "title": "Timezone Is Fallback",
            "type": "boolean"
          },
          "user_uuid": {
            "format": "uuid",
            "title": "User Uuid",
            "type": "string"
          }
        },
        "required": [
          "current_local_time",
          "timezone",
          "timezone_is_fallback",
          "user_uuid"
        ],
        "title": "WorkflowsDebuggerViewerContext",
        "type": "object"
      },
      "X402AcceptedSolanaPaymentRequirementsRequestBody": {
        "additionalProperties": true,
        "properties": {
          "amount": {
            "default": null,
            "nullable": true,
            "pattern": "^\\d+$",
            "title": "Amount",
            "type": "string"
          },
          "asset": {
            "title": "Asset",
            "type": "string"
          },
          "extra": {
            "$ref": "#/components/schemas/X402SvmPaymentRequirementsExtraRequestBody"
          },
          "maxAmountRequired": {
            "default": null,
            "nullable": true,
            "title": "Maxamountrequired",
            "type": "string"
          },
          "maxTimeoutSeconds": {
            "default": 60,
            "title": "Maxtimeoutseconds",
            "type": "integer"
          },
          "network": {
            "title": "Network",
            "type": "string"
          },
          "payTo": {
            "title": "Payto",
            "type": "string"
          },
          "scheme": {
            "enum": [
              "exact"
            ],
            "title": "Scheme",
            "type": "string"
          }
        },
        "required": [
          "asset",
          "extra",
          "network",
          "payTo",
          "scheme"
        ],
        "title": "X402AcceptedSolanaPaymentRequirements",
        "type": "object"
      },
      "X402PaymentSigned": {
        "properties": {
          "payment_header_name": {
            "description": "Attach this header name with payment_header_value when retrying the original request.",
            "title": "Payment Header Name",
            "type": "string"
          },
          "payment_header_value": {
            "description": "Attach this base64 x402 payment payload under payment_header_name and resend the original request.",
            "title": "Payment Header Value",
            "type": "string"
          },
          "signed_transaction": {
            "description": "Base64 partially-signed Solana transaction retained for debugging and advanced use.",
            "title": "Signed Transaction",
            "type": "string"
          },
          "x402_authorization_id": {
            "description": "UUID of the Payments authorization record.",
            "title": "X402 Authorization Id",
            "type": "string"
          }
        },
        "required": [
          "payment_header_name",
          "payment_header_value",
          "signed_transaction",
          "x402_authorization_id"
        ],
        "title": "X402PaymentSigned",
        "type": "object"
      },
      "X402ResourceRequestBody": {
        "additionalProperties": true,
        "properties": {
          "description": {
            "default": null,
            "nullable": true,
            "title": "Description",
            "type": "string"
          },
          "mimeType": {
            "default": null,
            "nullable": true,
            "title": "Mimetype",
            "type": "string"
          },
          "url": {
            "title": "Url",
            "type": "string"
          }
        },
        "required": [
          "url"
        ],
        "title": "X402Resource",
        "type": "object"
      },
      "X402SvmPaymentRequirementsExtraRequestBody": {
        "additionalProperties": true,
        "properties": {
          "feePayer": {
            "default": null,
            "nullable": true,
            "title": "Feepayer",
            "type": "string"
          },
          "memo": {
            "default": null,
            "nullable": true,
            "title": "Memo",
            "type": "string"
          }
        },
        "title": "X402SvmPaymentRequirementsExtra",
        "type": "object"
      },
      "X402WalletReady": {
        "properties": {
          "address": {
            "description": "Solana address of the sign-ready x402 wallet.",
            "title": "Address",
            "type": "string"
          },
          "status": {
            "default": "sign_ready",
            "description": "The wallet is ready to sign x402 payments.",
            "enum": [
              "sign_ready"
            ],
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "address"
        ],
        "title": "X402WalletReady",
        "type": "object"
      }
    },
    "securitySchemes": {
      "oauth2": {
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://api.ramp.com/v1/authorize",
            "scopes": {
              "accounting:read": "Grant read access to accounting",
              "accounting:write": "Grant write access to accounting",
              "agent_account_numbers:read": "Grant read access to agent_account_numbers",
              "agent_wallet_policy:read": "Grant read access to agent_wallet_policy",
              "agent_wallet_policy:write": "Grant write access to agent_wallet_policy",
              "agents:read": "Grant read access to agents",
              "agents:write": "Grant write access to agents",
              "ai_spend:read": "Grant read access to ai_spend",
              "ai_spend:write": "Grant write access to ai_spend",
              "ai_usage:write": "Grant write access to ai_usage",
              "applications:read": "Grant read access to applications",
              "applications:write": "Grant write access to applications",
              "approval_chains:write": "Grant write access to approval_chains",
              "approvals:read": "Grant read access to approvals",
              "approvals:write": "Grant write access to approvals",
              "ask_ramp": "Grant access to ask_ramp",
              "attendee_types:read": "Grant read access to attendee_types",
              "attendee_types:write": "Grant write access to attendee_types",
              "audit_logs:read": "Grant read access to audit_logs",
              "bank_accounts:read": "Grant read access to bank_accounts",
              "bank_accounts:write": "Grant write access to bank_accounts",
              "bank_feeds:read": "Grant read access to bank_feeds",
              "banking_drawdown_requests:write": "Grant write access to banking_drawdown_requests",
              "billing_statements:read": "Grant read access to billing_statements",
              "bills:read": "Grant read access to bills",
              "bills:write": "Grant write access to bills",
              "blank_canvas:write": "Grant write access to blank_canvas",
              "budgets:read": "Grant read access to budgets",
              "business:read": "Grant read access to business",
              "cards:read": "Grant read access to cards",
              "cards:read_agentic": "Grant read_agentic access to cards",
              "cards:read_vault": "Grant read_vault access to cards",
              "cards:write": "Grant write access to cards",
              "cashbacks:read": "Grant read access to cashbacks",
              "cashbacks:write": "Grant write access to cashbacks",
              "comments:write": "Grant write access to comments",
              "custom_forms:read": "Grant read access to custom_forms",
              "custom_records:read": "Grant read access to custom_records",
              "custom_records:write": "Grant write access to custom_records",
              "departments:read": "Grant read access to departments",
              "departments:write": "Grant write access to departments",
              "embedded_cards:write": "Grant write access to embedded_cards",
              "entities:read": "Grant read access to entities",
              "external_attendees:read": "Grant read access to external_attendees",
              "external_attendees:write": "Grant write access to external_attendees",
              "funds:read": "Grant read access to funds",
              "funds:write": "Grant write access to funds",
              "incorporation:read": "Grant read access to incorporation",
              "incorporation:write": "Grant write access to incorporation",
              "item_receipts:read": "Grant read access to item_receipts",
              "item_receipts:write": "Grant write access to item_receipts",
              "itineraries:read": "Grant read access to itineraries",
              "limits:read": "Grant read access to limits",
              "limits:write": "Grant write access to limits",
              "locations:read": "Grant read access to locations",
              "locations:write": "Grant write access to locations",
              "memos:read": "Grant read access to memos",
              "memos:write": "Grant write access to memos",
              "merchants:read": "Grant read access to merchants",
              "offline_access": "Grant access to offline_access",
              "openid": "Grant access to openid",
              "payments:read": "Grant read access to payments",
              "payments:write": "Grant write access to payments",
              "plugins:read": "Grant read access to plugins",
              "plugins:write": "Grant write access to plugins",
              "purchase_orders:read": "Grant read access to purchase_orders",
              "purchase_orders:write": "Grant write access to purchase_orders",
              "receipt_integrations:read": "Grant read access to receipt_integrations",
              "receipt_integrations:write": "Grant write access to receipt_integrations",
              "receipts:read": "Grant read access to receipts",
              "receipts:write": "Grant write access to receipts",
              "reimbursements:read": "Grant read access to reimbursements",
              "reimbursements:write": "Grant write access to reimbursements",
              "repayments:read": "Grant read access to repayments",
              "reporting:read": "Grant read access to reporting",
              "reporting:write": "Grant write access to reporting",
              "router:read": "Grant read access to router",
              "router:write": "Grant write access to router",
              "sourcing:read": "Grant read access to sourcing",
              "sourcing:write": "Grant write access to sourcing",
              "spend_programs:read": "Grant read access to spend_programs",
              "spend_programs:write": "Grant write access to spend_programs",
              "spend_requests:read": "Grant read access to spend_requests",
              "spend_requests:write": "Grant write access to spend_requests",
              "statements:read": "Grant read access to statements",
              "tasks:read": "Grant read access to tasks",
              "transactions:read": "Grant read access to transactions",
              "transactions:write": "Grant write access to transactions",
              "transfers:read": "Grant read access to transfers",
              "treasury:read": "Grant read access to treasury",
              "trips:read": "Grant read access to trips",
              "trips:write": "Grant write access to trips",
              "unified_requests:read": "Grant read access to unified_requests",
              "unified_requests:write": "Grant write access to unified_requests",
              "users:read": "Grant read access to users",
              "users:write": "Grant write access to users",
              "vendors:read": "Grant read access to vendors",
              "vendors:write": "Grant write access to vendors",
              "workflows:read": "Grant read access to workflows",
              "x402:write": "Grant write access to x402",
              "x402_provisioning:write": "Grant write access to x402_provisioning"
            },
            "tokenUrl": "https://api.ramp.com/developer/v1/token"
          },
          "clientCredentials": {
            "scopes": {
              "accounting:read": "Grant read access to accounting",
              "accounting:write": "Grant write access to accounting",
              "agent_account_numbers:read": "Grant read access to agent_account_numbers",
              "agent_wallet_policy:read": "Grant read access to agent_wallet_policy",
              "agent_wallet_policy:write": "Grant write access to agent_wallet_policy",
              "agents:read": "Grant read access to agents",
              "agents:write": "Grant write access to agents",
              "ai_spend:read": "Grant read access to ai_spend",
              "ai_spend:write": "Grant write access to ai_spend",
              "ai_usage:write": "Grant write access to ai_usage",
              "applications:read": "Grant read access to applications",
              "applications:write": "Grant write access to applications",
              "approval_chains:write": "Grant write access to approval_chains",
              "approvals:read": "Grant read access to approvals",
              "approvals:write": "Grant write access to approvals",
              "ask_ramp": "Grant access to ask_ramp",
              "attendee_types:read": "Grant read access to attendee_types",
              "attendee_types:write": "Grant write access to attendee_types",
              "audit_logs:read": "Grant read access to audit_logs",
              "bank_accounts:read": "Grant read access to bank_accounts",
              "bank_accounts:write": "Grant write access to bank_accounts",
              "bank_feeds:read": "Grant read access to bank_feeds",
              "banking_drawdown_requests:write": "Grant write access to banking_drawdown_requests",
              "billing_statements:read": "Grant read access to billing_statements",
              "bills:read": "Grant read access to bills",
              "bills:write": "Grant write access to bills",
              "blank_canvas:write": "Grant write access to blank_canvas",
              "budgets:read": "Grant read access to budgets",
              "business:read": "Grant read access to business",
              "cards:read": "Grant read access to cards",
              "cards:read_agentic": "Grant read_agentic access to cards",
              "cards:read_vault": "Grant read_vault access to cards",
              "cards:write": "Grant write access to cards",
              "cashbacks:read": "Grant read access to cashbacks",
              "cashbacks:write": "Grant write access to cashbacks",
              "comments:write": "Grant write access to comments",
              "custom_forms:read": "Grant read access to custom_forms",
              "custom_records:read": "Grant read access to custom_records",
              "custom_records:write": "Grant write access to custom_records",
              "departments:read": "Grant read access to departments",
              "departments:write": "Grant write access to departments",
              "embedded_cards:write": "Grant write access to embedded_cards",
              "entities:read": "Grant read access to entities",
              "external_attendees:read": "Grant read access to external_attendees",
              "external_attendees:write": "Grant write access to external_attendees",
              "funds:read": "Grant read access to funds",
              "funds:write": "Grant write access to funds",
              "incorporation:read": "Grant read access to incorporation",
              "incorporation:write": "Grant write access to incorporation",
              "item_receipts:read": "Grant read access to item_receipts",
              "item_receipts:write": "Grant write access to item_receipts",
              "itineraries:read": "Grant read access to itineraries",
              "limits:read": "Grant read access to limits",
              "limits:write": "Grant write access to limits",
              "locations:read": "Grant read access to locations",
              "locations:write": "Grant write access to locations",
              "memos:read": "Grant read access to memos",
              "memos:write": "Grant write access to memos",
              "merchants:read": "Grant read access to merchants",
              "offline_access": "Grant access to offline_access",
              "openid": "Grant access to openid",
              "payments:read": "Grant read access to payments",
              "payments:write": "Grant write access to payments",
              "plugins:read": "Grant read access to plugins",
              "plugins:write": "Grant write access to plugins",
              "purchase_orders:read": "Grant read access to purchase_orders",
              "purchase_orders:write": "Grant write access to purchase_orders",
              "receipt_integrations:read": "Grant read access to receipt_integrations",
              "receipt_integrations:write": "Grant write access to receipt_integrations",
              "receipts:read": "Grant read access to receipts",
              "receipts:write": "Grant write access to receipts",
              "reimbursements:read": "Grant read access to reimbursements",
              "reimbursements:write": "Grant write access to reimbursements",
              "repayments:read": "Grant read access to repayments",
              "reporting:read": "Grant read access to reporting",
              "reporting:write": "Grant write access to reporting",
              "router:read": "Grant read access to router",
              "router:write": "Grant write access to router",
              "sourcing:read": "Grant read access to sourcing",
              "sourcing:write": "Grant write access to sourcing",
              "spend_programs:read": "Grant read access to spend_programs",
              "spend_programs:write": "Grant write access to spend_programs",
              "spend_requests:read": "Grant read access to spend_requests",
              "spend_requests:write": "Grant write access to spend_requests",
              "statements:read": "Grant read access to statements",
              "tasks:read": "Grant read access to tasks",
              "transactions:read": "Grant read access to transactions",
              "transactions:write": "Grant write access to transactions",
              "transfers:read": "Grant read access to transfers",
              "treasury:read": "Grant read access to treasury",
              "trips:read": "Grant read access to trips",
              "trips:write": "Grant write access to trips",
              "unified_requests:read": "Grant read access to unified_requests",
              "unified_requests:write": "Grant write access to unified_requests",
              "users:read": "Grant read access to users",
              "users:write": "Grant write access to users",
              "vendors:read": "Grant read access to vendors",
              "vendors:write": "Grant write access to vendors",
              "workflows:read": "Grant read access to workflows",
              "x402:write": "Grant write access to x402",
              "x402_provisioning:write": "Grant write access to x402_provisioning"
            },
            "tokenUrl": "https://api.ramp.com/developer/v1/token"
          }
        },
        "type": "oauth2"
      }
    }
  },
  "info": {
    "title": "Ramp Developer API",
    "version": "v1"
  },
  "openapi": "3.0.2",
  "paths": {
    "/developer/v1/accounting/ready-to-sync": {
      "post": {
        "description": "Marking an object (for example a transaction) as ready to sync flags it\nas reviewed and complete, so it will be included in the next accounting\nsync that exports data from Ramp to your connected accounting provider\n(ERP), such as NetSuite, QuickBooks, Xero, or Sage Intacct.",
        "operationId": "post_ready_to_sync_resource",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiAccountingReadyToSyncParamsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "Objects marked ready to sync"
          }
        },
        "security": [
          {
            "oauth2": [
              "accounting:write"
            ]
          }
        ],
        "summary": "Mark objects as ready to sync to your accounting provider",
        "tags": [
          "Accounting",
          "accounting"
        ],
        "x-alias": "mark-ready-to-sync",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/accounting/syncs": {
      "post": {
        "description": "This endpoint allows customers to notify Ramp of a list of sync results.\nAn idempotency key is required to ensure that subsequent requests are properly handled.",
        "operationId": "post_sync_list_resource",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiAccountingSyncCreateRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiAccountingSyncResource"
                }
              }
            },
            "description": "Object synced"
          },
          "400": {
            "description": "raises InvalidInput"
          }
        },
        "security": [
          {
            "oauth2": [
              "accounting:write"
            ]
          }
        ],
        "summary": "Post sync status",
        "tags": [
          "Accounting",
          "accounting"
        ],
        "x-alias": "mark-synced",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/activate-card": {
      "post": {
        "description": "Call this tool only when the user explicitly asks to activate a card. Only\nthe cardholder can activate a card. Do not call this tool for another\nperson's card (for example, an admin or manager asking to activate an\nemployee's card, or a card listed with ListCards cardholder_user_uuid or\ncan_activate=false); instead, tell the user the cardholder must activate it\nfrom their own Ramp account or the Ramp mobile app.\n\nWhen a card's last_four is withheld (null on SMS) and the user has not\nprovided the 4 digits, or whenever the 4 digits are unknown, ask the user\nfor the last four digits printed on the physical card before calling this\ntool. Never pass placeholders (such as \"0000\", \"\", card UUIDs, or short\ncodes).\n\nIf the card is a physical card awaiting delivery confirmation, call this tool\nfirst without confirm_delivery to detect the state, then call again with\nconfirm_delivery=True after the user confirms the physical card has arrived.",
        "operationId": "post_agent_tool_api___activate_card",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ActivateCardRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CardActivationResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "cards:write"
            ]
          }
        ],
        "summary": "Activate the acting user's own card by its last four digits",
        "tags": [
          "Agent Tool",
          "cards"
        ],
        "x-alias": "activate",
        "x-capabilities": [
          "card_management",
          "cards_and_funds"
        ],
        "x-moves-money": true,
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/add-procurement-request-field-file": {
      "post": {
        "description": "Appends the file to the field's existing files; existing files and other answers\nare kept. Only works while the request is submitted and pending approval.\nApproved requests need a change order instead. The acting user must be able to\nedit the request, for example its owner or an approver on its approval chain.\nThe edit is handled like a manual request edit in Ramp, including approval\nreconciliation and contract review updates.",
        "operationId": "post_agent_tool_api___add_procurement_request_field_file",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddProcurementRequestFieldFileRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AddProcurementRequestFieldFileResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "spend_requests:write"
            ]
          }
        ],
        "summary": "Upload a file to a file-upload field on a procurement request's intake form",
        "tags": [
          "Agent Tool",
          "procurement_requests"
        ],
        "x-alias": "add-field-file",
        "x-gated-by": "developer_api_procurement_add_field_file_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/add-user-to-shared-fund": {
      "post": {
        "description": "Provide user_email for a human or agent_id for a standalone agent; role defaults to MEMBER. Human users must finish joining Ramp before they can be added. Fund co-owners can add members, but cannot grant co-owner roles through co-owner access alone. Managers relying on management authority may only add users within their permitted scope. Enabling sharing is rejected without changes when approval is required.",
        "operationId": "post_agent_tool_api___add_user_to_shared_fund",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddUserToSharedFundPublicRequestRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AddUserToSharedFundPublicResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "funds:write"
            ]
          }
        ],
        "summary": "Add a human user or standalone agent to a shared fund as a member or co-owner",
        "tags": [
          "Agent Tool",
          "funds"
        ],
        "x-alias": "add-user",
        "x-capabilities": [
          "spend_agent"
        ],
        "x-moves-money": true,
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/answer-policy-question": {
      "post": {
        "description": "Use this tool when the user asks about expense policy rules, spending limits,\nfund restrictions, or whether certain purchases are allowed under company policy.",
        "operationId": "post_agent_tool_api___answer_policy_question",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AnswerPolicyQuestionRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyAnswer"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "transactions:read"
            ]
          }
        ],
        "summary": "Get an answer to a question about the expense policy or funds (amount, restrictions, etc)",
        "tags": [
          "Agent Tool",
          "policy"
        ],
        "x-alias": "policy",
        "x-capabilities": [
          "policy_and_accounting_status",
          "expense_policy_help",
          "wbx_spend_request_intake"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/approve-or-reject-bill": {
      "post": {
        "description": "The authenticated user must be the next required approver on the bill's approval chain. Rejection is additionally allowed for bill-pay admins as an override, even when they are not the next approver. Find bills awaiting the authenticated user's approval with get-bills-for-approval. Some bills require step-up verification that agents cannot complete; in that case the error includes a redirect_url that the human user must open in a browser to finish the action there. Approving advances the bill's approval chain, exactly as approving in the Ramp web app does: depending on the business's payment-release settings, a bill that becomes fully approved with payment details and a payment date already set may proceed to payment automatically. After an approval, the response reports the bill's resulting payment state: whether any of its payments has been initiated (payment_initiated \u2014 this includes earlier partial payments; a chain-completing approval may have just added one) and the earliest such payment date (payment_date) \u2014 so you can inform the user. This tool never schedules payments or edits payment details; payment scheduling and release are managed in the Ramp web app \u2014 hand the user the bill_url returned on success.",
        "operationId": "post_agent_tool_api___approve_or_reject_bill",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApproveOrRejectBillRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillActionResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "bills:write"
            ]
          }
        ],
        "summary": "Approve or reject a submitted bill that is pending approval",
        "tags": [
          "Agent Tool",
          "bills"
        ],
        "x-alias": "approve",
        "x-capabilities": [
          "bill_pay_v1_core"
        ],
        "x-moves-money": true,
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/approve-or-reject-reimbursement": {
      "post": {
        "description": "Use this tool when the user wants to approve or reject a reimbursement.\nReimbursements are employee-submitted requests for reimbursement of out-of-pocket expenses.\nCommon usage patterns: \"approve this reimbursement\", \"reject the expense\", \"yes, reimburse them\", \"no, don't reimburse this\".\nThis tool is specifically for employee reimbursements and is NOT for approving/rejecting card transactions\nor unified requests (spend allocations, purchase orders).",
        "operationId": "post_agent_tool_api___approve_or_reject_reimbursement",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApproveOrRejectReimbursementRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReimbursementActionResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "reimbursements:write"
            ]
          }
        ],
        "summary": "Approve or reject an employee reimbursement request for an out-of-pocket expense",
        "tags": [
          "Agent Tool",
          "reimbursements"
        ],
        "x-alias": "approve",
        "x-capabilities": [
          "reimbursement_approvals",
          "cross_product_approvals"
        ],
        "x-moves-money": true,
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/approve-or-reject-request": {
      "post": {
        "description": "Use this tool when a user wants to approve or reject a specific request they have identified or referenced.\nCommon usage patterns: \"approve this request\", \"reject this request\", \"accept the request\", \"deny this\",\n\"authorize this\", \"yes approve it\", \"decline this request\".\nThis tool is specifically for unified requests (spend allocations, purchase orders, procurement approvals)\nand is NOT for approving expenses like corporate card transactions or reimbursements.\nThe user must have proper approval authority for the request.\nAdmin approval overrides are not available through this tool; use the app instead.",
        "operationId": "post_agent_tool_api___approve_or_reject_request",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApproveOrRejectRequestRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnifiedRequestActionResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "approvals:write"
            ]
          }
        ],
        "summary": "Approve or reject a pending unified request for spend allocation (fund), purchase order, or procurement approval",
        "tags": [
          "Agent Tool",
          "requests"
        ],
        "x-alias": "approve",
        "x-capabilities": [
          "cross_product_approvals"
        ],
        "x-moves-money": true,
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/approve-or-reject-transaction": {
      "post": {
        "description": "Use this tool when the user wants to approve a transaction, send it back for\nrevisions, or require the cardholder to repay the full amount. The acting user\nmust be an assigned approver on the current approval step to approve a pending\nchain. Admin overrides are manual-only on the transaction page, even when the\nUI shows an enabled Approve action; a reason does not make them agent-executable.\nFull repayment is always the full amount; the cardholder chooses how to repay.\n\nRejecting always needs a `user_reason`. Approving also needs one when the\ntransaction is flagged for a policy violation, is missing a receipt, memo, or\nother items, was sent back to the cardholder, was marked accidental, or has a\nrequested or failed repayment. The reason must be the user's own words, passed\nverbatim: ask the user for it (once for a whole batch) and never write one yourself.\nApproving an already approved transaction succeeds with `already_applied` set.",
        "operationId": "post_agent_tool_api___approve_or_reject_transaction",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApproveOrRejectTransactionRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TransactionActionResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "transactions:write"
            ]
          }
        ],
        "summary": "Approve or reject a transaction awaiting your review",
        "tags": [
          "Agent Tool",
          "transactions"
        ],
        "x-alias": "approve",
        "x-capabilities": [
          "transaction_approvals",
          "cross_product_approvals"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/archive-spend-allocation": {
      "post": {
        "description": "Use when an admin asks to\nterminate, cancel, deactivate, shut off, close, delete, or remove funds or their\nvendor/virtual cards. Locks the fund's cards and stops spend; reversible.",
        "operationId": "post_agent_tool_api___archive_spend_allocation_tool",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ArchiveSpendAllocationToolRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArchiveSpendAllocationOutput"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "funds:write"
            ]
          }
        ],
        "summary": "Archive a fund to prevent spend and hide it from users",
        "tags": [
          "Agent Tool",
          "funds"
        ],
        "x-alias": "archive",
        "x-capabilities": [
          "spend_controls_orchestrator"
        ],
        "x-destructive": true,
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/attach-receipt-to-reimbursement": {
      "post": {
        "description": "The draft must not already have a receipt, and the receipt must not be attached to a transaction or another reimbursement. Returns the receipt and reimbursement UUIDs.",
        "operationId": "post_agent_tool_api___attach_receipt_to_reimbursement",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AttachReceiptToReimbursementRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AttachReceiptToReimbursementSuccess"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "reimbursements:write"
            ]
          }
        ],
        "summary": "Attach an existing receipt to one of the user's draft reimbursements, instead of creating a new reimbursement",
        "tags": [
          "Agent Tool",
          "reimbursements"
        ],
        "x-alias": "attach",
        "x-capabilities": [
          "receipt_intake"
        ],
        "x-gated-by": "developer_api_attach_receipt_to_reimbursement_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false,
        "x-unavailable-instructions": "Attaching a receipt to a draft reimbursement is not available here. Ask the user to attach the receipt to the draft reimbursement in the Ramp web or mobile app."
      }
    },
    "/developer/v1/agent-tools/attach-receipt-to-transaction": {
      "post": {
        "description": "Use it for receipts automatic matching left unmatched, or when the user wants a receipt on a specific charge, including moving it off the wrong one. Not a routine step after uploading a new receipt. Confirm the pairing with the user first; if the receipt is on another card transaction, say it will be moved. Fails if the receipt is on a reimbursement or the transaction is declined. Safe to retry.",
        "operationId": "post_agent_tool_api___attach_receipt_to_transaction",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AttachReceiptToTransactionRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AttachReceiptSuccess"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "receipts:write"
            ]
          }
        ],
        "summary": "Attach an existing receipt (by receipt_uuid) to a card transaction",
        "tags": [
          "Agent Tool",
          "receipts"
        ],
        "x-alias": "attach",
        "x-capabilities": [
          "receipt_intake"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false,
        "x-unavailable-instructions": "Have the user attach the receipt to the transaction in the Ramp web or mobile app instead."
      }
    },
    "/developer/v1/agent-tools/attach-vendor-document": {
      "post": {
        "description": "Use this for external callers such as CLI or MCP that have raw file content\nand want to attach a document directly to a vendor profile using Ramp's\nexisting vendor document upload flow.",
        "operationId": "post_agent_tool_api___attach_vendor_document",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AttachVendorDocumentRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AttachVendorDocumentResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "vendors:write"
            ]
          }
        ],
        "summary": "Attach a vendor document from base64-encoded file content",
        "tags": [
          "Agent Tool",
          "vendors"
        ],
        "x-alias": "attach-document",
        "x-capabilities": [
          "vendor_document_uploads"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/award-sourcing-event": {
      "post": {
        "description": "closing its current RFX.\n\nPrerequisites: grading must be complete on the current RFX, the event must\nnot already be awarded or pending award approval, and the payee must be an\nactive invited vendor on the RFX. When the business configures an award\napproval policy, the award routes through that approval workflow instead\nof awarding immediately (``submitted_for_approval`` is True and nothing is\ndecided yet). After a direct award, use\nCreateDraftSpendRequestFromSourcingEvent to hand off into procurement.",
        "operationId": "post_agent_tool_api___award_sourcing_event",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AwardSourcingEventRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AwardSourcingEventOutput"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "sourcing:write"
            ]
          }
        ],
        "summary": "Award the winning vendor for a sourcing event, deciding the event and",
        "tags": [
          "Agent Tool",
          "sourcing"
        ],
        "x-alias": "award",
        "x-gated-by": "developer_api_sourcing_agent_tools_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/booking-cancellation-details": {
      "post": {
        "description": "Returns a qualitative cancellation message, an available self-service link,\nand booking-specific support routing. ``requires_quote_reconfirmation`` marks\na flight cancellation whose changed quote needs fresh in-chat review and\nconfirmation, even though web cancellation is unavailable. It does not return\nrefund, credit, or fee amounts, cancel a reservation, withdraw a request, or\ncontact support.\nRequires a reservation visible to the acting user; an unfulfilled booking\nrequest returns a failed-precondition error. For a flight booking whose\nflights are ticketed separately, it lists the legs that can be cancelled on\ntheir own, and ``flight_leg_index`` checks cancelling just one of them.",
        "operationId": "post_agent_tool_api___booking_cancellation_details",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BookingCancellationDetailsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingCancellationDetailsForAgent"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "trips:read"
            ]
          }
        ],
        "summary": "Check cancellation options for an existing flight, hotel, or car reservation",
        "tags": [
          "Agent Tool",
          "travel"
        ],
        "x-alias": "booking-cancellation-details",
        "x-capabilities": [
          "travel_booking_support"
        ],
        "x-gated-by": "travel_agent_v1",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/booking-modification-details": {
      "post": {
        "description": "Supply exactly one booking identifier; omit or leave the others null.\nReturns current modifiability, an available self-service action, a rendered\nexplanation, and booking-specific support routing. Echoes the supplied\nidentifier to match results to bookings. Requires a reservation visible to\nthe acting user. It does not modify, cancel, rebook, or contact support.",
        "operationId": "post_agent_tool_api___booking_modification_details",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BookingModificationDetailsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingModificationDetailsForAgent"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "trips:read"
            ]
          }
        ],
        "summary": "Check change options for an existing flight, hotel, or car reservation",
        "tags": [
          "Agent Tool",
          "travel"
        ],
        "x-alias": "booking-modification-details",
        "x-capabilities": [
          "travel_car_rebooking",
          "travel_booking_support",
          "travel_flight_modification",
          "travel_flight_rebooking",
          "travel_hotel_rebooking"
        ],
        "x-gated-by": "travel_agent_post_booking_flows",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/bulk-upload-vendor-documents": {
      "post": {
        "description": "Use this for external callers such as CLI or MCP that want to upload\nmultiple vendor documents in one request while reusing Ramp's existing bulk\nvendor document upload flow.",
        "operationId": "post_agent_tool_api___bulk_upload_vendor_documents",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkUploadVendorDocumentsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkUploadVendorDocumentsResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "vendors:write"
            ]
          }
        ],
        "summary": "Bulk upload vendor documents from base64-encoded file content",
        "tags": [
          "Agent Tool",
          "vendors"
        ],
        "x-alias": "bulk-upload",
        "x-capabilities": [
          "vendor_document_uploads"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/cancel-reimbursement-payment": {
      "post": {
        "description": "Does not delete the expense or establish recovery of settled funds. Payment\ncancellation/reversal may still be processing after the request succeeds.\nOn an uncertain result, reconcile payment and claim state before retrying.",
        "operationId": "post_agent_tool_api___cancel_reimbursement_payment",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CancelReimbursementPaymentRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CancelReimbursementPaymentSuccess"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "reimbursements:write"
            ]
          }
        ],
        "summary": "Request cancellation of an eligible reimbursement payment and reject the claim",
        "tags": [
          "Agent Tool",
          "reimbursements"
        ],
        "x-alias": "cancel",
        "x-moves-money": true,
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/change-vendor-ownership": {
      "post": {
        "description": "owners. Requires an active, editable vendor; a new owner must be an active,\nnon-guest user in the business. The only owner cannot be removed.\nCall only after an explicit yes to the exact plain-text confirmation, without\nbuttons or suggested replies; a yes with another request is not confirmation.\n\nReturns recorded and proposed owners: applied, pending approval with approvers,\nor already applied (no write). Matching pending changes do not restart approval.\nConflicting pending edits must be approved, rejected, or cancelled in Ramp first.",
        "operationId": "post_agent_tool_api___change_vendor_ownership",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChangeVendorOwnershipRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChangeVendorOwnershipResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "vendors:write"
            ]
          }
        ],
        "summary": "Add a co-owner, replace one vendor owner, or remove one, preserving all other",
        "tags": [
          "Agent Tool",
          "vendors"
        ],
        "x-alias": "change-owners",
        "x-capabilities": [
          "vendor_owner_write"
        ],
        "x-gated-by": "vendor_management_agentic_vendor_crm",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/close-sourcing-event": {
      "post": {
        "description": "Closing cascades to every non-terminal child RFX: each is transitioned to\nCLOSED, which blocks further vendor submissions and grading and voids any\noutstanding e-sign envelopes. Closed events are hidden from default list\nviews and become read-only. Use AwardSourcingEvent instead when a winning\nvendor should be selected.",
        "operationId": "post_agent_tool_api___close_sourcing_event",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CloseSourcingEventRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CloseSourcingEventOutput"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "sourcing:write"
            ]
          }
        ],
        "summary": "Close (archive) a sourcing event without awarding a vendor",
        "tags": [
          "Agent Tool",
          "sourcing"
        ],
        "x-alias": "close-event",
        "x-destructive": true,
        "x-gated-by": "developer_api_sourcing_agent_tools_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/complete-transaction-revision": {
      "post": {
        "description": "Use this after the cardholder has addressed the requested changes and explicitly\nasks to mark the transaction revision complete. The completion refreshes the\ncorresponding task and starts Task Platform's sanction-lifting workflow.",
        "operationId": "post_agent_tool_api___complete_transaction_revision",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompleteTransactionRevisionRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompleteTransactionRevisionResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "transactions:write"
            ]
          }
        ],
        "summary": "Complete a revision-requested transaction as its cardholder",
        "tags": [
          "Agent Tool",
          "transactions"
        ],
        "x-alias": "complete-revision",
        "x-capabilities": [
          "transaction_completion"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/create-blanket-purchase-order-release": {
      "post": {
        "description": "The release PO is a new purchase order with its own PO number. It copies the\nblanket PO's vendor, entity, currency, line prices, and coding, and is submitted\nto the program's release PO approval workflow. It is returned as SUBMITTED, not\napproved, because approval runs in the background. Each quantity must fit what\nits line has left, and the release total must fit what the blanket PO has\navailable. Release POs still awaiting approval don't count against what's\nleft yet; approval checks the limits again. Retrying the same call returns\nthe same release PO instead of creating another.",
        "operationId": "post_agent_tool_api___create_blanket_purchase_order_release",
        "parameters": [
          {
            "description": "Unique idempotency key generated by the client. Must be a non-empty string of at most 255 characters.",
            "in": "header",
            "name": "X-Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateBlanketPurchaseOrderReleaseRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateBlanketPurchaseOrderReleaseResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "purchase_orders:write"
            ]
          }
        ],
        "summary": "Create a release PO against an approved blanket PO by drawing quantities from its lines",
        "tags": [
          "Agent Tool",
          "purchase_orders"
        ],
        "x-alias": "create-release",
        "x-capabilities": [
          "blanket_purchase_order_release"
        ],
        "x-gated-by": "procurement_blanket_purchase_orders",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/create-client-financing-application": {
      "post": {
        "description": "Use this when an accounting firm wants to sign up a new client for Ramp. The firm is\nassigned to the new client business as Owner plus the requested roles, so the returned\nclient business UUID can be used to act on that business when your firm has client data\naccess through Ramp MCP. The client is not\ncontacted and nothing is submitted: the application stays in preparation by the firm\nuntil the client is invited to review it.\n\nBefore creating anything, the firm's existing clients are checked for a closely matching\nname; on a match, no client is created and the existing client's UUID is returned.\nRepeating a successful call therefore reports the client it created rather than\ncreating another one.",
        "operationId": "post_agent_tool_api___create_client_financing_application",
        "parameters": [
          {
            "description": "Unique idempotency key generated by the client. Must be a non-empty string of at most 255 characters.",
            "in": "header",
            "name": "X-Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateClientFinancingApplicationRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientFinancingApplicationCreated"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "applications:write"
            ]
          }
        ],
        "summary": "Create a new client business and a Ramp financing application that your accounting firm prepares on the client's behalf (an assisted application)",
        "tags": [
          "Agent Tool",
          "advisor_console"
        ],
        "x-alias": "create",
        "x-capabilities": [
          "financing_applications"
        ],
        "x-exclude-from-client-delegation": true,
        "x-gated-by": "advisor_console_mcp_assisted_fa",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/create-department": {
      "post": {
        "description": "Department names are unique within the business (case-insensitive). If a\ndepartment with the requested name already exists, it is returned instead\nof creating a duplicate.",
        "operationId": "post_agent_tool_api___create_department",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDepartmentRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateDepartmentOutput"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "departments:write"
            ]
          }
        ],
        "summary": "Create a new department in the company",
        "tags": [
          "Agent Tool",
          "business"
        ],
        "x-alias": "create",
        "x-capabilities": [
          "onboarding_setup"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/create-draft-bill": {
      "post": {
        "description": "Hidden manually created pending vendors are not eligible. Returns the draft UUID, initial version, and Ramp URL. This does not start approval, schedule, release, or initiate payment. Omitted fields remain empty, so the new draft may not yet be ready for submission.",
        "operationId": "post_agent_tool_api___create_draft_bill",
        "parameters": [
          {
            "description": "Unique idempotency key generated by the client. Must be a non-empty string of at most 255 characters.",
            "in": "header",
            "name": "X-Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDraftBillRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateDraftBillResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "bills:write"
            ]
          }
        ],
        "summary": "Create an unsubmitted draft bill for an existing vendor that is visible to the caller and eligible for bill creation",
        "tags": [
          "Agent Tool",
          "bills"
        ],
        "x-alias": "create",
        "x-capabilities": [
          "bill_pay_draft_authoring"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/create-draft-spend-request-from-sourcing-event": {
      "post": {
        "description": "spend request pre-filled with the winning vendor's context.\n\nThe draft is prefilled from the sourcing conversation, event details, and\n(when ``rfx_id`` is passed) the awarded vendor's RFX responses. The user\nreviews and submits the draft in procurement. ``payee_uuid`` defaults to\nthe awarded vendor and ``spend_intent_uuid`` defaults to the backend's\nrecommended spend program when omitted. This call runs LLM extraction and\ncan take a while.",
        "operationId": "post_agent_tool_api___create_draft_spend_request_from_sourcing_event",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDraftSpendRequestFromSourcingEventRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateDraftSpendRequestFromSourcingEventOutput"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "sourcing:write"
            ]
          }
        ],
        "summary": "Hand off an awarded sourcing event into procurement intake by drafting a",
        "tags": [
          "Agent Tool",
          "sourcing"
        ],
        "x-alias": "draft-spend-request",
        "x-gated-by": "developer_api_sourcing_agent_tools_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/create-mileage-reimbursement": {
      "post": {
        "description": "The company calculates the amount and currency for the trip date; no rate or amount\noverride is accepted. Requires enabled mileage, cleared OFAC checks and company permission\nto request reimbursements. Saves a draft only, never submits.\nSupply user-confirmed distance and start/end addresses; this does not map routes or\ntrack GPS. Not for estimates, per diem, or out-of-pocket purchases.\nReturns the saved claim, remaining requirements, validation errors, and a review link.\nA retry of the same logical call returns the same draft without changing it.",
        "operationId": "post_agent_tool_api___create_mileage_reimbursement",
        "parameters": [
          {
            "description": "Unique idempotency key generated by the client. Must be a non-empty string of at most 255 characters.",
            "in": "header",
            "name": "X-Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateMileageReimbursementRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MileageReimbursementCreationSuccess"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "reimbursements:write"
            ]
          }
        ],
        "summary": "Create the acting employee's mileage reimbursement draft from actual business-driving distance",
        "tags": [
          "Agent Tool",
          "reimbursements"
        ],
        "x-alias": "create-mileage",
        "x-capabilities": [
          "mileage_reimbursement_creation"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/create-payee": {
      "post": {
        "description": "US vendors also require a state abbreviation. Returns the vendor, bill-pay vendor, and contact UUIDs. Configured vendor approval policies apply, so creation does not guarantee approval. Explicit draft creation is not supported. Vendors matching an existing name or DBA are rejected, including pending creations and drafts visible to the vendor duplicate check.",
        "operationId": "post_agent_tool_api___create_payee",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePayeeRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatePayeeResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "vendors:write"
            ]
          }
        ],
        "summary": "Create a vendor with a contact email and country supplied by the user",
        "tags": [
          "Agent Tool",
          "vendors"
        ],
        "x-alias": "create",
        "x-capabilities": [
          "vendor_tools"
        ],
        "x-gated-by": "developer_api_create_payee_agent_tool_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/create-reimbursement-from-receipt": {
      "post": {
        "description": "Pass amount/currency_code/transaction_date/merchant to skip OCR.",
        "operationId": "post_agent_tool_api___create_reimbursement_from_receipt",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateReimbursementFromReceiptRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReimbursementCreationSuccess"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "reimbursements:write"
            ]
          }
        ],
        "summary": "Create a draft reimbursement from a receipt UUID",
        "tags": [
          "Agent Tool",
          "reimbursements"
        ],
        "x-alias": "create",
        "x-capabilities": [
          "reimbursement_completion"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/create-rfx": {
      "post": {
        "description": "event in the same call.\n\nNothing is sent to vendors until the RFX is published. Use GetRFXDetail to\nreview the created questionnaire and InviteVendorsToRFX to add vendors\nbefore publishing.",
        "operationId": "post_agent_tool_api___create_rfx",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateRFXRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateRFXOutput"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "sourcing:write"
            ]
          }
        ],
        "summary": "Create a DRAFT RFX questionnaire, optionally creating its parent sourcing",
        "tags": [
          "Agent Tool",
          "sourcing"
        ],
        "x-alias": "create",
        "x-gated-by": "developer_api_sourcing_agent_tools_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/create-trip": {
      "post": {
        "description": "Creates a trip when the user asks for one, not as a prerequisite for booking travel.\nA trip is a Ramp record that groups travel spend; it books nothing. When the user\nwants a ride, flight or hotel booked, or it is unclear whether they want a booking\nor a trip record, ask which they mean before creating a trip, without saying whether\na booking is possible.\nReturns the trip UUID and dates.\n\nRequires both start and end dates. Overlaps of less than 48 hours are allowed.\nOverlaps of 48 hours or more with existing trips or pending travel requests fail\nwith the conflicting trip or request identified.",
        "operationId": "post_agent_tool_api___create_trip",
        "parameters": [
          {
            "description": "Unique idempotency key generated by the client. Must be a non-empty string of at most 255 characters.",
            "in": "header",
            "name": "X-Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateTripRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TripCreationResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "trips:write"
            ]
          }
        ],
        "summary": "Create a new trip for the acting user",
        "tags": [
          "Agent Tool",
          "travel"
        ],
        "x-alias": "trip-create",
        "x-capabilities": [
          "trip_management"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/delete-comment": {
      "post": {
        "description": "Only the comment's author can delete it. The comment is removed from the thread for everyone and cannot be restored.",
        "operationId": "post_agent_tool_api___delete_comment",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteCommentRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommentDeleted"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "comments:write"
            ]
          }
        ],
        "summary": "Delete a comment you wrote on a Ramp object (transaction, bill, request, etc)",
        "tags": [
          "Agent Tool",
          "communication"
        ],
        "x-alias": "delete-comment",
        "x-capabilities": [
          "post_comment"
        ],
        "x-destructive": true,
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/delete-procurement-draft": {
      "post": {
        "operationId": "post_agent_tool_api___delete_procurement_draft",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteProcurementDraftRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeletedProcurementDraft"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "spend_requests:write"
            ]
          }
        ],
        "summary": "Delete an abandoned procurement draft owned by the acting user",
        "tags": [
          "Agent Tool",
          "procurement_requests"
        ],
        "x-alias": "delete",
        "x-destructive": true,
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/delete-reimbursement": {
      "post": {
        "description": "Deletion is permanent and only allowed for reimbursements the acting user is\npermitted to delete (their own drafts, or others' if they have write access).\nOnly draft, pending or rejected claims without initiated or queued payments\ncan be deleted here. Payment-linked claims must be reviewed in the app;\nthis action cannot cancel, reverse or rebatch a payment.",
        "operationId": "post_agent_tool_api___delete_reimbursement",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteReimbursementRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeleteReimbursementSuccess"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "reimbursements:write"
            ]
          }
        ],
        "summary": "Delete a reimbursement by UUID",
        "tags": [
          "Agent Tool",
          "reimbursements"
        ],
        "x-alias": "delete",
        "x-destructive": true,
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/delete-spend-program": {
      "post": {
        "description": "Use this tool when an admin wants to permanently delete a spend program.\nIf the program has linked funds (spend allocations), the caller must specify\nwhat to do with them via spend_intent_delete_action:\n\n- \"terminate\": Close all linked funds.\n- \"transfer\": Move funds to another spend program (requires transfer_to_spend_intent_uuid).\n- \"detach\": Unlink funds from the program but keep them active.\n- \"bulk_lock\": Lock all cards associated with linked funds (admin only).\n\nIf the program has no linked funds, spend_intent_delete_action can be omitted.",
        "operationId": "post_agent_tool_api___delete_spend_program",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteSpendProgramRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeleteSpendProgramResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "funds:write"
            ]
          }
        ],
        "summary": "Delete (terminate) a spend program",
        "tags": [
          "Agent Tool",
          "funds"
        ],
        "x-alias": "delete",
        "x-capabilities": [
          "delete_spend_program"
        ],
        "x-destructive": true,
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/departments": {
      "post": {
        "description": "Returns the departments available in the user's business, which can be\nused as inputs to workflows that require department references. Each\ndepartment includes organizational metadata: its owners (managers),\nactive member count, and managing external firm, if any.",
        "operationId": "post_agent_tool_api___list_departments",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ListDepartmentsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListDepartmentsOutput"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "departments:read"
            ]
          }
        ],
        "summary": "List all departments in the company",
        "tags": [
          "Agent Tool",
          "business"
        ],
        "x-alias": "departments",
        "x-capabilities": [
          "accounting_mapping_rules",
          "spend_controls_orchestrator",
          "spend_agent",
          "spend_program_lookups",
          "matrix_configuration",
          "people_directory",
          "wbx_spend_request_intake"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/duplicate-reimbursement": {
      "post": {
        "description": "Each call can create another draft. If the outcome is unknown or the new UUID\nis missing, do not repeat the request: reconcile the existing drafts first.",
        "operationId": "post_agent_tool_api___duplicate_reimbursement",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DuplicateReimbursementRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DuplicateReimbursementSuccess"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "reimbursements:write"
            ]
          }
        ],
        "summary": "Copy an existing reimbursement into a distinct new draft; never submits it",
        "tags": [
          "Agent Tool",
          "reimbursements"
        ],
        "x-alias": "duplicate",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/edit-comment": {
      "post": {
        "description": "Only the comment's author can edit it. The comment is marked as edited, and only newly mentioned users are notified.",
        "operationId": "post_agent_tool_api___edit_comment",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EditCommentRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommentEdited"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "comments:write"
            ]
          }
        ],
        "summary": "Replace the text of a comment you wrote on a Ramp object (transaction, bill, request, etc)",
        "tags": [
          "Agent Tool",
          "communication"
        ],
        "x-alias": "edit-comment",
        "x-capabilities": [
          "post_comment"
        ],
        "x-destructive": true,
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/edit-reimbursement": {
      "post": {
        "description": "Non-empty attendee inputs replace the full attendee list; include every attendee to keep. Send only fields being changed, not existing values or a full-state copy. For a memo-only edit, send only reimbursement_uuid and memo. Merchant and attendees are draft-only; accounting categories cannot be sent after sync, even if unchanged. Omitted fields stay unchanged; null and empty-list fields are ignored. This tool cannot clear existing values. Mileage drafts containing tolls require editing in Ramp; this tool leaves them unchanged.",
        "operationId": "post_agent_tool_api___edit_reimbursement",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EditReimbursementRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EditReimbursementSuccess"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "reimbursements:write"
            ]
          }
        ],
        "summary": "Edit reimbursement fields (amount, currency, date, merchant, memo, funds, accounting categories, split line items, custom records, trip, attendees including non-Ramp guests)",
        "tags": [
          "Agent Tool",
          "reimbursements"
        ],
        "x-alias": "edit",
        "x-capabilities": [
          "reimbursement_completion"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/edit-transaction": {
      "post": {
        "deprecated": true,
        "description": "Returns the updated transaction, remaining missing items, and a transaction_link for fields the API cannot edit.",
        "operationId": "post_agent_tool_api___edit_transaction_deprecated",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EditTransactionRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EditTransactionSuccess"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "transactions:write"
            ]
          }
        ],
        "summary": "Edit a transaction field (memo, funds, accounting categories, trip, attendees)",
        "tags": [
          "Agent Tool",
          "transactions"
        ],
        "x-alias": "edit",
        "x-capabilities": [
          "transaction_editing",
          "fund_reassignment"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/edit-user-role-on-shared-fund": {
      "post": {
        "operationId": "post_agent_tool_api___edit_user_role_on_shared_fund",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EditUserRoleOnSharedFundPublicRequestRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EditUserRoleOnSharedFundPublicResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "funds:write"
            ]
          }
        ],
        "summary": "Change a shared-fund user's role between member and co-owner using user_email",
        "tags": [
          "Agent Tool",
          "funds"
        ],
        "x-alias": "edit-user-role",
        "x-capabilities": [
          "shared_fund_role_editing"
        ],
        "x-destructive": true,
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/enable-shared-fund-access": {
      "post": {
        "description": "Use this when a user wants to turn an existing personal fund into a shared fund,\nor when adding a member requires sharing to be enabled first.",
        "operationId": "post_agent_tool_api___enable_shared_fund_access",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EnableSharedFundAccessRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnableSharedFundAccessResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "funds:write"
            ]
          }
        ],
        "summary": "Enable sharing on an existing fund so members can be added to it",
        "tags": [
          "Agent Tool",
          "funds"
        ],
        "x-alias": "enable-shared",
        "x-capabilities": [
          "spend_agent"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/estimate-mileage-reimbursement": {
      "post": {
        "operationId": "post_agent_tool_api___estimate_mileage_reimbursement",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EstimateMileageReimbursementRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EstimateMileageReimbursementResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "reimbursements:read"
            ]
          }
        ],
        "summary": "Estimate the reimbursement amount for a given mileage distance based on the user's company rates",
        "tags": [
          "Agent Tool",
          "reimbursements"
        ],
        "x-alias": "estimate",
        "x-capabilities": [
          "mileage_reimbursement_estimation"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/estimate-per-diem-amount": {
      "post": {
        "description": "The rate comes from the trip's locations and the business's per diem settings;\noptional meal and lodging details adjust the estimate. Dates after today are\naccepted only when the business allows advance per diem payments. Read-only:\nno reimbursement is created.",
        "operationId": "post_agent_tool_api___estimate_per_diem_amount",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EstimatePerDiemAmountRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EstimatePerDiemAmountSuccess"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "reimbursements:read"
            ]
          }
        ],
        "summary": "Estimate the per diem reimbursement amount for an existing trip over a date range",
        "tags": [
          "Agent Tool",
          "reimbursements"
        ],
        "x-capabilities": [
          "per_diem_reimbursement_estimate"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/explain-spend-not-on-budget": {
      "post": {
        "description": "Returns the matched budget row when there is one, plus ranked reasons the spend is not (fully) counted, each with a suggested fix: no active budget, budget not started, spend dated outside the budget, a different period, uncoded spend, or coding that matches no budget row. Financial planning budgets are not included. This operation does not change data.",
        "operationId": "post_agent_tool_api___explain_spend_not_on_budget",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExplainSpendNotOnBudgetRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExplainSpendNotOnBudgetOutput"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "budgets:read"
            ]
          }
        ],
        "summary": "Explain whether a transaction, bill, or reimbursement is counted on the acting user's active budget in Ramp Budgets and, if not, why",
        "tags": [
          "Agent Tool",
          "budgets"
        ],
        "x-alias": "explain",
        "x-capabilities": [
          "budgeting"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/find-procurement-deflection-matches": {
      "post": {
        "description": "Restricted matches intentionally contain only the object type and owner\ndisplay names. Never infer, add, or disclose absent details, and never use\nanother tool to recover them.",
        "operationId": "post_agent_tool_api___find_procurement_deflection_matches",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FindProcurementDeflectionMatchesRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FindProcurementDeflectionMatchesBatchOutputJsonMode"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "spend_requests:read"
            ]
          }
        ],
        "summary": "Find active procurement objects for one or more exact vendors",
        "tags": [
          "Agent Tool",
          "procurement_requests"
        ],
        "x-alias": "related-activity",
        "x-capabilities": [
          "wbx_spend_request_intake",
          "contract_renewals"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/fund-x402-wallet": {
      "post": {
        "description": "Before calling, use ListBusinessAccounts to obtain the source account UUID;\nnever guess it. Confirm the exact source account and positive USD amount with\nthe user before creating this irreversible transfer. MCP and CLI callers must\nprovide an idempotency key. Only active Increase USD accounts are supported.",
        "operationId": "post_agent_tool_api___fund_x402_wallet",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FundX402WalletRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FundX402WalletResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "x402:write"
            ]
          }
        ],
        "summary": "Fund the business's x402 wallet from a Ramp Checking Account",
        "tags": [
          "Agent Tool",
          "x402"
        ],
        "x-alias": "fund",
        "x-capabilities": [
          "x402_payments"
        ],
        "x-destructive": true,
        "x-gated-by": "developer_api_x402_enabled",
        "x-moves-money": true,
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/get-account-balance-history": {
      "get": {
        "description": "Use when the user asks about balance history for a specific account,\nsavings account trend, checking account balance over time, or the\nbalance trend for a specific Ramp Checking Account. This tool only\nsupports Ramp Checking Accounts, not Investment Accounts or Managed\nPortfolios.",
        "operationId": "get_agent_tool_api___get_account_balance_history",
        "parameters": [
          {
            "in": "query",
            "name": "account_uuid",
            "required": true,
            "schema": {
              "description": "UUID of the specific Ramp Checking Account to inspect",
              "title": "Account Uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "end_date",
            "required": false,
            "schema": {
              "default": null,
              "description": "Inclusive UTC end date; defaults to today. Use separate nonoverlapping ranges for longer history.",
              "format": "date",
              "nullable": true,
              "title": "End Date",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "rationale",
            "required": true,
            "schema": {
              "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
              "maxLength": 1024,
              "minLength": 1,
              "title": "Rationale",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "start_date",
            "required": false,
            "schema": {
              "default": null,
              "description": "Inclusive UTC start date; defaults to account opening. The effective range can cover at most 1,461 days.",
              "format": "date",
              "nullable": true,
              "title": "Start Date",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAccountBalanceHistoryOutput"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "treasury:read"
            ]
          }
        ],
        "summary": "Get daily balance history for a specific Ramp Checking Account",
        "tags": [
          "Agent Tool",
          "treasury"
        ],
        "x-alias": "balance-history",
        "x-capabilities": [
          "treasury_balance"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-agent-card-creds": {
      "post": {
        "description": "Handles card enrollment and purchase instructions automatically.",
        "operationId": "post_agent_tool_api___get_agent_card_creds",
        "parameters": [
          {
            "description": "Optional for direct callers and required when recognized vault-proxy context is present. Must be a non-empty string of at most 255 characters.",
            "in": "header",
            "name": "X-Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetAgentCardCredsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentTokenResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "cards:read_agentic"
            ]
          }
        ],
        "summary": "Get a one-time payment token for a fund",
        "tags": [
          "Agent Tool",
          "agent_cards"
        ],
        "x-alias": "creds",
        "x-capabilities": [
          "agent_card_credentials"
        ],
        "x-exclude-from-client-delegation": true,
        "x-moves-money": true,
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/get-agent-card-funds": {
      "post": {
        "description": "Returns eligible funds with available balance.",
        "operationId": "post_agent_tool_api___get_agent_card_funds",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetAgentCardFundsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentCardFundsList"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "cards:read_agentic"
            ]
          }
        ],
        "summary": "List funds that can be used for agent card payments",
        "tags": [
          "Agent Tool",
          "agent_cards"
        ],
        "x-alias": "list",
        "x-capabilities": [
          "buy_for_me"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-ai-token-spend-aggregates": {
      "post": {
        "operationId": "post_agent_tool_api___get_ai_token_spend_aggregates",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetAiTokenSpendAggregatesRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiTokenSpendAggregatesResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "ai_spend:read"
            ]
          }
        ],
        "summary": "Aggregate AI token usage or estimated cost over a time window, grouped by caller-selected dimensions (provider, model, configuration, department, user, or API-key tag group)",
        "tags": [
          "Agent Tool",
          "ai-token-spend"
        ],
        "x-alias": "aggregates",
        "x-capabilities": [
          "ai_token_spend_reporting_global"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-ai-token-spend-connections": {
      "post": {
        "description": "Use GetAiTokenSpendCurrentSpend for actual vendor spend and GetAiTokenSpendAggregates for estimated token usage and cost.",
        "operationId": "post_agent_tool_api___get_ai_token_spend_connections",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetAiTokenSpendConnectionsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiTokenSpendConnectionsResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "ai_spend:read"
            ]
          }
        ],
        "summary": "Summarize connected AI providers (admin keys, OpenRouter/LiteLLM gateway connections, and Ramp Router)",
        "tags": [
          "Agent Tool",
          "ai-token-spend"
        ],
        "x-alias": "connections",
        "x-capabilities": [
          "ai_token_spend_reporting_global"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-ai-token-spend-current-spend": {
      "post": {
        "description": "Requires transaction, reimbursement, or bill read access.",
        "operationId": "post_agent_tool_api___get_ai_token_spend_current_spend",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetAiTokenSpendCurrentSpendRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiCurrentSpendResponseSchema"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "ai_spend:read"
            ]
          }
        ],
        "summary": "Report the business's actual trailing-30-day Ramp spend on AI vendors (card, bill, and reimbursement spend) per provider",
        "tags": [
          "Agent Tool",
          "ai-token-spend"
        ],
        "x-alias": "current-spend",
        "x-capabilities": [
          "ai_token_spend_reporting_global"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-ai-token-spend-filter-options": {
      "post": {
        "operationId": "post_agent_tool_api___get_ai_token_spend_filter_options",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetAiTokenSpendFilterOptionsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiTokenSpendFilterOptionsResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "ai_spend:read"
            ]
          }
        ],
        "summary": "List the dimensions and values available for AI-spend aggregate queries: providers, models, model families/facets, departments, and API-key tag groups",
        "tags": [
          "Agent Tool",
          "ai-token-spend"
        ],
        "x-alias": "filter-options",
        "x-capabilities": [
          "ai_token_spend_reporting_global"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-airline-credits": {
      "post": {
        "description": "Returns each credit's airline, amount with ISO 4217 currency code, status, issue date, and expiry, soonest expiry first. Available only when the business has flight credits enabled. The airline confirms whether a credit covers a fare only when it is applied to a flight quote. Defaults to the acting user. Does not apply credits or change anything.",
        "operationId": "post_agent_tool_api___get_airline_credits",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetAirlineCreditsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAirlineCreditsResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "trips:read"
            ]
          }
        ],
        "summary": "List flight credits for one traveler, not the company-wide inventory",
        "tags": [
          "Agent Tool",
          "travel"
        ],
        "x-alias": "flight-credits",
        "x-capabilities": [
          "travel_flight_credits"
        ],
        "x-gated-by": "agent_booking_airline_credits_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-application-details": {
      "get": {
        "description": "The business can be your own, or a client business whose application your accounting\nfirm prepares (an assisted application). Use this when the user asks what is\nincomplete. This does not change the application.",
        "operationId": "get_agent_tool_api___get_application_details",
        "parameters": [
          {
            "in": "query",
            "name": "rationale",
            "required": true,
            "schema": {
              "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
              "maxLength": 1024,
              "minLength": 1,
              "title": "Rationale",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetApplicationDetailsResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "applications:read"
            ]
          }
        ],
        "summary": "Get the Ramp financing application for the business you are acting on in more detail than its status: business and incorporation details, the applicant's name, and the completion status of each page and section",
        "tags": [
          "Agent Tool",
          "financing_application"
        ],
        "x-alias": "get",
        "x-capabilities": [
          "financing_applications"
        ],
        "x-gated-by": "advisor_console_mcp_assisted_fa",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-application-invites": {
      "get": {
        "description": "The business can be your own, or a client business whose application your accounting\nfirm prepares (an assisted application). Use this when the user asks who has been\ninvited or whether an invite is still pending. This does not send or change invites.",
        "operationId": "get_agent_tool_api___get_application_invites",
        "parameters": [
          {
            "in": "query",
            "name": "rationale",
            "required": true,
            "schema": {
              "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
              "maxLength": 1024,
              "minLength": 1,
              "title": "Rationale",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetApplicationInvitesResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "applications:read"
            ]
          }
        ],
        "summary": "List the pending and accepted invites to the Ramp financing application of the business you are acting on: who was invited as primary applicant or preparer, and whether they joined",
        "tags": [
          "Agent Tool",
          "financing_application"
        ],
        "x-alias": "invites",
        "x-capabilities": [
          "financing_applications"
        ],
        "x-gated-by": "advisor_console_mcp_assisted_fa",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-application-status": {
      "get": {
        "description": "The business can be your own, or a client business whose application your accounting\nfirm prepares (an assisted application). Use this when the user asks where the\napplication stands or what step comes next. This does not change the application.",
        "operationId": "get_agent_tool_api___get_application_status",
        "parameters": [
          {
            "in": "query",
            "name": "rationale",
            "required": true,
            "schema": {
              "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
              "maxLength": 1024,
              "minLength": 1,
              "title": "Rationale",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetApplicationStatusResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "applications:read"
            ]
          }
        ],
        "summary": "Get the status of the Ramp financing application for the business you are acting on: its stage, most recently saved step, and underwriting country",
        "tags": [
          "Agent Tool",
          "financing_application"
        ],
        "x-alias": "status",
        "x-capabilities": [
          "financing_applications"
        ],
        "x-gated-by": "advisor_console_mcp_assisted_fa",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-approval-chain-details": {
      "post": {
        "description": "Returns the recorded chain for one approval instance, not the policy\ntemplate. It cannot answer policy-configuration or notification-delivery\nquestions. Pass the selected workflow_execution_uuid for a Blank Canvas target.\nBlank Canvas nodes retain separate recorded approvals; projected future nodes\nmay change, and the list does not imply sequential execution.",
        "operationId": "post_agent_tool_api___get_approval_chain_details",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetApprovalChainDetailsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetApprovalChainDetailsResponse"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "approvals:read"
            ]
          }
        ],
        "summary": "Fetch approval details for an approval instance or Blank Canvas execution",
        "tags": [
          "Agent Tool",
          "approvals"
        ],
        "x-alias": "get",
        "x-capabilities": [
          "workflows_debugging"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-attention-feed": {
      "post": {
        "description": "Use this tool to see what needs the user's attention right now: pending approvals,\nmissing receipts, overdue reviews, signatures, and similar action items that appear\non the Ramp homepage.\n\nBy default, the tool returns the default homepage sections with compact\nLIST-hydrated task rows. To fetch more from a section, pass that section's\nsection_type and next_cursor back in sections.\n\nFor own-card GET_ATTENTION_FEED remediation, use this as the canonical task feed.\nblocking_effects describes a task type's possible sanction, not proof that an item\ncaused the active lock. Use browser_handoff for user action in Ramp. For an\navailable CompleteTransactionRevision, inspect or edit the transaction and call\nit with a nonblank reason. Re-read both tools and continue relevant overdue tasks;\nsuccess requires the task absent, blocking_task_count=0, and is_spendable=true.\nPending verification is not an unlock.",
        "operationId": "post_agent_tool_api___get_attention_feed",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetAttentionFeedRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAttentionFeedResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "tasks:read"
            ]
          }
        ],
        "summary": "Return the authenticated user's homepage attention feed",
        "tags": [
          "Agent Tool",
          "tasks"
        ],
        "x-alias": "list",
        "x-capabilities": [
          "attention_feed"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-authorized-businesses": {
      "post": {
        "description": "This tool returns all client businesses that the external firm (advisor console) user\nhas been granted access to. Use this to understand which businesses the user can\nwork with or to help them find a specific client.\n\nSupports filtering by business display name and pagination for large lists.",
        "operationId": "post_agent_tool_api___get_authorized_businesses",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetAuthorizedBusinessesRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAuthorizedBusinessesResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "business:read"
            ]
          }
        ],
        "summary": "Retrieve the list of businesses that the advisor console user is authorized to access",
        "tags": [
          "Agent Tool",
          "advisor_console"
        ],
        "x-alias": "list",
        "x-capabilities": [
          "advisor_console"
        ],
        "x-exclude-from-client-delegation": true,
        "x-gated-by": "advisor_console_mcp_client_data",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-bill-amount-summary": {
      "post": {
        "description": "Examples: total unpaid amount, total pending amount. Use when users ask\nthings like \"How much do we owe in bills?\" or \"What's our total\noutstanding bill amount?\".\n\nBills in Ramp have two stages: draft bills (created/uploaded but not yet\nsubmitted; use the draft-bill tools) and bills (submitted; they move through\napproval, then scheduling, then payment). A draft keeps the same ID after\nsubmission, but draft-only tools stop working on it once submitted.",
        "operationId": "post_agent_tool_api___get_bill_amount_summary",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetBillAmountSummaryRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetBillAmountSummaryResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "bills:read"
            ]
          }
        ],
        "summary": "Get aggregate dollar amounts for bills matching the given filters",
        "tags": [
          "Agent Tool",
          "bills"
        ],
        "x-alias": "amount-summary",
        "x-capabilities": [
          "bill_pay_v1_core"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-bill-comments": {
      "post": {
        "description": "Bills in Ramp have two stages: draft bills (created/uploaded but not yet\nsubmitted; use the draft-bill tools) and bills (submitted; they move through\napproval, then scheduling, then payment). A draft keeps the same ID after\nsubmission, but draft-only tools stop working on it once submitted.",
        "operationId": "post_agent_tool_api___get_bill_comments",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetBillCommentsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillCommentsResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "bills:read"
            ]
          }
        ],
        "summary": "Retrieve comments from a bill's comment thread",
        "tags": [
          "Agent Tool",
          "bills"
        ],
        "x-alias": "comments",
        "x-capabilities": [
          "bill_comments"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-bill-details": {
      "post": {
        "description": "Requires a bill UUID and known submitted status. A UUID alone does not\nestablish submission: a draft keeps the same UUID after submission.\nNot applicable to bills whose draft/submitted stage is unknown or to\nunsubmitted drafts.\n\nReturns bill metadata, payment status, and approval status. Submitted bills\ninclude bills awaiting approval, scheduling, or payment.",
        "operationId": "post_agent_tool_api___get_bill_details",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetBillDetailsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillDetails"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "bills:read"
            ]
          }
        ],
        "summary": "Get details for a bill already confirmed to be submitted; submitted bills only",
        "tags": [
          "Agent Tool",
          "bills"
        ],
        "x-alias": "get",
        "x-capabilities": [
          "bill_pay_v1_core",
          "bill_payment_support"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-bill-history": {
      "post": {
        "description": "Returns a chronological event log \u2014 creation, submission, each\napproval-chain action with actor and timestamp, and deletion. Use it to\nanswer questions like \"who approved this bill?\". Rejects unsubmitted draft\nbills (is_draft=true); unsubmitted drafts have no submitted bill history.\n\nBills in Ramp have two stages: draft bills (created/uploaded but not yet\nsubmitted; use the draft-bill tools) and bills (submitted; they move through\napproval, then scheduling, then payment). A draft keeps the same ID after\nsubmission, but draft-only tools stop working on it once submitted.",
        "operationId": "post_agent_tool_api___get_bill_history",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetBillHistoryRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillHistoryResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "bills:read"
            ]
          }
        ],
        "summary": "Retrieve the full modification and approval history of a submitted bill; submitted bills only (is_draft=false)",
        "tags": [
          "Agent Tool",
          "bills"
        ],
        "x-alias": "history",
        "x-capabilities": [
          "bill_pay_v1_core",
          "bill_payment_support"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-bill-invoices": {
      "post": {
        "description": "Returns the source documents backing the bill: for each attachment, the\nfilename, type, and a time-limited download URL (the URL expires after\nabout 3 days). Draft bills are not supported: draft attachments are not\nretrievable through agent tools. get-draft-bill-details returns draft\nmetadata and a link to the draft page in the Ramp web app, where\nattachments can be viewed.\n\nBills in Ramp have two stages: draft bills (created/uploaded but not yet\nsubmitted; use the draft-bill tools) and bills (submitted; they move through\napproval, then scheduling, then payment). A draft keeps the same ID after\nsubmission, but draft-only tools stop working on it once submitted.",
        "operationId": "post_agent_tool_api___get_bill_invoices",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetBillInvoicesRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillInvoicesResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "bills:read"
            ]
          }
        ],
        "summary": "Retrieve invoice file attachments (PDFs/images) for a submitted bill",
        "tags": [
          "Agent Tool",
          "bills"
        ],
        "x-alias": "attachments",
        "x-capabilities": [
          "bill_invoices"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-bill-metrics": {
      "post": {
        "description": "Use this to answer questions like \"How many bills are pending approval?\" or \"How many overdue bills do we have?\".\n\nBills in Ramp have two stages: draft bills (created/uploaded but not yet\nsubmitted; use the draft-bill tools) and bills (submitted; they move through\napproval, then scheduling, then payment). A draft keeps the same ID after\nsubmission, but draft-only tools stop working on it once submitted.",
        "operationId": "post_agent_tool_api___get_bill_metrics",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetBillMetricsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetBillMetricsResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "bills:read"
            ]
          }
        ],
        "summary": "Returns the count of bills matching specified filters",
        "tags": [
          "Agent Tool",
          "bills"
        ],
        "x-alias": "metrics",
        "x-capabilities": [
          "bill_pay_v1_core"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-bill-status": {
      "post": {
        "description": "Rejects unsubmitted draft bills (is_draft=true); unsubmitted drafts have no\nsubmitted payment or approval status. This tool does not determine required\nnext actions: next_action_required is always null (unavailable), not\nconfirmation that no action is needed. Summary labels describe recorded\nstatus. PAYMENT_DETAILS_MISSING indicates incomplete details required for\npayment release; it does not identify the missing fields, who must supply\nthem, or whether a payment date can be selected.\n\nBills in Ramp have two stages: draft bills (created/uploaded but not yet\nsubmitted; use the draft-bill tools) and bills (submitted; they move through\napproval, then scheduling, then payment). A draft keeps the same ID after\nsubmission, but draft-only tools stop working on it once submitted.",
        "operationId": "post_agent_tool_api___get_bill_status",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetBillStatusRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillStatus"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "bills:read"
            ]
          }
        ],
        "summary": "Get the recorded payment and approval status of a specific submitted bill; submitted bills only (is_draft=false)",
        "tags": [
          "Agent Tool",
          "bills"
        ],
        "x-alias": "status",
        "x-capabilities": [
          "bill_pay_v1_core",
          "bill_payment_support"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-bills-for-approval": {
      "post": {
        "description": "Use this tool when the user wants to see bills they need to approve or asks\nabout pending approvals. This returns only bills where the authenticated\nuser is the next required approver in the approval chain.\n\nBills in Ramp have two stages: draft bills (created/uploaded but not yet\nsubmitted; use the draft-bill tools) and bills (submitted; they move through\napproval, then scheduling, then payment). A draft keeps the same ID after\nsubmission, but draft-only tools stop working on it once submitted.",
        "operationId": "post_agent_tool_api___get_bills_for_approval",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetBillsForApprovalRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillSearchResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "bills:read"
            ]
          }
        ],
        "summary": "Get bills that are pending approval from the current user",
        "tags": [
          "Agent Tool",
          "bills"
        ],
        "x-alias": "pending",
        "x-capabilities": [
          "bill_pay_v1_core"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-booking-details": {
      "post": {
        "description": "On the day of travel, each flight also carries its airline-reported gate, terminal, delay, and baggage carousel. Trip and transaction UUIDs are not booking IDs. Approval details concern travel booking requests, not card or spend-limit requests. Use booking status for routine lookups. Optional provider_status supplies stored Atlas hotel or per-segment flight evidence for check-in trouble or missing reservations, not a live provider check, proof of hotel receipt, flight ticket validity, or provider fault. Its observation time is unknown; do not let it override a completed cancellation. For a flight paid partly or fully with flight credits, airline_credits_applied lists each credit used, with the amount applied and any redemption fee. flight_cancellation_terms are stored executed-quote terms, not proof of a settled refund or issued credit. A fare's is_refundable=false means not known fully refundable, not that a refund is impossible after airline cancellation. soft_approval_window_end, when present, is the local deadline when the booking will be auto-approved unless rejected, not a departure time or proof of ticketing.",
        "operationId": "post_agent_tool_api___get_booking_details",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetBookingDetailsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicBookingDetails"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "trips:read"
            ]
          }
        ],
        "summary": "Get itinerary, stay, or rental details plus request status, amount, payment timing, cancellation state, supplier confirmation numbers, associated spend, error, approval information, and optional booking-specific partner support channels for one flight, hotel, car booking, or travel booking request UUID",
        "tags": [
          "Agent Tool",
          "travel"
        ],
        "x-alias": "booking-details",
        "x-capabilities": [
          "travel_car_rental_booking",
          "travel_booking_verification",
          "upcoming_travel",
          "travel_flight_booking",
          "travel_booking_price_update",
          "travel_hotel_booking",
          "travel_booking_status",
          "travel_request_approvals",
          "airline_check_in",
          "travel_booking_support",
          "travel_flight_cancellation",
          "travel_hotel_cancellation",
          "travel_flight_modification",
          "travel_flight_traveler_details",
          "travel_flight_rebooking",
          "travel_hotel_rebooking"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-booking-service-status": {
      "post": {
        "description": "Returns current disruptions and advisories for the acting user's flight and\nhotel providers, plus car booking. A booking type's is_down flag identifies a\ntemporary outage; its message and note can also describe nonblocking advisories.\nThis does not establish the user's booking eligibility or inventory availability.",
        "operationId": "post_agent_tool_api___get_booking_service_status",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetBookingServiceStatusRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingServiceStatusResponse"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "trips:read"
            ]
          }
        ],
        "summary": "Get the current booking-service availability for flights, hotels, and cars",
        "tags": [
          "Agent Tool",
          "travel"
        ],
        "x-alias": "status",
        "x-capabilities": [
          "travel_flight_booking",
          "travel_hotel_booking"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-bookings": {
      "post": {
        "description": "Optionally identify existing bookings by city, hotel name, flight airline, flight number, booking reference, or travel date. Filters for the same booking type combine with AND; mixed hotel- and flight-specific filters match each type independently. Matching entries are returned up to limit for caller disambiguation, except include_past may return up to limit upcoming and limit past entries per type. Returns confirmed bookings and pending requests ordered upcoming-first (soonest next booking first, then past most recent first), with unsuccessful requests available via include_failed; check the status field and call GetBookingDetails for one entry's detailed state.",
        "operationId": "post_agent_tool_api___get_bookings",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetBookingsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingsResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "trips:read"
            ]
          }
        ],
        "summary": "Retrieve flight, hotel, and car rental booking summaries for the user",
        "tags": [
          "Agent Tool",
          "travel"
        ],
        "x-alias": "bookings",
        "x-capabilities": [
          "travel_car_rental_booking",
          "travel_booking_verification",
          "upcoming_travel",
          "travel_hotel_payment_escalation",
          "travel_flight_booking",
          "travel_booking_price_update",
          "travel_hotel_booking",
          "travel_booking_status",
          "travel_request_approvals",
          "travel_booking_support",
          "travel_flight_cancellation",
          "travel_hotel_cancellation",
          "travel_flight_modification",
          "travel_flight_traveler_details",
          "travel_flight_rebooking",
          "travel_hotel_rebooking"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-business-statement-date": {
      "get": {
        "operationId": "get_agent_tool_api___get_business_statement_date_tool",
        "parameters": [
          {
            "in": "query",
            "name": "rationale",
            "required": true,
            "schema": {
              "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
              "maxLength": 1024,
              "minLength": 1,
              "title": "Rationale",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BusinessStatementDateResponse"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "statements:read"
            ]
          }
        ],
        "summary": "Get the business's statement billing schedule: the next statement close date, the configured statement close day of month, and the next card payment or autopay debit date",
        "tags": [
          "Agent Tool",
          "business"
        ],
        "x-alias": "get",
        "x-capabilities": [
          "statement_date_management"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-candidate-trips-for-transaction": {
      "post": {
        "description": "Returns up to 10 ongoing, upcoming, and recently completed trips. Supports\ngeneral trip lookups as well as expense matching; no transaction is required.",
        "operationId": "post_agent_tool_api___get_candidate_trips_for_transaction",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetCandidateTripsForTransactionRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CandidateTripsResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "trips:read"
            ]
          }
        ],
        "summary": "Fetch relevant trips for the acting user, with names, dates, status, and locations",
        "tags": [
          "Agent Tool",
          "transactions"
        ],
        "x-alias": "trips",
        "x-capabilities": [
          "expense_field_search",
          "reimbursement_completion",
          "trip_management"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-card-statement-balance": {
      "post": {
        "description": "how much was due, how much has been paid, what's still outstanding, and\nwhen the next payment is due.\n\nUse this when the user asks about their card statement balance, why they\ngot a delinquency / outstanding balance notice after paying, what their\nremaining balance is, or how their last payment was applied. Common\nphrasings: \"I paid X but still got an outstanding balance notice\",\n\"what's my statement balance\", \"why am I still showing a balance\".\n\nReturns the most recent statement only. Doesn't include current-cycle\n(post-statement-close) charges \u2014 those are surfaced via separate\ntransaction-listing tools when needed.",
        "operationId": "post_agent_tool_api___get_card_statement_balance",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetCardStatementBalanceRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetCardStatementBalanceResponseJsonMode"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "statements:read"
            ]
          }
        ],
        "summary": "Get a snapshot of the business's most recent card statement balance \u2014",
        "tags": [
          "Agent Tool",
          "statements"
        ],
        "x-alias": "outstanding",
        "x-capabilities": [
          "card_statement_balance"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-decline-explanation": {
      "post": {
        "description": "Returns the reason, remediation actions, and transaction details. Only valid for already-declined transactions.",
        "operationId": "post_agent_tool_api___get_decline_explanation",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetDeclineExplanationRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeclineExplanation"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "transactions:read"
            ]
          }
        ],
        "summary": "Get a detailed explanation of why a card transaction was declined",
        "tags": [
          "Agent Tool",
          "declines"
        ],
        "x-alias": "explain",
        "x-capabilities": [
          "decline_help"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-delegated-travelers": {
      "post": {
        "description": "The same list Ramp Travel offers when booking for someone else: a travel\nmanager can find anyone in the company; everyone else finds the people who\nmade them their delegate (assistant). Returns each person's user UUID for\nbooking, cancellation, modification, and booking lookups. Read-only.\n\nUse it to answer \"who can I book travel for?\" or \"who am I a delegate or\nassistant for?\" with the actual people, not general guidance.",
        "operationId": "post_agent_tool_api___get_delegated_travelers",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetDelegatedTravelersRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetDelegatedTravelersResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "trips:read"
            ]
          }
        ],
        "summary": "List the people the acting user can book, cancel, and change travel for",
        "tags": [
          "Agent Tool",
          "travel"
        ],
        "x-alias": "delegated-travelers",
        "x-capabilities": [
          "travel_car_rental_booking",
          "travel_hotel_payment_escalation",
          "travel_flight_booking",
          "travel_hotel_booking",
          "travel_booking_status",
          "travel_booking_support",
          "travel_flight_cancellation",
          "travel_hotel_cancellation",
          "travel_flight_modification",
          "travel_flight_rebooking",
          "travel_hotel_rebooking"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-draft-bill-details": {
      "post": {
        "description": "Submitted bills, including those awaiting approval or payment, are not\nsupported. A draft link may be stale after submission.\n\nReturns compact draft-bill metadata by default. Set return_line_items=true\nto include the full editable payload with line items and tracking categories.\nIncludes canonical submission readiness and verified missing requirements;\nblank optional fields are not evidence of a submission blocker.\n\nBills in Ramp have two stages: draft bills (created/uploaded but not yet\nsubmitted; use the draft-bill tools) and bills (submitted; they move through\napproval, then scheduling, then payment). A draft keeps the same ID after\nsubmission, but draft-only tools stop working on it once submitted.",
        "operationId": "post_agent_tool_api___get_draft_bill_details",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetDraftBillDetailsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DraftBillDetails"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "bills:read"
            ]
          }
        ],
        "summary": "Get details for an active draft bill that has not been submitted",
        "tags": [
          "Agent Tool",
          "bills"
        ],
        "x-alias": "draft",
        "x-capabilities": [
          "bill_pay_v1_core"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-employee-submission-policy-requirements": {
      "get": {
        "description": "Returns the same summaries shown in the employee handbook's transaction requirements.",
        "operationId": "get_agent_tool_api___get_employee_submission_policy_requirements",
        "parameters": [
          {
            "in": "query",
            "name": "rationale",
            "required": true,
            "schema": {
              "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
              "maxLength": 1024,
              "minLength": 1,
              "title": "Rationale",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmployeeSubmissionPolicyRequirementsSuccess"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "transactions:read"
            ]
          }
        ],
        "summary": "Get the employee-visible expense submission requirements for the caller's business, such as receipt, memo, attendee, fund, and accounting-field requirements per submission policy",
        "tags": [
          "Agent Tool",
          "policy"
        ],
        "x-alias": "requirements",
        "x-capabilities": [
          "expense_policy_help"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-erp-connection-status": {
      "post": {
        "description": "Returns whether an ERP is connected, which provider it is, and what the business\nselected during onboarding. Use this to understand the user's ERP context before\nguiding them through setup or troubleshooting. Can be called multiple times to\nre-verify connection status after the user completes OAuth.",
        "operationId": "post_agent_tool_api___get_erp_connection_status",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetErpConnectionStatusRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErpConnectionStatusResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "accounting:read"
            ]
          }
        ],
        "summary": "Get the current ERP/accounting integration connection status for the business",
        "tags": [
          "Agent Tool",
          "accounting"
        ],
        "x-alias": "connections",
        "x-capabilities": [
          "policy_and_accounting_status"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-expense-workflow-context": {
      "get": {
        "description": "Provide exactly one expense UUID. Does not support bills.",
        "operationId": "get_agent_tool_api___get_expense_workflow_context",
        "parameters": [
          {
            "in": "query",
            "name": "rationale",
            "required": true,
            "schema": {
              "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
              "maxLength": 1024,
              "minLength": 1,
              "title": "Rationale",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "reimbursement_uuid",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
                }
              ],
              "default": null,
              "description": "Reimbursement UUID or reimbursement alias to inspect. Provide exactly one expense reference.",
              "nullable": true
            }
          },
          {
            "in": "query",
            "name": "transaction_uuid",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/EntityUUIDStrRequestBody"
                }
              ],
              "default": null,
              "description": "Transaction UUID or transaction alias to inspect. Provide exactly one expense reference.",
              "nullable": true
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetExpenseWorkflowContextPublicSuccess"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "transactions:read"
            ]
          }
        ],
        "summary": "Resolve a transaction or reimbursement UUID to its approval workflow context: the expense summary, its approval chain steps with recorded approver sources and step reasons and the policy version that generated the chain; when a transaction has no active approval, the recorded reason (auto-approved merchant, bill paid by card, or repaid in full); the attached approval and submission policies, any travel booking approval, any active or completed cardholder change/revision request, and the latest Policy Agent review",
        "tags": [
          "Agent Tool",
          "policy"
        ],
        "x-alias": "explain",
        "x-capabilities": [
          "expense_policy_help"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-flight-booking-locations": {
      "post": {
        "description": "Preserve the user's location wording in ``query``. When the user names a city or\nmetro area such as \"NYC\", set ``location_type=city``. A returned city\n``search_code`` searches all supported airports in that metro; do not ask the\nuser to choose one airport when a city result is available.\n\nUse this to answer which airports or cities are bookable for a place, or to\nlist the candidates when a place name is ambiguous. If the results contain\nmultiple plausible locations, present the choices and wait for the user to\nclarify; never choose a location on their behalf. Do not infer a location from\nprofile data, an area code, or a broad description such as \"somewhere warm.\"\n\nReturns locations where flights can be booked from or to, which may include:\n- Individual airports (e.g., JFK, SFO, LAX)\n- City groups with multiple airports (e.g., NYC includes JFK, LGA, EWR)\n- Major travel destinations with flight availability\n\nEach result carries a ``search_code`` usable as a flight search departure or\narrival. Cities search every airport in the metro area; airports search just\nthat airport.",
        "operationId": "post_agent_tool_api___get_flight_booking_locations",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetFlightBookingLocationsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FlightLocationSearchResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "trips:read"
            ]
          }
        ],
        "summary": "Resolves locations (airports/cities) available for booking a flight from user intent",
        "tags": [
          "Agent Tool",
          "travel"
        ],
        "x-alias": "flight-locations",
        "x-capabilities": [
          "travel_flight_booking",
          "travel_flight_rebooking"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-full-transaction-metadata": {
      "post": {
        "description": "Read the amount from `amount_decimal`, which is already in `currency`'s major unit\nand needs no arithmetic. Ignore `amount_cents`; it is the same amount in minor units,\nkept only for backwards compatibility.",
        "operationId": "post_agent_tool_api___get_full_transaction_metadata",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetFullTransactionMetadataRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FullTransactionMetadata"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "transactions:read"
            ]
          }
        ],
        "summary": "View all details, memos, funds, and receipts for a specific transaction",
        "tags": [
          "Agent Tool",
          "transactions"
        ],
        "x-alias": "get",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-funds": {
      "post": {
        "description": "or permitted spend. For a named person's funds, resolve their UUID with GetOrgChart\nand pass user_uuids. For the current user's funds, use MY_FUNDS. Search by fund name\nwith search_by_fund_display_name or look up a known UUID with fund_uuid.\nResults include each person's own Ramp Card limit (is_ramp_card_limit). Those rows\nalways list their owner in members, even without include_members, so a business-wide\nsearch can tell whose card limit each one is.\n\nFund balance_data is null when the viewer cannot see totals. When present, its remaining\namount is authoritative for cleared charges, pending authorizations, and applicable rollover.\nlimit_amount excludes rollover;\naccrued_rollover_amount is the opening carry, already included in remaining_amount.\nDo not add rollover or subtract spending again. Never infer that\na booking is included merely because it is confirmed: a postpaid booking with no charge or\npending authorization is a future charge and has not yet reduced the remaining balance.\n\nbalance_data.limit_amount is the active period limit, including temporary adjustments.\nrestrictions_data.limit_amount is the permanent limit restored after a temporary\nadjustment ends; it can differ from the active period limit.\n\nA fund with a lock can't be spent from until it is unlocked, even though it is ACTIVE\nand keeps its remaining amount. Never present a locked fund as available; mention it\nseparately with its lock reason, without quoting its remaining amount as money left\nunless the user asks what it holds once unlocked. A member lock blocks only that member.",
        "operationId": "post_agent_tool_api___get_user_funds",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetUserFundsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserFunds"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "limits:read"
            ]
          }
        ],
        "summary": "Retrieve funds (cards or budgets) and their balances, restrictions, locks, owners,",
        "tags": [
          "Agent Tool",
          "funds"
        ],
        "x-alias": "list",
        "x-capabilities": [
          "cards_and_funds",
          "wbx_spend_request_intake"
        ],
        "x-mcp-ui-resource-uri": "ui://ramp/funds",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-hotel-rates": {
      "post": {
        "description": "Use this after the user picks a hotel from SearchHotels results and before booking. Every current room group and its rates for the stay are returned in all_rates; the returned rate.id values are the exact IDs to pass to SubmitHotelBooking. These rates are current options, not quotes - wait for the traveler to select one exact rate. When the result's all_rates_out_of_policy is true, every rate at this hotel is out of policy for the stay: tell the traveler, prefer offering an in-policy hotel from the SearchHotels results, and proceed with this hotel only if the traveler explicitly chooses to - booking will then require an oop_reason at SubmitHotelBooking.",
        "operationId": "post_agent_tool_api___get_hotel_rates",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetHotelRatesRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetHotelRatesResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "trips:read"
            ]
          }
        ],
        "summary": "Fetch available room-rate options for one selected hotel from SearchHotels",
        "tags": [
          "Agent Tool",
          "travel"
        ],
        "x-alias": "hotel-rates",
        "x-capabilities": [
          "travel_hotel_booking",
          "travel_hotel_rebooking"
        ],
        "x-gated-by": "ramp_cli_hotel_booking",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-investment-account-balance": {
      "get": {
        "description": "Use this when the user asks about investment account balances, brokerage cash,\nor the current balance of Ramp investment accounts. Returns all investment\naccounts the business has, along with balances, status, yield, and earnings.",
        "operationId": "get_agent_tool_api___get_investment_account_balance",
        "parameters": [
          {
            "in": "query",
            "name": "rationale",
            "required": true,
            "schema": {
              "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
              "maxLength": 1024,
              "minLength": 1,
              "title": "Rationale",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetInvestmentAccountBalanceOutput"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "treasury:read"
            ]
          }
        ],
        "summary": "Get the balance of investment accounts for the business",
        "tags": [
          "Agent Tool",
          "treasury"
        ],
        "x-alias": "investments",
        "x-capabilities": [
          "treasury_balance"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-latest-sync": {
      "post": {
        "description": "Use this when you need the latest sync status plus every intended and successful count exposed by Ramp's accounting latest-sync endpoint.",
        "operationId": "post_agent_tool_api___get_latest_sync",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetLatestSyncRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetLatestSyncResponse"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "accounting:read"
            ]
          }
        ],
        "summary": "Get the most recent accounting sync commit for the acting user's business and sync type",
        "tags": [
          "Agent Tool",
          "accounting"
        ],
        "x-alias": "latest-sync",
        "x-capabilities": [
          "erp_sync_diagnostics"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-managed-portfolio-account-balance": {
      "get": {
        "description": "Use this when the user asks about managed portfolio balances, managed\nportfolio cash, or the current balance of Ramp managed portfolio accounts.\nReturns all managed portfolio accounts the business has, along with balances,\nmarket value, status, yield, and earnings.",
        "operationId": "get_agent_tool_api___get_managed_portfolio_account_balance",
        "parameters": [
          {
            "in": "query",
            "name": "rationale",
            "required": true,
            "schema": {
              "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
              "maxLength": 1024,
              "minLength": 1,
              "title": "Rationale",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetManagedPortfolioAccountBalanceOutput"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "treasury:read"
            ]
          }
        ],
        "summary": "Get the balance of managed portfolio accounts for the business",
        "tags": [
          "Agent Tool",
          "treasury"
        ],
        "x-alias": "portfolio",
        "x-capabilities": [
          "treasury_balance"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-missing-items-by-user": {
      "get": {
        "description": "Reflects the submission policy only: accounting fields required only to sync to the accounting system are not included, so an empty result does not mean transactions are coded or ready to sync. Returns a paginated list of users you are allowed to view, with sample transactions and what each is missing. Use get-transaction-missing-items for per-transaction detail.",
        "operationId": "get_agent_tool_api___get_missing_items_by_user",
        "parameters": [
          {
            "in": "query",
            "name": "only_missing_receipt",
            "required": false,
            "schema": {
              "default": false,
              "description": "Set true to return only transactions that are missing a receipt, ignoring transactions whose only outstanding items are memos or accounting fields.",
              "title": "Only Missing Receipt",
              "type": "boolean"
            }
          },
          {
            "in": "query",
            "name": "page_cursor",
            "required": false,
            "schema": {
              "default": null,
              "description": "Pagination cursor for fetching additional pages of users.",
              "nullable": true,
              "title": "Page Cursor",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "page_size",
            "required": false,
            "schema": {
              "default": 10,
              "description": "Number of users to return per page.",
              "maximum": 20,
              "title": "Page Size",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "rationale",
            "required": true,
            "schema": {
              "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
              "maxLength": 1024,
              "minLength": 1,
              "title": "Rationale",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "user_limit",
            "required": false,
            "schema": {
              "default": 5,
              "description": "Maximum number of transactions to show per user.",
              "maximum": 20,
              "title": "User Limit",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetMissingItemsByUserResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "transactions:read"
            ]
          }
        ],
        "summary": "Get transactions still missing what the submission policy requires (receipts above its threshold, memos, policy-required accounting fields), grouped by user",
        "tags": [
          "Agent Tool",
          "transactions"
        ],
        "x-alias": "missing-by-user",
        "x-capabilities": [
          "missing_receipts",
          "expense_policy_help"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-more-tools": {
      "post": {
        "description": "Use this when the user's request cannot be completed with the available Ramp\ntools. Describe the user's goal and the capability that would be needed. The\nreply says whether Ramp has a tool for it that this user can't use (and why),\nor that Ramp has none; either way the request is recorded.",
        "operationId": "post_agent_tool_api___get_more_tools",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetMoreToolsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetMoreToolsResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ],
        "summary": "Check whether Ramp has a tool for something your Ramp tools can't do",
        "tags": [
          "Agent Tool",
          "external_agents"
        ],
        "x-alias": "get-more-tools",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-my-ai-token-spend-aggregates": {
      "post": {
        "operationId": "post_agent_tool_api___get_my_ai_token_spend_aggregates",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetMyAiTokenSpendAggregatesRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AggregatedUsageResponseSchema"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "ai_spend:read"
            ]
          }
        ],
        "summary": "Aggregate the acting user's own AI token usage and estimated token cost over a time window, optionally grouped by provider and model",
        "tags": [
          "Agent Tool",
          "ai-token-spend"
        ],
        "x-alias": "me",
        "x-capabilities": [
          "ai_token_spend_reporting_own"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-office-locations": {
      "post": {
        "description": "Use this to find office addresses when searching for hotels near an office or determining travel destinations.\n\nThe two shapes are complementary: ``office_locations`` has coordinates but no\nstreet address, and ``company_address`` has a street address but no coordinates.",
        "operationId": "post_agent_tool_api___get_office_locations",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetOfficeLocationsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetOfficeLocationsResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "trips:read"
            ]
          }
        ],
        "summary": "Retrieve the company's office locations and addresses",
        "tags": [
          "Agent Tool",
          "travel"
        ],
        "x-alias": "offices",
        "x-capabilities": [
          "travel_car_rental_booking",
          "travel_car_rebooking",
          "travel_hotel_booking",
          "travel_hotel_rebooking"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-org-chart": {
      "post": {
        "description": "This tool provides comprehensive org chart visibility including:\n- The user's position in the organization\n- Their direct reports (team members)\n- Their reporting chain (managers up the hierarchy)\n\nUse this tool whenever the user asks anything about their manager, team, or direct reports.",
        "operationId": "post_agent_tool_api___get_org_chart",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetOrgChartRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrgChartResponse"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "users:read"
            ]
          }
        ],
        "summary": "Get org chart for a user, including reporting chain and direct reports",
        "tags": [
          "Agent Tool",
          "users"
        ],
        "x-alias": "org-chart",
        "x-capabilities": [
          "expense_field_search",
          "people_lookup"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-outstanding-reimbursements-by-currency": {
      "post": {
        "operationId": "post_agent_tool_api___get_outstanding_reimbursements_by_currency",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetOutstandingReimbursementsByCurrencyRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetOutstandingReimbursementsSuccess"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "reimbursements:read"
            ]
          }
        ],
        "summary": "Get approved and failed reimbursements that would be affected by a bank account currency change",
        "tags": [
          "Agent Tool",
          "reimbursements"
        ],
        "x-alias": "outstanding",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-pending-request-items": {
      "get": {
        "description": "The business can be your own, or a client business whose application your accounting\nfirm prepares (an assisted application). Use this when the user asks what documents or\nfollow-up items are outstanding. This does not change or submit any item.",
        "operationId": "get_agent_tool_api___get_pending_request_items",
        "parameters": [
          {
            "in": "query",
            "name": "rationale",
            "required": true,
            "schema": {
              "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
              "maxLength": 1024,
              "minLength": 1,
              "title": "Rationale",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetPendingRequestItemsResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "applications:read"
            ]
          }
        ],
        "summary": "Get the follow-up items, such as documents, that Ramp requested for the financing application of the business you are acting on and that are not yet resolved",
        "tags": [
          "Agent Tool",
          "financing_application"
        ],
        "x-alias": "followups",
        "x-capabilities": [
          "financing_applications"
        ],
        "x-gated-by": "advisor_console_mcp_assisted_fa",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-pending-travel-requests": {
      "post": {
        "description": "Use this when a user asks about travel requests they need to approve.\nReturns pending flight, hotel, and car rental booking requests that require action.",
        "operationId": "post_agent_tool_api___get_pending_travel_requests",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetPendingTravelRequestsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TravelRequestListResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "trips:read"
            ]
          }
        ],
        "summary": "Retrieves travel/booking requests that are pending approval from the current user",
        "tags": [
          "Agent Tool",
          "travel"
        ],
        "x-alias": "request-pending",
        "x-capabilities": [
          "travel_request_approvals"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-planning-budget": {
      "post": {
        "description": "Optionally includes per-period amounts or totals over a month range.\nA business has one planning budget. Lines are grouped by their values in\ndimension order: each prefix is a group, a skipped dimension shows as\n\"Unknown\", and a line whose values are a group's is that group's \"Other\".\nNodes are addressed by path, such as \"Engineering > Software\". Line owners come\nfrom their selected dimension values; they are not assigned directly to lines.\nEach line's amounts are its own; a group's amounts total the lines under it.\nAmounts are omitted unless requested, to keep large budgets small. Setting either totals\nmonth returns each line's planned, actual, committed, and remaining totals over\nthat range, with an open side extending to the budget's edge. Filter to a\ngroup or line and everything under it, or to nodes with a dimension value, and page\nthrough large budgets; `total_lines` counts every match. Fails if the\nbusiness has no planning budget yet.",
        "operationId": "post_agent_tool_api___get_planning_budget",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetPlanningBudgetRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlanningBudgetView"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "budgets:read"
            ]
          }
        ],
        "summary": "Read the business's planning budget: its lines, dimensions, and owners",
        "tags": [
          "Agent Tool",
          "budgets"
        ],
        "x-alias": "planning-budget",
        "x-capabilities": [
          "planning_budgets"
        ],
        "x-gated-by": "financial_planning_budgeting",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-planning-dimensions": {
      "post": {
        "description": "Returns names and stable UUIDs, including the complete condition expressions.\nThe budget owns these definitions; they are not inferred from line names.\nReturns an empty catalog when the business has no planning budget yet.\nThis operation does not change data.",
        "operationId": "post_agent_tool_api___get_planning_dimensions",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetPlanningDimensionsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DimensionsResponse"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "budgets:read"
            ]
          }
        ],
        "summary": "Read the planning budget's active dimensions, values, rules, and owners",
        "tags": [
          "Agent Tool",
          "budgets"
        ],
        "x-alias": "dimensions",
        "x-capabilities": [
          "planning_budgets"
        ],
        "x-gated-by": "financial_planning_budgeting",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-plugin-marketplace-status": {
      "post": {
        "description": "Without plugin_id, returns each plugin with its plugin_id, revision, and the name\nand status of its latest version. With plugin_id, returns the plugin, its versions,\nand the full content of its latest version, including the reviewer's decision and\nfeedback once it has been reviewed. Each version row has its version_id and the\nplugin's current revision, which are what a submit needs. Does not change anything.",
        "operationId": "post_agent_tool_api___get_plugin_marketplace_status",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetPluginMarketplaceStatusRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetPluginMarketplaceStatusResponse"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "plugins:read"
            ]
          }
        ],
        "summary": "List this business's plugins in the Ramp plugin marketplace, or get one plugin with its review status",
        "tags": [
          "Agent Tool",
          "plugins"
        ],
        "x-alias": "status",
        "x-capabilities": [
          "plugin_marketplace_publishing"
        ],
        "x-gated-by": "developer_console_plugins_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-policy-details": {
      "get": {
        "description": "Accepts either the policy UUID or the backing product workflow UUID returned by list-policies.",
        "operationId": "get_agent_tool_api___get_policy_details",
        "parameters": [
          {
            "in": "query",
            "name": "kind",
            "required": true,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/OmniPolicyWorkflowKindRequestBody"
                }
              ],
              "description": "Which policy family to query. Must match the kind returned by ListPolicies for this UUID."
            }
          },
          {
            "in": "query",
            "name": "policy_uuid",
            "required": true,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/UUIDStrRequestBody"
                }
              ],
              "description": "UUID of the policy to fetch. Accepts either the policy's own UUID or the UUID of its backing ProductWorkflow (the workflow builder URL path param)."
            }
          },
          {
            "in": "query",
            "name": "rationale",
            "required": true,
            "schema": {
              "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
              "maxLength": 1024,
              "minLength": 1,
              "title": "Rationale",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyDetailsSuccess"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "workflows:read"
            ]
          }
        ],
        "summary": "Fetch detailed metadata for one workflow-backed policy by UUID, including display name, spend type, default status, and separation-of-duties configuration, plus whether policy changes require approval",
        "tags": [
          "Agent Tool",
          "policy"
        ],
        "x-alias": "get",
        "x-capabilities": [
          "expense_policy_help"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-policy-workflow-body": {
      "get": {
        "description": "Accepts the policy UUID or the backing product workflow UUID from list-policies. Use this for workflow routing and thresholds, not for written policy document guidance.",
        "operationId": "get_agent_tool_api___get_policy_workflow_body",
        "parameters": [
          {
            "in": "query",
            "name": "kind",
            "required": true,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/OmniPolicyWorkflowKindRequestBody"
                }
              ],
              "description": "Which policy family to query."
            }
          },
          {
            "in": "query",
            "name": "policy_uuid",
            "required": true,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/UUIDStrRequestBody"
                }
              ],
              "description": "UUID of the policy whose workflow body to fetch. Accepts either the policy's own UUID or the backing ProductWorkflow UUID."
            }
          },
          {
            "in": "query",
            "name": "rationale",
            "required": true,
            "schema": {
              "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
              "maxLength": 1024,
              "minLength": 1,
              "title": "Rationale",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "workflow_uuid",
            "required": false,
            "schema": {
              "default": null,
              "description": "Optional Workflow UUID belonging to this policy. Selects an exact published or historical version or, in editor sessions, this policy's unpublished draft (the draft_workflow_uuid from draft tools). Omit for the current body, which may include unpublished changes in editor sessions.",
              "format": "uuid",
              "nullable": true,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetPolicyWorkflowBodyPublicSuccess"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "workflows:read"
            ]
          }
        ],
        "summary": "Fetch the published (or a specific historical) workflow body for a workflow-backed policy, including compact branch structure, condition operands, and a workflow outline of the visible builder steps",
        "tags": [
          "Agent Tool",
          "policy"
        ],
        "x-alias": "body",
        "x-capabilities": [
          "expense_policy_help"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-purchase-order-details": {
      "post": {
        "description": "Use this with the exact purchase order UUID from a tool result or page\ncontext. A unified_request_id or spend_request_uuid of a purchase-order\nrequest also resolves to its purchase order. Never pass a purchase order\nnumber, a bill or other entity's UUID, a placeholder, or a guessed value.",
        "operationId": "post_agent_tool_api___get_purchase_order_details",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetPurchaseOrderDetailsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseOrderDetails"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "purchase_orders:read"
            ]
          }
        ],
        "summary": "Get comprehensive details about a specific purchase order",
        "tags": [
          "Agent Tool",
          "purchase_orders"
        ],
        "x-alias": "get",
        "x-capabilities": [
          "cross_product_approvals",
          "wbx_spend_request_intake"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-purchase-order-line-item-tracking-categories": {
      "post": {
        "description": "Returns the accounting fields (e.g., GL Account, Class, Item) that can be\nset on individual line items of a purchase order. These are filtered to\nonly the categories allowed for line-item-level coding based on the\nbusiness's accounting provider configuration.\n\nTo get the selectable options for a specific category, pass its\n`tracking_category_uuid` to GetTrackingCategoryOptions.",
        "operationId": "post_agent_tool_api___get_purchase_order_line_item_tracking_categories",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetPurchaseOrderLineItemTrackingCategoriesRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetPurchaseOrderLineItemTrackingCategoriesResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "purchase_orders:read"
            ]
          }
        ],
        "summary": "Retrieve the tracking categories available for purchase order line items",
        "tags": [
          "Agent Tool",
          "purchase_orders"
        ],
        "x-alias": "categories",
        "x-capabilities": [
          "spend_program_lookups",
          "wbx_spend_request_intake"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-ramp-business-account-balance": {
      "get": {
        "description": "Returns the available balance, statement balance, and other details for all\nRamp Checking Accounts associated with the user's business. This includes\nyield/earnings information and account status.\n\nThis tool is intentionally limited to the stable user-facing fields for\nRamp Checking Accounts. Do not infer deprecated pending balances or current\nmonth accrued yield values from other treasury payloads when responding to\nthe user.",
        "operationId": "get_agent_tool_api___get_ramp_business_account_balance",
        "parameters": [
          {
            "in": "query",
            "name": "rationale",
            "required": true,
            "schema": {
              "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
              "maxLength": 1024,
              "minLength": 1,
              "title": "Rationale",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetRampBusinessAccountBalanceOutput"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "treasury:read"
            ]
          }
        ],
        "summary": "Get the balance of Ramp Checking Accounts for the business",
        "tags": [
          "Agent Tool",
          "treasury"
        ],
        "x-alias": "summary",
        "x-capabilities": [
          "treasury_balance"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-receipt-details": {
      "post": {
        "description": "Existing receipt and expense permissions apply within the authenticated business. Coworker receipts require receipt keyword search to be enabled; otherwise only own receipts are returned. Raw OCR text is not included.",
        "operationId": "post_agent_tool_api___get_receipt_details",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetReceiptDetailsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetReceiptDetailsPublicResultJsonMode"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "receipts:read"
            ]
          }
        ],
        "summary": "Get structured extraction data for one or more receipts the caller can read by receipt UUID: merchant, date, amounts, taxes, fees, discounts, line items, and travel, delivery, or hotel details when extracted",
        "tags": [
          "Agent Tool",
          "receipts"
        ],
        "x-alias": "get",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-recurring-bill": {
      "post": {
        "description": "Bills in Ramp have two stages: draft bills (created/uploaded but not yet\nsubmitted; use the draft-bill tools) and bills (submitted; they move through\napproval, then scheduling, then payment). A draft keeps the same ID after\nsubmission, but draft-only tools stop working on it once submitted.",
        "operationId": "post_agent_tool_api___get_recurring_bill",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetRecurringBillRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecurringBillDetails"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "bills:read"
            ]
          }
        ],
        "summary": "Retrieve details of a recurring bill template including vendor, amount, recurrence schedule, and next payment date",
        "tags": [
          "Agent Tool",
          "bills"
        ],
        "x-alias": "recurring",
        "x-capabilities": [
          "recurring_bill_details"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-reimbursement-receipts": {
      "post": {
        "operationId": "post_agent_tool_api___get_reimbursement_receipts",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetReimbursementReceiptsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetReimbursementReceiptsSuccess"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "reimbursements:read"
            ]
          }
        ],
        "summary": "Retrieve receipts attached to a reimbursement",
        "tags": [
          "Agent Tool",
          "reimbursements"
        ],
        "x-alias": "receipts",
        "x-capabilities": [
          "cross_product_approvals"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-reimbursements": {
      "post": {
        "description": "Search all visible reimbursements or filter by user, text, amount, tags,\ndates, approval status, and policy assessments.\n\nOmitting date filters searches history without a time cutoff. Results are\npaginated; continue with each returned next_page_cursor until it is null\nbefore treating the matching history as complete, preserving scope and filters.",
        "operationId": "post_agent_tool_api___get_reimbursements",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetReimbursementsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetReimbursementsResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "reimbursements:read"
            ]
          }
        ],
        "summary": "List reimbursement history and current statuses, including older paid requests",
        "tags": [
          "Agent Tool",
          "reimbursements"
        ],
        "x-alias": "list",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-reimbursements-for-approval": {
      "post": {
        "description": "Includes comments, policy assessment data, and recommended actions.",
        "operationId": "post_agent_tool_api___get_reimbursements_for_approval",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetReimbursementsForApprovalRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReimbursementsForApproval"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "reimbursements:read"
            ]
          }
        ],
        "summary": "Get employee reimbursements pending approval by the current user",
        "tags": [
          "Agent Tool",
          "reimbursements"
        ],
        "x-alias": "pending",
        "x-capabilities": [
          "reimbursement_completion",
          "reimbursement_approvals"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-remaining-budget-amount": {
      "post": {
        "description": "Pass entity to scope the answer to one budget row, such as a department or category. When the name matches several rows, the result lists candidate rows; call again with row_number set to the chosen row. Financial planning budgets are not included.",
        "operationId": "post_agent_tool_api___list_remaining_budget_amount",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ListRemainingBudgetAmountRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListRemainingBudgetAmountOutput"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "budgets:read"
            ]
          }
        ],
        "summary": "Get the budgeted, actual, committed, and remaining amounts for the acting user's active budget in Ramp Budgets, for either the whole budget (period_scope='full', the default) or only the current period (period_scope='current')",
        "tags": [
          "Agent Tool",
          "budgets"
        ],
        "x-alias": "remaining",
        "x-capabilities": [
          "budgeting"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-requests-to-review": {
      "post": {
        "description": "This is the approval-queue wrapper over SearchUnifiedRequests. Use it when\nthe user is specifically asking what they need to review or approve right\nnow. For broader lookup by vendor, owner, status, or request name, prefer\nSearchUnifiedRequests instead. Only handles lookups, does not take any action.\nDoes not cover card transactions or reimbursements awaiting approval.",
        "operationId": "post_agent_tool_api___get_requests_to_review",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetRequestsToReviewRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnifiedRequestListResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "unified_requests:read"
            ]
          }
        ],
        "summary": "Get requests that require the current user's review and approval",
        "tags": [
          "Agent Tool",
          "requests"
        ],
        "x-alias": "pending",
        "x-capabilities": [
          "cross_product_approvals",
          "wbx_spend_request_intake"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-rewards-summary": {
      "post": {
        "description": "Use this tool when the user asks about their cashback balance, how many points they have,\nor wants to know how much they can redeem. Returns both point values and dollar equivalents.",
        "operationId": "post_agent_tool_api___get_rewards_summary",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetRewardsSummaryRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RewardsSummary"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "cashbacks:read"
            ]
          }
        ],
        "summary": "Get the business's cashback rewards summary including available points, pending points, and redeemable balance",
        "tags": [
          "Agent Tool",
          "rewards"
        ],
        "x-alias": "summary",
        "x-capabilities": [
          "cashback_rewards_reads"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-rfx-detail": {
      "post": {
        "description": "cover sheet, pricing sheet, dates, vendor invitations with contacts, and the\nactions the acting user can currently perform.\n\nUse this to inspect or review a specific RFX before editing, inviting\nvendors, or publishing. The ``available_actions`` block is the publish\npreflight: it reports whether publish (and every other lifecycle action) is\ncurrently allowed and why not, and the ``vendors`` block lists the exact\ncontacts who would be notified on publish. For response contents or grading\nstate, use GetRFXVendorResponses, GetRFXResponseSummary, or\nGetRFXGradingOverview instead.",
        "operationId": "post_agent_tool_api___get_rfx_detail",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetRFXDetailRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetRFXDetailOutput"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "sourcing:read"
            ]
          }
        ],
        "summary": "Get the full configuration of one RFX: questionnaire sections and fields,",
        "tags": [
          "Agent Tool",
          "sourcing"
        ],
        "x-alias": "rfx",
        "x-gated-by": "developer_api_sourcing_agent_tools_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-rfx-grading-overview": {
      "post": {
        "description": "recommendations, per-vendor per-section grading status and aggregate\nscores, and any recorded field grades.\n\nUse this after grading wraps up to compare how vendors scored. The overview\nis only viewable once the RFX is GRADED or CLOSED; before that this tool\nreports it as unavailable. For the raw submitted answers, use\nGetRFXVendorResponses; for response and invitation progress counts, use\nGetRFXResponseSummary.",
        "operationId": "post_agent_tool_api___get_rfx_grading_overview",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetRFXGradingOverviewRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetRFXGradingOverviewOutput"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "sourcing:read"
            ]
          }
        ],
        "summary": "Get grading outcomes for an RFX: AI-generated grading insights and",
        "tags": [
          "Agent Tool",
          "sourcing"
        ],
        "x-alias": "grading",
        "x-gated-by": "developer_api_sourcing_agent_tools_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-rfx-response-summary": {
      "post": {
        "operationId": "post_agent_tool_api___get_rfx_response_summary",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetRFXResponseSummaryRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetRFXResponseSummaryOutput"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "sourcing:read"
            ]
          }
        ],
        "summary": "Summarize vendor response and grading progress for a specific RFX",
        "tags": [
          "Agent Tool",
          "sourcing"
        ],
        "x-alias": "summary",
        "x-gated-by": "developer_api_sourcing_agent_tools_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-rfx-vendor-responses": {
      "post": {
        "operationId": "post_agent_tool_api___get_rfx_vendor_responses",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetRFXVendorResponsesRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RFXVendorResponsesOutput"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "sourcing:read"
            ]
          }
        ],
        "summary": "Return all submitted vendor responses for an RFX",
        "tags": [
          "Agent Tool",
          "sourcing"
        ],
        "x-alias": "responses",
        "x-gated-by": "developer_api_sourcing_agent_tools_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-router-settings": {
      "post": {
        "description": "The layers apply in order: company, then department, then person. The most\nspecific layer wins. In an override, unblocked_models and unblocked_providers\nlist what that person or department may use even when an earlier layer blocks\nit. They do not limit the person to those models. They lift only a block saved\nunder the exact same name.\n\nA block on a name covers every name of that same model, including a managed\nalias that points to it, and the alias itself. A block on the first-party name\nalso covers its Bedrock copies. It does not cover the same model on another\nhost.\n\nThese results do not show which department a person is in.\n\nEach list holds at most 100 entries. When a has_more flag is true, the list is\npartial: tell the user, and ask again with core_user_uuids or department_query.",
        "operationId": "post_agent_tool_api___get_router_settings",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetRouterSettingsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RouterSettings"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "router:read"
            ]
          }
        ],
        "summary": "Get the business's Router model policy, overrides, departments, and budgets",
        "tags": [
          "Agent Tool",
          "router"
        ],
        "x-alias": "settings",
        "x-capabilities": [
          "router_settings"
        ],
        "x-exclude-from-client-delegation": true,
        "x-gated-by": "router_agent_tools_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-simplified-user-detail": {
      "post": {
        "description": "Returns multiple results for users that are part of multiple businesses.\nWhen authenticated via an agent key, also returns the active agent key identity.",
        "operationId": "post_agent_tool_api___get_simplified_user_detail",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetSimplifiedUserDetailRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SimplifiedUserDetailResponse"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "users:read"
            ]
          }
        ],
        "summary": "Get the current user's details",
        "tags": [
          "Agent Tool",
          "users"
        ],
        "x-alias": "me",
        "x-capabilities": [
          "people_directory"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-sourcing-event-context": {
      "post": {
        "operationId": "post_agent_tool_api___get_sourcing_event_context",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetSourcingEventContextRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetSourcingEventContextOutput"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "sourcing:read"
            ]
          }
        ],
        "summary": "Get a compact summary of a sourcing event, its RFXs, and invited vendors",
        "tags": [
          "Agent Tool",
          "sourcing"
        ],
        "x-alias": "event",
        "x-gated-by": "developer_api_sourcing_agent_tools_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-sync-commit-failure-details": {
      "post": {
        "description": "Use this when a customer asks about failed accounting sync rows, including accounting transactions, reimbursements, bills, accounts receivable invoices, credit notes, payments, or refunds.",
        "operationId": "post_agent_tool_api___get_sync_commit_failure_details",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetSyncCommitFailureDetailsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetSyncCommitFailureDetailsResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "accounting:read"
            ]
          }
        ],
        "summary": "Get object-level failure details for an accounting sync commit by UUID",
        "tags": [
          "Agent Tool",
          "accounting"
        ],
        "x-alias": "sync-failures",
        "x-capabilities": [
          "erp_sync_diagnostics"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-tracking-categories": {
      "post": {
        "description": "as departments, classes or business units, locations, projects, customers, and cost\ncenters. On Advisor Console, discovery without a transaction returns authorized\nclients' fields grouped by business and provider connection, including missing\nintegrations. These groups do not establish cross-client field equivalence. If passing\ntransaction_uuid, use an actual TransactionCanonical UUID from context or a prior\nlookup; omit it rather than passing a placeholder or natural-language reference.",
        "operationId": "post_agent_tool_api___get_tracking_categories",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetTrackingCategoriesRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetTrackingCategoriesResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "accounting:read"
            ]
          }
        ],
        "summary": "Retrieve active accounting tracking category metadata for transaction coding, such",
        "tags": [
          "Agent Tool",
          "accounting"
        ],
        "x-alias": "categories",
        "x-capabilities": [
          "policy_and_accounting_status",
          "expense_field_search",
          "reimbursement_completion",
          "matrix_configuration"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-tracking-category-options": {
      "post": {
        "description": "Pass `query_string` to narrow by name, synonym, or provider code. When semantic\nsearch finds nothing, the query falls back to literal name or code matching, so\na multi-word phrase can return no options even when one fits. Keep the query to\none short term; an empty result is not proof that no option fits: retry a shorter\nterm or omit `query_string` to list the options. Do not\ncall this tool when you already have the exact tracking_category_option_uuid from\nuser-provided context, suggested codings, or another tool result. This UUID\nidentifies the option, not the category. If the user message\nincludes `tracking_category_option_uuid=...`, do not call this tool just to\nconfirm the option. If you're coding a specific transaction or reimbursement,\npass its UUID so results respect conditional filtering (subsidiary,\ndepartment, location, etc.); skip it for generic lookups, including\nbill/invoice contexts. Setting `include_hidden=true` disables semantic search,\nso `query_string` then matches literal option names or codes only. Categories\ncan have millions of options \u2014 paginate via\n`next_page_cursor` when needed, keeping all other inputs unchanged between pages.",
        "operationId": "post_agent_tool_api___get_tracking_category_options",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetTrackingCategoryOptionsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetTrackingCategoryOptionsResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "accounting:read"
            ]
          }
        ],
        "summary": "List specific departments, projects, or other options for a tracking category",
        "tags": [
          "Agent Tool",
          "accounting"
        ],
        "x-alias": "category-options",
        "x-capabilities": [
          "policy_and_accounting_status",
          "expense_field_search",
          "reimbursement_completion",
          "matrix_configuration"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-transaction-missing-items": {
      "post": {
        "description": "Lists only what is still required (e.g. receipts only above the submission policy's threshold), not whether a receipt is attached or a field is filled. Requirements that Policy Agent added from the written expense policy are listed separately with Policy Agent's reason.",
        "operationId": "post_agent_tool_api___get_transaction_missing_items",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetTransactionMissingItemsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TransactionMissingItems"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "transactions:read"
            ]
          }
        ],
        "summary": "Check what receipts, memos, attendees, or accounting items are missing from a specific transaction, and where it stands",
        "tags": [
          "Agent Tool",
          "transactions"
        ],
        "x-alias": "missing",
        "x-capabilities": [
          "unavailable_card_receipt",
          "expense_policy_help"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-transaction-suggested-memos": {
      "post": {
        "operationId": "post_agent_tool_api___get_transaction_suggested_memos",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetTransactionSuggestedMemosRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuggestedMemos"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "memos:read"
            ]
          }
        ],
        "summary": "Get AI-suggested memo/note options for a specific transaction",
        "tags": [
          "Agent Tool",
          "transactions"
        ],
        "x-alias": "memo-suggestions",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-transactions": {
      "post": {
        "description": "Returns individual records, not aggregate totals or trends. Declines are excluded by default; state='declined' searches declined attempts, and amount_filter then matches the declined amount. Original merchant amounts and FX conversion are not supported by amount_filter. Missing-items filters and details follow the business's submission policy; request submitted_items to see what is actually attached or coded.",
        "operationId": "post_agent_tool_api___get_user_transactions",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetUserTransactionsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetTransactionsResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "transactions:read"
            ]
          }
        ],
        "summary": "Search individual card transactions by settlement amount, currency, date, or merchant, with workflow details and reconciliation dates",
        "tags": [
          "Agent Tool",
          "transactions"
        ],
        "x-alias": "list",
        "x-capabilities": [
          "receipt_intake",
          "transaction_completion",
          "unavailable_card_receipt",
          "reimbursement_completion",
          "transaction_approvals",
          "transaction_repayment",
          "missing_receipts",
          "spend_summary",
          "dispute_status",
          "decline_help",
          "expense_policy_help"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-traveler-profile": {
      "post": {
        "description": "Includes identity, contact details, travel documents, and loyalty programs.\nDefaults to the acting user. Reading another traveler's profile requires their\nuser UUID and delegate or travel-manager permission; sensitive document fields\nare masked on delegated reads. Does not change saved preferences.",
        "operationId": "post_agent_tool_api___get_traveler_profile",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetTravelerProfileRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetTravelerProfileResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "trips:read"
            ]
          }
        ],
        "summary": "Retrieve a traveler profile and saved free-text flight and hotel preferences",
        "tags": [
          "Agent Tool",
          "travel"
        ],
        "x-alias": "profile",
        "x-capabilities": [
          "travel_car_rebooking",
          "traveler_profile",
          "travel_flight_booking",
          "travel_hotel_booking",
          "airline_check_in",
          "travel_flight_modification",
          "travel_flight_rebooking",
          "travel_hotel_rebooking"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-treasury-balance-history": {
      "get": {
        "description": "Totals cover the acting user's readable checking, self-directed investment,\nand managed investment accounts, not individual accounts or external banks.\nwallet_available_balance is available checking cash. Despite their legacy\nnames, brokerage_available_balance and managed_portfolio_available_balance\nare ledger position totals, including unavailable positions and valuation\nadjustments, not available cash or investment returns.\nCurrency is unknown (null): source totals are not currency-validated or\npartitioned, and the source's default-provider currency is not reliable.\nZero-filled days do not establish account existence or historical coverage.",
        "operationId": "get_agent_tool_api___get_treasury_balance_history",
        "parameters": [
          {
            "in": "query",
            "name": "end_date",
            "required": true,
            "schema": {
              "description": "Inclusive UTC end date; use separate nonoverlapping ranges for longer history",
              "format": "date",
              "title": "End Date",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "rationale",
            "required": true,
            "schema": {
              "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
              "maxLength": 1024,
              "minLength": 1,
              "title": "Rationale",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "start_date",
            "required": true,
            "schema": {
              "description": "Inclusive UTC start date; at most 1,461 days per range",
              "format": "date",
              "title": "Start Date",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetTreasuryBalanceHistoryOutput"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "treasury:read"
            ]
          }
        ],
        "summary": "Get end-of-day UTC balances grouped by Treasury product",
        "tags": [
          "Agent Tool",
          "treasury"
        ],
        "x-alias": "history",
        "x-capabilities": [
          "treasury_balance"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-treasury-document-link": {
      "get": {
        "description": "The link expires after one hour. Records a document-access audit event; does not return or interpret PDF contents.",
        "operationId": "get_agent_tool_api___get_treasury_document_link",
        "parameters": [
          {
            "in": "query",
            "name": "document_type",
            "required": true,
            "schema": {
              "description": "Monthly Ramp Checking Account statements are supported.",
              "enum": [
                "MONTHLY_STATEMENT"
              ],
              "title": "Document Type",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "document_uuid",
            "required": true,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/UUIDStrRequestBody"
                }
              ],
              "description": "UUID of the statement to retrieve."
            }
          },
          {
            "in": "query",
            "name": "rationale",
            "required": true,
            "schema": {
              "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
              "maxLength": 1024,
              "minLength": 1,
              "title": "Rationale",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetTreasuryDocumentLinkOutput"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "treasury:read"
            ]
          }
        ],
        "summary": "Get a PDF download link for a monthly Ramp Checking Account statement by document UUID",
        "tags": [
          "Agent Tool",
          "treasury"
        ],
        "x-alias": "document-link",
        "x-capabilities": [
          "treasury_balance"
        ],
        "x-gated-by": "developer_api_treasury_statements_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-treasury-documents-download-link": {
      "post": {
        "description": "Accepts 1\u201350 selections, ignoring duplicates, with a 50 MiB limit on both the combined statements and ZIP. Creates a private bundle and records document-access audit events. The link expires after one hour; does not return or interpret PDF contents.",
        "operationId": "post_agent_tool_api___get_treasury_documents_download_link",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetTreasuryDocumentsDownloadLinkPublicRequestRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetTreasuryDocumentsDownloadLinkOutputJsonMode"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "treasury:read"
            ]
          }
        ],
        "summary": "Get one ZIP download link for selected monthly Ramp Checking Account statements by document type and UUID",
        "tags": [
          "Agent Tool",
          "treasury"
        ],
        "x-alias": "statement-bundle",
        "x-capabilities": [
          "treasury_balance"
        ],
        "x-gated-by": "developer_api_treasury_statements_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-unified-request-details": {
      "post": {
        "description": "A unified request is Ramp's record of any request for approval to spend:\na purchase or purchase-order request, a funds or card request, or a travel\nspend request. It is not a generic ID lookup: travel booking request IDs\n(booking_request_id), transaction, card, bill, invoice, contract, vendor,\nand approval task IDs will not resolve.\n\nReturns its status, approval chain, comments, activity timeline, custom\nfields, agent-generated reports, and, for a submitted procurement request,\nhow the acting user can change it (change_options). With include_form_details,\nalso returns its form answers and every file in its Documents section, including\nform field uploads, with authorized, short-lived download URLs.\nAccepts a unified_request_id, its\nlinked spend_request_uuid, wbp_request_id, or purchase_order_id, or the\nrequest's display number (for example REQ-123). Purchase-order numbers\n(PO-...) are not accepted. A purchase order issued directly has no request,\nso its purchase_order_id is rejected; read the purchase order itself instead.\nWhen the identifier matches no request visible to the user, returns\nfound=false with a reason and how to continue; unknown and hidden requests\nare reported the same way.",
        "operationId": "post_agent_tool_api___get_unified_request_details",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetUnifiedRequestDetailsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetUnifiedRequestDetailsResponse"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "unified_requests:read"
            ]
          }
        ],
        "summary": "Get one spend request the acting user can view",
        "tags": [
          "Agent Tool",
          "requests"
        ],
        "x-alias": "get",
        "x-capabilities": [
          "cross_product_approvals",
          "wbx_spend_request_intake"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-user-recent-reimbursements": {
      "post": {
        "description": "This date-bounded lookup does not cover lifetime history.\nResults and `total_count` cover only the returned rows.\n\n`up_to_days` always restricts the time frame; `limit` caps the number of results within it.\nSet `limit` to null to return all reimbursements within the time frame.\n`include_rejected` controls whether to include rejected reimbursements in the results. By default, rejected reimbursements are excluded.\n`include_drafts` controls whether to include draft reimbursements in the results. By default, drafts are excluded.\n`use_submitted_date_ordering` controls the ordering of results. By default (False), results are ordered by transaction_date. Set to True to order by submitted_date instead.\n\nBy default, returns up to 10 reimbursements from the last 30 days.\n\nRead each amount from `amount_decimal`, which is already in `currency`'s major unit\nand needs no arithmetic. Ignore `amount_cents`; it is the same amount in minor units,\nkept only for backwards compatibility.",
        "operationId": "post_agent_tool_api___get_user_recent_reimbursements",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetUserRecentReimbursementsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecentReimbursements"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "reimbursements:read"
            ]
          }
        ],
        "summary": "Get the current user's recent reimbursements within a rolling date window",
        "tags": [
          "Agent Tool",
          "reimbursements"
        ],
        "x-alias": "recent",
        "x-capabilities": [
          "reimbursement_completion",
          "expense_policy_help"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-user-trips": {
      "post": {
        "operationId": "post_agent_tool_api___get_user_trips",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetUserTripsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TripListResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "trips:read"
            ]
          }
        ],
        "summary": "Fetch trips for the acting user with optional filters",
        "tags": [
          "Agent Tool",
          "travel"
        ],
        "x-alias": "trip-list",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-vendor-agreement": {
      "post": {
        "description": "Returns contract metadata, terms, line items, contract owners, documents, linked spend requests, and renewal history.",
        "operationId": "post_agent_tool_api___get_vendor_agreement",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetVendorAgreementRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetVendorAgreementPublicResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "vendors:read"
            ]
          }
        ],
        "summary": "Retrieve details for a specific vendor agreement/contract by UUID",
        "tags": [
          "Agent Tool",
          "vendors"
        ],
        "x-alias": "get",
        "x-capabilities": [
          "vendor_tools",
          "price_intelligence"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-vendor-banking-details": {
      "post": {
        "description": "Returns each account's UUID, payment rail, currency, last four characters of the account number or IBAN, nickname, default flag, and verification status. Full account and routing numbers are never returned. The account UUID is the value a bill accepts as its vendor bank account. This is read-only; it cannot add, edit, or select bank accounts.",
        "operationId": "post_agent_tool_api___get_vendor_banking_details",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetVendorBankingDetailsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetVendorBankingDetailsPublicResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "vendors:read"
            ]
          }
        ],
        "summary": "List a vendor's active bank accounts on file",
        "tags": [
          "Agent Tool",
          "vendors"
        ],
        "x-alias": "accounts",
        "x-capabilities": [
          "vendor_banking_details"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-vendor-details": {
      "post": {
        "description": "status, payment configuration, custom fields, default accounting field values\n(default_accounting_fields, including GL account), 1099 status, and optional field\nchange history. Structured fields only; no qualitative relationship context such as why\nthe vendor was chosen, negotiation or renewal history, or internal notes.\nFor who deactivated a vendor and why, request is_active history; a status change\nRamp made automatically carries its recorded reason.\nDraft profiles are included by default and marked is_draft=true: they are staged\nvendor records, not live vendor profiles. Draft status alone does not establish\nmissing permissions, incomplete onboarding, or payment readiness.\nFor a vendor in the business whose full profile the caller cannot read, returns\nonly name, description, website, and active status with access_limited=true.\nmetadata_flags are cached relationship hints and may be incomplete; the bill\nflag is updated asynchronously. A false flag does not prove that bills,\ncontracts, or purchase orders are absent and does not identify the source of\nrecorded spend. Describe missing records only within the scope of the search\nthat returned them.",
        "operationId": "post_agent_tool_api___get_vendor_details",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetVendorDetailsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetVendorDetailsResponseJsonMode"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "vendors:read"
            ]
          }
        ],
        "summary": "Retrieve structured profile details for one vendor UUID: ownership, spend summary,",
        "tags": [
          "Agent Tool",
          "vendors"
        ],
        "x-alias": "profile",
        "x-capabilities": [
          "wbx_spend_request_intake",
          "vendor_tools"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-vendor-document-bulk-status": {
      "get": {
        "description": "Use this after `BulkUploadVendorDocuments` to inspect the batch job status,\nunderstand whether any documents still need manual review, and inspect the\ncurrent document/vendor matching and extracted tax details.",
        "operationId": "get_agent_tool_api___get_vendor_document_bulk_status",
        "parameters": [
          {
            "in": "query",
            "name": "batch_id",
            "required": true,
            "schema": {
              "description": "Bulk upload batch ID returned by the bulk upload tool.",
              "title": "Batch Id",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "is_w_document",
            "required": false,
            "schema": {
              "default": null,
              "description": "Optional filter to return only W-form documents (`true`) or only non-W-form documents (`false`).",
              "nullable": true,
              "title": "Is W Document",
              "type": "boolean"
            }
          },
          {
            "in": "query",
            "name": "rationale",
            "required": true,
            "schema": {
              "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
              "maxLength": 1024,
              "minLength": 1,
              "title": "Rationale",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetVendorDocumentBulkStatusResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "vendors:read"
            ]
          }
        ],
        "summary": "Get bulk vendor document upload progress and current document review state",
        "tags": [
          "Agent Tool",
          "vendors"
        ],
        "x-alias": "bulk-upload-status",
        "x-capabilities": [
          "vendor_document_bulk_status"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/get-vendor-documents": {
      "post": {
        "description": "User-scoped calls also include files on visible submitted or approved requests,\nlinked through each request's vendor. Each file identifies its source and request.\nOther principal scopes search vendor uploads only. Separately stored agreements\nare not searched. No files are copied or changed.\n\nTwo modes:\n- **List mode**: omit `search_query` to list all documents (metadata only: filename, category, URL, dates). Use `document_category` to filter by type. Pass `document_category=null` to get everything.\n- **Content search mode**: provide `search_query` to search vendor-uploaded document text. Request attachments match filenames only and have no page snippets. Use `search_mode=\"bm25\"` for exact keyword matching or `\"hybrid\"` for broader semantic recall on vendor uploads.\n\nIncludes at most the 100 newest matching request attachments; if more match,\nnarrow the vendor, category, filename or upload-date filters.\n\nUse content search when looking for specific clauses, terms, or language inside documents rather than guessing from filenames. Pass only one `document_category` value per call \u2014 do not combine multiple categories in a single string.\nUse this for uploaded vendor files such as contracts, order forms,\nSOC 2 reports, and agreement text, not internal company policy guidance.\nUser-scoped calls exclude W-8 and W-9 forms: users must open those on the\nvendor's page in Ramp for tax permission and sensitive-access verification.",
        "operationId": "post_agent_tool_api___get_vendor_documents",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetVendorDocumentsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetVendorDocumentsResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "vendors:read"
            ]
          }
        ],
        "summary": "Find vendor-uploaded files and accessible attachments on their requests",
        "tags": [
          "Agent Tool",
          "vendors"
        ],
        "x-alias": "documents",
        "x-capabilities": [
          "vendor_tools"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/invite-client-to-review-financing-application": {
      "post": {
        "description": "Run this on the client business, not your firm's own business. The invite goes to the\nperson who will be the client's primary applicant. After accepting, the client reviews\nand completes the application; until then it stays in preparation by your firm. An\napplication has one primary applicant invite: if the client was already invited or has\njoined, no new invite is sent.",
        "operationId": "post_agent_tool_api___invite_client_to_review_financing_application",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InviteClientToReviewFinancingApplicationRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientReviewInviteSent"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "applications:write"
            ]
          }
        ],
        "summary": "Email a client an invite to review the Ramp financing application your accounting firm prepared for it (an assisted application)",
        "tags": [
          "Agent Tool",
          "advisor_console"
        ],
        "x-alias": "invite",
        "x-capabilities": [
          "financing_applications"
        ],
        "x-gated-by": "advisor_console_mcp_assisted_fa",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/invite-vendors-to-rfx": {
      "post": {
        "description": "Each vendor must be an existing payee in Ramp (draft payees are accepted),\nidentified by its payee UUID.\n\nThe default contact for each payee is used automatically. When a payee has\nno contacts and the RFX is still pre-publish (DRAFT or IN_REVIEW), the\nvendor is added as a DRAFT invitation \u2014 the RFX cannot be submitted for\nreview or published until the user resolves the draft by providing a\ncontact on the RFX detail page. Each per-vendor result includes a\n`status` of \"active\" or \"draft\" so the agent can tell the user which\nvendors still need contacts.\n\nExternal agent callers may only add vendors before the RFX is published.\nAdding a vendor after publish sends an invitation immediately and must be\ncompleted in Ramp.",
        "operationId": "post_agent_tool_api___invite_vendors_to_rfx",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InviteVendorsToRFXRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InviteVendorsToRFXOutput"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "sourcing:write"
            ]
          }
        ],
        "summary": "Invite vendors to an existing RFX so they can receive and respond to the questionnaire",
        "tags": [
          "Agent Tool",
          "sourcing"
        ],
        "x-alias": "invite",
        "x-gated-by": "developer_api_sourcing_agent_tools_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/issue-from-spend-program": {
      "post": {
        "description": "Use this tool when an admin wants to issue allocations from a spend program to\ndirectly named users, or to users matched by location, department, user custom\nfield, and dynamic user group targeting.",
        "operationId": "post_agent_tool_api___issue_from_spend_program",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IssueFromSpendProgramRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IssueFromSpendProgramResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "funds:write"
            ]
          }
        ],
        "summary": "Issue spend allocations from an existing spend program",
        "tags": [
          "Agent Tool",
          "funds"
        ],
        "x-alias": "issue-from-program",
        "x-capabilities": [
          "one_off_fund_creation"
        ],
        "x-destructive": true,
        "x-moves-money": true,
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/issue-one-off-funds": {
      "post": {
        "description": "Use this tool when an admin wants to create new funds for one or more users\nwith a specific amount, interval, and optional restrictions, outside of spend\nprograms. This is also how an admin issues a virtual card to someone: set\nvirtual_card_only=True. Physical cards are never ordered by this tool.\n\nThe acting user must have the SPEND_ISSUE_SPEND_BYPASS_APPROVAL permission.",
        "operationId": "post_agent_tool_api___issue_one_off_funds",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IssueOneOffFundsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IssueOneOffFundsResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "funds:write"
            ]
          }
        ],
        "summary": "Issue one-off funds (spend allocations) directly, bypassing approval flows",
        "tags": [
          "Agent Tool",
          "funds"
        ],
        "x-alias": "create",
        "x-capabilities": [
          "one_off_fund_creation"
        ],
        "x-destructive": true,
        "x-moves-money": true,
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/issue-purchase-order": {
      "post": {
        "description": "Use only for spend that is already decided: a signed contract, a purchase\napproved outside Ramp, or a purchase order the user explicitly asks to issue.\nNew purchases that need approval go through a request instead. Issuing makes\nthe purchase order live immediately; depending on the business's settings,\nRamp emails it to the vendor and syncs it to the ERP. Requires the Issue\npurchase orders permission.",
        "operationId": "post_agent_tool_api___issue_purchase_order",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IssuePurchaseOrderRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IssuedPurchaseOrder"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "purchase_orders:write"
            ]
          }
        ],
        "summary": "Issue an approved purchase order directly to a vendor, without a procurement request, program, or approval chain",
        "tags": [
          "Agent Tool",
          "purchase_orders"
        ],
        "x-alias": "issue",
        "x-gated-by": "procurement_direct_po_issuance",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/issue-purchase-order-copy": {
      "post": {
        "description": "Copies the source purchase order's owner, vendor, entity, name, currency,\ndates, lines, accounting fields, custom fields, and purchase order fields,\nbut not its PO number. Any other field supplied here replaces the copied\nvalue; list fields such as line_items replace the copied list. Omitted or null\nfields keep the copied value, so a copied value can't be cleared. The source\npurchase order is not changed. Issuing makes the new purchase order live\nimmediately; depending on the business's settings, Ramp emails it to the\nvendor and syncs it to the ERP. Requires the Issue purchase orders\npermission.",
        "operationId": "post_agent_tool_api___issue_purchase_order_copy",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IssuePurchaseOrderCopyRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IssuedPurchaseOrder"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "purchase_orders:write"
            ]
          }
        ],
        "summary": "Issue a new approved purchase order copied from an existing purchase order",
        "tags": [
          "Agent Tool",
          "purchase_orders"
        ],
        "x-alias": "issue-copy",
        "x-gated-by": "procurement_direct_po_issuance",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/issue-purchase-order-for-bill": {
      "post": {
        "description": "The purchase order copies the bill's vendor, entity, currency, lines, and\naccounting fields, and each line is matched to the bill line it came from.\nThe purchase order is issued only if the match succeeds. Issuing makes the\npurchase order live immediately; depending on the business's settings, Ramp\nemails it to the vendor and syncs it to the ERP. Requires the Issue purchase\norders permission.",
        "operationId": "post_agent_tool_api___issue_purchase_order_for_bill",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IssuePurchaseOrderForBillRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IssuedPurchaseOrder"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "bills:write",
              "purchase_orders:write"
            ]
          }
        ],
        "summary": "Issue an approved purchase order for an existing bill or draft bill that has no purchase order, and match the bill to it",
        "tags": [
          "Agent Tool",
          "purchase_orders"
        ],
        "x-alias": "issue-for-bill",
        "x-gated-by": "procurement_direct_po_issuance",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/limit-increase": {
      "post": {
        "description": "Rejects totals at or below the current active period limit. Recurring funds support one time (resets at the next interval) and recurring increases. One-time funds always use permanent, even when temporary is supplied, without type confirmation. Does not support date-limited increases.",
        "operationId": "post_agent_tool_api___limit_increase",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LimitIncreaseRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LimitIncreaseResponse"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "limits:write"
            ]
          }
        ],
        "summary": "Increase the spending limit on a fund (spend allocation) or card",
        "tags": [
          "Agent Tool",
          "funds"
        ],
        "x-alias": "edit",
        "x-capabilities": [
          "fund_requests",
          "decline_help",
          "cards_and_funds"
        ],
        "x-moves-money": true,
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/list-bills": {
      "post": {
        "description": "Returns bills for the current user's business. When called with no parameters,\nreturns the most recent bills. Supports optional text search across vendor name,\ninvoice number, and payment ID.\n\nBills in Ramp have two stages: draft bills (created/uploaded but not yet\nsubmitted; use the draft-bill tools) and bills (submitted; they move through\napproval, then scheduling, then payment). A draft keeps the same ID after\nsubmission, but draft-only tools stop working on it once submitted.\n\nArchived bills are excluded unless include_archived is true.",
        "operationId": "post_agent_tool_api___list_bills",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ListBillsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillSearchResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "bills:read"
            ]
          }
        ],
        "summary": "List and filter bills with optional search, pagination, and status filters",
        "tags": [
          "Agent Tool",
          "bills"
        ],
        "x-alias": "list",
        "x-capabilities": [
          "bill_list"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/list-budgets": {
      "post": {
        "description": "Returns only the active budget by default; set include_inactive to also return historical budgets. Each budget includes its name, active state, time interval, and Ramp link. Financial planning budgets are not included.",
        "operationId": "post_agent_tool_api___list_budgets",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ListBudgetsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListBudgetsOutput"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "budgets:read"
            ]
          }
        ],
        "summary": "List the business's budgets in Ramp Budgets",
        "tags": [
          "Agent Tool",
          "budgets"
        ],
        "x-alias": "list",
        "x-capabilities": [
          "budgeting",
          "intake_request_budgets"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/list-business-accounts": {
      "get": {
        "description": "Returns account details including balances, currency, yield rate, and status.\nUse this tool when the user asks about their checking accounts, wallet accounts,\nor wants to see an overview of their Ramp Checking Accounts.",
        "operationId": "get_agent_tool_api___list_business_accounts",
        "parameters": [
          {
            "in": "query",
            "name": "rationale",
            "required": true,
            "schema": {
              "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
              "maxLength": 1024,
              "minLength": 1,
              "title": "Rationale",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListBusinessAccountsOutput"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "treasury:read"
            ]
          }
        ],
        "summary": "List all Ramp Checking Accounts (wallet accounts) for the user's business",
        "tags": [
          "Agent Tool",
          "treasury"
        ],
        "x-alias": "accounts",
        "x-capabilities": [
          "ach_originator_whitelist_reads",
          "rba_wire_instructions",
          "cashback_rewards_writes"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/list-business-entities": {
      "post": {
        "description": "Returns each entity's ID, name, primary flag, and registration country.\nUse this to resolve the current business's legal entity by name or to find\na business entity ID. Pass name_filter when resolving entity references in\nrequests and attachments.",
        "operationId": "post_agent_tool_api___list_business_entities",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ListBusinessEntitiesRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListBusinessEntitiesOutput"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "entities:read"
            ]
          }
        ],
        "summary": "List business entities in the current business",
        "tags": [
          "Agent Tool",
          "business"
        ],
        "x-alias": "list",
        "x-capabilities": [
          "accounting_field_conditional_logic",
          "fund_entity_update",
          "bulk_funds_actions",
          "card_statement_balance",
          "cashback_rewards_reads",
          "cashback_rewards_writes",
          "spend_program_lookups",
          "matrix_configuration",
          "wbx_spend_request_intake"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/list-cards": {
      "post": {
        "description": "Results do not establish historical order cancellation.",
        "operationId": "post_agent_tool_api___list_cards",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ListCardsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CardInfoList"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "cards:read"
            ]
          }
        ],
        "summary": "List non-terminated cards for the current user or a visible target cardholder, including activation status, spendability, lock state, and shipping metadata",
        "tags": [
          "Agent Tool",
          "cards"
        ],
        "x-alias": "list",
        "x-capabilities": [
          "check_purchase_eligibility",
          "card_management",
          "cards_and_funds"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/list-my-router-requests": {
      "post": {
        "description": "Shows only your requests in this business, including requests made with your\npersonal keys outside the business. Shows metadata only, never prompt or\nresponse content. Requests that Router rejects before routing, such as an\nunknown model name, are not logged.\n\nWithout event_id, lists your requests: where each went, which model served it,\nwhat it cost, and how long it took. Each row's id is the request's event_id.\nWhen next_cursor is not null, more requests match: ask again with it as cursor,\nwith the page's start_at and end_at, and with the same filters and order.\n\nWith event_id, returns that one request's details: why it failed or was slow,\nhow Router routed it, and what the routing saved. Send no other inputs with\nevent_id. For Switchyard and auto-routing requests, strategy_attribution\nexplains the choice: Switchyard's tier, score and the signals behind it, such\nas recent errors, edits or passing tests; or the auto-router's pick, each\nmodel's probability, and whether it was confident enough to switch.\n\nmodel is the model the caller asked for, or the slug of a coding workload.\nprovider_model is the model that served the request; it differs when Router\nrouted or upgraded the request. upgraded_from_model is set when an upgrade\nreplaced the model. status shows whether the request failed, and error_code\nsays why. routing holds the strategy and the candidate models and providers\nRouter chose between, with the served and baseline candidates.\nstrategy_attribution holds each strategy's receipt with its savings in USD.\n\ncost_usd is what the request cost the business, in USD. On the company's own\nprovider keys it is an estimate at list price. provider_list_cost_usd is the\nserved route's list price. routing_cost_delta_usd is the requested route's list\nprice minus cost_usd; it can be negative and is not the savings Router takes\ncredit for. request_metadata is metadata the caller attached.",
        "operationId": "post_agent_tool_api___list_my_router_requests",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ListMyRouterRequestsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListMyRouterRequestsResponseJsonMode"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "router:read"
            ]
          }
        ],
        "summary": "List your recent Ramp Router requests, or get one request's details",
        "tags": [
          "Agent Tool",
          "router"
        ],
        "x-alias": "requests",
        "x-capabilities": [
          "router_my_requests"
        ],
        "x-exclude-from-client-delegation": true,
        "x-gated-by": "router_agent_tools_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/list-planning-budget-spend": {
      "post": {
        "description": "Filter to a line, a group and every line under it, or to unassigned spend: spend\nin the budget's scope that no line matched. Reflects the last recalculation, so\nvery recent spend may be missing. Items do not include tracking category\nselections. Fails if the business has no planning budget yet.",
        "operationId": "post_agent_tool_api___list_planning_budget_spend",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ListPlanningBudgetSpendRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlanningSpendPage"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "budgets:read"
            ]
          }
        ],
        "summary": "List the spend items behind the planning budget's actual and committed amounts",
        "tags": [
          "Agent Tool",
          "budgets"
        ],
        "x-alias": "planning-spend",
        "x-capabilities": [
          "planning_budgets"
        ],
        "x-gated-by": "financial_planning_budgeting",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/list-policies": {
      "get": {
        "description": "Returns policy metadata only, not written policy document text. Call first when the target policy UUID isn't known, then use get-policy-details or get-policy-workflow-body.",
        "operationId": "get_agent_tool_api___list_policies",
        "parameters": [
          {
            "in": "query",
            "name": "kinds",
            "required": false,
            "schema": {
              "description": "Optional filter: which policy families to include. Empty list = all.",
              "items": {
                "$ref": "#/components/schemas/OmniPolicyWorkflowKindRequestBody"
              },
              "title": "Kinds",
              "type": "array"
            }
          },
          {
            "in": "query",
            "name": "rationale",
            "required": true,
            "schema": {
              "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
              "maxLength": 1024,
              "minLength": 1,
              "title": "Rationale",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListPoliciesSuccess"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "workflows:read"
            ]
          }
        ],
        "summary": "List workflow-backed submission, approval, and spend-request policies for the business, with each policy's UUID, kind, spend type, default status, and workflow availability",
        "tags": [
          "Agent Tool",
          "policy"
        ],
        "x-alias": "list",
        "x-capabilities": [
          "expense_policy_help",
          "submission_policy_drafting"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/list-router-api-keys": {
      "post": {
        "description": "These are the keys people use to call Router. Does not list keys issued by\nOpenAI or Anthropic.\n\nRouter admins see every key, including service-account keys; other users see\nthe keys they own. Each key has its lock reasons and spend in the last 30 days.\nTerminated keys are left out.",
        "operationId": "post_agent_tool_api___list_router_api_keys",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ListRouterApiKeysRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RouterApiKeyList"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "router:read"
            ]
          }
        ],
        "summary": "List Ramp Router API keys with their names, owners, status, and spend limits",
        "tags": [
          "Agent Tool",
          "router"
        ],
        "x-alias": "api-keys",
        "x-capabilities": [
          "router_api_keys"
        ],
        "x-exclude-from-client-delegation": true,
        "x-gated-by": "router_agent_tools_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/list-router-members": {
      "post": {
        "description": "List the people on the business's Router, by name, with their Ramp user\nUUID, email, Router role, and status.\n\nWhen has_more is true, the list is partial: tell the user, and narrow with q or\nrole.",
        "operationId": "post_agent_tool_api___list_router_members",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ListRouterMembersRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RouterMemberPage"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "router:read"
            ]
          }
        ],
        "summary": "List the people on the business's Router, with their role and status",
        "tags": [
          "Agent Tool",
          "router"
        ],
        "x-alias": "members",
        "x-capabilities": [
          "router_settings"
        ],
        "x-exclude-from-client-delegation": true,
        "x-gated-by": "router_agent_tools_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/list-router-workloads": {
      "post": {
        "description": "Each coding model (a Router workload) has a slug, which is the name to pick,\nand one strategy that decides which model serves each request:\n- switchyard: a capable model for hard requests and an efficient model for\n  easy ones;\n- classifier: Router picks from 2 to 6 models by each model's description;\n- model_list: models tried in order, the first that can serve wins;\n- benchmark: Router picks by weighted benchmark scores.\n\nEach coding model also has Flex (cost_efficient_routing_enabled), the\nprovider preference, requests_last_7_days, and \u2014 only when Router reports\nsubagent routing as available for the user \u2014 subagent_routing_mode and\nsubagent_routing_models (how Router routes a coding agent's subagent\nrequests and optional custom models per subagent class). When those fields\nare omitted, subagent routing is not available for the user. A null\nrequests_last_7_days means the count is not known, so treat the coding model\nas possibly in use. default_settings holds the same settings for requests\nthat pick a regular model instead of a slug; when they are not set, settings\nis null and note says what applies. Shows only your own coding models, not\ncompany ones.",
        "operationId": "post_agent_tool_api___list_router_workloads",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ListRouterWorkloadsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RouterWorkloadList"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "router:read"
            ]
          }
        ],
        "summary": "List your Router coding models, the names you pick with /model in Claude Code or Codex",
        "tags": [
          "Agent Tool",
          "router"
        ],
        "x-alias": "coding-models",
        "x-capabilities": [
          "router_coding_workloads"
        ],
        "x-exclude-from-client-delegation": true,
        "x-gated-by": "router_agent_tools_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/list-sourcing-events": {
      "post": {
        "description": "Use this first when the user refers to an existing sourcing event but you do not\nyet know which one they mean. The output is intentionally compact so the model\ncan match event names, owners, and current RFX details itself. Events in every\nlifecycle status are available across pages, including CLOSED events, so the\nagent can still find an event the user already finished running.",
        "operationId": "post_agent_tool_api___list_sourcing_events",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ListSourcingEventsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListSourcingEventsOutput"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "sourcing:read"
            ]
          }
        ],
        "summary": "List sourcing events visible to the acting user",
        "tags": [
          "Agent Tool",
          "sourcing"
        ],
        "x-alias": "list",
        "x-gated-by": "developer_api_sourcing_agent_tools_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/list-traveler-loyalty-programs": {
      "post": {
        "description": "Use this directly for loyalty-only list/show/check requests; do not call GetTravelerProfile first.",
        "operationId": "post_agent_tool_api___list_traveler_loyalty_programs",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ListTravelerLoyaltyProgramsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListTravelerLoyaltyProgramsResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "trips:read"
            ]
          }
        ],
        "summary": "List saved loyalty programs from the user's traveler profile",
        "tags": [
          "Agent Tool",
          "travel"
        ],
        "x-alias": "loyalty-programs",
        "x-capabilities": [
          "travel_car_rebooking",
          "traveler_profile",
          "travel_flight_rebooking",
          "travel_hotel_rebooking"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/list-treasury-accounts": {
      "get": {
        "operationId": "get_agent_tool_api___list_treasury_accounts",
        "parameters": [
          {
            "in": "query",
            "name": "rationale",
            "required": true,
            "schema": {
              "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
              "maxLength": 1024,
              "minLength": 1,
              "title": "Rationale",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListTreasuryAccountsOutput"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "treasury:read"
            ]
          }
        ],
        "summary": "List all Treasury accounts (Ramp Checking Accounts, Investment Accounts, Managed Portfolios)",
        "tags": [
          "Agent Tool",
          "treasury"
        ],
        "x-alias": "list",
        "x-capabilities": [
          "treasury_balance"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/list-treasury-documents": {
      "get": {
        "description": "Does not return PDF contents.",
        "operationId": "get_agent_tool_api___list_treasury_documents",
        "parameters": [
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "default": null,
              "description": "The previous page's next_cursor. Keep the same document type and date filters.",
              "nullable": true,
              "title": "Cursor",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "document_type",
            "required": true,
            "schema": {
              "description": "Monthly Ramp Checking Account statements are supported.",
              "enum": [
                "MONTHLY_STATEMENT"
              ],
              "title": "Document Type",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "end_date",
            "required": false,
            "schema": {
              "default": null,
              "description": "Include statements whose period starts on or before this date.",
              "format": "date",
              "nullable": true,
              "title": "End Date",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "rationale",
            "required": true,
            "schema": {
              "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
              "maxLength": 1024,
              "minLength": 1,
              "title": "Rationale",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "start_date",
            "required": false,
            "schema": {
              "default": null,
              "description": "Include statements whose period ends on or after this date.",
              "format": "date",
              "nullable": true,
              "title": "Start Date",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListTreasuryDocumentsOutputJsonMode"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "treasury:read"
            ]
          }
        ],
        "summary": "List available monthly Ramp Checking Account statements, including document UUIDs, account names, and statement periods, filtered by overlapping date range: start_date includes statements ending on or after that date; end_date includes statements starting on or before that date; returns up to 50 results per page; pass next_cursor as cursor with the same filters to continue",
        "tags": [
          "Agent Tool",
          "treasury"
        ],
        "x-alias": "documents",
        "x-capabilities": [
          "treasury_balance"
        ],
        "x-gated-by": "developer_api_treasury_statements_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/list-unmatched-receipts": {
      "post": {
        "operationId": "post_agent_tool_api___list_unmatched_receipts",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ListUnmatchedReceiptsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListUnmatchedReceiptsResultJsonMode"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "receipts:read"
            ]
          }
        ],
        "summary": "List the user's unmatched receipts (emailed, uploaded, etc.) with receipt UUIDs",
        "tags": [
          "Agent Tool",
          "receipts"
        ],
        "x-alias": "list",
        "x-capabilities": [
          "reimbursement_completion"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/list-users": {
      "post": {
        "description": "Returns all users in the organization matching the given filters. Supports searching by\nname (partial match, case-insensitive), filtering by department or location, and pagination.\nResults include active and inactive users \u2014 check the is_inactive field to distinguish.\nThe role field is the primary role only: it does not include add-on roles such as\nAccounts Payable or evaluated bill, payment or card permissions. An Employee\nresult is not evidence that AP access is missing or that credentials are denied.\nDepartment and location UUID filters narrow the results.",
        "operationId": "post_agent_tool_api___get_all_reduced_users",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetAllReducedUsersRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAllReducedUsersResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "users:read"
            ]
          }
        ],
        "summary": "List and search users across the entire business",
        "tags": [
          "Agent Tool",
          "users"
        ],
        "x-alias": "list",
        "x-capabilities": [
          "matrix_configuration",
          "people_directory",
          "travel_hotel_payment_escalation"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/list-vendor-agreements": {
      "post": {
        "description": "Returns agreement details including dates, values, renewal status, line items, and days remaining. All filters are optional \u2014 omit all to list all agreements, or combine filters to narrow results.",
        "operationId": "post_agent_tool_api___list_vendor_agreements",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ListVendorAgreementsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListVendorAgreementsResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "vendors:read"
            ]
          }
        ],
        "summary": "List and filter vendor agreements/contracts across the business",
        "tags": [
          "Agent Tool",
          "vendors"
        ],
        "x-alias": "list",
        "x-capabilities": [
          "wbx_spend_request_intake",
          "vendor_tools",
          "price_intelligence"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/list-vendor-contacts-by-payee": {
      "post": {
        "description": "Returns contact details including UUID, name, email, phone, and default status.",
        "operationId": "post_agent_tool_api___list_vendor_contacts_by_payee",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ListVendorContactsByPayeeRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListVendorContactsByPayeeResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "vendors:read"
            ]
          }
        ],
        "summary": "List contacts for a specific vendor by vendor UUID",
        "tags": [
          "Agent Tool",
          "vendors"
        ],
        "x-alias": "contacts",
        "x-capabilities": [
          "vendor_tools"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/list-wallet-transfers": {
      "get": {
        "description": "Returns a list of transfers including deposits, withdrawals, and other\ntransactions with details like amount, status, and dates.",
        "operationId": "get_agent_tool_api___list_wallet_transfers",
        "parameters": [
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "default": null,
              "description": "Cursor returned by the previous page's next_cursor. Preserve the same wallet account, date filters, and page size when continuing. Omit the cursor when changing accounts.",
              "format": "uuid",
              "nullable": true,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "from_date",
            "required": false,
            "schema": {
              "default": null,
              "description": "Filter transfers from this date (inclusive)",
              "format": "date",
              "nullable": true,
              "title": "From Date",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "page_size",
            "required": false,
            "schema": {
              "default": 20,
              "description": "Number of transfers to return per page (max 100)",
              "maximum": 100,
              "minimum": 1,
              "title": "Page Size",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "rationale",
            "required": true,
            "schema": {
              "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
              "maxLength": 1024,
              "minLength": 1,
              "title": "Rationale",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "to_date",
            "required": false,
            "schema": {
              "default": null,
              "description": "Filter transfers up to this date (inclusive)",
              "format": "date",
              "nullable": true,
              "title": "To Date",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "wallet_account_uuid",
            "required": false,
            "schema": {
              "default": null,
              "description": "Filter transfers to this Ramp wallet account UUID. Omit to list transfers across accessible wallet accounts.",
              "format": "uuid",
              "nullable": true,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListWalletTransfersOutput"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "treasury:read"
            ]
          }
        ],
        "summary": "List transfers for the user's business Ramp wallet accounts",
        "tags": [
          "Agent Tool",
          "treasury"
        ],
        "x-alias": "transfers",
        "x-capabilities": [
          "treasury_banking_transfer_reads"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/lock-or-unlock-card": {
      "post": {
        "description": "Locking prevents all transactions on it until unlocked.",
        "operationId": "post_agent_tool_api___lock_or_unlock_card",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LockOrUnlockCardRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CardLockResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "cards:write"
            ]
          }
        ],
        "summary": "Lock or unlock a card the acting user is authorized to manage",
        "tags": [
          "Agent Tool",
          "cards"
        ],
        "x-alias": "lock",
        "x-capabilities": [
          "card_management",
          "cards_and_funds"
        ],
        "x-moves-money": true,
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/lock-or-unlock-router-api-key": {
      "post": {
        "description": "Admins can lock or unlock any Router key in the business; other users only\ntheir own keys. Router can keep a key blocked for other reasons, such as a\nspend limit; the result lists them.",
        "operationId": "post_agent_tool_api___lock_or_unlock_router_api_key",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LockOrUnlockRouterApiKeyRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RouterApiKeyActionResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "router:write"
            ]
          }
        ],
        "summary": "Lock a Router API key so it stops serving requests, or unlock it",
        "tags": [
          "Agent Tool",
          "router"
        ],
        "x-alias": "lock",
        "x-capabilities": [
          "router_api_key_lock"
        ],
        "x-exclude-from-client-delegation": true,
        "x-gated-by": "router_agent_tools_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/lock-or-unlock-spend-allocation": {
      "post": {
        "operationId": "post_agent_tool_api___lock_or_unlock_spend_allocation",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LockOrUnlockSpendAllocationRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LockOrUnlockSpendAllocationResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "limits:write"
            ]
          }
        ],
        "summary": "Lock or unlock a fund (spend allocation) at the fund level, affecting all members",
        "tags": [
          "Agent Tool",
          "funds"
        ],
        "x-alias": "lock",
        "x-capabilities": [
          "cards_and_funds"
        ],
        "x-moves-money": true,
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/lock-or-unlock-spend-allocation-member": {
      "post": {
        "operationId": "post_agent_tool_api___lock_or_unlock_spend_allocation_member",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LockOrUnlockSpendAllocationMemberRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LockOrUnlockSpendAllocationMemberResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "limits:write"
            ]
          }
        ],
        "summary": "Lock or unlock a specific member's access to a fund (spend allocation)",
        "tags": [
          "Agent Tool",
          "funds"
        ],
        "x-capabilities": [
          "cards_and_funds"
        ],
        "x-moves-money": true,
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/manage-rfx-collaborators": {
      "post": {
        "description": "Collaborators can edit the RFX form and vendor list while it is in DRAFT and\ngrade vendor responses once it is PUBLISHED. Identify each collaborator by\ntheir user UUID \u2014 use `LookupUser` or `GetOrgChart` to resolve a person's\nname to their UUID first.\n\nBoth `add_user_uuids` and `remove_user_uuids` are optional; supply either or\nboth. Adding a user who is already a collaborator is a no-op. To apply the\nsame collaborators across several RFXs (for example multiple RFIs in one\nsourcing event), call this tool once per RFX with the same user UUIDs.",
        "operationId": "post_agent_tool_api___manage_rfx_collaborators",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ManageRFXCollaboratorsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ManageRFXCollaboratorsOutput"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "sourcing:write"
            ]
          }
        ],
        "summary": "Add and/or remove collaborators on an existing RFX (RFI, RFP, or RFQ)",
        "tags": [
          "Agent Tool",
          "sourcing"
        ],
        "x-alias": "collaborators",
        "x-gated-by": "developer_api_sourcing_agent_tools_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/mark-rfx-graded": {
      "post": {
        "description": "Requires at least one submitted vendor response. Moves the RFX from\nPUBLISHED to GRADED so the sourcing event can be awarded.",
        "operationId": "post_agent_tool_api___mark_rfx_graded",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MarkRFXGradedRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarkRFXGradedOutput"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "sourcing:write"
            ]
          }
        ],
        "summary": "Mark a PUBLISHED RFX as graded, which unlocks awarding",
        "tags": [
          "Agent Tool",
          "sourcing"
        ],
        "x-alias": "mark-graded",
        "x-gated-by": "developer_api_sourcing_agent_tools_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/mark-transaction-missing-receipt": {
      "post": {
        "description": "Should be called whenever the user says \"OOPS\" or if the user says something along the lines of \"I did not receive a receipt ...\". If the user already flagged the transaction as having no receipt, then you may need to call the ProvideNoReceiptReason tool.",
        "operationId": "post_agent_tool_api___mark_transaction_missing_receipt",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MarkTransactionMissingReceiptRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarkTransactionMissingReceiptResponse"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "receipts:write"
            ]
          }
        ],
        "summary": "Flag a transaction as having no receipt",
        "tags": [
          "Agent Tool",
          "transactions"
        ],
        "x-alias": "flag-missing",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/merchant-categories": {
      "post": {
        "description": "Each category expands to its configured MCC allowlist.",
        "operationId": "post_agent_tool_api___list_sk_categories",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ListSkCategoriesRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListSkCategoriesResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "merchants:read"
            ]
          }
        ],
        "summary": "List Ramp merchant categories and IDs for Agent Wallet and spend controls",
        "tags": [
          "Agent Tool",
          "merchant"
        ],
        "x-alias": "categories",
        "x-capabilities": [
          "accounting_mapping_rules",
          "spend_controls_orchestrator",
          "spend_program_lookups"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/pay-with-x402": {
      "post": {
        "description": "Fill the inputs from the merchant's 402 payment challenge. Returns a ready-to-send\npayment header to attach when retrying the original request.",
        "operationId": "post_agent_tool_api___pay_with_x402",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PayWithX402RequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/X402PaymentSigned"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "cards:read_agentic"
            ]
          }
        ],
        "summary": "Pay an x402 payment request from your business's stablecoin balance",
        "tags": [
          "Agent Tool",
          "x402"
        ],
        "x-alias": "pay",
        "x-capabilities": [
          "x402_payments"
        ],
        "x-destructive": true,
        "x-gated-by": "developer_api_x402_enabled",
        "x-moves-money": true,
        "x-open-world": true,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/post-comment": {
      "post": {
        "description": "Supports procurement/spend requests, transactions, bills, and reimbursements.\nPosts as the acting user, subject to their access to the object, and notifies\nmentioned users. Each successful call creates a new comment.\n\nIf there is any ambiguity as to whether the user's message is meant to be\nposted to the thread, ask them for confirmation first: 'Do you want me to post that\nas a comment reply on your [XYZ] transaction/reimbursement/bill/etc?'.\n\nHow can you determine if the user's message is meant to be a reply to a comment?\n  - If the only other messages in the conversation history are notifications about comments or mentions in Ramp, that is a very strong signal that the user's most recent message is meant to be a reply to the comment thread. In this case, you may use this tool immediately to post the comment without confirmation.\n  - If a recent assistant message is a notification about a comment or mention, that is a strong signal that the user's most recent message is meant to be a reply to that comment. Even if their reply seems irrelevant or unrelated to Ramp, you may ask \"Would you like me to post that as a comment on your...?\" - prefer asking the user instead of refusing to serve the request at all.",
        "operationId": "post_agent_tool_api___post_comment",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostCommentRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommentPosted"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "comments:write"
            ]
          }
        ],
        "summary": "Post a comment to a Ramp object's activity timeline or comment thread",
        "tags": [
          "Agent Tool",
          "communication"
        ],
        "x-alias": "comment",
        "x-capabilities": [
          "post_comment",
          "wbx_spend_request_intake"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/procurement-draft": {
      "get": {
        "operationId": "get_agent_tool_api___get_procurement_draft",
        "parameters": [
          {
            "in": "query",
            "name": "rationale",
            "required": true,
            "schema": {
              "description": "Briefly explain why you are calling this tool: what goal or workflow it serves and what you intend to do with the result.",
              "maxLength": 1024,
              "minLength": 1,
              "title": "Rationale",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "spend_request_uuid",
            "required": true,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/UUIDStrRequestBody"
                }
              ],
              "description": "Draft spend request UUID returned by draft_procurement_request."
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProcurementDraftStateJsonMode"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "spend_requests:write"
            ]
          }
        ],
        "summary": "Refresh and canonically revalidate a procurement draft's visible form state",
        "tags": [
          "Agent Tool",
          "procurement_requests"
        ],
        "x-alias": "get",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      },
      "post": {
        "description": "A request that is already submitted, approved, or rejected cannot be edited\nin place through spend_request_uuid.",
        "operationId": "post_agent_tool_api___draft_procurement_request",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DraftProcurementRequestRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProcurementDraftStateJsonMode"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "spend_requests:write"
            ]
          }
        ],
        "summary": "Create or update a procurement draft that has not been submitted yet, and return the current visible form state",
        "tags": [
          "Agent Tool",
          "procurement_requests"
        ],
        "x-alias": "draft",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/procurement-spend-intents": {
      "post": {
        "operationId": "post_agent_tool_api___list_procurement_spend_intents",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ListProcurementSpendIntentsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListProcurementSpendIntentsResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "spend_requests:read"
            ]
          }
        ],
        "summary": "List published procurement spend programs the agent can draft against",
        "tags": [
          "Agent Tool",
          "procurement_requests"
        ],
        "x-alias": "spend-intents",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/procurement-submit": {
      "post": {
        "operationId": "post_agent_tool_api___submit_procurement_request",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubmitProcurementRequestRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProcurementSubmittedRequest"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "spend_requests:write"
            ]
          }
        ],
        "summary": "Submit a procurement draft after explicit user confirmation",
        "tags": [
          "Agent Tool",
          "procurement_requests"
        ],
        "x-alias": "submit",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/procurement-upload-file-content": {
      "post": {
        "description": "The file is saved to the field right away; do not also send it as a draft\nanswer. Read the draft again to see what is still missing.",
        "operationId": "post_agent_tool_api___upload_procurement_file_content",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UploadProcurementFileContentRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProcurementAttachedFileResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "spend_requests:write"
            ]
          }
        ],
        "summary": "Save base64-encoded file content to a file field on your procurement draft",
        "tags": [
          "Agent Tool",
          "procurement_requests"
        ],
        "x-alias": "upload-file-content",
        "x-mcp-visibility": [
          "app"
        ],
        "x-open-world": false,
        "x-platforms": [
          "mcp"
        ],
        "x-read-only": false,
        "x-unavailable-instructions": "Ask the user to attach the file on the request in the Ramp web app."
      }
    },
    "/developer/v1/agent-tools/provide-no-receipt-reason": {
      "post": {
        "operationId": "post_agent_tool_api___provide_no_receipt_reason",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProvideNoReceiptReasonRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProvideNoReceiptReasonResponse"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "receipts:write"
            ]
          }
        ],
        "summary": "Submit a reason explaining why a transaction has no receipt",
        "tags": [
          "Agent Tool",
          "transactions"
        ],
        "x-alias": "explain-missing",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/provision-x402-wallet": {
      "post": {
        "description": "Returns the same sign-ready Solana wallet on repeated calls. Do not call this\ntool until an owner or admin confirms that the wallet should be provisioned.",
        "operationId": "post_agent_tool_api___provision_x402_wallet",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProvisionX402WalletRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/X402WalletReady"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "x402_provisioning:write"
            ]
          }
        ],
        "summary": "Provision your business's x402 wallet after the user explicitly confirms",
        "tags": [
          "Agent Tool",
          "x402"
        ],
        "x-alias": "create",
        "x-capabilities": [
          "x402_payments"
        ],
        "x-destructive": true,
        "x-gated-by": "developer_api_x402_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/publish-rfx": {
      "post": {
        "description": "Publishing notifies vendors outside Ramp, so check GetRFXDetail first: its\n``available_actions`` publish entry reports whether publish is currently\nallowed (and why not), and its ``vendors`` block lists the exact contacts\nwho will be notified. When a publish approval policy is configured, the RFX\nmoves to IN_REVIEW instead and nothing is sent to vendors yet \u2014 the\napproval then proceeds with the designated approvers in the Ramp app, and\nthe RFX publishes automatically once approved. Calling publish again while\npending approval or already published fails cleanly.",
        "operationId": "post_agent_tool_api___publish_rfx",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublishRFXRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublishRFXOutput"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "sourcing:write"
            ]
          }
        ],
        "summary": "Publish an RFX, sending it externally to every ACTIVE invitation contact",
        "tags": [
          "Agent Tool",
          "sourcing"
        ],
        "x-alias": "publish",
        "x-gated-by": "developer_api_sourcing_agent_tools_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/ramp_bulk_close_purchase_orders": {
      "post": {
        "description": "Use after confirming the user wants the listed POs closed. Purchase orders\nmust not already be closed or archived. The user must have permission to\nclose every purchase order in the request.",
        "operationId": "post_agent_tool_api___bulk_close_purchase_orders",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkClosePurchaseOrdersRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkClosePurchaseOrdersResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "purchase_orders:write"
            ]
          }
        ],
        "summary": "Close one or more purchase orders with a specified reason",
        "tags": [
          "Agent Tool",
          "purchase_orders"
        ],
        "x-capabilities": [
          "purchase_order_lifecycle"
        ],
        "x-gated-by": "mcp_purchase_order_lifecycle_tools_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/ramp_bulk_reopen_purchase_orders": {
      "post": {
        "description": "Use only after confirming the user wants the listed POs reopened. This does\nnot archive or delete POs; reopening restores each PO to its computed active\nlifecycle status when allowed. The user must have permission to reopen every\npurchase order in the request.",
        "operationId": "post_agent_tool_api___bulk_reopen_purchase_orders",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkReopenPurchaseOrdersRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkReopenPurchaseOrdersResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "purchase_orders:write"
            ]
          }
        ],
        "summary": "Reopen multiple closed purchase orders",
        "tags": [
          "Agent Tool",
          "purchase_orders"
        ],
        "x-capabilities": [
          "purchase_order_lifecycle"
        ],
        "x-gated-by": "mcp_purchase_order_lifecycle_tools_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/redeem-statement-credit": {
      "post": {
        "description": "This is irreversible: show the available balance, confirm the points, currency, and entity with the user, and call only after explicit confirmation. Omit points_to_redeem to redeem all available points. Retrying with the same Idempotency-Key and inputs does not redeem twice.",
        "operationId": "post_agent_tool_api___redeem_statement_credit",
        "parameters": [
          {
            "description": "Unique idempotency key generated by the client. Must be a non-empty string of at most 255 characters.",
            "in": "header",
            "name": "X-Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RedeemStatementCreditRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RedeemStatementCreditResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "cashbacks:write"
            ]
          }
        ],
        "summary": "Redeem the business's available cashback points as a statement credit that pays down the Ramp card balance (shown as Pay card balance in Ramp)",
        "tags": [
          "Agent Tool",
          "rewards"
        ],
        "x-alias": "redeem-statement-credit",
        "x-capabilities": [
          "cashback_rewards_writes"
        ],
        "x-exclude-from-client-delegation": true,
        "x-gated-by": "rewards_agent_tools_redeem_statement_credit_enabled",
        "x-moves-money": true,
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/remind-bill-approvers": {
      "post": {
        "description": "Use this tool when the user wants to nudge approvers for specific bill UUIDs.\nThe bills should be awaiting approval; use get-bills-for-approval first if the\nuser has not identified the bill UUIDs.",
        "operationId": "post_agent_tool_api___remind_bill_approvers",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RemindBillApproversRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillApproverReminderResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "bills:write"
            ]
          }
        ],
        "summary": "Remind next approvers for bills awaiting approval",
        "tags": [
          "Agent Tool",
          "bills"
        ],
        "x-alias": "remind",
        "x-capabilities": [
          "bill_approver_reminders"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/remove-router-api-key-limit": {
      "post": {
        "description": "Does not remove a limit on an OpenAI or Anthropic provider key. Returns the\nremoved limits, with no_budget for each key that had none.\n\nA key's owner can remove the limit on their own key. An admin can remove the\nlimit on any key. A key owner who is not an admin cannot change or remove a\nlimit an admin set.\n\nBefore calling, show the user the keys and the limits that will be removed. Get\nan explicit yes in this conversation. Never set confirmed to true without that\nyes. Without confirmed, the call is rejected and nothing changes.",
        "operationId": "post_agent_tool_api___remove_router_api_key_limit",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RemoveRouterApiKeyLimitRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RouterApiKeyLimitChange"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "router:write"
            ]
          }
        ],
        "summary": "Remove the USD spend limit on Ramp Router API keys",
        "tags": [
          "Agent Tool",
          "router"
        ],
        "x-alias": "remove-key-limit",
        "x-capabilities": [
          "router_api_key_limits"
        ],
        "x-destructive": true,
        "x-exclude-from-client-delegation": true,
        "x-gated-by": "router_agent_tools_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/remove-traveler-loyalty-program": {
      "post": {
        "operationId": "post_agent_tool_api___remove_traveler_loyalty_program",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RemoveTravelerLoyaltyProgramRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RemoveTravelerLoyaltyProgramResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "trips:write"
            ]
          }
        ],
        "summary": "Remove a saved loyalty program from the user's traveler profile",
        "tags": [
          "Agent Tool",
          "travel"
        ],
        "x-alias": "loyalty-program-remove",
        "x-capabilities": [
          "travel_car_rebooking",
          "traveler_profile",
          "travel_flight_rebooking",
          "travel_hotel_rebooking"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/remove-user-from-shared-fund": {
      "post": {
        "operationId": "post_agent_tool_api___remove_user_from_shared_fund",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RemoveUserFromSharedFundPublicRequestRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RemoveUserFromSharedFundPublicResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "funds:write"
            ]
          }
        ],
        "summary": "Remove a user from a shared fund using user_email",
        "tags": [
          "Agent Tool",
          "funds"
        ],
        "x-alias": "remove-user",
        "x-capabilities": [
          "spend_agent"
        ],
        "x-destructive": true,
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/rename-department": {
      "post": {
        "description": "Department names must be unique within the business (case-insensitive).",
        "operationId": "post_agent_tool_api___rename_department",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RenameDepartmentRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RenameDepartmentOutput"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "departments:write"
            ]
          }
        ],
        "summary": "Rename an existing department in the company",
        "tags": [
          "Agent Tool",
          "business"
        ],
        "x-alias": "edit",
        "x-capabilities": [
          "department_rename"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/replace-procurement-request-document": {
      "post": {
        "description": "Only works while the request is submitted and pending approval. Approved\nrequests need a change order instead. The acting user must be able to edit\nthe request, for example an approver on its approval chain. Earlier versions\nare kept. Works for files uploaded to the request and for files uploaded as\nintake-form answers. Documents out for e-signature can't be replaced.",
        "operationId": "post_agent_tool_api___replace_procurement_document",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReplaceProcurementDocumentRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReplaceProcurementDocumentResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "spend_requests:write"
            ]
          }
        ],
        "summary": "Upload a file as the new version of a document on a procurement request",
        "tags": [
          "Agent Tool",
          "procurement_requests"
        ],
        "x-alias": "replace-document",
        "x-gated-by": "developer_api_procurement_replace_document_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/reporting-create-report": {
      "post": {
        "description": "Saves a validated semantic query with its chart or table configuration and returns the report and its report_url. Pass report_id to revise an existing report instead of creating a duplicate. Does not change dashboard placement.",
        "operationId": "post_agent_tool_api___create_semantic_report",
        "parameters": [
          {
            "description": "Unique idempotency key generated by the client. Must be a non-empty string of at most 255 characters.",
            "in": "header",
            "name": "X-Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSemanticReportRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateSemanticReportResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "reporting:write"
            ]
          }
        ],
        "summary": "Create or update a saved Ramp report that refreshes when opened",
        "tags": [
          "Agent Tool",
          "reporting"
        ],
        "x-alias": "create-report",
        "x-capabilities": [
          "semantic_reporting",
          "erp_reporting"
        ],
        "x-gated-by": "mcp_reporting_create_report_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/reporting-describe-dataset": {
      "post": {
        "description": "Use this after selecting a dataset name to inspect its dimensions, measures,\ndefault time dimensions, sample questions, join-reachable fields, and\nrelated-record roles with their role-qualified fields (for example\n`spender.email`) before constructing a ReportQuery.",
        "operationId": "post_agent_tool_api___describe_reporting_dataset",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DescribeReportingDatasetRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DescribeReportingDatasetResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "reporting:read"
            ]
          }
        ],
        "summary": "Describe one semantic reporting dataset in detail",
        "tags": [
          "Agent Tool",
          "reporting"
        ],
        "x-alias": "describe-dataset",
        "x-capabilities": [
          "semantic_reporting",
          "erp_reporting",
          "analysis_editing"
        ],
        "x-gated-by": "mcp_reporting_tools_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/reporting-get-field-details": {
      "post": {
        "description": "Returns each field's full description, filter operators, filter value\nkind, enum values, search-tag category, aggregations, raw-table column,\nand `needs`: its query requirements, such as a required time range, split\nline items, required dimensions or filters, or rows that repeat when\ngrouped. Attributes with no value (null, empty, or false) other than\n`filterable` are left out. Fields that are easy to confuse with a requested\nfield are added after the requested fields. Unknown names are returned in\n`unknown_fields` with suggestions.",
        "operationId": "post_agent_tool_api___get_reporting_field_details",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetReportingFieldDetailsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportingFieldDetails"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "reporting:read"
            ]
          }
        ],
        "summary": "Get full details for named fields of one semantic reporting dataset",
        "tags": [
          "Agent Tool",
          "reporting"
        ],
        "x-alias": "get-field-details",
        "x-capabilities": [
          "reporting_two_step_fields",
          "analysis_editing"
        ],
        "x-gated-by": "mcp_reporting_tools_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/reporting-get-filter-values": {
      "post": {
        "description": "Dataset metadata determines the source, category, and identifier namespace.\nUse values[].id unchanged for the returned dimension, preserving its type.\nZero matches must not remove a requested filter; complete=false is not exhaustive.",
        "operationId": "post_agent_tool_api___get_reporting_filter_values",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetReportingFilterValuesRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SemanticFilterValuesResponse"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "reporting:read"
            ]
          }
        ],
        "summary": "Find valid filter values for one semantic reporting dataset field",
        "tags": [
          "Agent Tool",
          "reporting"
        ],
        "x-alias": "get-filter-values",
        "x-capabilities": [
          "analysis_editing"
        ],
        "x-gated-by": "mcp_reporting_tools_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/reporting-get-skill": {
      "post": {
        "description": "Describes dataset-driven workflows; cached guidance does not establish dataset access or historical coverage.",
        "operationId": "post_agent_tool_api___get_reporting_skill",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetReportingSkillRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetReportingSkillResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "reporting:read"
            ]
          }
        ],
        "summary": "Return the Ramp reporting skill: the required workflow for answering analytical questions (totals, trends, top-N, comparisons, breakdowns) and canonical ERP balance sheets, income statements, and trial balances",
        "tags": [
          "Agent Tool",
          "reporting"
        ],
        "x-alias": "get-skill",
        "x-gated-by": "mcp_reporting_tools_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/reporting-list-dataset-fields": {
      "post": {
        "description": "choosing fields.\n\nReturns the dataset's grain, default time dimension, supported query\nsettings, and any financial statement or AP operations contract, plus its\nmeasures, dimensions, and time dimensions, fields reached through joins\n(for example `spend_programs.name`), and related-record role fields (for\nexample `spender.email`). Some datasets list fields compactly: a field\nwith an `index_description` leaves out its full description, filter\noperators, filter value kind, aggregations, and raw-table column, which\nare returned when that field's details are requested by name. There,\n`needs` holds a field's query requirements, such as a required time range,\nsplit line items, required dimensions or filters, or rows that repeat when\ngrouped; requirements at their default are omitted, as are attributes with\nno value (null, empty, or false) other than `filterable`. Other datasets\nlist every field's full entry.",
        "operationId": "post_agent_tool_api___list_reporting_dataset_fields",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ListReportingDatasetFieldsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListReportingDatasetFieldsResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "reporting:read"
            ]
          }
        ],
        "summary": "List the fields of one semantic reporting dataset as a compact index for",
        "tags": [
          "Agent Tool",
          "reporting"
        ],
        "x-alias": "list-dataset-fields",
        "x-capabilities": [
          "reporting_two_step_fields",
          "analysis_editing"
        ],
        "x-gated-by": "mcp_reporting_tools_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/reporting-list-datasets": {
      "post": {
        "description": "Use this before building a semantic reporting query when you need to know which datasets exist and how each dataset is described at a high level.",
        "operationId": "post_agent_tool_api___list_reporting_datasets",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ListReportingDatasetsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListReportingDatasetsResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "reporting:read"
            ]
          }
        ],
        "summary": "List semantic reporting datasets available to the current user",
        "tags": [
          "Agent Tool",
          "reporting"
        ],
        "x-alias": "list-datasets",
        "x-capabilities": [
          "semantic_reporting",
          "erp_reporting",
          "analysis_editing"
        ],
        "x-gated-by": "mcp_reporting_tools_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/reporting-query": {
      "post": {
        "description": "Use for analysis or validation. Does not save reports.\n\nUse exact catalog dimension/measure names and kinds, not display labels.\nFor SQL, groupable=false (also needs.groupable=false) detail fields need\ndimensions without measures; query totals separately.\nCatalog filters need filterable=true, ops from supported_filter_ops, and\nvalues matching filter_value_kind. Search tags need resolved IDs with\noriginal types, not names.\nFinancial-statement datasets accept `statement.time_window`, optional\nprovider-dimension `statement.filters`, and a response-size `limit`. They\nreturn fixed, canonically ordered account and calculated-total rows with\nprovider currency and publication metadata. These overlapping rows must\nnot be summed. SQL controls, comparisons, and top-N scope are unsupported;\nmissing or changed ledger publications return a failed-precondition error.\n\nFor SQL datasets, a `filters` clause whose\n`field` is a catalog field is a row predicate; one whose `field` is a\nselected measure output name (its `name` alias when present) is the\npreferred aggregate predicate and applies after grouping (HAVING), e.g.\n`{\"field\": \"txn_count\", \"op\": \"gt\", \"value\": 3}`. `having` and\n`aggregate_filters` remain supported equivalents, but are deprecated and\nmigrated into `filters`; `result_metadata.predicate_migration` records the\nmigration.\nOrder by any selected orderable dimension or measure output.\n\nFor complete SQL results, set `page_size` (1\u20131,000) to paginate. Pass\n`response.table.page.next` as `start` with the same `report_query`,\n`query_scope`, and `page_size` until it is null. Pages read live data, not\na snapshot. Financial statements and `second_stage` / `post_aggregation`\nqueries do not support pagination.\n\nA measure ref may carry its own `filters` plus a unique `name` to emit a\nconditional aggregate column (\"sumIf\"). Select the same measure several\ntimes with different filters for side-by-side cohort columns, e.g. one\nspend total per category grouped by user, including an \"other\" column via\na NOT_IN filter. Measure filters use the same field/op/value shape as\nquery filters but only base-dataset fields.\nA catalog entry with non-empty `aggregations` also accepts a ref with\n`agg` (`type` from `aggregations`) and a required `name`. If `covered_by`\nlists a measure for that agg, select that measure instead.\nUse `second_stage` whenever the question aggregates per-group results\nagain (days/months/vendors per X, average monthly spend per X, highest or\nlowest month per X, users over $X per month): retain `dimensions` and\ncompute `measures`, each `{\"agg\": SUM|AVG|MIN|MAX|COUNT, \"of\":\n<first-stage measure output name or null>, \"name\"}`, across the collapsed\ngroups, instead of post-processing first-stage rows yourself. COUNT\nwithout `of` counts groups that survive the aggregate predicates (a\nmeasure-output `filters` clause or the deprecated forms, which migrate\nlike any other query); only a stage made solely of such counts needs a\npredicate, so never add a threshold just to satisfy it when\nSUM/AVG/MIN/MAX or COUNT of an operand is present. For example, select\nuser plus `{\"field\": \"spend_date\", \"time_grain\": \"day\"}`, filter\ndaily_spend over $500, then use `{\"dimensions\": [\"user\"], \"measures\":\n[{\"agg\": \"COUNT\", \"name\": \"days_over_limit\"}]}`; retain `spend_date`\ninstead to count users over the threshold per day or month. For average\nmonthly spend per vendor, select vendor and month with `{\"measure\":\n\"amount\", \"name\": \"monthly_spend\"}` and use `{\"agg\": \"AVG\", \"of\":\n\"monthly_spend\", \"name\": \"avg_monthly_spend\"}`: an average of monthly\ntotals over the months that have spend (a month with no rows is not a\nzero), so present it as an average per active month or add a COUNT of\nmonths; MIN/MAX of the same operand give each vendor's lowest and highest\nmonth. Operands must be selected first-stage measure outputs (aliases\nallowed), never window measures. Order by retained dimensions or stage\nnames only; `limit` applies to the final rows; no `totals`. Use user with\namount for employee spend; only per-diem or meal questions need attendee\nwith amount_per_attendee, which allocates across Ramp employee attendees\nonly (external attendees are excluded) and falls back to the spending\nemployee when no attendee list exists. Keep the daily grain so day counts\nare by UTC calendar day. `post_aggregation` (`{\"dimension\", \"name\"}`) is\nthe deprecated equivalent of a single COUNT stage; do not use it for new\nqueries.\n\nUse `max_groups` for K named values plus Other independently on every\nselected non-time dimension, retaining all time buckets. Set\n`ranking_order_by` to selected first-stage measure scores. When the time\nrange is omitted, ranking covers all authorized data. Display `order_by`\nis separate. Omit `limit`; without `page_size`, ranked results have a\n1,000-row cap disclosed through result_metadata.is_truncated. Ranking\ncannot combine with aggregate predicates or second_stage.\n\nCovers Ramp data and canonical financial statements from authorized connected ERP books. Data is eventually consistent (may lag a few minutes).",
        "operationId": "post_agent_tool_api___query_reporting_dataset",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QueryReportingDatasetRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicQueryReportingDatasetResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "reporting:read"
            ]
          }
        ],
        "summary": "Query reporting data and return aggregate or individual-record rows",
        "tags": [
          "Agent Tool",
          "reporting"
        ],
        "x-alias": "query",
        "x-capabilities": [
          "semantic_reporting",
          "erp_reporting",
          "analysis_editing"
        ],
        "x-gated-by": "mcp_reporting_tools_enabled",
        "x-mcp-ui-resource-uri": "ui://ramp/report-chart",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/reporting-search-catalog": {
      "post": {
        "description": "Use this when a user describes a reporting question in plain English and\nyou need to choose the best semantic dataset and relevant fields.",
        "operationId": "post_agent_tool_api___search_reporting_catalog",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchReportingCatalogRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchReportingCatalogResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "reporting:read"
            ]
          }
        ],
        "summary": "Search the semantic reporting catalog with a natural-language query",
        "tags": [
          "Agent Tool",
          "reporting"
        ],
        "x-alias": "search-catalog",
        "x-capabilities": [
          "semantic_reporting",
          "erp_reporting",
          "analysis_editing"
        ],
        "x-gated-by": "mcp_reporting_tools_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/request-bill-invoice-upload-link": {
      "post": {
        "description": "The file becomes the draft's invoice document. Ramp does not read it to fill in\nor change draft fields, and the draft is not submitted. Fails when the draft\nalready has an invoice. Use this when you have a local shell with normal network\naccess (such as Claude Code, Cursor, Codex or Ramp CLI) and the invoice file is\non local disk; then run the curl command from the response. Never give the URL\nto the user, as it does not work in a browser. Without a shell, ask the user to\nattach the invoice to the draft in the Ramp web app.",
        "operationId": "post_agent_tool_api___request_bill_invoice_upload_link",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RequestBillInvoiceUploadLinkRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillInvoiceUploadLinkOutput"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "bills:write"
            ]
          }
        ],
        "summary": "Create a one-time URL to attach an invoice file (PDF, image or office document) to a draft bill",
        "tags": [
          "Agent Tool",
          "bills"
        ],
        "x-alias": "upload-link",
        "x-capabilities": [
          "bill_invoice_upload_link"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": false,
        "x-unavailable-instructions": "Ask the user to attach the invoice to the draft bill in the Ramp web app."
      }
    },
    "/developer/v1/agent-tools/request-issue-purchase-order-document-upload-link": {
      "post": {
        "description": "The upload response includes a staged document_id, which can be attached when\nissuing a purchase order and is never sent to the vendor. Uploading does not\nissue anything or fill in purchase order fields. Use this\nwhen you have a local shell with normal network access (such as Claude Code,\nCursor, Codex or Ramp CLI) and the file is on local disk; then run the curl command\nfrom the response. Never give the URL to the user, as it does not work in a\nbrowser. Without a shell, ask the user to attach the document on the Issue\npurchase order form in the Ramp app.",
        "operationId": "post_agent_tool_api___request_issue_purchase_order_document_upload_link",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RequestIssuePurchaseOrderDocumentUploadLinkRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IssuePurchaseOrderDocumentUploadLinkOutput"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "purchase_orders:write"
            ]
          }
        ],
        "summary": "Create a one-time URL to upload a document (such as a quote or contract) to keep with a purchase order you issue directly",
        "tags": [
          "Agent Tool",
          "purchase_orders"
        ],
        "x-alias": "upload-link",
        "x-gated-by": "procurement_direct_po_issuance",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": false,
        "x-unavailable-instructions": "Ask the user to attach the document on the Issue purchase order form in the Ramp web app."
      }
    },
    "/developer/v1/agent-tools/request-plugin-marketplace-sandbox": {
      "post": {
        "description": "Each Developer Console administrator has one sandbox: a separate test account\nwhere plugins can be tried before review. The first call records the request\nfor Ramp staff, who create the sandbox; the caller owns it under their sign-in\nemail and gets a setup email once it exists. Later calls by the same person\nreturn the same sandbox and change nothing.\nReturns status requested, or completed with the sandbox login URL.",
        "operationId": "post_agent_tool_api___request_plugin_marketplace_sandbox",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RequestPluginMarketplaceSandboxRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginDemoSandbox"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "plugins:write"
            ]
          }
        ],
        "summary": "Request your sandbox for testing plugins before submitting them to the Ramp plugin marketplace, or return the one you already requested",
        "tags": [
          "Agent Tool",
          "plugins"
        ],
        "x-alias": "sandbox",
        "x-capabilities": [
          "plugin_marketplace_sandbox"
        ],
        "x-gated-by": "developer_console_plugin_demo_sandbox_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/request-procurement-file-upload-link": {
      "post": {
        "description": "The upload saves the file to the field; do not also send it as a draft answer.\nUse this when you can send an HTTP POST with the file: a local shell with\nnormal network access (such as Claude Code, Cursor, Codex or Ramp CLI) and the\nfile on disk, or your own code that already has the file's bytes. Then follow\nthe instructions in the response. Never give the URL to the user, as it does\nnot work in a browser. Otherwise ask the user to attach the file on the\nrequest in the Ramp app.",
        "operationId": "post_agent_tool_api___request_procurement_file_upload_link",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RequestProcurementFileUploadLinkRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProcurementFileUploadLinkOutput"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "spend_requests:write"
            ]
          }
        ],
        "summary": "Create a one-time URL that uploads one file (such as a contract, quote or order form) to a file field on your procurement draft",
        "tags": [
          "Agent Tool",
          "procurement_requests"
        ],
        "x-alias": "upload-link",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": false,
        "x-unavailable-instructions": "Ask the user to attach the file on the request in the Ramp web app."
      }
    },
    "/developer/v1/agent-tools/request-receipt-upload-link": {
      "post": {
        "description": "Only use this for transactions where a receipt is missing. If your client shows an\nin-chat receipt uploader (an upload card), prefer it for files the user has,\neven if already attached to the chat. Use this when you have a local shell\nwith normal network access (such as Claude Code, Cursor or Codex) or no uploader,\nand the receipt file is on local disk; then run the\ncurl command from the response. Never give the URL to the\nuser, as it does not work in a browser. Otherwise, ask the user to upload the\nreceipt in the Ramp web or mobile app, or by email. For a card transaction,\nconfirm a 201 response with get-transaction-missing-items. For out-of-pocket\nor reimbursement receipts, omit transaction_uuid, then pass the receipt_uuid\nfrom the 201 response to create-reimbursement-from-receipt.",
        "operationId": "post_agent_tool_api___request_receipt_upload_link",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RequestReceiptUploadLinkRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReceiptUploadLinkOutput"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "receipts:write"
            ]
          }
        ],
        "summary": "Create a one-time URL to upload a receipt file, for a card transaction or out-of-pocket spend",
        "tags": [
          "Agent Tool",
          "receipts"
        ],
        "x-alias": "upload-link",
        "x-open-world": false,
        "x-platforms": [
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/request-transaction-repayment": {
      "post": {
        "description": "This is the REVIEWER / APPROVER action: the acting user must be an\napprover or manager for the transaction, not the cardholder themselves.\nThe tool marks the transaction as repayment-required and notifies the\ncardholder, who can then accept, reject, or complete repayment through\ntheir own flow.\n\nThis tool does NOT execute payment (ACH, payroll, debit-card, etc.).\nIt only creates the repayment request so the cardholder sees an\nactionable task.\n\nUse when a reviewer or manager says things like:\n- \"Request repayment on this transaction\"\n- \"Mark this as needing repayment\"\n- \"Require the employee to pay back this charge\"\n- \"Flag this transaction for repayment\"\n\nIf the user is the cardholder wanting to repay their OWN transaction,\nuse RepayTransaction instead \u2014 that tool provides the self-service\nrepayment URL.",
        "operationId": "post_agent_tool_api___request_transaction_repayment",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RequestTransactionRepaymentRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepaymentRequestResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "transactions:write"
            ]
          }
        ],
        "summary": "Request that a cardholder repay a transaction",
        "tags": [
          "Agent Tool",
          "transactions"
        ],
        "x-alias": "request-repayment",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/resolve-approval-target": {
      "post": {
        "description": "Every supplied locator is authoritative: each must independently parse and\nidentify the same target, so omit incidental context. Pass full URLs without\nextracting their UUID. The resolver never fetches the page. It locates\nrecorded approval-chain instances for a specific item; it does not look up\npolicy configuration.",
        "operationId": "post_agent_tool_api___resolve_approval_target",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResolveApprovalTargetRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResolveApprovalTargetResponse"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "approvals:read"
            ]
          }
        ],
        "summary": "Resolve and cross-check an approval UUID, entity reference, or Ramp URL",
        "tags": [
          "Agent Tool",
          "approvals"
        ],
        "x-alias": "resolve",
        "x-capabilities": [
          "workflows_debugging"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/resubmit-reimbursement": {
      "post": {
        "description": "This does NOT submit the reimbursement \u2014 it only moves it from REJECTED to DRAFT.",
        "operationId": "post_agent_tool_api___resubmit_reimbursement",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResubmitReimbursementRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResubmitReimbursementSuccess"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "reimbursements:write"
            ]
          }
        ],
        "summary": "Revert a rejected reimbursement back to draft state so it can be edited and resubmitted",
        "tags": [
          "Agent Tool",
          "reimbursements"
        ],
        "x-alias": "resubmit",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/return-rfx-to-draft": {
      "post": {
        "description": "Only valid after a publish approval was rejected. The rejected approval\nworkflow is terminated and the RFX becomes editable again.",
        "operationId": "post_agent_tool_api___return_rfx_to_draft",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReturnRFXToDraftRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReturnRFXToDraftOutput"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "sourcing:write"
            ]
          }
        ],
        "summary": "Return a REJECTED RFX to DRAFT so it can be edited and re-published",
        "tags": [
          "Agent Tool",
          "sourcing"
        ],
        "x-alias": "return-to-draft",
        "x-gated-by": "developer_api_sourcing_agent_tools_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/revoke-rfx-vendor-invitation": {
      "post": {
        "description": "This is irreversible \u2014 on a published RFX\nthe vendor immediately loses access to the questionnaire and any e-sign\nenvelope in flight is voided.\n\nDRAFT invitations are deleted outright; ACTIVE invitations are revoked\n(keeping their contact on record). Already-revoked invitations fail\ncleanly. Use GetRFXDetail to review invitations before revoking.",
        "operationId": "post_agent_tool_api___revoke_rfx_vendor_invitation",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RevokeRFXVendorInvitationRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RevokeRFXVendorInvitationOutput"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "sourcing:write"
            ]
          }
        ],
        "summary": "Remove a vendor from an RFX",
        "tags": [
          "Agent Tool",
          "sourcing"
        ],
        "x-alias": "revoke",
        "x-destructive": true,
        "x-gated-by": "developer_api_sourcing_agent_tools_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/save-plugin-marketplace-draft": {
      "post": {
        "description": "Omit plugin_id to create a plugin. With plugin_id, only the fields sent are\nchanged and the rest of the draft is kept; send a field as null or an empty list\nto clear it. For an existing plugin with no open draft, a new draft is started\nfrom its latest version first. Returns the plugin with its plugin_id and new\nrevision, and the saved draft, whose version_id is the one to submit. Does not\nsubmit the draft for review.",
        "operationId": "post_agent_tool_api___save_plugin_marketplace_draft",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SavePluginMarketplaceDraftRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginDraftSaved"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "plugins:write"
            ]
          }
        ],
        "summary": "Create a plugin for the Ramp plugin marketplace with its first draft, or change the draft of an existing plugin",
        "tags": [
          "Agent Tool",
          "plugins"
        ],
        "x-alias": "draft",
        "x-capabilities": [
          "plugin_marketplace_publishing"
        ],
        "x-gated-by": "developer_console_plugins_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/search-bills": {
      "post": {
        "description": "Returns summary records for submitted and active draft bills, including\nauthoritative lifecycle information: is_draft=true means an unsubmitted\ndraft; is_draft=false means a submitted bill. Accepts a UUID even when its\nlifecycle is unknown.\nSubmitted and active draft bills may both be returned unless filters exclude\nthem; include_drafts=False restricts results to submitted bills. Archived\nbills are excluded by default; set include_archived=true to include them. An\nunpaid bill or one awaiting approval is not necessarily a draft.\nExplicit invoice references use invoice_number for exact matching, including\none- or two-character numbers; query remains a partial text search or UUID lookup.\nerp_bill_id matches the bill's accounting-system (ERP) ID exactly.\nvendor_names matches vendor names only, so one call can cover several names for\nthe same vendor (brand, legal name, acronym) without matching other bill text.\nexact_amount filters the recorded invoice header total in its original currency\nbefore pagination. Drafts without a header amount cannot match; this is not a\ncomputed line-item total or remaining balance.\nRepeat the same filters with page_cursor until next_page_cursor is null; a page\nis not the complete match set. No date restriction applies unless supplied.\nResults include can_view_payment_details: false means the payment-detail\nlookup is unavailable for this user. Null means access is unknown, not denied.\nAccess may change after search and is checked again when details are requested.\nEach result's amount (the invoice total), currency, payment_method,\nstatus_summary, and paid_date (when the bill was fully paid) list paid invoices\nwithout per-bill lookups. They are not payment records: amounts sent can be lower\nafter vendor credits or discounts, and an installment bill gets paid_date only\nafter its final payment. Payment-level amounts and dates, payment_status,\napproval_status, and the scheduled payment_date come from a specific bill's\ndetails. Each result includes the bill memo, so answer memo or item-description\nquestions from it without a details lookup.",
        "operationId": "post_agent_tool_api___search_bills",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchBillsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillSearchResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "bills:read"
            ]
          }
        ],
        "summary": "Search submitted and active draft bills by invoice number, payee, memo text, payment ID, or UUID",
        "tags": [
          "Agent Tool",
          "bills"
        ],
        "x-alias": "search",
        "x-capabilities": [
          "direct_debit_match_apply",
          "direct_debit_matching",
          "bill_pay_v1_core",
          "bill_payment_support"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/search-flight-modifications": {
      "post": {
        "description": "Identify the booking with exactly one booking identifier field and leave the\nothers null; passing several IDs for the same booking is rejected.\n\nFirst inspect the booking itinerary and ask which leg, date, or route the\ntraveler wants to change. Pass one entry per changed leg, identified by its\n0-based ``leg_index``. Unspecified date and airport fields retain the\noriginal leg values, so an entry with only ``leg_index`` searches that leg\non its booked date and route: use it for a same-day earlier or later flight\n(with a departure or arrival time window) or a cabin change (with\n``cabin_class``).\n\nWhen changing both legs of a single-ticket round trip, first search with both\nleg modifications, present the outbound offers, then call again with the\nchosen ``selected_outbound_offer_id`` and the same modifications to retrieve\nmatching returns. Split-ticket bookings change one leg per exchange: when\nseveral legs are passed, only the earliest requested leg is searched and\n``deferred_leg_indexes`` lists the others to change afterwards in their own\nsearches. ``selected_outbound_offer_id`` is rejected for split-ticket bookings.\n\nSome bookings support the first search but not this second step, and return an\nunsupported-provider result with support details; route the traveler to that\nsupport rather than retrying. Search prices are estimates; call\nSubmitFlightModification to re-quote the selected offer with the airline before\nasking the traveler to confirm.\n\n``recommended_offers`` is always present, ranked from this page of ``offers``;\neach surface presents those entries in the format it supports, and\n``assistant_note`` states which presentation applies.\n\nCopy each slice's ``flights_display`` labels verbatim, without parsing carrier\nprefixes. They identify marketing flights, including codeshares.\n\nPreference fields (``cabin_class``, ``max_stops``, ``airlines``, timing\nwindows, ``avoid_red_eye_flights``) become this booking's cumulative\nmodification preference state: they carry across the outbound and return\nsteps and later re-searches of the same booking. Omitted preferences retain\ntheir prior values; use ``clear_preferences`` only when the traveler removes\none. ``applied_preferences`` reports what each response used.",
        "operationId": "post_agent_tool_api___search_flight_modifications",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchFlightModificationsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FlightModificationSearchResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "trips:read"
            ]
          }
        ],
        "summary": "Search replacement flights for an existing booking",
        "tags": [
          "Agent Tool",
          "travel"
        ],
        "x-alias": "search-flight-modifications",
        "x-capabilities": [
          "travel_flight_modification"
        ],
        "x-gated-by": "travel_agent_post_booking_flows",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/search-flights": {
      "post": {
        "description": "Returns policy-tagged offers, or a job_id while the search is still running. To book, use the selected offer's id.\n\nCopy flights_display labels verbatim; they identify each segment's marketing airline and exact flight number, including codeshares.\n\nPass either route fields or job_id, not both. A job_id call reads the existing search without starting a new one. Round trips return outbound offers first; pass job_id with outbound_offer_id to get matching return offers. Preferences persist on the job until changed or cleared. Does not modify existing bookings.\n\nFlight credits, only when the business has flight credits enabled: an offer whose booked fare may accept one of the traveler's credits has airline_credit_eligible=true and the largest such credit, with its currency, in top_airline_credit; each fare option lists its own eligible_credit_ids. only_airline_credit_eligible=true keeps only flights with such a fare and fails with AIRLINE_CREDIT_FILTER_UNAVAILABLE when credits are not enabled or the traveler has no credit Ramp Travel can apply. Eligibility is not a guarantee; the airline confirms it only when the credit is applied to a flight quote.",
        "operationId": "post_agent_tool_api___search_flights",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchFlightsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchFlightsResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "trips:read"
            ]
          }
        ],
        "summary": "Searches flights for a route and dates",
        "tags": [
          "Agent Tool",
          "travel"
        ],
        "x-alias": "search-flight",
        "x-capabilities": [
          "travel_flight_booking",
          "travel_flight_rebooking"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/search-help-center-snippets": {
      "post": {
        "description": "Covers Ramp-specific information such as features, pricing, eligibility,\npolicies, setup, how-to steps, and troubleshooting. These examples are not\nexhaustive; search other documented Ramp topics as needed.\n\nReturns relevant Help Center content with titles and source URLs when available.",
        "operationId": "post_agent_tool_api___search_help_center_snippets",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchHelpCenterSnippetsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchHelpCenterOutput"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ],
        "summary": "Search Ramp's authoritative Help Center documentation for product knowledge and guidance for users",
        "tags": [
          "Agent Tool",
          "research"
        ],
        "x-alias": "help-center",
        "x-capabilities": [
          "receipt_email_setup",
          "uber_connection_guidance",
          "gusto_payroll_setup",
          "expense_policy_help",
          "settings_help",
          "help_center",
          "roles_and_permissions"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/search-hotel": {
      "post": {
        "description": "Before first use in a conversation, load and follow the ramp-book-hotel skill when available.\n\nProvide location_query (city, neighborhood, address, or landmark) plus check_in_date and check_out_date. location_query text containing 'office', 'HQ', or 'headquarters' is rejected unless latitude and longitude are also passed; to search near an office without coordinates, pass its street address as location_query. API calls run synchronously by default and return ranked hotels - each with at most one summary rate - plus policy_summary, total_count, and web_search_url. Results are paginated from a cached result set: pass the returned next_cursor as cursor to fetch more hotels without triggering a new provider search; never construct or edit a cursor. Put chain requests in filters.chain_names and reserve hotel_name for one exact property; a specific hotel_name uses the targeted direct-hotel path. Passing wait_for_results=false explicitly opts into an asynchronous kickoff that returns status='searching' with a search_id to resume by passing that search_id on a later call.\n\nTo book from these results, pass the selected hotel id to GetHotelRates, then the selected rate id to SubmitHotelBooking with the same traveler and stay dates.",
        "operationId": "post_agent_tool_api___search_hotels",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchHotelsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchHotelsResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "trips:read"
            ]
          }
        ],
        "summary": "Search hotels using the canonical Ramp web inventory and policy flow",
        "tags": [
          "Agent Tool",
          "travel"
        ],
        "x-alias": "search-hotel",
        "x-capabilities": [
          "travel_hotel_booking",
          "travel_hotel_rebooking"
        ],
        "x-gated-by": "ramp_cli_hotel_booking",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/search-merchants": {
      "post": {
        "description": "Returns matching merchant IDs, UUIDs, names, categories, and domains.",
        "operationId": "post_agent_tool_api___search_merchants",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchMerchantsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchMerchantsResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "merchants:read"
            ]
          }
        ],
        "summary": "Search for merchants by name",
        "tags": [
          "Agent Tool",
          "merchant"
        ],
        "x-alias": "search",
        "x-capabilities": [
          "fund_restriction_requests",
          "spend_fund_controls",
          "buy_for_me",
          "spend_program_lookups"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/search-procurement-policy": {
      "post": {
        "description": "Use for questions such as approval thresholds, what to collect before\nsubmitting a request, which intake to use for a contract, a new SOW versus\nextending a contract, a new PO versus a renewal, sending NDAs or DPAs,\nhandling redlines, which entity signs a contract, vendor onboarding, and\nreturning or churned vendors.\n\nReturns written policy sections with document, version, and section IDs for\ncitations. It does not return configured spend programs, approval workflows,\nor expense policy text, and it does not change anything.",
        "operationId": "post_agent_tool_api___search_procurement_policy",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchProcurementPolicyRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchProcurementPolicyOutput"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "spend_requests:read"
            ]
          }
        ],
        "summary": "Search the company's published procurement policy for sections that answer an employee procurement process question",
        "tags": [
          "Agent Tool",
          "policy"
        ],
        "x-alias": "procurement",
        "x-capabilities": [
          "procurement_policy_search"
        ],
        "x-gated-by": "procurement_policy_document",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/search-purchase-orders": {
      "post": {
        "operationId": "post_agent_tool_api___search_purchase_orders",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchPurchaseOrdersRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseOrderSearchResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "purchase_orders:read"
            ]
          }
        ],
        "summary": "Search for purchase orders using structured purchase order filters",
        "tags": [
          "Agent Tool",
          "purchase_orders"
        ],
        "x-alias": "search",
        "x-capabilities": [
          "cross_product_approvals",
          "wbx_spend_request_intake"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/search-receipts": {
      "post": {
        "description": "Only includes receipts attached to a transaction or reimbursement.\nRequires receipt keyword search to be enabled for the caller's business.\nCompany-wide discovery is limited to\nreceipts the caller can currently read under existing receipt/expense permissions.\nCombines independent keyword and semantic retrieval, not exact phrases or verified\ncategory classification. Falls back to OCR word matches if embedding is unavailable;\nretrieval_mode reports this even for empty results. Semantic relevance is provisional.\nSearch is bounded and index coverage may be incomplete; results are evidence,\nnot exhaustive spending analytics. Does not search bill/invoice documents.",
        "operationId": "post_agent_tool_api___search_receipts",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchReceiptsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchReceiptsResultJsonMode"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "receipts:read"
            ]
          }
        ],
        "summary": "Search receipts by natural-language intent and/or OCR keywords, returning receipts and owners",
        "tags": [
          "Agent Tool",
          "receipts"
        ],
        "x-alias": "search",
        "x-capabilities": [
          "receipt_content_search"
        ],
        "x-gated-by": "receipt_keyword_search_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/search-reimbursements": {
      "post": {
        "operationId": "post_agent_tool_api___search_reimbursements",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchReimbursementsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchReimbursementsResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "reimbursements:read"
            ]
          }
        ],
        "summary": "Search reimbursements across a business, optionally filtering to a specific user's reimbursements",
        "tags": [
          "Agent Tool",
          "reimbursements"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/search-router-models": {
      "post": {
        "description": "Search the model names a Router model policy accepts. Returns up to 50\nmatches; managed aliases such as claude-opus-latest come first.\n\nOne model can have several names, such as a route name and a name for each\nprovider. For an alias, name the model in alias_for to the user.\n\nWhen 50 matches come back, the list may be partial: tell the user, and search\nwith a more specific query.\n\nResults do not show whether a model is blocked.",
        "operationId": "post_agent_tool_api___search_router_models",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchRouterModelsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RouterModelList"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "router:read"
            ]
          }
        ],
        "summary": "Search the model names that a Router model policy accepts",
        "tags": [
          "Agent Tool",
          "router"
        ],
        "x-alias": "models",
        "x-capabilities": [
          "router_settings"
        ],
        "x-exclude-from-client-delegation": true,
        "x-gated-by": "router_agent_tools_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/search-unified-requests": {
      "post": {
        "description": "Use this to find existing purchase orders, fund requests, procurement requests,\npolicy-backed requests, or approval-only requests by vendor, request name,\nspend program, owner UUID, requester UUID, status, type, exact request number,\napproval date, department, workflow-backed policy, or whether they require\naction. Only requests the acting user owns, requested, can approve, or is\notherwise permitted to view are searchable. Use\nGetRequestsToReview when the user is specifically asking what they need to\napprove right now. Use GetUnifiedRequestDetails once one request has been\nidentified. For a draft policy-backed request, pass the result's exact\nwbp_request_id to ResumeWbxRequest, not its unified_request_id.",
        "operationId": "post_agent_tool_api___search_unified_requests",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchUnifiedRequestsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnifiedRequestListResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "unified_requests:read"
            ]
          }
        ],
        "summary": "Search for unified requests using free-text and structured request filters",
        "tags": [
          "Agent Tool",
          "requests"
        ],
        "x-alias": "search",
        "x-capabilities": [
          "cross_product_approvals",
          "wbx_spend_request_intake"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/search-user": {
      "post": {
        "description": "Returns business users ordered by text relevance, with exact-name match information and same-business manager names and UUIDs for the candidates and transaction cardholder, regardless of profile-read permissions. Manager chains are ordered from direct manager upward, exclude deleted users and may be truncated at 10 levels or broken links. Rank and shared ancestry do not prove identity or attendance. If no transaction ID is provided, the user's most recent transaction is used as context. Search is case-insensitive and matches partial names, email, department and location. Results may be incomplete; see has_more.",
        "operationId": "post_agent_tool_api___match_user_to_transaction",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MatchUserToTransactionRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchUserResponse"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "users:read"
            ]
          }
        ],
        "summary": "Match a user name to a Ramp user in the context of a transaction, for adding as an attendee",
        "tags": [
          "Agent Tool",
          "transactions"
        ],
        "x-alias": "search-suggested-users",
        "x-capabilities": [
          "expense_field_search",
          "people_lookup",
          "people_directory"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/search-user-reimbursements": {
      "post": {
        "description": "Includes older paid and rejected requests in the user's reimbursement history.\nOmitting date filters applies no time cutoff. Results are paginated: for the\ncomplete matching set, continue with each returned next_page_cursor until it\nis null, preserving scope and filters.\n\nSupports filtering by:\n- Specific reimbursement UUIDs\n- Scope: the current user's own reimbursements, reimbursements awaiting their\n  approval, or every reimbursement they can see\n- User name (e.g., 'John Smith'), merchant name, and spend allocation name,\n  resolved from text automatically\n- Accounting coding selections (tracking categories) like Department, Cost Center, Class, GL Account\n- One or more reimbursement statuses (DRAFT, PENDING, APPROVED, etc.)\n- One or more reimbursement types (out of pocket, mileage, per diem)\n- Accounting sync status (unsynced, sync ready, not sync ready, synced)\n- Record creation date range, submission date range, and text search\n- Amount range and currency of the amount the business pays\n\nOptionally includes comment threads, autofill suggestions for missing items,\nand AI policy assessments. All filters are combined with AND logic. This tool\ndoes not support filtering by expense transaction date or ranking employees\nby period totals.",
        "operationId": "post_agent_tool_api___search_user_reimbursements",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchUserReimbursementsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchReimbursementsResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "reimbursements:read"
            ]
          }
        ],
        "summary": "View all reimbursements and their current statuses, or search past requests",
        "tags": [
          "Agent Tool",
          "reimbursements"
        ],
        "x-alias": "search",
        "x-capabilities": [
          "reimbursement_history",
          "expense_policy_help"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/search-vendors": {
      "post": {
        "description": "With a search_term, this tool finds vendor records using both fuzzy SQL\nmatching (trigram similarity + substring) and semantic (vector) search.\nWithout either search input, it lists the business's vendors alphabetically.\nUse this to find vendor IDs when you need to:\n- Look up a vendor by partial name\n- Find the correct vendor UUID for further analysis\n- Discover vendors similar to a given name\n- List vendors, optionally filtered by 1099 tracking status\n\nExact display names, DBA names, and external vendor IDs are returned first.\nThe search is scoped to the current business and the caller's vendor\nvisibility. Results are\ncandidates, not confirmed identities. For a user, only vendors that user can\nfully view are searchable; vendors in restricted vendor groups are omitted.\nInactive vendors are included, but drafts are excluded unless include_draft\nis true. Empty or unrelated results do not establish that a vendor does not\nexist or that the caller has access to its profile.\n\nWith search_terms, look up up to 50 names by case-insensitive exact display\nor DBA name in one batch. Each input returns unique_exact, ambiguous, or\nno_exact_match, bounded candidates, and has_more. Batch mode does not run\nfuzzy or semantic search; no_exact_match does not establish absence.",
        "operationId": "post_agent_tool_api___search_vendors",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchVendorsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchVendorsResponse"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "vendors:read"
            ]
          }
        ],
        "summary": "Search for vendors (payees) within the business by name, or browse them",
        "tags": [
          "Agent Tool",
          "vendors"
        ],
        "x-alias": "search",
        "x-capabilities": [
          "bill_pay_v1_core",
          "payment_method_explanation",
          "spend_program_lookups",
          "matrix_configuration",
          "vendor_search"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/send-rfx-response-reminder": {
      "post": {
        "description": "submitted their RFX response.\n\nOnly ACTIVE invitations on a published RFX whose vendor has not rejected\nthe invitation and has not submitted are eligible. A per-vendor cooldown\nprevents spamming \u2014 recently reminded vendors are skipped and reported in\n``skipped_due_to_cooldown_invitation_ids``. Omit\n``rfx_vendor_invitation_ids`` to remind every eligible vendor.",
        "operationId": "post_agent_tool_api___send_rfx_response_reminder",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SendRFXResponseReminderRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SendRFXResponseReminderOutput"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "sourcing:write"
            ]
          }
        ],
        "summary": "Send response reminder emails to invited vendors who have not yet",
        "tags": [
          "Agent Tool",
          "sourcing"
        ],
        "x-alias": "remind",
        "x-gated-by": "developer_api_sourcing_agent_tools_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/set-decline-buffer": {
      "post": {
        "description": "Decline buffers are stored as allowed overage percent. Use this purpose-built\ntool for decline/spend/overage buffer changes instead of generic endpoint\ntools. Always confirm the exact target and value with the user before\ncalling this tool.\n\nClear is distinct from 0%. Passing allowed_overage_percent=null removes the\nexplicit value at the target level so it can inherit from the next level.\nPassing allowed_overage_percent=0 sets an explicit zero-percent buffer.\n\nSpend-program changes always propagate to existing linked allocations.\nFor business-wide settings, buffer_application_mode is required when\nsetting a non-null percent.",
        "operationId": "post_agent_tool_api___set_decline_buffer",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetDeclineBufferRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SetDeclineBufferResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "funds:write"
            ]
          }
        ],
        "summary": "Set or clear decline buffer percentages for business settings, spend programs, or funds",
        "tags": [
          "Agent Tool",
          "funds"
        ],
        "x-alias": "set-decline-buffer",
        "x-capabilities": [
          "decline_buffer"
        ],
        "x-destructive": true,
        "x-moves-money": true,
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/set-rfx-cover-sheet": {
      "post": {
        "description": "Pass body_markdown and/or attachment_ramp_document_ids, and get explicit user confirmation for the body and every attachment before calling.",
        "operationId": "post_agent_tool_api___set_rfx_cover_sheet",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetRFXCoverSheetRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SetRFXCoverSheetOutput"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "sourcing:write"
            ]
          }
        ],
        "summary": "Set or update the vendor-facing cover sheet on a DRAFT RFX",
        "tags": [
          "Agent Tool",
          "sourcing"
        ],
        "x-alias": "cover-sheet",
        "x-gated-by": "developer_api_sourcing_agent_tools_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/set-rfx-pricing-sheet": {
      "post": {
        "description": "The pricing sheet configures how vendors submit pricing in response to the\nRFX: the currency they must quote in, a rich-text guidance memo explaining\npricing expectations (e.g. unit basis, term length, must include\nimplementation), and optional background attachments (rate cards, SOW\ntemplates) for vendors to reference.\n\nThe guidance memo and attachments are vendor-facing (sent on publish). The\nagent MUST get explicit user confirmation on the guidance wording and on\nevery attachment before calling this tool. Never auto-attach files the user\nuploaded earlier in the thread \u2014 those may be internal/confidential and\nattaching them to a vendor-facing surface is a data-leak risk.\n\nCreating a pricing sheet implicitly enables vendor pricing on the RFX \u2014\nonce this tool succeeds, vendors will see a pricing step in their response\nflow. The very first call (when no pricing sheet exists yet) must include\nboth `currency` and `guidance_markdown`. After that, partial updates are\nallowed.\n\nPatch semantics:\n- Pass `currency` to replace the currency. Omit (None) to leave unchanged.\n- Pass `guidance_markdown` to replace the guidance memo. Omit to leave\n  unchanged.\n- Pass `attachment_ramp_document_ids=[id1, id2]` to replace the attachment\n  set. Pass `[]` to clear all attachments. Omit (None) to leave unchanged.\n\nRequires the RFX to be in DRAFT state. The acting user must be an owner or\ncollaborator on the RFX.",
        "operationId": "post_agent_tool_api___set_rfx_pricing_sheet",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetRFXPricingSheetRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SetRFXPricingSheetOutput"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "sourcing:write"
            ]
          }
        ],
        "summary": "Set or update the pricing sheet on a DRAFT RFX during sourcing intake",
        "tags": [
          "Agent Tool",
          "sourcing"
        ],
        "x-alias": "pricing-sheet",
        "x-gated-by": "developer_api_sourcing_agent_tools_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/set-rfx-vendor-invitation-contact": {
      "post": {
        "description": "Resolving a DRAFT invitation's contact activates it (DRAFT \u2192 ACTIVE) so\nthe RFX can publish; DRAFT invitations without a contact block publishing.\nOn an ACTIVE invitation this swaps the contact who receives vendor-facing\ncommunication. Use GetRFXDetail to find invitation ids and current\ncontacts, and the vendor contacts surface to find payee_contact_id values\nfor the invited vendor.",
        "operationId": "post_agent_tool_api___set_rfx_vendor_invitation_contact",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetRFXVendorInvitationContactRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SetRFXVendorInvitationContactOutput"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "sourcing:write"
            ]
          }
        ],
        "summary": "Set or replace the contact on an RFX vendor invitation",
        "tags": [
          "Agent Tool",
          "sourcing"
        ],
        "x-alias": "invitation-contact",
        "x-gated-by": "developer_api_sourcing_agent_tools_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/set-router-api-key-limit": {
      "post": {
        "description": "Does not set a limit on an OpenAI or Anthropic provider key. Returns the saved\nlimit for each key.\n\nA new limit stops the key when its spend reaches the amount. A changed limit\nkeeps its earlier setting. blocks_at_limit in the result tells which applies.\n\nA key's owner can change the limit on their own key. An admin can change the\nlimit on any key. A key owner who is not an admin cannot change or remove a\nlimit an admin set.\n\nWithout confirmed, the limit is saved directly, unless a key's spend this\nperiod is at or above 80% of the new limit. Then nothing is saved, and the\nresult is confirmation_needed with those keys, their spend this period, and\nthe new limit. Show these to the user and get an explicit yes in this\nconversation. Never set confirmed to true without that yes.",
        "operationId": "post_agent_tool_api___set_router_api_key_limit",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetRouterApiKeyLimitRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SetRouterApiKeyLimitResponse"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "router:write"
            ]
          }
        ],
        "summary": "Set or replace a USD spend limit on Ramp Router API keys",
        "tags": [
          "Agent Tool",
          "router"
        ],
        "x-alias": "set-key-limit",
        "x-capabilities": [
          "router_api_key_limits"
        ],
        "x-destructive": true,
        "x-exclude-from-client-delegation": true,
        "x-gated-by": "router_agent_tools_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/set-traveler-loyalty-program": {
      "post": {
        "description": "If it already exists, update its loyalty number. After success, continue the\nactive workflow when it requires refreshed data; otherwise tell the user it is saved.",
        "operationId": "post_agent_tool_api___set_traveler_loyalty_program",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetTravelerLoyaltyProgramRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SetTravelerLoyaltyProgramResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "trips:write"
            ]
          }
        ],
        "summary": "Set one loyalty program on the user's traveler profile by program name and loyalty number",
        "tags": [
          "Agent Tool",
          "travel"
        ],
        "x-alias": "loyalty-program-set",
        "x-capabilities": [
          "travel_car_rebooking",
          "traveler_profile",
          "travel_flight_rebooking",
          "travel_hotel_rebooking"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/simulate-policy-workflow-for-expense": {
      "post": {
        "description": "Approval policies return the simulated approval steps; submission policies return the required and visible expense fields. Provide exactly one expense UUID.",
        "operationId": "post_agent_tool_api___simulate_policy_workflow_for_expense",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SimulatePolicyWorkflowForExpenseRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SimulatePolicyWorkflowForExpenseSuccess"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "workflows:read"
            ]
          }
        ],
        "summary": "Simulate an approval or submission policy workflow against an existing transaction or reimbursement to preview how the published policy (or a specific historical workflow version) would route it",
        "tags": [
          "Agent Tool",
          "policy"
        ],
        "x-alias": "simulate",
        "x-capabilities": [
          "expense_policy_help"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/agent-tools/submit-draft-bill": {
      "post": {
        "description": "Readiness requires at least one bill date, an active existing vendor with required bill-pay details, invoice currency, a positive amount, complete line items, required accounting fields, no duplicate vendor invoice number, and no submission-policy violation. The bill keeps the same ID as the draft. The call waits up to about 10 seconds for the bill to be created: creation_status is CREATED when the bill exists, or PENDING when creation is still running in the background. If creation fails during the wait, an error is returned. Some submissions require identity verification that agents cannot complete; in that case the error includes a redirect_url that the human user must open in a browser to finish submitting in the Ramp web app. This action does not schedule, release, or pay the bill.",
        "operationId": "post_agent_tool_api___submit_draft_bill",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubmitDraftBillRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubmitDraftBillResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "bills:write"
            ]
          }
        ],
        "summary": "Submit a DRAFT_READY bill draft so it becomes a bill and enters approval",
        "tags": [
          "Agent Tool",
          "bills"
        ],
        "x-alias": "submit",
        "x-capabilities": [
          "bill_pay_draft_authoring"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/submit-flight-booking": {
      "post": {
        "description": "Four explicit actions: use action=preview for an authoritative preview, action=save_seats to update a persisted quote's seats and return a refreshed preview, action=apply_credit to apply or remove a flight credit the traveler chose on a persisted quote and return a refreshed preview, and action=confirm only after a new, explicit user-authored approval of that latest preview. The legacy confirm input remains supported for existing clients but new callers must use action. The preview (itinerary, price, in-policy status, and required approvals) without booking. When no fund is supplied, the preview uses the recommended eligible fund, if one exists, to determine required approvals. action=confirm requires the previewed expected_total_amount (copied verbatim, digits and decimal point only, no currency symbol) only after a new, explicit user-authored response approves that latest preview. If the fare changes, preview the new total and obtain fresh approval before confirming.\n\nflight_offer_uuid is the literal id from search: the outbound flight for one-way, the return flight for round trips (it carries both legs), or a fare option's id to book that fare. Alternatively pass a previous preview's flight_quote_uuid (never both) to preview or confirm that exact persisted quote. On confirmation, pass exactly one funding choice: spend_allocation_id with an eligible fund UUID from the preview, or request_new_fund=true with reason set to the trip purpose. This includes fares a business UATP card pays, such as United PassPlus fares (the preview names the card): the card pays the fare and the fund pays only the agency's booking fees. If the chosen flight is out of policy, you MUST collect an oop_reason from the traveler and pass it here.\n\nBefore previewing or confirming, call GetTravelerProfile (passing the same traveler_user_id from search for delegated booking); if has_profile is false, collect the traveler's identity details and call UpdateTravelerProfile first. This always creates a new booking and never changes or cancels an existing one; to replace an existing flight with a new booking, follow the ramp-rebook-flight skill.\n\nFlight credits, only when the business has flight credits enabled: a preview lists the credits of the quote's traveler (traveler_user_id) that may apply in available_airline_credits, each with an ISO 4217 currency code; currency is the fare's. action=apply_credit with flight_quote_uuid and the chosen credit_id as airline_credit_id applies it (null removes it) and returns a refreshed preview. airline_credit_applied is true only when a credit is applied; then payment_breakdown splits the fare (with any redemption fee as penalty_amount) and card_charge_amount is what the card pays, while expected_total_amount stays the full fare. An apply error changes nothing: the quote keeps the last successful preview, including any credit already applied. On action=confirm, pass the applied credit_id as airline_credit_id, or omit it when none is applied; a mismatch books nothing.",
        "operationId": "post_agent_tool_api___submit_flight_booking",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubmitFlightBookingRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FlightBookingResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "trips:write"
            ]
          }
        ],
        "summary": "Book a selected flight offer",
        "tags": [
          "Agent Tool",
          "travel"
        ],
        "x-alias": "book-flight",
        "x-capabilities": [
          "travel_flight_booking",
          "travel_flight_rebooking"
        ],
        "x-destructive": true,
        "x-moves-money": true,
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/submit-flight-cancellation": {
      "post": {
        "description": "Identify the booking with exactly one booking identifier field and leave the\nothers null; passing several IDs for the same booking is rejected.\n\nAlways call with ``confirm=false`` first. That call is read-only and returns\nthe complete itinerary, fresh authoritative terms, and a ``preview_id``. Only\nafter a new, explicit user-authored approval of that latest preview may you\ncall again with ``confirm=true`` and the exact ``preview_id``. Earlier\ncancellation intent, standing approval, or instructions not to ask questions\nare not confirmation.\n\nAtlas- and Duffel-booked flights are supported. Confirmation refetches the\ncanonical details used by the Ramp web flow and refuses to cancel if any term\nchanged. If the provider rejected the approved quote as changed, a new preview\ncan refresh the terms; cancellation still requires a separate approval of that\npreview. By default the action cancels the entire booking. When a booking's\nflights are ticketed separately, ``flight_leg_index`` previews and cancels\none flight on its own, and an entire-booking preview lists those flights in\n``cancellable_legs``. Partial passenger cancellation is not supported.\n\nWhen a new flight replaces this one, pass its booking request as\n``replacement_booking_request_id`` on confirmation: this flight is then\ncancelled only once the replacement is ticketed, and kept if it is not\nbooked. The ``replacement_status`` of the result, or of an error, says which\nhappened; only ``FULFILLED`` means the new flight is confirmed. A\nconfirmation without it is refused while the traveler has a new flight still\nawaiting approval or ticketing; the error's ``unconfirmed_booking_request_id``\nis that booking request.\n\nPreview ``rendered_response`` contains authoritative plain-text copy to display\nverbatim. Booking identifiers and the HTTPS ``booking_url`` are separate\nmetadata for client presentation; they are not embedded in that copy.",
        "operationId": "post_agent_tool_api___submit_flight_cancellation",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubmitFlightCancellationRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FlightCancellationResponse"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "trips:write"
            ]
          }
        ],
        "summary": "Preview or confirm cancellation of an existing flight booking",
        "tags": [
          "Agent Tool",
          "travel"
        ],
        "x-alias": "cancel-flight",
        "x-capabilities": [
          "travel_flight_cancellation",
          "travel_flight_rebooking"
        ],
        "x-destructive": true,
        "x-gated-by": "travel_agent_v1",
        "x-moves-money": true,
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/submit-flight-modification": {
      "post": {
        "description": "Identify the booking with exactly one booking identifier field and leave the\nothers null; passing several IDs for the same booking is rejected.\n\nAlways call with ``confirm=false`` first. The returned preview contains the\nauthoritative itinerary, policy results, and exchange economics; search prices\nare only estimates. Present the complete preview and request explicit user\nconfirmation before submitting. When ``economics.pricing_is_final`` is false,\nthe airline still reports these amounts as estimates that can change when the\nticket is reissued; say so before asking for confirmation.\n\nAfter explicit confirmation, call again with ``confirm=true`` and the exact,\nunchanged ``preview_id`` from that preview. Confirmation re-quotes the offer\nand submits only when the terms still match. If the tool returns changed terms,\ndo not auto-confirm: present the new preview and wait for a new explicit\nconfirmation. If the user changes any requested terms, search and preview again.",
        "operationId": "post_agent_tool_api___submit_flight_modification",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubmitFlightModificationRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FlightModificationResponse"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "trips:write"
            ]
          }
        ],
        "summary": "Preview or confirm replacement flights for an existing booking",
        "tags": [
          "Agent Tool",
          "travel"
        ],
        "x-alias": "modify-flight",
        "x-capabilities": [
          "travel_flight_modification"
        ],
        "x-destructive": true,
        "x-gated-by": "travel_agent_post_booking_flows",
        "x-moves-money": true,
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/submit-fund-request": {
      "post": {
        "description": "Defaults to the signed-in user. It can also request for another employee the\nuser may request funds for, such as a manager's direct report; those requests\nfollow the business's approval workflow rather than direct issuance.\nPass `member_user_uuids` to request a shared fund that those coworkers can\nalso spend from once approved.\n\nRequires a separate user confirmation after the assistant summarizes the\nrequest details and asks whether to submit. The initial request for funds is\nnot confirmation. Never invent approval on the user's behalf.\nReturns the submitted request's detail URL, or the issued fund's URL when\nthe request is automatically approved.",
        "operationId": "post_agent_tool_api___submit_fund_request",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubmitFundRequestRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FundRequestLink"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "funds:write"
            ]
          }
        ],
        "summary": "Submit a request for new funds (General Expenses, including a shared fund) or a Virtual Card",
        "tags": [
          "Agent Tool",
          "funds"
        ],
        "x-alias": "submit",
        "x-capabilities": [
          "fund_request_submission"
        ],
        "x-moves-money": true,
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/submit-hotel-booking": {
      "post": {
        "description": "Two-step flow: call without confirm for the authoritative preview (price, policy, and required approvals) without creating a booking. When no fund is supplied, the preview uses the recommended eligible fund, if one exists, to determine required approvals. Then call with confirm=true and the previewed expected_total_amount (copied verbatim, digits and decimal point only, no currency symbol) only after a new, explicit user-authored response approves that latest preview. If the rate changes, preview the new total and obtain fresh approval before confirming.\n\nEach cancellation_timeline description applies from starts_at (inclusive, null for the first window) until deadline (exclusive), in the hotel's timezone. A check-in title labels the final window's end, not its start.\n\nUse the exact hotel_id from SearchHotels and rate_id from GetHotelRates. On confirmation, pass exactly one funding choice: spend_allocation_id with an eligible fund UUID from the preview, or request_new_fund=true with reason set to the trip purpose. If the chosen hotel rate is out of policy, you MUST collect an oop_reason from the traveler and pass it here.\n\nBefore previewing or confirming, call GetTravelerProfile (passing the same traveler_user_id for delegated booking); if has_profile is false, collect the traveler's identity details and call UpdateTravelerProfile first. This always creates a new booking; it never changes or cancels an existing one.",
        "operationId": "post_agent_tool_api___submit_hotel_booking",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubmitHotelBookingRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HotelBookingResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "trips:write"
            ]
          }
        ],
        "summary": "Book a selected hotel rate",
        "tags": [
          "Agent Tool",
          "travel"
        ],
        "x-alias": "book-hotel",
        "x-capabilities": [
          "travel_hotel_booking",
          "travel_hotel_rebooking"
        ],
        "x-destructive": true,
        "x-gated-by": "ramp_cli_hotel_booking",
        "x-moves-money": true,
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/submit-hotel-cancellation": {
      "post": {
        "description": "Identify the booking with exactly one booking identifier field and leave the\nothers null; passing several IDs for the same booking is rejected.\n\nAlways call with ``confirm=false`` first. That call is read-only and returns\nfresh authoritative terms plus a ``preview_id``. Only after a new, explicit\nuser-authored approval of that latest preview may you call again with\n``confirm=true`` and the exact ``preview_id``. Earlier cancellation intent,\nstanding approval, or instructions not to ask questions are not confirmation.\nConfirmation refetches the canonical details and refuses to cancel if any\nmaterial hotel cancellation term changed. This tool always cancels the entire\nhotel booking; use the flight cancellation tool for flights.\n\nPreview ``rendered_response`` contains authoritative plain-text copy to display\nverbatim. Booking identifiers and the HTTPS ``booking_url`` are separate\nmetadata for client presentation; they are not embedded in that copy.",
        "operationId": "post_agent_tool_api___submit_hotel_cancellation",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubmitHotelCancellationRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HotelCancellationResponse"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "trips:write"
            ]
          }
        ],
        "summary": "Preview or confirm cancellation of an existing hotel booking",
        "tags": [
          "Agent Tool",
          "travel"
        ],
        "x-alias": "cancel-hotel",
        "x-capabilities": [
          "travel_hotel_cancellation",
          "travel_hotel_rebooking"
        ],
        "x-destructive": true,
        "x-gated-by": "travel_agent_v1",
        "x-moves-money": true,
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/submit-plugin-to-marketplace": {
      "post": {
        "description": "The draft is frozen as submitted and can no longer be edited. Returns the version's\nnew status and the plugin's new revision. Does not publish the plugin.",
        "operationId": "post_agent_tool_api___submit_plugin_to_marketplace",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubmitPluginToMarketplaceRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubmitVersionResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "plugins:write"
            ]
          }
        ],
        "summary": "Submit a plugin draft to the Ramp plugin marketplace for review",
        "tags": [
          "Agent Tool",
          "plugins"
        ],
        "x-alias": "submit",
        "x-capabilities": [
          "plugin_marketplace_publishing"
        ],
        "x-gated-by": "developer_console_plugins_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/submit-reimbursement": {
      "post": {
        "description": "Enforces the saved claim's permissions and required fields; does not create a claim.\nRepeated submission of an already-pending reimbursement returns success.\nUnmet requirements are returned as structured validation errors. Pending processing\nis distinguished from completed submission; neither means approval or payment.\nRequirements that cannot be resolved here may require the reimbursement link.",
        "operationId": "post_agent_tool_api___submit_reimbursement",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubmitReimbursementRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubmitReimbursementSuccess"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "reimbursements:write"
            ]
          }
        ],
        "summary": "Submit an existing out-of-pocket or mileage reimbursement draft for approval",
        "tags": [
          "Agent Tool",
          "reimbursements"
        ],
        "x-alias": "submit",
        "x-capabilities": [
          "reimbursement_completion"
        ],
        "x-moves-money": true,
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/terminate-router-api-key": {
      "post": {
        "description": "This cannot be undone.\n\nBefore calling, show the user the key's name, owner, and provider, and its spend\nin the last 30 days when the key list includes it. Say that termination cannot\nbe undone. Get an explicit yes in this conversation. Never set ``confirmed`` to\ntrue without that yes.\n\nRouter admins can terminate any Router key in the business; other users only\ntheir own keys.",
        "operationId": "post_agent_tool_api___terminate_router_api_key",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TerminateRouterApiKeyRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RouterApiKeyActionResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "router:write"
            ]
          }
        ],
        "summary": "Permanently terminate (delete) a Router API key",
        "tags": [
          "Agent Tool",
          "router"
        ],
        "x-alias": "terminate",
        "x-capabilities": [
          "router_api_key_terminate"
        ],
        "x-destructive": true,
        "x-exclude-from-client-delegation": true,
        "x-gated-by": "router_agent_tools_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/transfer-spend-allocation-ownership": {
      "post": {
        "description": "The new owner must be within the acting user's permitted scope. Transfers requiring approval are rejected without changes.",
        "operationId": "post_agent_tool_api___transfer_spend_allocation_ownership",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TransferSpendAllocationOwnershipPublicRequestRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TransferSpendAllocationOwnershipPublicResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "funds:write"
            ]
          }
        ],
        "summary": "Transfer ownership of a spend allocation using the current and new owners' emails",
        "tags": [
          "Agent Tool",
          "funds"
        ],
        "x-alias": "transfer-ownership",
        "x-capabilities": [
          "fund_ownership_transfer"
        ],
        "x-destructive": true,
        "x-moves-money": true,
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/travel-request-action": {
      "post": {
        "description": "Cancel requires a standalone REQUESTED request with a PENDING approval and no\nreservation, soft approval, bundle, or modification. APPROVED requests cannot be\nwithdrawn, even with no linked reservation; absent linkage does not establish\nwhether purchase or ticketing has started. Only the request's traveler can withdraw\nit, not an arranger, administrator, or approver acting for someone else. It never\ndeletes records or cancels reservations. Already cancelled/rejected requests are unchanged.\n\nOnly act when the user's current instruction explicitly identifies this request or\nunambiguously refers to this exact request from the immediately preceding assistant\npreview. Never infer another pending or remaining request after completing an action.",
        "operationId": "post_agent_tool_api___travel_request_action",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TravelRequestActionRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TravelRequestActionResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "trips:write"
            ]
          }
        ],
        "summary": "Approve or reject a travel request, or withdraw your own request still awaiting approval",
        "tags": [
          "Agent Tool",
          "travel"
        ],
        "x-alias": "request-approve",
        "x-capabilities": [
          "travel_request_approvals"
        ],
        "x-destructive": true,
        "x-moves-money": true,
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/unarchive-spend-allocation": {
      "post": {
        "operationId": "post_agent_tool_api___unarchive_spend_allocation_tool",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UnarchiveSpendAllocationToolRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnarchiveSpendAllocationOutput"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "funds:write"
            ]
          }
        ],
        "summary": "Unarchive a fund so it becomes visible and spendable again",
        "tags": [
          "Agent Tool",
          "funds"
        ],
        "x-alias": "unarchive",
        "x-capabilities": [
          "spend_controls_orchestrator"
        ],
        "x-destructive": true,
        "x-moves-money": true,
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/unlock-fraud-locked-card": {
      "post": {
        "description": "Requires the user to confirm they recognize the flagged transaction.",
        "operationId": "post_agent_tool_api___unlock_fraud_locked_card",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UnlockFraudLockedCardRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CardUnlockResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "cards:write"
            ]
          }
        ],
        "summary": "Unlock a card that was locked due to a suspicious transaction",
        "tags": [
          "Agent Tool",
          "cards"
        ],
        "x-capabilities": [
          "decline_help",
          "cards_and_funds"
        ],
        "x-moves-money": true,
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/update-category-restrictions": {
      "post": {
        "description": "Manages spend types (e.g., Restaurants, Travel), not individual merchants.",
        "operationId": "post_agent_tool_api___update_category_restrictions",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCategoryRestrictionsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateCategoryRestrictionsResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "limits:write"
            ]
          }
        ],
        "summary": "Update spending category restrictions (whitelist or blacklist) on a single fund",
        "tags": [
          "Agent Tool",
          "funds"
        ],
        "x-capabilities": [
          "fund_restriction_requests",
          "spend_fund_controls"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/update-client-financing-application": {
      "post": {
        "description": "Run this on the client business, not your firm's own business; only the firm member\npreparing the application can use it, and only while the application can still be\nedited. Only the fields you provide are saved: omitted and null fields keep their\ncurrent values, and saved values cannot be cleared. Beneficial owners are matched by\nemail and added or updated, never removed. The update is all or nothing, and it does\nnot submit the application or contact the client. Returns the application's saved\ndetails; dates of birth, SSN and passport digits, and the EIN are reported only as\nprovided or not.",
        "operationId": "post_agent_tool_api___update_client_financing_application",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateClientFinancingApplicationRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientFinancingApplicationUpdated"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "applications:write"
            ]
          }
        ],
        "summary": "Fill in or correct draft details on the Ramp financing application your accounting firm is preparing for a client (an assisted application): business and incorporation details, expected monthly spend, the controlling officer, and beneficial owners",
        "tags": [
          "Agent Tool",
          "advisor_console"
        ],
        "x-alias": "update",
        "x-capabilities": [
          "financing_applications"
        ],
        "x-gated-by": "advisor_console_mcp_assisted_fa",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/update-draft-bill": {
      "post": {
        "description": "Requires the current draft version and returns the new version; stale updates are rejected with the current version. Omitted fields remain unchanged, while null intentionally clears a nullable field. A successful update returns whether the resulting draft is ready for submission and any missing required fields or submission-policy blockers. Tracking-category and option identifiers accept integer DB ids or resolvable UUID strings. Submitted drafts and drafts with retainage (withholding) are not supported.",
        "operationId": "post_agent_tool_api___patch_provisional_bill",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchProvisionalBillRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PatchProvisionalBillResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "bills:write"
            ]
          }
        ],
        "summary": "Update a draft bill: its fields, line items, accounting category coding, and draft payment details",
        "tags": [
          "Agent Tool",
          "bills"
        ],
        "x-alias": "edit",
        "x-capabilities": [
          "bill_pay_draft_authoring"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/update-fund-entity": {
      "post": {
        "description": "Each fund is updated independently and the result reports, per fund, the previous and\nnew business entity or why the fund could not be moved, so partial failures are visible.\nOnly future spend moves: past transactions stay on the previous business entity.\nThe target business entity must issue in a currency compatible with the fund and its\nactive cards, otherwise that fund is rejected. A fund already on the target business\nentity succeeds without changes. Applies the same permission and approval rules as\nediting the fund in Ramp; if the edit requires approval, the fund is reported as\npending approval and is not moved yet.",
        "operationId": "post_agent_tool_api___update_fund_entity",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateFundEntityRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateFundEntityResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "funds:write"
            ]
          }
        ],
        "summary": "Move existing funds (spend allocations) and their cards to a different business entity",
        "tags": [
          "Agent Tool",
          "funds"
        ],
        "x-alias": "update-entity",
        "x-capabilities": [
          "fund_entity_update"
        ],
        "x-destructive": true,
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/update-merchant-restrictions": {
      "post": {
        "description": "- Add or remove merchants from the allowed merchants list (whitelist)\n- Add or remove merchants from the blocked merchants list (blacklist)\n\nUse this when a user wants to:\n- Allow specific merchants on a fund (add to whitelist)\n- Block specific merchants on a fund (add to blacklist)\n- Remove merchants from the allowed or blocked lists",
        "operationId": "post_agent_tool_api___update_merchant_restrictions",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateMerchantRestrictionsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateMerchantRestrictionsResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "limits:write"
            ]
          }
        ],
        "summary": "Update merchant restrictions (whitelist or blacklist) on a fund (spend allocation)",
        "tags": [
          "Agent Tool",
          "funds"
        ],
        "x-capabilities": [
          "fund_restriction_requests",
          "spend_fund_controls"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/update-purchase-order-owner": {
      "post": {
        "description": "Use this only after the user has identified a single purchase order and the\nnew owner. For multiple purchase orders, search for the affected POs first\nand ask the user to confirm each one; do not perform unbounded bulk owner\nchanges.",
        "operationId": "post_agent_tool_api___update_purchase_order_owner",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePurchaseOrderOwnerRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdatePurchaseOrderOwnerSuccess"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "purchase_orders:write"
            ]
          }
        ],
        "summary": "Update the owner for one existing purchase order",
        "tags": [
          "Agent Tool",
          "purchase_orders"
        ],
        "x-alias": "transfer-ownership",
        "x-capabilities": [
          "purchase_order_owner_update"
        ],
        "x-gated-by": "mcp_purchase_order_lifecycle_tools_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/update-rfx": {
      "post": {
        "description": "``sections`` is a complete replacement of the questionnaire \u2014 resubmit the\nfull section list on every update. Use GetRFXDetail first to see the\ncurrent structure. Optional scalar fields left unset are unchanged.",
        "operationId": "post_agent_tool_api___update_rfx",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateRFXRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateRFXOutput"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "sourcing:write"
            ]
          }
        ],
        "summary": "Update an RFX's name, description, dates, and questionnaire sections",
        "tags": [
          "Agent Tool",
          "sourcing"
        ],
        "x-alias": "edit",
        "x-gated-by": "developer_api_sourcing_agent_tools_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/update-router-model-policy": {
      "post": {
        "description": "Block or unblock Router models and providers, or turn fast mode and frontier\nmodels on or off, for the company, listed people, or listed departments. Other\nsaved settings are kept. Returns the saved policy and the catalog models that\nthe changed names cover.\n\nNames must be exact Router catalog names. A block on a name covers every name\nof that same model, including a managed alias that points to it, and the alias\nitself. A block on the first-party name also covers its Bedrock copies. It\ndoes not cover the same model on another host. To block a model everywhere,\nblock its first-party name and each other host's name. You do not need the\nBedrock names. Report each changed name with its providers from models. A\nmanaged alias (alias_for set) follows the newest model of a family, so block it\nonly when the user asks to always block the newest model.\n\nA department rule also applies to future members. Never list a department's\nmembers as people instead. An unblock for a person or department lifts only a\nblock saved under the exact same name. An unblocked provider covers all of its\nmodels, including models added later. still_blocked lists unblocked names that\nthe target still cannot use and what blocks each one; never report those names\nas allowed.\n\nAny block, frontier_enabled or fast_mode_enabled false, or fast_mode_off_action\nblock makes a change blocking, even when the same call also unblocks\nsomething. Without confirmed, a blocking change for the company or departments\nsaves nothing. It returns confirmation_needed with its impact, whatever the\ntraffic. A blocking change for people does the same only when its impact has\nrequests or stops fast requests. Otherwise it is saved directly. A change that\nonly unblocks, turns frontier or fast mode on, or sets fast_mode_off_action to\ndowngrade is saved directly.\n\nSet confirmed only after the user says yes in this conversation to a preview of\nthe exact names with providers, the targets, anyone not on Router, and the\nimpact. Give the period as dates from impact.start_at to impact.end_at, such as\n\"since Nov 6\", not as a length such as \"last week\". The newest hour may not be\ncounted yet, and the count can include people whose own rule allows the model,\nso say \"up to\" when that matters. When impact.stops_fast_requests is true, say\nthat fast requests will fail, not slow down, and that the count can miss\nAnthropic fast requests. Offer downgrade instead, which serves them at standard\nspeed, and say that fast_mode_off_action is one setting for the whole company.",
        "operationId": "post_agent_tool_api___update_router_model_policy",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateRouterModelPolicyRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateRouterModelPolicyResponse"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "router:write"
            ]
          }
        ],
        "summary": "Change which Router models the company, people, or departments can use",
        "tags": [
          "Agent Tool",
          "router"
        ],
        "x-alias": "update-model-policy",
        "x-capabilities": [
          "router_policies"
        ],
        "x-destructive": true,
        "x-exclude-from-client-delegation": true,
        "x-gated-by": "router_agent_tools_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/update-router-workload": {
      "post": {
        "description": "Send exactly one target. slug finds a coding model (a Router workload): a new\nslug creates one, an existing slug changes it, and delete true deletes it.\nThe slug is the name to pick with /model in Claude Code or Codex and cannot\nchange later, so always ask the user for it; never invent one. Each coding\nmodel has one strategy:\n- switchyard: a capable model for hard requests and an efficient model for\n  easy ones;\n- classifier: Router picks from 2 to 6 models by each model's description;\n- model_list: models tried in order, the first that can serve wins, so a\n  fallback goes last;\n- benchmark: Router picks by 1 to 3 weighted benchmark scores.\nA change can replace the strategy, change Flex, the provider preference, or\n(only when Router reports subagent routing as available for the user)\nsubagent_routing_mode or subagent_routing_models, or do both. Do not assume\nor mention subagent routing defaults when subagent routing is unavailable.\ndefault true changes the same settings, without a strategy, for requests\nthat pick a regular model instead of a slug.\n\nWithout confirmed, nothing is saved when the server needs the user: it\nreturns needs_input with the missing item and its choices, or\nconfirmation_needed with the would-be result and defaults_applied. Ask the\nuser for the missing item, or show the draft and its defaults and get an\nexplicit yes in this conversation; then call again with confirmed true. A\ncreate, a delete, or a default settings change always needs that yes. A\ncoding model change needs it only when the coding model had requests in the\nlast 7 days or the count is unknown; otherwise it is saved directly. After a\nsave, changes reach new sessions in about a minute.",
        "operationId": "post_agent_tool_api___update_router_workload",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateRouterWorkloadRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateRouterWorkloadResponse"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "router:write"
            ]
          }
        ],
        "summary": "Create, change, or delete one of your Router coding models, the names you pick with /model, or change your default settings",
        "tags": [
          "Agent Tool",
          "router"
        ],
        "x-alias": "set-coding-model",
        "x-capabilities": [
          "router_coding_workloads"
        ],
        "x-destructive": true,
        "x-exclude-from-client-delegation": true,
        "x-gated-by": "router_agent_tools_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/update-spend-allocation-interval": {
      "post": {
        "operationId": "post_agent_tool_api___update_spend_allocation_interval_tool",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSpendAllocationIntervalToolRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateSpendAllocationIntervalOutput"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "funds:write"
            ]
          }
        ],
        "summary": "Update only the spend interval for a spend allocation",
        "tags": [
          "Agent Tool",
          "funds"
        ],
        "x-alias": "update-interval",
        "x-capabilities": [
          "bulk_funds_actions"
        ],
        "x-destructive": true,
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/update-submitted-procurement-request": {
      "post": {
        "description": "Changes the name, memo, spend dates, request-level accounting coding, and line\nitems (add, split, edit, or remove lines). Saved edits are visible to approvers\nright away and can restart approvals, as an edit in Ramp does. Call with only\nspend_request_uuid to read the current values and line item UUIDs. Set\nconfirmed=true only after the user has agreed to the exact changes; until then\nnothing is saved. Only pending requests qualify: drafts, rejected requests, and\nchange orders are refused, and so is a request that is already approved; an\napproved purchase order changes through a change order that goes through approval.\nCurrency, entity, vendor, and intake form answers cannot be changed.",
        "operationId": "post_agent_tool_api___update_submitted_procurement_request",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSubmittedProcurementRequestRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProcurementSubmittedRequestStateJsonMode"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "spend_requests:write"
            ]
          }
        ],
        "summary": "Edit an in-flight procurement request that is submitted and still waiting for approval, and return its current state",
        "tags": [
          "Agent Tool",
          "procurement_requests"
        ],
        "x-alias": "update-submitted",
        "x-capabilities": [
          "submitted_procurement_request_edit"
        ],
        "x-gated-by": "procurement_update_submitted_request_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/update-transaction-amount-limit": {
      "post": {
        "description": "Use this for decline action\nINCREASE_TRANSACTION_AMOUNT_LIMIT or requests about a per-transaction,\nsingle-transaction, or max-expense limit. Use LimitIncrease for the period total.\n\nSet any positive value to raise or lower the cap. AP-card and bill-pay funds are\nunsupported. Provide exactly one of spend_allocation_id or card_id.",
        "operationId": "post_agent_tool_api___update_transaction_amount_limit",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTransactionAmountLimitRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateTransactionAmountLimitResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "limits:write"
            ]
          }
        ],
        "summary": "Set a fund's maximum amount for one transaction",
        "tags": [
          "Agent Tool",
          "funds"
        ],
        "x-capabilities": [
          "cards_and_funds"
        ],
        "x-moves-money": true,
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/update-travel-preferences": {
      "post": {
        "description": "Returns save status, the traveler's UUID, a summary, and the updated preference\ntext. Requires an existing traveler profile; does not update another traveler.\nUnrelated saved preferences are preserved. An explicit airline, seat-position, or\nhotel-chain answer, or a flight Starlink request (not general Wi-Fi), can\ninitialize a missing preference, and explicit hotel amenities can be added,\nwithout save wording. Replacing one, or saving another\ncategory, requires a lasting preference or a request to save.\nInferred preferences require the user's confirmation before saving. Do not save\none-trip constraints, company policy, fund choices, or sensitive identity,\npayment, or loyalty account numbers.",
        "operationId": "post_agent_tool_api___update_travel_preferences",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTravelPreferencesRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdatedPreferences"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "trips:write"
            ]
          }
        ],
        "summary": "Save, change, or remove the acting user's free-text flight and hotel preferences",
        "tags": [
          "Agent Tool",
          "travel"
        ],
        "x-alias": "preferences-update",
        "x-capabilities": [
          "travel_car_rebooking",
          "travel_memory",
          "traveler_profile",
          "travel_flight_booking",
          "travel_hotel_booking",
          "travel_flight_rebooking",
          "travel_hotel_rebooking"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/update-traveler-profile": {
      "post": {
        "description": "Profile-detail updates preserve saved preference text. Legacy\nstructured flight defaults remain accepted and are converted to free text.\nDoes not accept free-text preference changes or natural-language loyalty requests.\nDefaults to the acting user; another traveler requires their user UUID and\ndelegate or travel-manager permission. Creating a profile requires its identity\nand contact fields.",
        "operationId": "post_agent_tool_api___update_traveler_profile",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTravelerProfileRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateTravelerProfileResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "trips:write"
            ]
          }
        ],
        "summary": "Create or update traveler identity, contact details, and travel document numbers",
        "tags": [
          "Agent Tool",
          "travel"
        ],
        "x-alias": "profile-update",
        "x-capabilities": [
          "travel_car_rebooking",
          "traveler_profile",
          "travel_flight_booking",
          "travel_hotel_booking",
          "travel_flight_rebooking",
          "travel_hotel_rebooking"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/update-vendor-accounting-defaults": {
      "post": {
        "description": "department, class or location, on up to 50 vendors in one call.\n\nOne call applies the same change to every listed vendor. When vendors need\ndifferent values, make one call per distinct value, each listing the vendors that\ntake it. These defaults prefill the coding of the vendor's new bills and spend.\nChanges apply immediately, like editing the vendor's accounting defaults in Ramp.\nThe listed fields are merged into each vendor's current defaults: only those\nfields change, and the vendor's other defaults keep their values. Field and option\nIDs are the UUIDs returned by GetTrackingCategories and GetTrackingCategoryOptions\nfor the business's connected accounting integrations; free-text and date fields\ncannot be set here.\n\nUnknown or inactive field and option IDs reject the whole call before anything\nchanges. After that, each vendor succeeds or fails on its own, and a failure for\none vendor does not undo the others. The result lists every vendor's defaults\nbefore and after.",
        "operationId": "post_agent_tool_api___update_vendor_accounting_defaults",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateVendorAccountingDefaultsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateVendorAccountingDefaultsResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "vendors:write"
            ]
          }
        ],
        "summary": "Set or clear default accounting field values, such as the default GL account,",
        "tags": [
          "Agent Tool",
          "vendors"
        ],
        "x-alias": "update-accounting-defaults",
        "x-capabilities": [
          "vendor_accounting_defaults"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/upload-receipt-file": {
      "post": {
        "description": "Use this tool to create a receipt from raw file data (PNG, JPEG, PDF, HEIC, WEBP).\nOptionally attach it to a transaction by providing a transaction UUID.\nThis tool is designed for CLI callers that have the file content directly.",
        "operationId": "post_agent_tool_api___upload_receipt_file",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UploadReceiptFileRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReceiptUploadSuccess"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "receipts:write"
            ]
          }
        ],
        "summary": "Upload a receipt from base64-encoded file content",
        "tags": [
          "Agent Tool",
          "receipts"
        ],
        "x-alias": "upload",
        "x-mcp-visibility": [
          "app"
        ],
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": false,
        "x-unavailable-instructions": "Have the user submit the receipt through another Ramp channel instead, such as the Ramp web or mobile app, or by forwarding the receipt from their work email to receipts@ramp.com."
      }
    },
    "/developer/v1/agent-tools/upload-sourcing-document": {
      "post": {
        "operationId": "post_agent_tool_api___upload_sourcing_document",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/ApiSourcingUploadDocumentInputRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiSourcingUploadDocumentResultJsonMode"
                }
              }
            },
            "description": "Uploaded sourcing document"
          }
        },
        "security": [
          {
            "oauth2": [
              "sourcing:write"
            ]
          }
        ],
        "summary": "Upload a document for use as an RFX cover-sheet or pricing-sheet attachment",
        "tags": [
          "Sourcing Agent Tool",
          "sourcing"
        ],
        "x-alias": "upload",
        "x-gated-by": "developer_api_sourcing_agent_tools_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-tools/withdraw-x402-wallet": {
      "post": {
        "description": "Before calling, use ListBusinessAccounts to obtain the destination account UUID;\nnever guess it. Confirm the exact destination account and USDC amount with the\nuser before creating this irreversible transfer. MCP and CLI callers must provide\nan idempotency key. Only active Increase USD accounts are supported.",
        "operationId": "post_agent_tool_api___withdraw_x402_wallet",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WithdrawX402WalletRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WithdrawX402WalletResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "x402:write"
            ]
          }
        ],
        "summary": "Withdraw the business's x402 wallet balance to a Ramp Checking Account",
        "tags": [
          "Agent Tool",
          "x402"
        ],
        "x-alias": "withdraw",
        "x-capabilities": [
          "x402_payments"
        ],
        "x-destructive": true,
        "x-gated-by": "developer_api_x402_enabled",
        "x-moves-money": true,
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agent-wallet/agents/{agent_id}/policies": {
      "get": {
        "operationId": "get_agent_wallet_policy_publication_resource",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 100,
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentWalletPolicyListResponse"
                }
              }
            },
            "description": "Agent Wallet policy versions"
          }
        },
        "security": [
          {
            "oauth2": [
              "agent_wallet_policy:read"
            ]
          }
        ],
        "summary": "List policy versions for a standalone Agent Wallet",
        "tags": [
          "Agent Wallet",
          "agent-wallet"
        ],
        "x-alias": "list",
        "x-gated-by": "agent_wallet_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": true
      },
      "parameters": [
        {
          "description": "Standalone agent ID returned by the list agents tool.",
          "in": "path",
          "name": "agent_id",
          "required": true,
          "schema": {
            "type": "string"
          },
          "style": "simple"
        }
      ],
      "post": {
        "operationId": "post_agent_wallet_policy_publication_resource",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CanonicalPolicyRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "Agent Wallet policy published"
          }
        },
        "security": [
          {
            "oauth2": [
              "agent_wallet_policy:write"
            ]
          }
        ],
        "summary": "Publish the active policy for a standalone Agent Wallet",
        "tags": [
          "Agent Wallet",
          "agent-wallet"
        ],
        "x-alias": "policy",
        "x-gated-by": "agent_wallet_enabled",
        "x-moves-money": true,
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agents": {
      "get": {
        "description": "Returns identity, ownership, role, status, and lifecycle metadata for each\nstandalone agent.",
        "operationId": "get_agent_list_resource",
        "parameters": [
          {
            "description": "The number of results to be returned in each page. The value must be between 2 and 100. If not specified, the default value 20 will be used.",
            "in": "query",
            "name": "page_size",
            "required": false,
            "schema": {
              "default": 20,
              "type": "integer"
            }
          },
          {
            "description": "The opaque cursor returned in page.next from the previous page.",
            "in": "query",
            "name": "start",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedResponseAgentSchema"
                }
              }
            },
            "description": "Standalone agents"
          }
        },
        "security": [
          {
            "oauth2": [
              "agents:read"
            ]
          }
        ],
        "summary": "List active standalone agents in the authenticated business",
        "tags": [
          "Agents",
          "agent"
        ],
        "x-alias": "list",
        "x-gated-by": "identity_standalone_agents",
        "x-open-world": false,
        "x-platforms": [
          "cli"
        ],
        "x-read-only": true
      },
      "post": {
        "description": "Returns the agent along with its OAuth client credentials. The client\nsecret is shown only once; rotate it via the secret endpoint if lost.",
        "operationId": "post_agent_list_resource",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentCreateRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentCreateResponse"
                }
              }
            },
            "description": "Created standalone agent with show-once client credentials"
          }
        },
        "security": [
          {
            "oauth2": [
              "agents:write"
            ]
          }
        ],
        "summary": "Create a standalone agent in the authenticated business",
        "tags": [
          "Agents",
          "agent"
        ],
        "x-alias": "create",
        "x-gated-by": "identity_standalone_agents",
        "x-open-world": false,
        "x-platforms": [
          "cli"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agents/{agent_id}": {
      "delete": {
        "operationId": "delete_agent_item_resource",
        "responses": {
          "204": {
            "description": "Agent deleted"
          }
        },
        "security": [
          {
            "oauth2": [
              "agents:write"
            ]
          }
        ],
        "summary": "Soft-delete a standalone agent and revoke its OAuth client",
        "tags": [
          "Agents",
          "agent"
        ],
        "x-alias": "delete",
        "x-destructive": true,
        "x-gated-by": "identity_standalone_agents",
        "x-open-world": false,
        "x-platforms": [
          "cli"
        ],
        "x-read-only": false
      },
      "get": {
        "operationId": "get_agent_item_resource",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Agent"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "agents:read"
            ]
          }
        ],
        "summary": "Fetch a standalone agent in the authenticated business",
        "tags": [
          "Agents",
          "agent"
        ],
        "x-alias": "get",
        "x-gated-by": "identity_standalone_agents",
        "x-open-world": false,
        "x-platforms": [
          "cli"
        ],
        "x-read-only": true
      },
      "parameters": [
        {
          "description": "Unique identifier of the standalone agent.",
          "in": "path",
          "name": "agent_id",
          "required": true,
          "schema": {
            "format": "uuid",
            "type": "string"
          },
          "style": "simple"
        }
      ],
      "patch": {
        "operationId": "patch_agent_item_resource",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentUpdateRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Agent"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "agents:write"
            ]
          }
        ],
        "summary": "Update a standalone agent's name, description, owner, or custom roles",
        "tags": [
          "Agents",
          "agent"
        ],
        "x-alias": "update",
        "x-gated-by": "identity_standalone_agents",
        "x-open-world": false,
        "x-platforms": [
          "cli"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agents/{agent_id}/secret": {
      "parameters": [
        {
          "description": "Unique identifier of the standalone agent.",
          "in": "path",
          "name": "agent_id",
          "required": true,
          "schema": {
            "format": "uuid",
            "type": "string"
          },
          "style": "simple"
        }
      ],
      "post": {
        "description": "Revokes tokens minted with previous secrets and returns the new\nshow-once client credentials.",
        "operationId": "post_agent_rotate_secret_resource",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentCredentials"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "agents:write"
            ]
          }
        ],
        "summary": "Rotate a standalone agent's client secret",
        "tags": [
          "Agents",
          "agent"
        ],
        "x-alias": "rotate-secret",
        "x-gated-by": "identity_standalone_agents",
        "x-open-world": false,
        "x-platforms": [
          "cli"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/agents/{agent_id}/status": {
      "parameters": [
        {
          "description": "Unique identifier of the standalone agent.",
          "in": "path",
          "name": "agent_id",
          "required": true,
          "schema": {
            "format": "uuid",
            "type": "string"
          },
          "style": "simple"
        }
      ],
      "post": {
        "operationId": "post_agent_status_resource",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentStatusRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "Agent status set"
          }
        },
        "security": [
          {
            "oauth2": [
              "agents:write"
            ]
          }
        ],
        "summary": "Deactivate or reactivate a standalone agent",
        "tags": [
          "Agents",
          "agent"
        ],
        "x-alias": "status",
        "x-gated-by": "identity_standalone_agents",
        "x-moves-money": true,
        "x-open-world": false,
        "x-platforms": [
          "cli"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/ai-spend/api-keys": {
      "get": {
        "description": "Results are sorted by estimated cost in descending order, then by API key\nID in ascending order. A request can match at most 10,000 API keys. Use\nthe providers or statuses filter to narrow larger result sets.\n\nEstimated cost is calculated for the requested period. All other fields\nreflect current metadata for the API key, independent of the requested\ndates. The statuses filter applies to each API key's current status.",
        "operationId": "get_ai_spend_api_key_list_resource",
        "parameters": [
          {
            "description": "Comma-separated current API key statuses to include. Omit to exclude terminated API keys.",
            "explode": false,
            "in": "query",
            "name": "statuses",
            "required": false,
            "schema": {
              "items": {
                "enum": [
                  "active",
                  "expired",
                  "locked",
                  "terminated"
                ],
                "type": "string",
                "x-enum-descriptions": {
                  "active": "The API key is active.",
                  "expired": "The API key has expired.",
                  "locked": "The API key is locked.",
                  "terminated": "The API key was terminated or archived."
                }
              },
              "nullable": false,
              "type": "array"
            },
            "style": "form"
          },
          {
            "description": "Comma-separated providers to include. Omit to include all supported providers.",
            "explode": false,
            "in": "query",
            "name": "providers",
            "required": false,
            "schema": {
              "items": {
                "enum": [
                  "ANTHROPIC",
                  "OPENAI",
                  "RAMP"
                ],
                "type": "string",
                "x-enum-descriptions": {
                  "ANTHROPIC": "Anthropic",
                  "OPENAI": "OpenAI",
                  "RAMP": "Ramp Router"
                }
              },
              "nullable": false,
              "type": "array"
            },
            "style": "form"
          },
          {
            "description": "End date of the requested period in UTC, exclusive. The period can span up to 365 days.",
            "in": "query",
            "name": "to_date",
            "required": true,
            "schema": {
              "format": "date",
              "type": "string"
            }
          },
          {
            "description": "Number of results to return per page. Defaults to 20. Must be between 2 and 100.",
            "in": "query",
            "name": "page_size",
            "required": false,
            "schema": {
              "default": 20,
              "maximum": 100,
              "minimum": 2,
              "type": "integer"
            }
          },
          {
            "description": "Opaque cursor returned in page.next from the previous page.",
            "in": "query",
            "name": "start",
            "required": false,
            "schema": {
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "Start date of the requested period in UTC, inclusive. Must be on or after 2023-01-01. The period can span up to 365 days.",
            "in": "query",
            "name": "from_date",
            "required": true,
            "schema": {
              "format": "date",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedResponseAiSpendApiKeyResourceSchema"
                }
              }
            },
            "description": "AI spend by API key"
          }
        },
        "security": [
          {
            "oauth2": [
              "ai_spend:read"
            ]
          }
        ],
        "summary": "List provider API keys and their estimated spend",
        "tags": [
          "AI Spend",
          "ai-token-spend"
        ],
        "x-alias": "api-key-spend",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/ai-spend/team": {
      "get": {
        "description": "User profile fields reflect current Ramp user metadata, independent of the\nrequested dates. Only users with positive estimated spend are returned.",
        "operationId": "get_ai_spend_team_list_resource",
        "parameters": [
          {
            "description": "Comma-separated AI providers to include. Omit to include all supported providers.",
            "explode": false,
            "in": "query",
            "name": "providers",
            "required": false,
            "schema": {
              "items": {
                "type": "string"
              },
              "nullable": false,
              "type": "array"
            },
            "style": "form"
          },
          {
            "description": "End date of the requested period in UTC, exclusive. The period can span up to 365 days.",
            "in": "query",
            "name": "to_date",
            "required": true,
            "schema": {
              "format": "date",
              "type": "string"
            }
          },
          {
            "description": "Filter by whether Ramp detected anomalous AI spend during the requested period. Omit to include all users.",
            "in": "query",
            "name": "is_anomalous",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "Number of results to return per page. Defaults to 20. Must be between 2 and 100.",
            "in": "query",
            "name": "page_size",
            "required": false,
            "schema": {
              "default": 20,
              "maximum": 100,
              "minimum": 2,
              "type": "integer"
            }
          },
          {
            "description": "Opaque cursor returned in page.next from the previous page.",
            "in": "query",
            "name": "start",
            "required": false,
            "schema": {
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "Start date of the requested period in UTC, inclusive. The period can span up to 365 days.",
            "in": "query",
            "name": "from_date",
            "required": true,
            "schema": {
              "format": "date",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiSpendTeamListResponse"
                }
              }
            },
            "description": "Estimated AI spend by Ramp user"
          }
        },
        "security": [
          {
            "oauth2": [
              "ai_spend:read"
            ]
          }
        ],
        "summary": "List Ramp users with estimated AI spend during the requested period",
        "tags": [
          "AI Spend",
          "ai-token-spend"
        ],
        "x-alias": "team-spend",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/ai-spend/usage": {
      "get": {
        "description": "Rows match the AI Spend page in Ramp. Each row covers one UTC day. By\ndefault rows are grouped by provider, model, and product; use group_by\nto choose other dimensions.\n\nRows are sorted by usage_date, then by the grouped dimensions. A request\ncan match at most 10,000 rows. Use a shorter date range, fewer group_by\ndimensions, or filters to narrow larger result sets.",
        "operationId": "get_ai_spend_usage_list_resource",
        "parameters": [
          {
            "description": "Comma-separated AI providers to include. Omit to include all providers.",
            "explode": false,
            "in": "query",
            "name": "providers",
            "required": false,
            "schema": {
              "items": {
                "type": "string"
              },
              "nullable": false,
              "type": "array"
            },
            "style": "form"
          },
          {
            "description": "Comma-separated dimensions to group each day's rows by. Defaults to provider,model,product. Fields for dimensions that are not requested are null. When group_by includes user, the date range can span up to 31 days.",
            "explode": false,
            "in": "query",
            "name": "group_by",
            "required": false,
            "schema": {
              "items": {
                "enum": [
                  "department",
                  "model",
                  "product",
                  "provider",
                  "user"
                ],
                "type": "string",
                "x-enum-descriptions": {
                  "department": "Group by the Ramp user's department.",
                  "model": "Group by provider model name.",
                  "product": "Group by the product the usage came from, such as claude_code, codex, or cursor.",
                  "provider": "Group by AI provider.",
                  "user": "Group by Ramp user."
                }
              },
              "nullable": false,
              "type": "array"
            },
            "style": "form"
          },
          {
            "description": "Comma-separated exact product names to include. Requires group_by to include product. Omit to include all products.",
            "explode": false,
            "in": "query",
            "name": "products",
            "required": false,
            "schema": {
              "items": {
                "minLength": 1,
                "type": "string"
              },
              "nullable": false,
              "type": "array"
            },
            "style": "form"
          },
          {
            "description": "Comma-separated exact provider model names to include. Omit to include all models.",
            "explode": false,
            "in": "query",
            "name": "models",
            "required": false,
            "schema": {
              "items": {
                "minLength": 1,
                "type": "string"
              },
              "nullable": false,
              "type": "array"
            },
            "style": "form"
          },
          {
            "description": "End date of the requested period in UTC, exclusive. The period can span up to 365 days.",
            "in": "query",
            "name": "to_date",
            "required": true,
            "schema": {
              "format": "date",
              "type": "string"
            }
          },
          {
            "description": "Number of results to return per page. Defaults to 20. Must be between 2 and 100.",
            "in": "query",
            "name": "page_size",
            "required": false,
            "schema": {
              "default": 20,
              "maximum": 100,
              "minimum": 2,
              "type": "integer"
            }
          },
          {
            "description": "Opaque cursor returned in page.next from the previous page.",
            "in": "query",
            "name": "start",
            "required": false,
            "schema": {
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "Start date of the requested period in UTC, inclusive. The period can span up to 365 days.",
            "in": "query",
            "name": "from_date",
            "required": true,
            "schema": {
              "format": "date",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedResponseAiSpendUsageResourceSchema"
                }
              }
            },
            "description": "AI usage and spend"
          }
        },
        "security": [
          {
            "oauth2": [
              "ai_spend:read"
            ]
          }
        ],
        "summary": "List AI usage and estimated spend grouped by the requested dimensions",
        "tags": [
          "AI Spend",
          "ai-token-spend"
        ],
        "x-alias": "daily-usage",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/applications": {
      "get": {
        "description": "Since each business can only have one active financing application, this endpoint will only ever return a single\napplication.",
        "operationId": "get_application_resource",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiApplicationResource"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "applications:read"
            ]
          }
        ],
        "summary": "Fetch a financing application",
        "tags": [
          "Application",
          "applications"
        ],
        "x-alias": "get",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "third_party"
        ],
        "x-read-only": true
      },
      "patch": {
        "description": "This endpoint applies partial, source-backed draft application data for the applicant's current financing\napplication.",
        "operationId": "patch_application_update_resource",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/ApiApplicationAgentOnlyWriteContextParamsRequestBody"
                  },
                  {
                    "$ref": "#/components/schemas/ApiApplicationUpdateParamsRequestBody"
                  }
                ]
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiApplicationResource"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "applications:write"
            ]
          }
        ],
        "summary": "Update a financing application",
        "tags": [
          "Application",
          "applications"
        ],
        "x-alias": "edit",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/applications/documents": {
      "get": {
        "operationId": "get_application_document_resource",
        "parameters": [
          {
            "description": "The ID of the last entity of the previous page, used for pagination to get the next page.",
            "in": "query",
            "name": "start",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The number of results to be returned in each page. The value must be between 2 and 100. If not specified, the default value 20 will be used.",
            "in": "query",
            "name": "page_size",
            "required": false,
            "schema": {
              "default": 20,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedResponseApiApplicationDocumentResource"
                }
              }
            },
            "description": "Application documents"
          }
        },
        "security": [
          {
            "oauth2": [
              "applications:read"
            ]
          }
        ],
        "summary": "List documents uploaded for the current financing application",
        "tags": [
          "Application",
          "applications"
        ],
        "x-alias": "documents",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "third_party"
        ],
        "x-read-only": true
      },
      "post": {
        "operationId": "post_application_document_resource",
        "parameters": [
          {
            "description": "Unique idempotency key generated by the client. Must be a non-empty string of at most 255 characters.",
            "in": "header",
            "name": "X-Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/ApiApplicationAgentOnlyWriteContextParamsRequestBody"
                  },
                  {
                    "$ref": "#/components/schemas/ApiApplicationDocumentUploadParamsRequestBody"
                  }
                ]
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiApplicationDocumentResource"
                }
              }
            },
            "description": "Uploaded document"
          }
        },
        "security": [
          {
            "oauth2": [
              "applications:write"
            ]
          }
        ],
        "summary": "Upload a document for the current financing application",
        "tags": [
          "Application",
          "applications"
        ],
        "x-alias": "upload",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/applications/documents/{document_id}": {
      "delete": {
        "operationId": "delete_application_document_detail_resource",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiApplicationAgentOnlyWriteContextParamsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmptyObject"
                }
              }
            },
            "description": "Success, No content"
          }
        },
        "security": [
          {
            "oauth2": [
              "applications:write"
            ]
          }
        ],
        "summary": "Delete a document from the current financing application",
        "tags": [
          "Application",
          "applications"
        ],
        "x-alias": "delete-document",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "third_party"
        ],
        "x-read-only": false
      },
      "parameters": [
        {
          "description": "Unique identifier of the application document.",
          "in": "path",
          "name": "document_id",
          "required": true,
          "schema": {
            "type": "string"
          },
          "style": "simple"
        }
      ]
    },
    "/developer/v1/applications/followups": {
      "get": {
        "operationId": "get_application_followup_list_resource",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiFollowupListResource"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "applications:read"
            ]
          }
        ],
        "summary": "Fetch customer-pending financing application follow-ups",
        "tags": [
          "Application",
          "applications"
        ],
        "x-alias": "followups",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/applications/followups/submit": {
      "post": {
        "operationId": "post_application_followup_submit_resource",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiApplicationAgentOnlyWriteContextParamsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "Successfully submitted"
          }
        },
        "security": [
          {
            "oauth2": [
              "applications:write"
            ]
          }
        ],
        "summary": "Submit completed customer-pending financing application follow-ups",
        "tags": [
          "Application",
          "applications"
        ],
        "x-alias": "submit",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/applications/followups/{followup_id}": {
      "parameters": [
        {
          "description": "Unique identifier of the application follow-up.",
          "in": "path",
          "name": "followup_id",
          "required": true,
          "schema": {
            "type": "string"
          },
          "style": "simple"
        }
      ],
      "patch": {
        "operationId": "patch_application_followup_resource",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/ApiApplicationAgentOnlyWriteContextParamsRequestBody"
                  },
                  {
                    "$ref": "#/components/schemas/ApiFollowupUpdateParamsRequestBody"
                  }
                ]
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiFollowupResource"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "applications:write"
            ]
          }
        ],
        "summary": "Update an agent-editable financing application follow-up",
        "tags": [
          "Application",
          "applications"
        ],
        "x-alias": "update-followup",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/applications/progress": {
      "get": {
        "description": "Access is scoped to the OAuth connection's business.",
        "operationId": "get_application_progress_resource",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiApplicationProgressResource"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "applications:read"
            ]
          }
        ],
        "summary": "Fetch financing application progress",
        "tags": [
          "Application",
          "applications"
        ],
        "x-alias": "progress",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/ask-ramp/sessions": {
      "post": {
        "description": "Use this when the other Ramp tools and resources are not enough: the\nrequest spans several Ramp areas, needs Ramp-specific judgment or\npolicy context, or you have tried the direct tools and still cannot\ncomplete it. For a single lookup or action a direct tool covers, call\nthat tool instead.\n\nAsk Ramp acts with the user's own Ramp permissions and can take actions.\nTurns can take a few minutes: while the result is `working`, tell the\nuser what Ask Ramp is doing (summarize `steps`), then call get-result.\nAnswer an `input_required` result with continue.",
        "operationId": "post_ask_ramp_sessions_resource",
        "parameters": [
          {
            "description": "Unique idempotency key generated by the client. Must be a non-empty string of at most 255 characters.",
            "in": "header",
            "name": "X-Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AskRampStartRequestRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AskRampExternalResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "ask_ramp"
            ]
          }
        ],
        "summary": "Hand a Ramp question or task to Ask Ramp, Ramp's own agent",
        "tags": [
          "AskRamp",
          "ask-ramp"
        ],
        "x-alias": "ask",
        "x-gated-by": "askramp_mcp_a2a_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/ask-ramp/sessions/{session_id}": {
      "get": {
        "description": "Long-polls while the session is `working`. If it is still working,\nsummarize any new `steps` for the user and call again.",
        "operationId": "get_ask_ramp_session_result_resource",
        "parameters": [
          {
            "in": "query",
            "name": "wait_seconds",
            "required": false,
            "schema": {
              "default": 55,
              "maximum": 55,
              "minimum": 0,
              "title": "Wait Seconds",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AskRampExternalResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "ask_ramp"
            ]
          }
        ],
        "summary": "Get the current result of an Ask Ramp session",
        "tags": [
          "AskRamp",
          "ask-ramp"
        ],
        "x-alias": "get-result",
        "x-gated-by": "askramp_mcp_a2a_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": true
      },
      "parameters": [
        {
          "description": "Unique identifier of the AskRamp session.",
          "in": "path",
          "name": "session_id",
          "required": true,
          "schema": {
            "format": "uuid",
            "type": "string"
          },
          "style": "simple"
        }
      ]
    },
    "/developer/v1/ask-ramp/sessions/{session_id}/messages": {
      "parameters": [
        {
          "description": "Unique identifier of the AskRamp session.",
          "in": "path",
          "name": "session_id",
          "required": true,
          "schema": {
            "format": "uuid",
            "type": "string"
          },
          "style": "simple"
        }
      ],
      "post": {
        "description": "Answers an `input_required` result (pass its `input_request.request_id`\nas `input_request_id`) or asks a follow-up once the session completes.",
        "operationId": "post_ask_ramp_session_messages_resource",
        "parameters": [
          {
            "description": "Unique idempotency key generated by the client. Must be a non-empty string of at most 255 characters.",
            "in": "header",
            "name": "X-Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AskRampContinueRequestRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AskRampExternalResult"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "ask_ramp"
            ]
          }
        ],
        "summary": "Send a follow-up message to an Ask Ramp session",
        "tags": [
          "AskRamp",
          "ask-ramp"
        ],
        "x-alias": "continue",
        "x-gated-by": "askramp_mcp_a2a_enabled",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/audit-logs/events": {
      "get": {
        "operationId": "get_audit_log_events_list_resource",
        "parameters": [
          {
            "description": "Filter by audit log events attributed to these user IDs",
            "explode": false,
            "in": "query",
            "name": "user_ids",
            "required": false,
            "schema": {
              "items": {
                "format": "uuid",
                "type": "string"
              },
              "nullable": true,
              "type": "array"
            },
            "style": "form"
          },
          {
            "description": "Filter by audit log events created at or after this date. start_time is accepted as a compatibility alias.",
            "in": "query",
            "name": "from_date",
            "required": false,
            "schema": {
              "default": null,
              "format": "date-time",
              "nullable": true,
              "type": "string"
            }
          },
          {
            "description": "Filter by audit log events created at or before this date. end_time is accepted as a compatibility alias.",
            "in": "query",
            "name": "to_date",
            "required": false,
            "schema": {
              "default": null,
              "format": "date-time",
              "nullable": true,
              "type": "string"
            }
          },
          {
            "description": "Filter by audit log events of these actor types",
            "explode": false,
            "in": "query",
            "name": "event_actor_types",
            "required": false,
            "schema": {
              "items": {
                "enum": [
                  "policy_agent",
                  "ramp",
                  "spend_request_agent",
                  "user"
                ],
                "type": "string",
                "x-enum-descriptions": {
                  "spend_request_agent": "Spend Request Agent activity."
                }
              },
              "nullable": true,
              "type": "array"
            },
            "style": "form"
          },
          {
            "description": "Filter by audit log events of these types",
            "explode": false,
            "in": "query",
            "name": "event_types",
            "required": false,
            "schema": {
              "items": {
                "enum": [
                  "1099 additional spend imported",
                  "ABK agent blocked on user",
                  "ABK agent review requested",
                  "ABK agent schedule failed",
                  "ABK agent started",
                  "ABK task instructions updated",
                  "AI custom field config executed",
                  "AI onboarding answers updated",
                  "AI provider data re-sync requested",
                  "AI savings opportunity found",
                  "AI savings opportunity reminder sent",
                  "AI savings opportunity updated",
                  "AI spend anomaly review state changed",
                  "AI spend spike alert settings changed",
                  "AI spend spike setup completed",
                  "AI spend weekly briefing started",
                  "AI usage limits updated",
                  "AP intake coworker setup completed",
                  "Account closed",
                  "Account details previewed",
                  "Account details viewed",
                  "Account document downloaded",
                  "Account number deleted",
                  "Account number generated",
                  "Account number renamed",
                  "Account opened",
                  "Account renamed",
                  "Accounting ai auto mark ready",
                  "Accounting coding rules updated",
                  "Accounting fields updated",
                  "Accounting fixed asset changed",
                  "Accounting fixed asset class changed",
                  "Accounting lease changed",
                  "Accounting provider access changed",
                  "Accounting settings updated",
                  "Accounting split templates updated",
                  "Activated card",
                  "Ad-hoc journal entry creation setting changed",
                  "Added bill field",
                  "Added card acceptance policy",
                  "Added procurement field",
                  "Added user to funds",
                  "Added vendor field",
                  "Admin changed email",
                  "Admin changed phone",
                  "Agent access request resolved",
                  "Agent access requested",
                  "Agent created",
                  "Agent current version changed",
                  "Agent permissions updated",
                  "Agent session context updated",
                  "Agent version created",
                  "Agent version published",
                  "Airline negotiated fare changed",
                  "Alloy evaluation synchronized",
                  "Amortization schedule updated",
                  "Analysis archive status changed",
                  "Analysis email requested",
                  "Analysis internal feedback added",
                  "Analysis renamed",
                  "Analysis sharing changed",
                  "Analysis started",
                  "App Store app disconnected",
                  "Applied agent suggestion",
                  "Approval authority changed",
                  "Approval carried over to a new booking request",
                  "Approval chain updated",
                  "Approval policy set as default",
                  "Approval projection repaired",
                  "Approval step added",
                  "Approval step approved",
                  "Approval step rejected",
                  "Approval step skipped",
                  "Approval step terminated",
                  "Approval steps skipped",
                  "Approved Ramp Card edit request with modifications",
                  "Approved Ramp Card edit request",
                  "Approved Ramp Card request with modifications",
                  "Approved Ramp Card request",
                  "Approved by manager",
                  "Approved card edit request with modifications",
                  "Approved card edit request",
                  "Approved funds edit request with modifications",
                  "Approved funds edit request",
                  "Approved individual reused",
                  "Approved new card request with modifications",
                  "Approved new card request",
                  "Approved procurement change request",
                  "Approved request for new funds with modifications",
                  "Approved request for new funds",
                  "Ascenda credit redeemed",
                  "Assistant card details access changed",
                  "Attendee split",
                  "Authorization letter downloaded",
                  "Automatic investment transfer canceled",
                  "Automatic rule management actions reviewed",
                  "Automation deleted",
                  "Bank account ACH details viewed",
                  "Bank account balance export requested",
                  "Bank account entity owner changed",
                  "Bank account sensitive details viewed",
                  "Bank account updated",
                  "Bank letter downloaded",
                  "Bank statement deleted",
                  "Bank transaction export requested",
                  "Bill Pay policy files retained",
                  "Bill Pay setup progress updated",
                  "Bill approvals regenerated",
                  "Bill created by AP coworker",
                  "Bill linked to PO",
                  "Bill linked to contract",
                  "Bill linked",
                  "Bill pay AP coworker questions answered",
                  "Bill pay accepted PDR bank account ownership match",
                  "Bill pay accepted sync for bank account from vendor network",
                  "Bill pay accepted sync for vendor card acceptance policy from vendor network",
                  "Bill pay accepted sync for vendor check mailing address from vendor network",
                  "Bill pay accepted sync for vendor information from vendor network",
                  "Bill pay accepted sync for vendor tax info from vendor network",
                  "Bill pay accounting manual user action",
                  "Bill pay accounting sync triggered",
                  "Bill pay accrual synced",
                  "Bill pay approval policy updated",
                  "Bill pay automatic card payment no longer eligible",
                  "Bill pay automatic card payment",
                  "Bill pay bank account updated",
                  "Bill pay batch payment initiated",
                  "Bill pay business vendor unlinked from vendor network",
                  "Bill pay card delivery",
                  "Bill pay check address update",
                  "Bill pay check tracking update",
                  "Bill pay deleted bill",
                  "Bill pay delivered payment",
                  "Bill pay dismissed fraud alert",
                  "Bill pay edited payee address",
                  "Bill pay edited payment method",
                  "Bill pay initiated payment refund",
                  "Bill pay mailed check payment",
                  "Bill pay marked as paid",
                  "Bill pay marked as unpaid",
                  "Bill pay matched transaction to bill",
                  "Bill pay matched transfer to bill",
                  "Bill pay payment failed",
                  "Bill pay payment posted",
                  "Bill pay payment reversal failed",
                  "Bill pay payment reversal posted",
                  "Bill pay payment reversal succeeded",
                  "Bill pay recurrence info changed for recurring series",
                  "Bill pay rejected PDR bank account ownership match",
                  "Bill pay rejected sync for bank account from vendor network",
                  "Bill pay rejected sync for vendor card acceptance policy from vendor network",
                  "Bill pay rejected sync for vendor check mailing address from vendor network",
                  "Bill pay rejected sync for vendor information from vendor network",
                  "Bill pay rejected sync for vendor tax info from vendor network",
                  "Bill pay retried payment",
                  "Bill pay returned funds",
                  "Bill pay submission policy updated",
                  "Bill pay unmatched transfer from bill",
                  "Bill unlinked from PO",
                  "Bill unlinked from contract",
                  "Bill unlinked",
                  "Billing bank account updated",
                  "Billing charge posted",
                  "Billing config updated",
                  "Billing fee calculated",
                  "Billing group primary business changed",
                  "Billing refund planned",
                  "Billing schedule invoice recipients updated",
                  "Billing schedule invoice template updated",
                  "Blank canvas workflow execution updated",
                  "Blank canvas workflow pause status updated",
                  "Booking action by travel agency",
                  "Booking fields changed",
                  "Booking request approval policy updated",
                  "Booking request canceled: fare sold out",
                  "Booking request marked as failed",
                  "Bookkeeping agent browser control changed",
                  "Bookkeeping agent response stopped",
                  "Briefing subscription created",
                  "Brokerage order updated",
                  "Browser agent visited site",
                  "Browser login changed",
                  "Browser policy changed",
                  "Business bank account added",
                  "Business bank account changed",
                  "Business bank account removed",
                  "Business communication preferences changed",
                  "Cancel revision request",
                  "Canceled physical card request",
                  "Cancelled by customer",
                  "Cancelled by ramp",
                  "Card branding changed",
                  "Card delivered",
                  "Card limits by default changed",
                  "Card offer accepted",
                  "Card offer declined",
                  "Card payment initiated (audit)",
                  "Card payment initiated",
                  "Card transaction accrual selections updated",
                  "Cash Manager settings updated",
                  "Cash agent recommendation updated",
                  "Cash app rerun started",
                  "Cash application agent action",
                  "Cash flow category proposal accepted",
                  "Cash manager recommendation reviewed",
                  "Cashback redeemed",
                  "Catalog CSV import submitted",
                  "Catalog spend program reassigned",
                  "Catalog spreadsheet draft saved",
                  "Cellular ledger balance adjusted",
                  "Change order workflow restarted due to change order request modification",
                  "Changed bank account on bill",
                  "Changed card holder",
                  "Changed funds user",
                  "Check PDF downloaded",
                  "Check stop payment placed",
                  "Check stop payment removed",
                  "Checking Account terms accepted",
                  "Checklist task groups changed",
                  "Close task restored",
                  "Close tasks self-assigned",
                  "Combined contracts with this contract",
                  "Communication sent",
                  "Complete revision",
                  "Compliance flag updated",
                  "Compliance information synchronized",
                  "Contract economics changed",
                  "Contract family refresh requested",
                  "Contract linked to card transaction",
                  "Contract term transitioned",
                  "Contract unlinked from card transaction",
                  "Counterparty created",
                  "Counterparty details changed",
                  "Counterparty details configuration changed",
                  "Counterparty details configuration created",
                  "Counterparty details deleted",
                  "Created accounting split line item",
                  "Created card",
                  "Created catalog items",
                  "Created fund from purchase order",
                  "Created merchant error",
                  "Created unrecognized charge",
                  "Created",
                  "Custom connector updated",
                  "Customer created via dashboard",
                  "Customer payment deleted",
                  "Debit settings updated",
                  "Default card limits changed",
                  "Default product access updated",
                  "Deleted bill field",
                  "Deleted card acceptance policy",
                  "Deleted procurement field",
                  "Deleted request draft",
                  "Deleted vendor field",
                  "Deleted",
                  "Demoted co-owner to member",
                  "Detached funds from spend program",
                  "Developer API client deleted",
                  "Developer API client secret rotated",
                  "Direct Bank account list updated",
                  "Direct Bank connection added",
                  "Direct Bank credentials activated",
                  "Direct Bank credentials saved",
                  "Dismissed agent suggestion",
                  "DocuSign IAM Workflow updated",
                  "Document labeled",
                  "Document updated",
                  "Docusign envelope updated",
                  "Domain DNS verification removed",
                  "Dormant funds automation changed",
                  "Draft invite monthly limits changed",
                  "Draft provenance recorded",
                  "Draft vendor changed by AP coworker",
                  "Draft vendor created",
                  "Draft vendor deleted",
                  "Draft vendor published",
                  "Duplicate payment review confirmed",
                  "Earn account opened",
                  "Edited bill field",
                  "Edited card acceptance policy",
                  "Edited contract tracking setting",
                  "Edited custom field",
                  "Edited procurement field",
                  "Edited spend allocation request",
                  "Edited spend intent",
                  "Edited tin",
                  "Edited vendor field",
                  "Edited wallet automation",
                  "Email updated",
                  "Emailed purchase order",
                  "Employee handbook signatures requested",
                  "Employee handbook unpublished",
                  "Employee policy signed",
                  "Entity created",
                  "Entity deleted",
                  "Exception given from dispute resolution",
                  "Exception given from repayment",
                  "Exception request approved",
                  "Exception request cancelled",
                  "Exception request denied",
                  "Exception requested",
                  "Expense accounting fields updated",
                  "Expense fixed asset changed",
                  "External agent credential rotated",
                  "External agent key created",
                  "External agent key revoked",
                  "External agent key updated",
                  "External agent wallet execution changed",
                  "External ticket created asana",
                  "External ticket created jira",
                  "External ticket created linear",
                  "External ticket created zendesk",
                  "Fixture users deactivated",
                  "Flex fee redeemed",
                  "Flexible limits default changed",
                  "Flight change outcome settled",
                  "Flight change receipt regenerated",
                  "Forecast chat updated",
                  "Forecast custom input added",
                  "Forecast custom input deleted",
                  "Forecast custom input updated",
                  "Forecast settings updated",
                  "Forecast status updated",
                  "Fraud Omni investigation started",
                  "Fund limit change submitted",
                  "Fund utilization alert settings changed",
                  "Funds activated from reissued virtual card",
                  "Funds attached to invite",
                  "Generated renewal brief for contract",
                  "Glass sales meeting booked",
                  "Glass trial conversion updated",
                  "Glass waitlist answers updated",
                  "Governed change applied",
                  "Governed change became stale",
                  "Governed change rejected",
                  "Governed change submitted for review",
                  "Governed changes turned off",
                  "Governed changes turned on",
                  "HRIS integration setting updated",
                  "IP allowlist updated",
                  "Identity locked",
                  "Identity unlocked",
                  "Impersonation Disabled",
                  "Impersonation Enabled",
                  "Impersonation upgraded to read-write",
                  "Incentive offer enrolled",
                  "Initiated digital wallet provisioning (audit)",
                  "Internal bank transfer link changed",
                  "Internal impersonation upgraded to read-write",
                  "International payment initiated",
                  "Investment Account closed",
                  "Investment Account created",
                  "Investment Account opened",
                  "Investment Account renamed",
                  "Investment Account terms accepted",
                  "Investment Account updated",
                  "Invoice payment page requested",
                  "Ironclad settings updated",
                  "Ironclad workflow updated",
                  "Issued Ramp Card",
                  "Issued funds",
                  "Issuing compliance information changed",
                  "Item receipt accounting sync",
                  "Journal entry batch retry requested",
                  "Journal entry marked as already posted",
                  "Large transfer initiated",
                  "Left funds",
                  "Legal agreement accepted",
                  "Legal entity updated",
                  "Linked funds to spend program",
                  "Locked Ramp Card",
                  "Locked access to funds",
                  "Locked card",
                  "Login methods updated",
                  "Managed portfolio transfer updated",
                  "Manager updated",
                  "Manual redemption redeemed",
                  "Mark as accidental",
                  "Marketplace plugin changed",
                  "Mass payout initiated",
                  "Matched purchase order to transaction",
                  "Matched transaction to purchase order",
                  "Memo updated",
                  "Merged vendors",
                  "Name updated hris",
                  "Name updated",
                  "New vendor approval policy updated",
                  "New virtual card issued for currency migration",
                  "Nightly bank sync setting changed",
                  "Notification sent due to change order request modification",
                  "Notification sent due to purchase order request modification",
                  "Outlook Calendar setup updated",
                  "Partner billing disconnected",
                  "Partner console created",
                  "Passkey created",
                  "Passkey deleted",
                  "Passkey removal request denied",
                  "Password reset required",
                  "Password reset user",
                  "Password updated user",
                  "Payback cancelled",
                  "Payback payment failed",
                  "Payback payment manually paid",
                  "Payback payment retried",
                  "Payback payment succeeded",
                  "Payback request approved by user",
                  "Payback request cancelled by manager",
                  "Payback request rejected by user",
                  "Payback requested by manager",
                  "Payback triggered by user",
                  "Payee linked to accounting",
                  "Payment run action",
                  "Payment run updated",
                  "Payment to new counterparty",
                  "Payment updated",
                  "Payout details request redirected",
                  "Phone change request reviewed",
                  "Phone change request superseded",
                  "Phone change requested",
                  "Phone updated",
                  "Plan created",
                  "Plan deleted",
                  "Plan edited",
                  "Plan settings updated",
                  "Plugin demo sandbox created",
                  "Plugin demo sandbox requested",
                  "Points exchange redeemed",
                  "Policy agent suggestion feedback submitted",
                  "Post spend approval policy updated",
                  "Preferred name updated",
                  "Preview mode entered",
                  "Procurement  unmatched purchase order from transaction",
                  "Procurement  unmatched transaction from purchase order",
                  "Procurement agent run completed",
                  "Procurement change request approval policy updated",
                  "Procurement send global form",
                  "Procurement submit global form response",
                  "Procurement vendor onboarding submitted",
                  "Procurement vendor onboarding triggered",
                  "Product access granted",
                  "Product access revoked",
                  "Product billing settings override",
                  "Program entity restrictions changed",
                  "Promoted member to co-owner",
                  "Purchase order accounting sync created vendor",
                  "Purchase order accounting sync failed",
                  "Purchase order accounting sync success",
                  "Purchase order accrual lines updated",
                  "Purchase order accrual synced",
                  "Purchase order delivery acknowledged",
                  "Purchase order marked as synced",
                  "Purchase orders marked as synced",
                  "Question created",
                  "Question deleted",
                  "Question updated",
                  "RFX clarification answered",
                  "RFX clarification question submitted",
                  "RFX close date changed",
                  "RFX closed",
                  "RFX collaborator added",
                  "RFX collaborator removed",
                  "RFX created",
                  "RFX graded",
                  "RFX publish approval rejected",
                  "RFX published",
                  "RFX response deadline changed",
                  "RFX response redacted",
                  "RFX response submitted",
                  "RFX returned to draft",
                  "RFX submitted for publish approval",
                  "RFX vendor accepted",
                  "RFX vendor added",
                  "RFX vendor contact changed",
                  "RFX vendor declined",
                  "RFX vendor removed",
                  "Ramp Card limit change submitted",
                  "Ramp Card limit changed",
                  "Receipt created",
                  "Receipt deleted",
                  "Receipt downloaded for transfer",
                  "Receipt matched",
                  "Receipt reprocessed",
                  "Recurring task approvers updated",
                  "Recurring task instructions changed",
                  "Refund cleared",
                  "Refund paid",
                  "Reimbursement approval withdrawn",
                  "Reimbursement bank account updated",
                  "Reimbursement field changed",
                  "Reimbursement from user",
                  "Reimbursement manual payment recorded",
                  "Reimbursement marked as unsynced",
                  "Reimbursement policy agent suggestion feedback submitted",
                  "Reimbursement submitted",
                  "Reimbursement to user",
                  "Reimbursements disabled",
                  "Reimbursements enabled",
                  "Reissued card",
                  "Rejected Ramp Card edit request",
                  "Rejected Ramp Card request",
                  "Rejected card edit request",
                  "Rejected funds edit request",
                  "Rejected new card request",
                  "Rejected procurement change request",
                  "Rejected request for new funds",
                  "Reminded to approve items",
                  "Reminded to upload missing items",
                  "Removed Ramp Card limit",
                  "Removed user from funds",
                  "Repayment accounting sync success",
                  "Report reset to default",
                  "Request revision",
                  "Requested Ramp Card",
                  "Requested an edit to these funds",
                  "Requested an edit to this Ramp Card",
                  "Requested new card",
                  "Requested new funds",
                  "Reset offline card PIN",
                  "Resolved by ramp",
                  "Restored Ramp Card",
                  "Review needed",
                  "Reviewed by ramp",
                  "Role updated",
                  "Router API key status changed",
                  "Router person limit unlocked",
                  "Router savings opportunity found",
                  "Router savings opportunity reminder sent",
                  "Router savings opportunity updated",
                  "Router spend limit changed",
                  "SFTP Authentication Failed",
                  "SFTP Authentication IP and Username Matched",
                  "SFTP Configuration Changed",
                  "SFTP Export Changed",
                  "SFTP Export Run Started",
                  "SFTP Import Changed",
                  "SSO certificate updated",
                  "SSO domain DNS verification challenge created",
                  "SSO domain DNS verification changed",
                  "SSO domain-sharing request resolved",
                  "SSO provider created",
                  "SSO provider deleted",
                  "SSO provider domains updated",
                  "SaaS fee redeemed",
                  "Sales tax filing email sent",
                  "Sales tax filing inbox changed",
                  "Sales tax refund claim form saved",
                  "Sandbox agent session activity",
                  "Sandbox business names updated",
                  "Sandbox seeding activity",
                  "Separation of duties disabled",
                  "Separation of duties enabled",
                  "Set member limit on shared fund",
                  "Shortfall coverage updated",
                  "Smart OCR provenance recorded",
                  "Snowflake connection configuration changed",
                  "Snowflake connection created",
                  "Snowflake connection removed",
                  "Snowflake connection scope changed",
                  "Sourcing event created",
                  "Sourcing event status changed",
                  "Spend allocation change request approval policy updated",
                  "Spend approved",
                  "Spend export queued",
                  "Spend outcome recorded",
                  "Spend rejected",
                  "Spend request approval policy updated",
                  "Spend settings updated",
                  "Stack chat sharing changed",
                  "Stack connector updated",
                  "Status updated by intake agent",
                  "Status updated",
                  "Strict MFA setting updated",
                  "Submission policy updated",
                  "Submitted procurement change request",
                  "Subscription changed",
                  "Subscription created",
                  "Subscription entitlements changed",
                  "Subscription grandfathered",
                  "Subscription pricing application skipped",
                  "Subscription pricing applied",
                  "Subscription renewed",
                  "Subscription terminated",
                  "Subscription trial transitioned",
                  "Synced draft policy from workflow",
                  "System role created",
                  "Tango gift card redeemed",
                  "Teammate invited to take over a payment details request",
                  "Teammate reminded about a payment details request",
                  "Temporarily unlocked Ramp Card",
                  "Temporarily unlocked access to funds",
                  "Terminated card",
                  "Terminated funds",
                  "Test invoice email requested",
                  "Test",
                  "Third party risk management vendor review updated",
                  "Third-party checks updated",
                  "This contract was combined with another contract",
                  "Ticket approvers updated",
                  "Ticket assignee updated",
                  "Ticket status updated",
                  "Totp authenticator created",
                  "Totp authenticator deleted",
                  "Totp authenticator updated",
                  "Training cancellation submitted",
                  "Training registration submitted",
                  "Transaction added to trip",
                  "Transaction approval policy updated",
                  "Transaction approval regeneration requested",
                  "Transaction cleared",
                  "Transaction entity changed",
                  "Transaction fraud label deleted",
                  "Transaction fraud status changed",
                  "Transaction linked to contract",
                  "Transaction marked as unsynced",
                  "Transaction memory message queued",
                  "Transaction missing item reminder event",
                  "Transaction paid",
                  "Transaction receipt updated",
                  "Transaction removed from trip",
                  "Transaction submission policy exemption event",
                  "Transaction tax expense category updated",
                  "Transaction unlinked from contract",
                  "Transfer created",
                  "Transfer initiated",
                  "Transferred ownership of funds",
                  "Travel agent signs changed",
                  "Travel booking manually matched to transaction",
                  "Travel funds request answered",
                  "Travel integration connected",
                  "Travel integration settings updated",
                  "Travel policy selection updated",
                  "Trip changed",
                  "Trip question answered",
                  "Unarchived funds",
                  "Undid marking transaction as accidental",
                  "Unlocked Ramp Card",
                  "Unlocked access to funds",
                  "Unlocked card temporarily",
                  "Unlocked card",
                  "Unmark as accidental",
                  "Updated Ramp Card limit",
                  "Updated card program",
                  "Updated card",
                  "Updated funds",
                  "Updated policy to include Guest",
                  "Updated spend program",
                  "Updated workflow to include Guest",
                  "Usage deleted",
                  "Usage logged",
                  "Usage replaced",
                  "User accepted invite",
                  "User assigned by external firm",
                  "User assigned through external firm merge",
                  "User created",
                  "User custom field employee editing updated",
                  "User deactivated",
                  "User deleted",
                  "User invited",
                  "User locked",
                  "User logged out of all sessions",
                  "User logged out",
                  "User login",
                  "User merchant allowlist updated",
                  "User previewed",
                  "User reactivated",
                  "User undeleted",
                  "User unlocked",
                  "Vendor Network connection migrated",
                  "Vendor Network updates enabled",
                  "Vendor added to group",
                  "Vendor awarded",
                  "Vendor credit action",
                  "Vendor edit approval policy updated",
                  "Vendor hold released",
                  "Vendor imported from erp",
                  "Vendor management  vendor added to managed list",
                  "Vendor management  vendor removed from managed list",
                  "Vendor management agreement deleted document",
                  "Vendor management agreement deleted",
                  "Vendor management agreement linked document",
                  "Vendor management agreement linked purchase order",
                  "Vendor management agreement notification type switched",
                  "Vendor management agreement reminder sent",
                  "Vendor management agreement status changed",
                  "Vendor management agreement unlinked document",
                  "Vendor management agreement unlinked purchase order",
                  "Vendor management agreement uploaded document",
                  "Vendor management edited agreement field",
                  "Vendor management expansion request status changed",
                  "Vendor management vendor network invite sent",
                  "Vendor memory file setting updated",
                  "Vendor parent set",
                  "Vendor parent unset",
                  "Vendor payment approval policy updated",
                  "Vendor placed on hold",
                  "Vendor portal merge suggestion declined",
                  "Vendor portal merged",
                  "Vendor portal purchase order invoice updated",
                  "Vendor portal unmerged",
                  "Vendor portal user walkthrough completed",
                  "Vendor profile access created",
                  "Vendor profile access denied",
                  "Vendor profile access edited",
                  "Vendor profile access email sent",
                  "Vendor profile access requested",
                  "Vendor profile access revoked",
                  "Vendor profile all documents downloaded",
                  "Vendor profile document downloaded",
                  "Vendor removed from group",
                  "Vendor sync failure",
                  "Viewed sensitive card details",
                  "Violation from manager",
                  "Violation from rule",
                  "Violation from user",
                  "Virtual card reissued",
                  "Virtual-card-only requirement changed",
                  "Voided check downloaded",
                  "WBX approval approved",
                  "WBX approval attachment added",
                  "WBX approval attachment removed",
                  "WBX approval fields updated",
                  "WBX approval opened",
                  "WBX approval rejected",
                  "WBX approver approved",
                  "WBX approver rejected",
                  "WBX policy created",
                  "WBX policy deleted",
                  "WBX policy draft discarded",
                  "WBX policy draft published",
                  "WBX policy draft started",
                  "WBX policy renamed",
                  "WBX policy workflow generated from draft",
                  "WBX request admin approved entire workflow",
                  "WBX request archived",
                  "WBX request attachment added",
                  "WBX request attachment removed",
                  "WBX request created",
                  "WBX request deleted",
                  "WBX request fields updated",
                  "WBX request submitted",
                  "Wallet redeemed",
                  "Wizard task assignment changed",
                  "Workflow restarted due to purchase order request modification",
                  "Workflow updated",
                  "iMessage invitation consent granted",
                  "iMessage invitation consent revoked"
                ],
                "type": "string",
                "x-enum-descriptions": {
                  "1099 additional spend imported": "Additional spend was replaced from a CSV file.",
                  "ABK task instructions updated": "A user or Ramp saved a new version of a recurring task's instructions.",
                  "AI onboarding answers updated": "AI onboarding answers or product interest were updated.",
                  "AI provider data re-sync requested": "Ramp started re-syncing historical usage and cost data from an AI provider.",
                  "AI savings opportunity found": "Ramp found a new AI spend savings opportunity.",
                  "AI savings opportunity reminder sent": "An admin reminded someone about an AI spend savings opportunity.",
                  "AI savings opportunity updated": "An AI spend savings opportunity was dismissed or committed to.",
                  "AI spend anomaly review state changed": "An AI spend anomaly was resolved or reopened.",
                  "AI spend spike alert settings changed": "Company-wide AI spend spike alert switches were changed.",
                  "AI spend spike setup completed": "The spend spike alert setup guide step was completed.",
                  "AI spend weekly briefing started": "Ramp started a weekly AI spend briefing.",
                  "AI usage limits updated": "AI usage limits were updated.",
                  "AP intake coworker setup completed": "A user completed AP intake coworker setup.",
                  "Account closed": "A treasury account was closed.",
                  "Account details previewed": "The redacted account & routing numbers were viewed for a treasury account.",
                  "Account details viewed": "The unredacted account & routing numbers were viewed for a treasury account.",
                  "Account document downloaded": "A monthly statement or 1099 was downloaded for a treasury account.",
                  "Account number deleted": "A virtual account number was deleted for a treasury account.",
                  "Account number generated": "A new virtual account number was generated for a treasury account.",
                  "Account number renamed": "A virtual account number was renamed for a treasury account.",
                  "Account renamed": "A treasury account was renamed.",
                  "Accounting fixed asset changed": "A fixed asset was created, updated, productionized, or deleted.",
                  "Accounting fixed asset class changed": "A fixed asset class was created, updated, productionized, or deleted.",
                  "Accounting lease changed": "A lease was created, updated, productionized, or deleted.",
                  "Accounting settings updated": "An accounting account or cash mapping was changed.",
                  "Ad-hoc journal entry creation setting changed": "Ad-hoc journal entry creation was enabled or disabled for the business.",
                  "Agent session context updated": "The browser updated the page context a user's agent session reads.",
                  "Airline negotiated fare changed": "An airline negotiated fare contract was added, edited, or removed.",
                  "Alloy evaluation synchronized": "An operator synchronized an Alloy evaluation into compliance data.",
                  "Amortization schedule updated": "An amortization schedule was updated.",
                  "Analysis archive status changed": "An analysis was archived or restored.",
                  "Analysis email requested": "An analysis was shared and email was requested.",
                  "Analysis internal feedback added": "Ramp left internal feedback on an analysis.",
                  "Analysis renamed": "An analysis was renamed.",
                  "Analysis sharing changed": "Access to an analysis was granted or revoked.",
                  "Analysis started": "An analysis was started.",
                  "App Store app disconnected": "An App Store app was disconnected.",
                  "Applied agent suggestion": "A user applied request updates that an agent suggested.",
                  "Approval authority changed": "A group approval limit was added, changed, or removed.",
                  "Approval carried over to a new booking request": "A replacement for a sold-out flight booking request was approved on the original request's approval.",
                  "Approval policy set as default": "An approval policy was set as the default for its spend type.",
                  "Approval projection repaired": "An internal operator restored pending approvers from the existing approval runtime.",
                  "Approval steps skipped": "An internal operator skipped a user's remaining approval steps without a replacement approver.",
                  "Approved Ramp Card edit request": "A Ramp Card edit request was approved.",
                  "Approved Ramp Card edit request with modifications": "A Ramp Card edit request was approved with modifications.",
                  "Approved Ramp Card request": "A Ramp Card request was approved.",
                  "Approved Ramp Card request with modifications": "A Ramp Card request was approved with modifications.",
                  "Approved individual reused": "An approved individual's KYC was added to another legal entity's KYB.",
                  "Assistant card details access changed": "Assistants were blocked or unblocked from viewing card details for the business.",
                  "Authorization letter downloaded": "An authorization letter was downloaded for a treasury account.",
                  "Automatic investment transfer canceled": "An automatic post-settlement investment transfer was canceled.",
                  "Automatic rule management actions reviewed": "Automatic accounting rule management actions were reviewed.",
                  "Automation deleted": "A treasury automation policy was deleted.",
                  "Bank account ACH details viewed": "ACH account and routing details were viewed for a business bank account.",
                  "Bank account balance export requested": "A bank account balance export was requested.",
                  "Bank account entity owner changed": "The legal entity owner of a business bank account was changed.",
                  "Bank account sensitive details viewed": "Sensitive details were viewed for a business bank account.",
                  "Bank letter downloaded": "A bank letter was downloaded for a treasury account.",
                  "Bank statement deleted": "An internal operator deleted a manually submitted bank statement.",
                  "Bank transaction export requested": "A bank transaction export was requested.",
                  "Bill Pay policy files retained": "Files were retained for Bill Pay policy edit review.",
                  "Bill Pay setup progress updated": "Bill Pay setup progress was updated.",
                  "Bill approvals regenerated": "An internal operator replaced a bill's approval chain using current policy.",
                  "Bill created by AP coworker": "A bill was automatically created by the AP coworker agent.",
                  "Bill pay accepted PDR bank account ownership match": "ACH payment details submitted through a payee details request were approved.",
                  "Bill pay accrual synced": "A bill accrual was synced.",
                  "Bill pay marked as unpaid": "A bill was marked as unpaid.",
                  "Bill pay matched transfer to bill": "A transfer was matched to a bill.",
                  "Bill pay payment reversal failed": "A bill payment reversal failed.",
                  "Bill pay payment reversal posted": "A bill payment reversal was posted.",
                  "Bill pay payment reversal succeeded": "A bill payment reversal succeeded.",
                  "Bill pay rejected PDR bank account ownership match": "ACH payment details submitted through a payee details request were rejected.",
                  "Bill pay submission policy updated": "A bill pay submission policy was updated.",
                  "Bill pay unmatched transfer from bill": "A transfer was unmatched from a bill.",
                  "Billing bank account updated": "The bank account that pays an entity's Ramp subscription fees was changed.",
                  "Billing charge posted": "A billing charge was posted.",
                  "Billing fee calculated": "A billing fee plan was executed.",
                  "Billing group primary business changed": "A billing group's primary business was changed.",
                  "Billing refund planned": "A billing refund plan was executed.",
                  "Billing schedule invoice recipients updated": "The contact or CC emails that receive a billing schedule's invoices changed.",
                  "Billing schedule invoice template updated": "The invoice template used for a billing schedule's invoices changed.",
                  "Booking action by travel agency": "A travel management company agent completed a booking action for this business through the Advisor Console.",
                  "Booking fields changed": "A booking field travelers answer at checkout was added, edited, deleted, reordered, or locked for travel management company reporting.",
                  "Booking request canceled: fare sold out": "Ramp canceled an approved flight booking request because its fare sold out before booking.",
                  "Booking request marked as failed": "Ramp support marked a stuck travel booking request as failed.",
                  "Bookkeeping agent browser control changed": "A user handed a bookkeeping agent browser to manual control or back to the agent.",
                  "Bookkeeping agent response stopped": "A user stopped generation of a bookkeeping agent response.",
                  "Briefing subscription created": "A briefing subscription was created.",
                  "Browser agent visited site": "A browser agent opened a website for a user.",
                  "Browser login changed": "A browser agent login was added, changed, or removed.",
                  "Browser policy changed": "A company's browser policy was changed.",
                  "Business communication preferences changed": "Communication preferences for a business event were changed.",
                  "Canceled physical card request": "An unfulfilled physical card request was canceled.",
                  "Card branding changed": "A Ramp operator changed physical card branding.",
                  "Card limits by default changed": "The business was opted in to or out of card limits by default.",
                  "Card offer accepted": "A user accepted a card offer.",
                  "Card offer declined": "A user declined a card offer.",
                  "Card transaction accrual selections updated": "Card transactions were manually included in or excluded from an accrual report.",
                  "Cash Manager settings updated": "Cash Manager settings updated for a treasury account.",
                  "Cash app rerun started": "Ramp reran cash app on recent deposits that had no payment or suggestion.",
                  "Cash application agent action": "An accounts receivable payment or payment application was created by the cash application agent.",
                  "Cash flow category proposal accepted": "A pending cash flow category proposal was accepted for creation and historical tagging.",
                  "Cash manager recommendation reviewed": "A cash manager recommendation was approved or rejected.",
                  "Catalog CSV import submitted": "A catalog CSV import was submitted.",
                  "Catalog spend program reassigned": "A catalog was assigned to a different spend program.",
                  "Catalog spreadsheet draft saved": "A catalog spreadsheet draft was saved.",
                  "Cellular ledger balance adjusted": "An internal operator adjusted a Payments Cellular account balance.",
                  "Check PDF downloaded": "A check PDF was downloaded for a check withdrawal.",
                  "Check stop payment placed": "A stop payment was placed on a check number for a virtual account number.",
                  "Check stop payment removed": "A stop payment was removed from a check number for a virtual account number.",
                  "Checklist task groups changed": "Checklist task groups and recurring task group defaults were changed.",
                  "Close task restored": "A deleted close task and its recoverable configuration were restored.",
                  "Close tasks self-assigned": "A user assigned close checklist tasks to themselves during Stack onboarding.",
                  "Compliance flag updated": "A compliance flag was updated.",
                  "Compliance information synchronized": "An operator synchronized compliance information.",
                  "Contract economics changed": "Subscription contract economics changed.",
                  "Contract family refresh requested": "A contract family refresh was requested.",
                  "Contract linked to card transaction": "A contract was linked to a card transaction.",
                  "Contract term transitioned": "A billing contract term transitioned.",
                  "Contract unlinked from card transaction": "A contract was unlinked from a card transaction.",
                  "Counterparty details configuration changed": "A global counterparty details configuration was replaced.",
                  "Counterparty details configuration created": "A global counterparty details configuration was created.",
                  "Counterparty details deleted": "A counterparty's payment details were deleted.",
                  "Created catalog items": "Catalog items were created.",
                  "Custom connector updated": "A Stack custom connector was updated or deleted.",
                  "Customer created via dashboard": "A Ramp customer was created via the dashboard.",
                  "Customer payment deleted": "A customer payment and its invoice applications were deleted.",
                  "Debit settings updated": "Debit settings were updated for a virtual account number.",
                  "Default card limits changed": "Shared default card limit rules were replaced.",
                  "Default product access updated": "The business's default product access was updated.",
                  "Deleted request draft": "A request draft was deleted.",
                  "Developer API client deleted": "A Developer API client was deleted.",
                  "Developer API client secret rotated": "A Developer API client's secret was rotated.",
                  "Direct Bank account list updated": "Ramp hid the accounts the bank no longer lists on a Direct Bank connection, or showed accounts the bank lists again.",
                  "Direct Bank connection added": "A Direct Bank connection was added.",
                  "Direct Bank credentials activated": "Credentials for a Direct Bank connection were activated.",
                  "Direct Bank credentials saved": "Credentials for a Direct Bank connection were saved but not activated because the bank rejected them.",
                  "Dismissed agent suggestion": "A user dismissed request updates that an agent suggested.",
                  "DocuSign IAM Workflow updated": "A DocuSign workflow launched from a request started or made progress.",
                  "Domain DNS verification removed": "A domain's DNS verification attempt was removed.",
                  "Dormant funds automation changed": "Dormant fund automation settings were changed.",
                  "Draft invite monthly limits changed": "Monthly limits staged on draft invites were set, changed, or cleared.",
                  "Draft provenance recorded": "A draft payee or entity change was recorded.",
                  "Draft vendor changed by AP coworker": "The AP intake coworker created or updated a draft vendor.",
                  "Duplicate payment review confirmed": "A user confirmed matching invoice evidence as an intentional separate payment. Confirmation did not send payment.",
                  "Earn account opened": "An Earn account was opened.",
                  "Edited spend allocation request": "A spend allocation request was edited.",
                  "Employee handbook signatures requested": "An admin asked employees to sign the employee handbook, replacing any earlier signature request.",
                  "Employee handbook unpublished": "An admin unpublished the employee handbook, closing any open signature request.",
                  "Employee policy signed": "An employee signed their policy document or handbook.",
                  "Entity created": "A legal entity was created.",
                  "Entity deleted": "A legal entity was deleted.",
                  "Expense accounting fields updated": "A user changed the expense-level accounting fields of a card transaction or reimbursement.",
                  "Expense fixed asset changed": "A fixed asset on an expense line was impaired or disposed.",
                  "External agent credential rotated": "A standalone agent credential was rotated.",
                  "External agent key created": "An agent key was created.",
                  "External agent key revoked": "An agent key was revoked.",
                  "External agent key updated": "An agent key was updated.",
                  "External agent wallet execution changed": "A standalone agent wallet was disabled or re-enabled.",
                  "Fixture users deactivated": "Fixture generation users were deactivated.",
                  "Flex fee redeemed": "Points were redeemed to pay down a Ramp Flex installment fee.",
                  "Flight change outcome settled": "Ramp support settled a flight change whose outcome was unconfirmed.",
                  "Flight change receipt regenerated": "A flight change charge's generated receipt was replaced with a regenerated receipt.",
                  "Forecast chat updated": "A forecast chat was created, sent a message, or stopped.",
                  "Forecast custom input added": "A forecast custom input was added.",
                  "Forecast custom input deleted": "A forecast custom input was deleted.",
                  "Forecast custom input updated": "A forecast custom input was updated.",
                  "Forecast settings updated": "Forecast settings were updated for a treasury account.",
                  "Forecast status updated": "A cash forecast configuration was paused or resumed.",
                  "Fraud Omni investigation started": "A Fraud Omni operator investigation was started for a Zendesk ticket.",
                  "Fund limit change submitted": "A fund's limit was changed or a limit change was requested.",
                  "Fund utilization alert settings changed": "Fund utilization alert settings were changed",
                  "Funds attached to invite": "Funds were attached to a user's invite. The funds will be issued when the user accepts the invite.",
                  "Glass sales meeting booked": "A Glass sales meeting was booked from the Glass waitlist signup.",
                  "Glass trial conversion updated": "Users were moved to Free or back to Pro for when the Glass trial converts.",
                  "Glass waitlist answers updated": "Answers to the Glass waitlist questions were updated.",
                  "Governed change applied": "A governed change was applied after approval.",
                  "Governed change became stale": "A governed change became stale without being applied.",
                  "Governed change rejected": "A governed change was rejected during review.",
                  "Governed change submitted for review": "A governed change was submitted for review.",
                  "Governed changes turned off": "Meta-approvals were disabled for a governed subject after review.",
                  "Governed changes turned on": "Meta-approvals were enabled for a governed subject.",
                  "IP allowlist updated": "The business IP allowlist was updated.",
                  "Identity locked": "An identity lock was created or rerun.",
                  "Identity unlocked": "An identity lock was removed or rerun.",
                  "Impersonation Disabled": "Impersonation by authorized Ramp actors was disabled for the business.",
                  "Impersonation Enabled": "Impersonation by authorized Ramp actors was enabled for the business.",
                  "Impersonation upgraded to read-write": "An impersonation session was upgraded to read-write.",
                  "Incentive offer enrolled": "The business was enrolled in an incentive offer.",
                  "Initiated digital wallet provisioning (audit)": "Digital wallet provisioning was initiated for a card.",
                  "Internal bank transfer link changed": "A user linked or unlinked the two bank transactions representing an internal transfer.",
                  "Internal impersonation upgraded to read-write": "An internal impersonation session was upgraded to read-write.",
                  "Investment Account closed": "Investment account closed",
                  "Investment Account created": "Investment account created before provider setup",
                  "Investment Account opened": "Investment account opened",
                  "Investment Account renamed": "Investment account renamed.",
                  "Investment Account terms accepted": "Investment account terms were agreed to.",
                  "Investment Account updated": "Investment Account updated.",
                  "Invoice payment page requested": "A payment page was requested for an invoice without emailing the customer.",
                  "Ironclad settings updated": "Settings for the Ironclad integration were updated.",
                  "Issued Ramp Card": "A cardholder's Ramp Card was issued.",
                  "Issuing compliance information changed": "An internal compliance editor created or updated issuing KYC or KYB information.",
                  "Journal entry batch retry requested": "A retry was requested for an accounting journal entry batch.",
                  "Journal entry marked as already posted": "A journal entry was marked as already posted.",
                  "Left funds": "A member left a shared fund.",
                  "Legal agreement accepted": "A user accepted a legal agreement for a card offer.",
                  "Legal entity updated": "A business legal entity was updated.",
                  "Locked Ramp Card": "Access to a cardholder's Ramp Card was locked.",
                  "Login methods updated": "The login methods allowed for business roles were updated.",
                  "Manual redemption redeemed": "A manual cashback redemption was recorded against the business's rewards balance (e.g. when ops fulfills a customer redemption out-of-band by issuing Ramp incentive cards).",
                  "Marketplace plugin changed": "A Plugin Marketplace plugin was changed.",
                  "New vendor approval policy updated": "A new vendor approval policy was updated.",
                  "Nightly bank sync setting changed": "Nightly bank sync was enabled or disabled for the business.",
                  "Outlook Calendar setup updated": "A user updated Outlook Calendar organization setup or settings.",
                  "Partner billing disconnected": "Partner billing was disconnected.",
                  "Partner console created": "An internal operator created a partner console from a Salesforce Partner Account.",
                  "Passkey created": "A passkey was created for a user.",
                  "Passkey deleted": "A passkey was deleted for a user.",
                  "Passkey removal request denied": "An admin denied a user's passkey removal request.",
                  "Payout details request redirected": "An admin redirected the firm's payout details request to themselves.",
                  "Phone change request reviewed": "An admin approved or denied a phone change request.",
                  "Phone change request superseded": "A newer phone change request replaced a pending request.",
                  "Phone change requested": "A user requested an administrator's help changing their phone number.",
                  "Plan created": "A financial plan was created.",
                  "Plan deleted": "A financial plan and its sub plans were deleted.",
                  "Plan edited": "The name, settings, dimensions, lines, or planned amounts of a financial plan were edited.",
                  "Plan settings updated": "The date range, counted spend sources, or rule priority of a financial plan changed.",
                  "Plugin demo sandbox created": "Ramp created a plugin demo sandbox.",
                  "Plugin demo sandbox requested": "A plugin demo sandbox was requested.",
                  "Preferred name updated": "A user's preferred first name was set, changed, or cleared.",
                  "Preview mode entered": "An internal preview impersonation session was started.",
                  "Product access granted": "A user was granted access to a product.",
                  "Product access revoked": "A user's access to a product was revoked.",
                  "Product billing settings override": "A product's billing overrides were changed.",
                  "Program entity restrictions changed": "A program's allowed legal entities changed.",
                  "Purchase order accrual lines updated": "Purchase order lines were manually included in or excluded from an accrual report.",
                  "Purchase order accrual synced": "A purchase order accrual was synced.",
                  "Purchase order delivery acknowledged": "A vendor acknowledged a purchase order delivery.",
                  "Purchase order marked as synced": "A user marked a purchase order that failed to sync as synced, because they entered it in the accounting provider by hand.",
                  "Purchase orders marked as synced": "A user marked one or more purchase orders that failed to sync as synced.",
                  "Ramp Card limit change submitted": "A Ramp Card limit was changed or a limit change was requested.",
                  "Ramp Card limit changed": "A cardholder's Ramp Card limit was set, changed, or restored. Use 'Removed Ramp Card limit' for removals.",
                  "Receipt downloaded for transfer": "A receipt was downloaded for a wallet transfer.",
                  "Receipt reprocessed": "An existing receipt's file was reprocessed.",
                  "Recurring task approvers updated": "A recurring task's approval defaults and unstarted occurrences were updated.",
                  "Recurring task instructions changed": "A user saved or restored, or Ramp's agent edited, the instructions for a recurring Stack task.",
                  "Reimbursement approval withdrawn": "An approved reimbursement was returned to pending for re-approval.",
                  "Reimbursement manual payment recorded": "A payment made outside Ramp was recorded for a reimbursement so it can sync to accounting.",
                  "Reimbursement marked as unsynced": "A reimbursement was marked as unsynced in Ramp.",
                  "Rejected Ramp Card edit request": "A Ramp Card edit request was rejected.",
                  "Rejected Ramp Card request": "A Ramp Card request was rejected.",
                  "Removed Ramp Card limit": "A cardholder's Ramp Card limit was removed.",
                  "Repayment accounting sync success": "A repayment was successfully synced to the accounting provider.",
                  "Report reset to default": "A report was reset to its default version.",
                  "Requested Ramp Card": "A Ramp Card was requested.",
                  "Requested an edit to this Ramp Card": "An edit to a Ramp Card was requested.",
                  "Reset offline card PIN": "An offline card PIN reset was accepted by the issuer; chip synchronization is pending.",
                  "Restored Ramp Card": "A cardholder's Ramp Card was restored.",
                  "Router API key status changed": "A Router API key was locked, unlocked, or terminated from AI Spend.",
                  "Router person limit unlocked": "A person's locked Router limit was unlocked from AI Spend.",
                  "Router savings opportunity found": "Ramp found a new Router savings opportunity.",
                  "Router savings opportunity reminder sent": "An admin reminded someone about a Router savings opportunity.",
                  "Router savings opportunity updated": "A Router savings opportunity was dismissed or committed to.",
                  "Router spend limit changed": "A Router API key or person spend limit was set, changed, or removed.",
                  "SFTP Export Changed": "An SFTP export was created, changed, or deleted.",
                  "SFTP Export Run Started": "A user started a run of an SFTP export.",
                  "SFTP Import Changed": "An SFTP import was created or changed.",
                  "SSO certificate updated": "An SSO provider certificate was updated.",
                  "SSO domain DNS verification challenge created": "A domain's DNS verification challenge was created.",
                  "SSO domain DNS verification changed": "A domain's DNS verification status changed.",
                  "SSO domain-sharing request resolved": "An SSO domain-sharing request was approved or denied.",
                  "SSO provider created": "An SSO provider was created.",
                  "SSO provider deleted": "An SSO provider was deleted.",
                  "SSO provider domains updated": "Domains were added to or removed from an SSO provider.",
                  "Sales tax filing email sent": "A sales tax refund request email was sent, or its send was recorded.",
                  "Sales tax filing inbox changed": "An inbox was turned on for sales tax filing.",
                  "Sales tax refund claim form saved": "The values entered in a sales tax refund claim form were saved.",
                  "Sandbox agent session activity": "Sandbox agent session activity was recorded.",
                  "Sandbox business names updated": "Sandbox business names were updated.",
                  "Sandbox seeding activity": "Sandbox seeding activity was recorded.",
                  "Shortfall coverage updated": "Shortfall coverage updated.",
                  "Smart OCR provenance recorded": "Smart OCR callback evidence was recorded.",
                  "Snowflake connection configuration changed": "A Snowflake connection's credentials or configuration were changed.",
                  "Snowflake connection created": "A Snowflake connection was created.",
                  "Snowflake connection removed": "A Snowflake connection was removed.",
                  "Snowflake connection scope changed": "The schemas or tables available to a Snowflake connection were changed.",
                  "Spend export queued": "A cardholder or cards and funds CSV export was queued.",
                  "Spend settings updated": "A scalar setting on the spend settings page was changed.",
                  "Stack chat sharing changed": "A user shared a Stack chat, changed someone's access to it, or removed someone from it.",
                  "Stack connector updated": "A Stack connector was set up or disconnected.",
                  "Status updated by intake agent": "Status of an accounts receivable customer was updated by the intake agent.",
                  "Strict MFA setting updated": "A business strict MFA setting was updated.",
                  "Submission policy updated": "A submission policy was updated.",
                  "Subscription changed": "A billing subscription changed.",
                  "Subscription created": "A billing subscription was created.",
                  "Subscription entitlements changed": "Subscription entitlements were changed.",
                  "Subscription grandfathered": "A retained subscription entitlement was recorded.",
                  "Subscription pricing application skipped": "Subscription pricing was not eligible for application.",
                  "Subscription pricing applied": "Subscription pricing was applied.",
                  "Subscription renewed": "A subscription term was renewed.",
                  "Subscription terminated": "A subscription termination plan was executed.",
                  "Subscription trial transitioned": "A billing subscription trial transitioned.",
                  "Synced draft policy from workflow": "A policy draft was updated to reflect edits made to its underlying workflow.",
                  "System role created": "A system role was made available in the business.",
                  "Teammate invited to take over a payment details request": "A vendor invited someone to its portal to take over a payment details request.",
                  "Teammate reminded about a payment details request": "A vendor emailed a payment details request to a portal teammate.",
                  "Temporarily unlocked Ramp Card": "Access to a cardholder's Ramp Card was temporarily unlocked.",
                  "Test invoice email requested": "A test invoice email was requested. This does not confirm delivery.",
                  "Third-party checks updated": "Third-party checks were allowed or blocked for a virtual account number.",
                  "Ticket approvers updated": "A ticket's approvers were updated.",
                  "Training cancellation submitted": "A user submitted a cancellation for a Ramp training workshop.",
                  "Training registration submitted": "A user submitted a registration for a Ramp training workshop.",
                  "Transaction added to trip": "A transaction was added to a trip.",
                  "Transaction approval regeneration requested": "An internal operator requested regeneration of transaction approval chains.",
                  "Transaction fraud label deleted": "A transaction fraud label was deleted by a Ramp operator.",
                  "Transaction fraud status changed": "A transaction fraud status was changed by a Ramp operator.",
                  "Transaction linked to contract": "A card transaction was linked to a contract.",
                  "Transaction marked as unsynced": "A card transaction was marked as unsynced in Ramp.",
                  "Transaction memory message queued": "A user queued a transaction memory request for processing.",
                  "Transaction removed from trip": "A transaction was removed from a trip.",
                  "Transaction tax expense category updated": "A user set the tax expense category on a card transaction.",
                  "Transaction unlinked from contract": "A card transaction was unlinked from a contract.",
                  "Transfer created": "A payment transfer was created.",
                  "Transfer initiated": "A transfer was initiated for a treasury account.",
                  "Travel agent signs changed": "A travel agency's agent signs were set, changed, or removed.",
                  "Travel booking manually matched to transaction": "A travel booking was manually matched to a card transaction.",
                  "Travel funds request answered": "A traveler covered or declined a request for more funds for their booking.",
                  "Travel integration connected": "A travel management company integration was connected.",
                  "Travel integration settings updated": "Receipt attachment or trip creation settings were updated for a travel integration.",
                  "Trip question answered": "A user answered a trip confirmation question.",
                  "Unarchived funds": "Funds were unarchived.",
                  "Unlocked Ramp Card": "Access to a cardholder's Ramp Card was unlocked.",
                  "Updated Ramp Card limit": "A cardholder's Ramp Card limit amount or frequency was updated, including scheduled resets.",
                  "Updated policy to include Guest": "A policy was updated to include the Guest role.",
                  "Updated workflow to include Guest": "A workflow or subflow was updated to include the Guest role.",
                  "Usage deleted": "A usage record on a usage-based billing schedule line was deleted.",
                  "Usage logged": "Usage was logged on a usage-based billing schedule line.",
                  "Usage replaced": "A usage record on a usage-based billing schedule line was replaced.",
                  "User custom field employee editing updated": "Whether employees can edit their own value for a user custom field was updated.",
                  "User logged out": "A user logged out.",
                  "User logged out of all sessions": "A user logged out of all sessions.",
                  "User merchant allowlist updated": "A user merchant allowlist was updated by a Ramp operator.",
                  "Vendor Network connection migrated": "A vendor's Vendor Network connection was updated.",
                  "Vendor edit approval policy updated": "A vendor edit approval policy was updated.",
                  "Vendor hold released": "A vendor hold was released.",
                  "Vendor management agreement reminder sent": "A user sent a manual contract reminder.",
                  "Vendor management vendor network invite sent": "A Ramp Vendor Network invite was sent to a vendor.",
                  "Vendor memory file setting updated": "A vendor's memory file setting was changed.",
                  "Vendor parent set": "A parent vendor was set on a vendor.",
                  "Vendor parent unset": "A vendor's parent vendor was removed.",
                  "Vendor placed on hold": "A vendor was placed on hold.",
                  "Vendor portal merge suggestion declined": "A vendor said a suggested vendor portal isn't theirs.",
                  "Vendor portal merged": "A vendor combined two vendor portals.",
                  "Vendor portal purchase order invoice updated": "A vendor changed a vendor portal invoice created from a purchase order.",
                  "Vendor portal unmerged": "Ramp split a company out of a vendor portal into a new portal.",
                  "Vendor portal user walkthrough completed": "Ramp completed a user's vendor portal walkthrough.",
                  "Virtual-card-only requirement changed": "The virtual-card-only requirement on shared funds was changed",
                  "Voided check downloaded": "A voided check was downloaded for a treasury account.",
                  "WBX request admin approved entire workflow": "An admin approved the entire workflow-backed policy request, skipping all remaining approval steps.",
                  "Wizard task assignment changed": "Wizard task responsibility was assigned, reassigned, or cleared.",
                  "Workflow updated": "A workflow was updated.",
                  "iMessage invitation consent granted": "Consent to receive an iMessage invitation was granted.",
                  "iMessage invitation consent revoked": "Consent to receive an iMessage invitation was revoked."
                }
              },
              "nullable": true,
              "type": "array"
            },
            "style": "form"
          },
          {
            "description": "Filter by audit log events referencing this object ID (e.g. transaction_id, vendor_id, etc.). The resource name must also be provided when filtering by object ID.",
            "in": "query",
            "name": "object_id",
            "required": false,
            "schema": {
              "default": null,
              "format": "uuid",
              "nullable": true,
              "type": "string"
            }
          },
          {
            "description": "Filter by audit log events referencing this resource name. The object ID must also be provided when filtering by resource name.",
            "in": "query",
            "name": "resource_name",
            "required": false,
            "schema": {
              "default": null,
              "enum": [
                "Accounting rule group",
                "Approvals",
                "Bill payment",
                "Bill template",
                "Billing contract",
                "Card",
                "Cash Manager recommendation",
                "Fixed asset class",
                "Fixed asset",
                "Forecast custom input",
                "Fund request",
                "Investment account",
                "Legal entity",
                "Managed portfolio transfer",
                "Payment run",
                "Plan",
                "Reimbursement",
                "SFTP Configurations",
                "Separation of duties",
                "Spend allocation",
                "Spend event",
                "Spend program",
                "Transaction",
                "Travel (Booking request)",
                "Travel (Trip)",
                "Treasury account",
                "User",
                "Vendor / Merchant",
                "WBX Policy",
                "WBX Request",
                "Wallet automation policy",
                "Wallet transfer",
                "Workflow (Base)",
                "Workflow"
              ],
              "nullable": true,
              "type": "string",
              "x-enum-descriptions": {
                "Accounting rule group": "An accounting rule group.",
                "Billing contract": "A billing contract.",
                "Cash Manager recommendation": "Cash Manager recommendation",
                "Fixed asset": "Fixed asset",
                "Fixed asset class": "Fixed asset class",
                "Forecast custom input": "Forecast custom input",
                "Investment account": "Investment account",
                "Legal entity": "A business legal entity.",
                "Managed portfolio transfer": "Managed portfolio transfer",
                "Payment run": "Payment run",
                "Plan": "A financial plan.",
                "Spend program": "A spend program.",
                "Wallet automation policy": "A treasury automation policy."
              }
            }
          },
          {
            "description": "Filter by customer-visible agent labels that executed the action",
            "explode": false,
            "in": "query",
            "name": "agent_names",
            "required": false,
            "schema": {
              "items": {
                "type": "string"
              },
              "nullable": true,
              "type": "array"
            },
            "style": "form"
          },
          {
            "description": "The ID of the last entity of the previous page, used for pagination to get the next page.",
            "in": "query",
            "name": "start",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The number of results to be returned in each page. The value must be between 2 and 100. If not specified, the default value 20 will be used.",
            "in": "query",
            "name": "page_size",
            "required": false,
            "schema": {
              "default": 20,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedResponseAuditLogEventWithSpecificDetailsResourceSchema"
                }
              }
            },
            "description": "Audit log events"
          },
          "400": {
            "description": "raises InvalidInput"
          }
        },
        "security": [
          {
            "oauth2": [
              "audit_logs:read"
            ]
          }
        ],
        "summary": "Get audit log events",
        "tags": [
          "Audit Log",
          "audit_logs"
        ],
        "x-alias": "list",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/bank-accounts": {
      "get": {
        "operationId": "get_bank_account_list_with_pagination",
        "parameters": [
          {
            "description": "Filter bank accounts by connection provider.",
            "in": "query",
            "name": "connection_provider",
            "required": false,
            "schema": {
              "enum": [
                "finicity",
                "manual",
                "plaid",
                "ramp_brokerage",
                "ramp_wallet",
                "teller"
              ],
              "type": "string",
              "x-enum-descriptions": {
                "finicity": "Bank account was connected through Finicity",
                "manual": "Bank account was connected using manually provided account details",
                "plaid": "Bank account was connected through Plaid",
                "ramp_brokerage": "Bank account is a Ramp brokerage account",
                "ramp_wallet": "Bank account is a Ramp checking account",
                "teller": "Bank account was connected through Teller"
              }
            }
          },
          {
            "description": "The ID of the last entity of the previous page, used for pagination to get the next page.",
            "in": "query",
            "name": "start",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The number of results to be returned in each page. The value must be between 2 and 100. If not specified, the default value 20 will be used.",
            "in": "query",
            "name": "page_size",
            "required": false,
            "schema": {
              "default": 20,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedResponseApiBankAccountResource"
                }
              }
            },
            "description": "Bank Accounts"
          }
        },
        "security": [
          {
            "oauth2": [
              "bank_accounts:read"
            ]
          }
        ],
        "summary": "List bank accounts",
        "tags": [
          "Bank Accounts",
          "bank-link"
        ],
        "x-alias": "accounts",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      },
      "post": {
        "operationId": "post_bank_account_create",
        "parameters": [
          {
            "description": "Unique idempotency key generated by the client. Must be a non-empty string of at most 255 characters.",
            "in": "header",
            "name": "X-Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiBankAccountCreateRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiBankAccountResource"
                }
              }
            },
            "description": "Created bank account"
          }
        },
        "security": [
          {
            "oauth2": [
              "bank_accounts:write"
            ]
          }
        ],
        "summary": "Create a manually connected bank account",
        "tags": [
          "Bank Accounts",
          "bank-link"
        ],
        "x-alias": "create",
        "x-moves-money": true,
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/banking/accounts/{banking_account_id}/drawdown-requests": {
      "parameters": [
        {
          "description": "Unique identifier of the banking account.",
          "in": "path",
          "name": "banking_account_id",
          "required": true,
          "schema": {
            "type": "string"
          },
          "style": "simple"
        }
      ],
      "post": {
        "description": "Creates a wire drawdown request from an external bank account. The request\nmay require approval, and funds arrive only if the external bank fulfills it.\nRequires an `X-Idempotency-Key` header.",
        "operationId": "post_banking_drawdown_requests_resource",
        "parameters": [
          {
            "description": "Unique idempotency key generated by the client. Must be a non-empty string of at most 255 characters.",
            "in": "header",
            "name": "X-Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DrawdownRequestCreateRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DrawdownRequestResponse"
                }
              }
            },
            "description": "Success"
          }
        },
        "security": [
          {
            "oauth2": [
              "banking_drawdown_requests:write"
            ]
          }
        ],
        "summary": "Request funds for a banking account",
        "tags": [
          "Banking",
          "treasury"
        ],
        "x-alias": "request-funds",
        "x-destructive": true,
        "x-moves-money": true,
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/banking/agent-account-numbers": {
      "get": {
        "description": "Returns active agent-managed account numbers and all payment details\navailable for receiving funds.",
        "operationId": "get_agent_account_numbers_list_resource",
        "parameters": [
          {
            "description": "The ID of the last entity of the previous page, used for pagination to get the next page.",
            "in": "query",
            "name": "start",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The number of results to be returned in each page. The value must be between 2 and 100. If not specified, the default value 20 will be used.",
            "in": "query",
            "name": "page_size",
            "required": false,
            "schema": {
              "default": 20,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedResponseAgentAccountNumberResponse"
                }
              }
            },
            "description": "Agent account numbers"
          }
        },
        "security": [
          {
            "oauth2": [
              "agent_account_numbers:read"
            ]
          }
        ],
        "summary": "List agent account numbers",
        "tags": [
          "Banking",
          "treasury"
        ],
        "x-alias": "account-numbers",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/merchants": {
      "get": {
        "operationId": "get_merchant_list_with_pagination",
        "parameters": [
          {
            "description": "Filter merchants by URL or domain after normalization.",
            "in": "query",
            "name": "merchant_url",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter merchants by a case-sensitive display name prefix.",
            "in": "query",
            "name": "merchant_name",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter merchants by transactions occurring (`user_transaction_time`) on or after this date",
            "in": "query",
            "name": "transaction_from_date",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "description": "Filter merchants by transactions occurring (`user_transaction_time`) on or before this date",
            "in": "query",
            "name": "transaction_to_date",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "description": "The ID of the last entity of the previous page, used for pagination to get the next page.",
            "in": "query",
            "name": "start",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The number of results to be returned in each page. The value must be between 2 and 100. If not specified, the default value 20 will be used.",
            "in": "query",
            "name": "page_size",
            "required": false,
            "schema": {
              "default": 20,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedResponseApiMerchantResourceSchema"
                }
              }
            },
            "description": "Merchants"
          },
          "400": {
            "description": "raises InvalidInput"
          }
        },
        "security": [
          {
            "oauth2": [
              "merchants:read"
            ]
          }
        ],
        "summary": "List merchants",
        "tags": [
          "Merchant",
          "merchant"
        ],
        "x-alias": "list",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/mpp/payment-credentials": {
      "post": {
        "operationId": "post_mpp_payment_credential_resource",
        "parameters": [
          {
            "description": "Unique idempotency key generated by the client. Must be a non-empty string of at most 255 characters.",
            "in": "header",
            "name": "X-Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MppPaymentCredentialRequestRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MppPaymentCredential"
                }
              }
            },
            "description": "Success"
          },
          "503": {
            "description": "Credential unavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "cards:read_agentic"
            ]
          }
        ],
        "summary": "Issue or recover a Stripe MPP credential using an existing fund",
        "tags": [
          "MPP",
          "funds"
        ],
        "x-alias": "mpp-creds",
        "x-destructive": true,
        "x-moves-money": true,
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/roles": {
      "get": {
        "operationId": "get_roles_resource",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiRolesList"
                }
              }
            },
            "description": "List custom roles and their product capabilities."
          }
        },
        "security": [
          {
            "oauth2": [
              "users:read"
            ]
          }
        ],
        "summary": "List custom roles",
        "tags": [
          "Role",
          "users"
        ],
        "x-alias": "roles",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/statements": {
      "get": {
        "operationId": "get_statement_list_with_pagination",
        "parameters": [
          {
            "description": "Filter statements with end_date on or after this date (ISO8601 format).",
            "in": "query",
            "name": "from_date",
            "required": false,
            "schema": {
              "default": "1970-01-01T00:00:00+00:00",
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "description": "Filter statements with end_date on or before this date (ISO8601 format). Defaults to current time.",
            "in": "query",
            "name": "to_date",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "description": "The ID of the last entity of the previous page, used for pagination to get the next page.",
            "in": "query",
            "name": "start",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The number of results to be returned in each page. The value must be between 2 and 100. If not specified, the default value 20 will be used.",
            "in": "query",
            "name": "page_size",
            "required": false,
            "schema": {
              "default": 20,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedResponseApiStatementResourceSchema"
                }
              }
            },
            "description": "Statement"
          },
          "400": {
            "description": "raises InvalidInput"
          }
        },
        "security": [
          {
            "oauth2": [
              "statements:read"
            ]
          }
        ],
        "summary": "List statements",
        "tags": [
          "Statement",
          "statements"
        ],
        "x-alias": "list",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      }
    },
    "/developer/v1/statements/{statement_id}": {
      "get": {
        "operationId": "get_statement_resource",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Statement"
                }
              }
            },
            "description": "Statement"
          },
          "400": {
            "description": "raises InvalidInput"
          }
        },
        "security": [
          {
            "oauth2": [
              "statements:read"
            ]
          }
        ],
        "summary": "Fetch a statement",
        "tags": [
          "Statement",
          "statements"
        ],
        "x-alias": "get",
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": true
      },
      "parameters": [
        {
          "in": "path",
          "name": "statement_id",
          "required": true,
          "schema": {
            "type": "string"
          },
          "style": "simple"
        }
      ]
    },
    "/developer/v1/transactions/{transaction_id}": {
      "parameters": [
        {
          "in": "path",
          "name": "transaction_id",
          "required": true,
          "schema": {
            "type": "string"
          },
          "style": "simple"
        }
      ],
      "patch": {
        "description": "Send line_items with amounts (in minor units) to create or replace the\ntransaction's split; the line item amounts must sum to the transaction\namount. Each line item can carry its own memo and accounting field\nselections. Send an empty line_items array to unsplit (remove all line\nitems). Returns the updated transaction.",
        "operationId": "patch_transaction_canonical_update_resource",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/ApiTransactionsAgentUpdateRequestBody"
                  },
                  {
                    "$ref": "#/components/schemas/ApiTransactionsUpdateRequestBody"
                  }
                ]
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SingleTransaction"
                }
              }
            },
            "description": "Transaction"
          }
        },
        "security": [
          {
            "oauth2": [
              "transactions:write"
            ]
          }
        ],
        "summary": "Split a transaction into line items, or update an existing split",
        "tags": [
          "Transaction",
          "transactions"
        ],
        "x-alias": "split",
        "x-destructive": true,
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/vendors/{vendor_id}/hold": {
      "parameters": [
        {
          "description": "Unique identifier of the vendor.",
          "in": "path",
          "name": "vendor_id",
          "required": true,
          "schema": {
            "type": "string"
          },
          "style": "simple"
        }
      ],
      "post": {
        "description": "Blocks payments to this vendor by placing a vendor-scoped hold. Open,\nunpaid bills for the vendor that can still be modified are removed from\nscheduled payment flows. An optional `reason` can be supplied to record\nwhy the hold was placed.",
        "operationId": "post_vendor_hold_resource",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiVendorHoldParamsRequestBody"
              }
            }
          },
          "required": false
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmptyObject"
                }
              }
            },
            "description": "Vendor hold pending approval"
          },
          "204": {
            "description": "Vendor placed on hold"
          }
        },
        "security": [
          {
            "oauth2": [
              "vendors:write"
            ]
          }
        ],
        "summary": "Place a hold on a vendor",
        "tags": [
          "Vendor",
          "vendors"
        ],
        "x-alias": "hold",
        "x-destructive": true,
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    },
    "/developer/v1/vendors/{vendor_id}/release": {
      "parameters": [
        {
          "description": "Unique identifier of the vendor.",
          "in": "path",
          "name": "vendor_id",
          "required": true,
          "schema": {
            "type": "string"
          },
          "style": "simple"
        }
      ],
      "post": {
        "description": "Releases the active vendor-scoped hold and allows new payments to be\nscheduled for the vendor. Payments that were removed from scheduled\npayment flows while the hold was active must be scheduled again after\nthe hold is released.",
        "operationId": "post_vendor_hold_release_resource",
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmptyObject"
                }
              }
            },
            "description": "Vendor hold release pending approval"
          },
          "204": {
            "description": "Vendor hold released"
          }
        },
        "security": [
          {
            "oauth2": [
              "vendors:write"
            ]
          }
        ],
        "summary": "Release Vendor Hold",
        "tags": [
          "Vendor",
          "vendors"
        ],
        "x-alias": "hold-release",
        "x-destructive": true,
        "x-moves-money": true,
        "x-open-world": false,
        "x-platforms": [
          "cli",
          "mcp",
          "third_party"
        ],
        "x-read-only": false
      }
    }
  },
  "servers": [
    {
      "description": "Production",
      "url": "https://api.ramp.com"
    }
  ],
  "tags": [
    {
      "description": "Agent Tools",
      "name": "Agent Tool"
    },
    {
      "description": "Analyze AI usage and spend.",
      "name": "AI Spend"
    },
    {
      "description": "Ask questions across Ramp data you are allowed to view",
      "name": "AskRamp"
    },
    {
      "description": "Issue Machine Payments Protocol credentials",
      "name": "MPP"
    },
    {
      "description": "Manage Agent Wallet policies and execute payments.",
      "name": "Agent Wallet"
    },
    {
      "description": "Manage standalone agent identities.",
      "name": "Agents"
    },
    {
      "description": "Operations related to Banking",
      "name": "Banking"
    },
    {
      "description": "Operations related to accounting",
      "name": "Accounting"
    },
    {
      "description": "Operations related to audit log",
      "name": "Audit Log"
    },
    {
      "description": "Operations related to bank accounts",
      "name": "Bank Accounts"
    },
    {
      "description": "Operations related to financing applications",
      "name": "Application"
    },
    {
      "description": "Operations related to merchant",
      "name": "Merchant"
    },
    {
      "description": "Operations related to roles",
      "name": "Role"
    },
    {
      "description": "Operations related to statements",
      "name": "Statement"
    },
    {
      "description": "Operations related to transactions",
      "name": "Transaction"
    },
    {
      "description": "Operations related to vendors",
      "name": "Vendor"
    },
    {
      "description": "Sourcing agent tool operations",
      "name": "Sourcing Agent Tool"
    },
    {
      "name": "accounting"
    },
    {
      "name": "advisor_console"
    },
    {
      "name": "agent"
    },
    {
      "name": "agent-wallet"
    },
    {
      "name": "agent_cards"
    },
    {
      "name": "ai-token-spend"
    },
    {
      "name": "applications"
    },
    {
      "name": "approvals"
    },
    {
      "name": "ask-ramp"
    },
    {
      "name": "audit_logs"
    },
    {
      "name": "bank-link"
    },
    {
      "name": "bills"
    },
    {
      "name": "budgets"
    },
    {
      "name": "business"
    },
    {
      "name": "cards"
    },
    {
      "name": "communication"
    },
    {
      "name": "declines"
    },
    {
      "name": "external_agents"
    },
    {
      "name": "financing_application"
    },
    {
      "name": "funds"
    },
    {
      "name": "merchant"
    },
    {
      "name": "plugins"
    },
    {
      "name": "policy"
    },
    {
      "name": "procurement_requests"
    },
    {
      "name": "purchase_orders"
    },
    {
      "name": "receipts"
    },
    {
      "name": "reimbursements"
    },
    {
      "name": "reporting"
    },
    {
      "name": "requests"
    },
    {
      "name": "research"
    },
    {
      "name": "rewards"
    },
    {
      "name": "router"
    },
    {
      "name": "sourcing"
    },
    {
      "name": "statements"
    },
    {
      "name": "tasks"
    },
    {
      "name": "transactions"
    },
    {
      "name": "travel"
    },
    {
      "name": "treasury"
    },
    {
      "name": "users"
    },
    {
      "name": "vendors"
    },
    {
      "name": "x402"
    }
  ],
  "x-capabilities": [
    {
      "key": "accounting_field_conditional_logic",
      "operationIds": [
        "post_agent_tool_api___list_business_entities"
      ],
      "skills": []
    },
    {
      "key": "accounting_mapping_rules",
      "operationIds": [
        "post_agent_tool_api___list_departments",
        "post_agent_tool_api___list_sk_categories"
      ],
      "skills": []
    },
    {
      "key": "vendor_accounting_defaults",
      "operationIds": [
        "post_agent_tool_api___update_vendor_accounting_defaults"
      ],
      "skills": []
    },
    {
      "key": "policy_and_accounting_status",
      "operationIds": [
        "post_agent_tool_api___answer_policy_question",
        "post_agent_tool_api___get_erp_connection_status",
        "post_agent_tool_api___get_tracking_categories",
        "post_agent_tool_api___get_tracking_category_options"
      ],
      "skills": []
    },
    {
      "key": "erp_sync_diagnostics",
      "operationIds": [
        "post_agent_tool_api___get_latest_sync",
        "post_agent_tool_api___get_sync_commit_failure_details"
      ],
      "skills": []
    },
    {
      "key": "reimbursement_history",
      "operationIds": [
        "post_agent_tool_api___search_user_reimbursements"
      ],
      "skills": [
        "reimbursement-history"
      ]
    },
    {
      "key": "mileage_reimbursement_estimation",
      "operationIds": [
        "post_agent_tool_api___estimate_mileage_reimbursement"
      ],
      "skills": []
    },
    {
      "key": "mileage_reimbursement_creation",
      "operationIds": [
        "post_agent_tool_api___create_mileage_reimbursement"
      ],
      "skills": []
    },
    {
      "key": "expense_field_search",
      "operationIds": [
        "post_agent_tool_api___get_candidate_trips_for_transaction",
        "post_agent_tool_api___get_org_chart",
        "post_agent_tool_api___get_tracking_categories",
        "post_agent_tool_api___get_tracking_category_options",
        "post_agent_tool_api___match_user_to_transaction"
      ],
      "skills": []
    },
    {
      "key": "receipt_intake",
      "operationIds": [
        "post_agent_tool_api___attach_receipt_to_reimbursement",
        "post_agent_tool_api___attach_receipt_to_transaction",
        "post_agent_tool_api___get_user_transactions"
      ],
      "skills": [
        "receipt-intake"
      ]
    },
    {
      "key": "transaction_completion",
      "operationIds": [
        "post_agent_tool_api___complete_transaction_revision",
        "post_agent_tool_api___get_user_transactions"
      ],
      "skills": [
        "find-transactions",
        "missing-items-reminders",
        "transaction-completion"
      ]
    },
    {
      "key": "unavailable_card_receipt",
      "operationIds": [
        "post_agent_tool_api___get_transaction_missing_items",
        "post_agent_tool_api___get_user_transactions"
      ],
      "skills": [
        "unavailable-card-receipt"
      ]
    },
    {
      "key": "reimbursement_completion",
      "operationIds": [
        "post_agent_tool_api___create_reimbursement_from_receipt",
        "post_agent_tool_api___edit_reimbursement",
        "post_agent_tool_api___get_candidate_trips_for_transaction",
        "post_agent_tool_api___get_reimbursements_for_approval",
        "post_agent_tool_api___get_tracking_categories",
        "post_agent_tool_api___get_tracking_category_options",
        "post_agent_tool_api___get_user_recent_reimbursements",
        "post_agent_tool_api___get_user_transactions",
        "post_agent_tool_api___list_unmatched_receipts",
        "post_agent_tool_api___submit_reimbursement"
      ],
      "skills": [
        "reimbursement-completion"
      ]
    },
    {
      "key": "transaction_approvals",
      "operationIds": [
        "post_agent_tool_api___approve_or_reject_transaction",
        "post_agent_tool_api___get_user_transactions"
      ],
      "skills": []
    },
    {
      "key": "transaction_repayment",
      "operationIds": [
        "post_agent_tool_api___get_user_transactions"
      ],
      "skills": []
    },
    {
      "key": "transaction_editing",
      "operationIds": [
        "post_agent_tool_api___edit_transaction_deprecated"
      ],
      "skills": []
    },
    {
      "key": "receipt_email_setup",
      "operationIds": [
        "post_agent_tool_api___search_help_center_snippets"
      ],
      "skills": [
        "receipt-email-setup"
      ]
    },
    {
      "key": "uber_connection_guidance",
      "operationIds": [
        "post_agent_tool_api___search_help_center_snippets"
      ],
      "skills": [
        "uber-connection-setup"
      ]
    },
    {
      "key": "receipt_content_search",
      "operationIds": [
        "post_agent_tool_api___search_receipts"
      ],
      "skills": []
    },
    {
      "key": "reimbursement_approvals",
      "operationIds": [
        "post_agent_tool_api___approve_or_reject_reimbursement",
        "post_agent_tool_api___get_reimbursements_for_approval"
      ],
      "skills": [
        "reimbursement-approvals"
      ]
    },
    {
      "key": "missing_receipts",
      "operationIds": [
        "get_agent_tool_api___get_missing_items_by_user",
        "post_agent_tool_api___get_user_transactions"
      ],
      "skills": [
        "missing-receipts"
      ]
    },
    {
      "key": "spend_summary",
      "operationIds": [
        "post_agent_tool_api___get_user_transactions"
      ],
      "skills": [
        "spend-summary"
      ]
    },
    {
      "key": "semantic_reporting",
      "operationIds": [
        "post_agent_tool_api___create_semantic_report",
        "post_agent_tool_api___describe_reporting_dataset",
        "post_agent_tool_api___list_reporting_datasets",
        "post_agent_tool_api___query_reporting_dataset",
        "post_agent_tool_api___search_reporting_catalog"
      ],
      "skills": [
        "reporting-v3"
      ]
    },
    {
      "key": "erp_reporting",
      "operationIds": [
        "post_agent_tool_api___create_semantic_report",
        "post_agent_tool_api___describe_reporting_dataset",
        "post_agent_tool_api___list_reporting_datasets",
        "post_agent_tool_api___query_reporting_dataset",
        "post_agent_tool_api___search_reporting_catalog"
      ],
      "skills": [
        "reporting-v3"
      ]
    },
    {
      "key": "reporting_two_step_fields",
      "operationIds": [
        "post_agent_tool_api___get_reporting_field_details",
        "post_agent_tool_api___list_reporting_dataset_fields"
      ],
      "skills": []
    },
    {
      "key": "analysis_editing",
      "operationIds": [
        "post_agent_tool_api___describe_reporting_dataset",
        "post_agent_tool_api___get_reporting_field_details",
        "post_agent_tool_api___get_reporting_filter_values",
        "post_agent_tool_api___list_reporting_dataset_fields",
        "post_agent_tool_api___list_reporting_datasets",
        "post_agent_tool_api___query_reporting_dataset",
        "post_agent_tool_api___search_reporting_catalog"
      ],
      "skills": []
    },
    {
      "key": "ai_token_spend_reporting_own",
      "operationIds": [
        "post_agent_tool_api___get_my_ai_token_spend_aggregates"
      ],
      "skills": [
        "ai-token-spend-personal-reporting"
      ]
    },
    {
      "key": "ai_token_spend_reporting_global",
      "operationIds": [
        "post_agent_tool_api___get_ai_token_spend_aggregates",
        "post_agent_tool_api___get_ai_token_spend_connections",
        "post_agent_tool_api___get_ai_token_spend_current_spend",
        "post_agent_tool_api___get_ai_token_spend_filter_options"
      ],
      "skills": [
        "ai-token-spend-organization-reporting"
      ]
    },
    {
      "key": "router_api_keys",
      "operationIds": [
        "post_agent_tool_api___list_router_api_keys"
      ],
      "skills": []
    },
    {
      "key": "router_api_key_lock",
      "operationIds": [
        "post_agent_tool_api___lock_or_unlock_router_api_key"
      ],
      "skills": []
    },
    {
      "key": "router_api_key_terminate",
      "operationIds": [
        "post_agent_tool_api___terminate_router_api_key"
      ],
      "skills": []
    },
    {
      "key": "router_settings",
      "operationIds": [
        "post_agent_tool_api___get_router_settings",
        "post_agent_tool_api___list_router_members",
        "post_agent_tool_api___search_router_models"
      ],
      "skills": []
    },
    {
      "key": "router_my_requests",
      "operationIds": [
        "post_agent_tool_api___list_my_router_requests"
      ],
      "skills": []
    },
    {
      "key": "router_policies",
      "operationIds": [
        "post_agent_tool_api___update_router_model_policy"
      ],
      "skills": []
    },
    {
      "key": "router_api_key_limits",
      "operationIds": [
        "post_agent_tool_api___remove_router_api_key_limit",
        "post_agent_tool_api___set_router_api_key_limit"
      ],
      "skills": []
    },
    {
      "key": "router_coding_workloads",
      "operationIds": [
        "post_agent_tool_api___list_router_workloads",
        "post_agent_tool_api___update_router_workload"
      ],
      "skills": []
    },
    {
      "key": "check_purchase_eligibility",
      "operationIds": [
        "post_agent_tool_api___list_cards"
      ],
      "skills": []
    },
    {
      "key": "fund_requests",
      "operationIds": [
        "post_agent_tool_api___limit_increase"
      ],
      "skills": [
        "find-my-funds"
      ]
    },
    {
      "key": "fund_request_submission",
      "operationIds": [
        "post_agent_tool_api___submit_fund_request"
      ],
      "skills": []
    },
    {
      "key": "card_management",
      "operationIds": [
        "post_agent_tool_api___activate_card",
        "post_agent_tool_api___list_cards",
        "post_agent_tool_api___lock_or_unlock_card"
      ],
      "skills": []
    },
    {
      "key": "dispute_status",
      "operationIds": [
        "post_agent_tool_api___get_user_transactions"
      ],
      "skills": []
    },
    {
      "key": "decline_help",
      "operationIds": [
        "post_agent_tool_api___get_decline_explanation",
        "post_agent_tool_api___get_user_transactions",
        "post_agent_tool_api___limit_increase",
        "post_agent_tool_api___unlock_fraud_locked_card"
      ],
      "skills": [
        "decline-remediation"
      ]
    },
    {
      "key": "fund_ownership_transfer",
      "operationIds": [
        "post_agent_tool_api___transfer_spend_allocation_ownership"
      ],
      "skills": []
    },
    {
      "key": "shared_fund_role_editing",
      "operationIds": [
        "post_agent_tool_api___edit_user_role_on_shared_fund"
      ],
      "skills": []
    },
    {
      "key": "fund_entity_update",
      "operationIds": [
        "post_agent_tool_api___list_business_entities",
        "post_agent_tool_api___update_fund_entity"
      ],
      "skills": []
    },
    {
      "key": "fund_restriction_requests",
      "operationIds": [
        "post_agent_tool_api___search_merchants",
        "post_agent_tool_api___update_category_restrictions",
        "post_agent_tool_api___update_merchant_restrictions"
      ],
      "skills": []
    },
    {
      "key": "budgeting",
      "operationIds": [
        "post_agent_tool_api___explain_spend_not_on_budget",
        "post_agent_tool_api___list_budgets",
        "post_agent_tool_api___list_remaining_budget_amount"
      ],
      "skills": [
        "budgeting"
      ]
    },
    {
      "key": "planning_budgets",
      "operationIds": [
        "post_agent_tool_api___get_planning_budget",
        "post_agent_tool_api___get_planning_dimensions",
        "post_agent_tool_api___list_planning_budget_spend"
      ],
      "skills": [
        "planning-budgets"
      ]
    },
    {
      "key": "bulk_funds_actions",
      "operationIds": [
        "post_agent_tool_api___list_business_entities",
        "post_agent_tool_api___update_spend_allocation_interval_tool"
      ],
      "skills": [
        "bulk-funds-actions"
      ]
    },
    {
      "key": "spend_controls_orchestrator",
      "operationIds": [
        "post_agent_tool_api___archive_spend_allocation_tool",
        "post_agent_tool_api___list_departments",
        "post_agent_tool_api___list_sk_categories",
        "post_agent_tool_api___unarchive_spend_allocation_tool"
      ],
      "skills": [
        "create-spend-program",
        "individual-archive"
      ]
    },
    {
      "key": "spend_agent",
      "operationIds": [
        "post_agent_tool_api___add_user_to_shared_fund",
        "post_agent_tool_api___enable_shared_fund_access",
        "post_agent_tool_api___list_departments",
        "post_agent_tool_api___remove_user_from_shared_fund"
      ],
      "skills": [
        "shared-fund-access-management"
      ]
    },
    {
      "key": "delete_spend_program",
      "operationIds": [
        "post_agent_tool_api___delete_spend_program"
      ],
      "skills": [
        "delete-spend-program"
      ]
    },
    {
      "key": "one_off_fund_creation",
      "operationIds": [
        "post_agent_tool_api___issue_from_spend_program",
        "post_agent_tool_api___issue_one_off_funds"
      ],
      "skills": [
        "issuing-funds"
      ]
    },
    {
      "key": "spend_fund_controls",
      "operationIds": [
        "post_agent_tool_api___search_merchants",
        "post_agent_tool_api___update_category_restrictions",
        "post_agent_tool_api___update_merchant_restrictions"
      ],
      "skills": []
    },
    {
      "key": "decline_buffer",
      "operationIds": [
        "post_agent_tool_api___set_decline_buffer"
      ],
      "skills": [
        "decline-buffer"
      ]
    },
    {
      "key": "cards_and_funds",
      "operationIds": [
        "post_agent_tool_api___activate_card",
        "post_agent_tool_api___get_user_funds",
        "post_agent_tool_api___limit_increase",
        "post_agent_tool_api___list_cards",
        "post_agent_tool_api___lock_or_unlock_card",
        "post_agent_tool_api___lock_or_unlock_spend_allocation",
        "post_agent_tool_api___lock_or_unlock_spend_allocation_member",
        "post_agent_tool_api___unlock_fraud_locked_card",
        "post_agent_tool_api___update_transaction_amount_limit"
      ],
      "skills": [
        "find-my-funds",
        "increase-issued-funds",
        "spend-controls"
      ]
    },
    {
      "key": "card_statement_balance",
      "operationIds": [
        "post_agent_tool_api___get_card_statement_balance",
        "post_agent_tool_api___list_business_entities"
      ],
      "skills": [
        "card-statement-balance"
      ]
    },
    {
      "key": "fund_reassignment",
      "operationIds": [
        "post_agent_tool_api___edit_transaction_deprecated"
      ],
      "skills": [
        "fund-reassignment"
      ]
    },
    {
      "key": "buy_for_me",
      "operationIds": [
        "post_agent_tool_api___get_agent_card_funds",
        "post_agent_tool_api___search_merchants"
      ],
      "skills": [
        "buy-for-me"
      ]
    },
    {
      "key": "agent_card_credentials",
      "operationIds": [
        "post_agent_tool_api___get_agent_card_creds"
      ],
      "skills": []
    },
    {
      "key": "x402_payments",
      "operationIds": [
        "post_agent_tool_api___fund_x402_wallet",
        "post_agent_tool_api___pay_with_x402",
        "post_agent_tool_api___provision_x402_wallet",
        "post_agent_tool_api___withdraw_x402_wallet"
      ],
      "skills": []
    },
    {
      "key": "gusto_payroll_setup",
      "operationIds": [
        "post_agent_tool_api___search_help_center_snippets"
      ],
      "skills": [
        "gusto-payroll-setup"
      ]
    },
    {
      "key": "treasury_balance",
      "operationIds": [
        "get_agent_tool_api___get_account_balance_history",
        "get_agent_tool_api___get_investment_account_balance",
        "get_agent_tool_api___get_managed_portfolio_account_balance",
        "get_agent_tool_api___get_ramp_business_account_balance",
        "get_agent_tool_api___get_treasury_balance_history",
        "get_agent_tool_api___get_treasury_document_link",
        "get_agent_tool_api___list_treasury_accounts",
        "get_agent_tool_api___list_treasury_documents",
        "post_agent_tool_api___get_treasury_documents_download_link"
      ],
      "skills": [
        "treasury-balance"
      ]
    },
    {
      "key": "treasury_banking_transfer_reads",
      "operationIds": [
        "get_agent_tool_api___list_wallet_transfers"
      ],
      "skills": [
        "ramp-checking-transfers"
      ]
    },
    {
      "key": "ach_originator_whitelist_reads",
      "operationIds": [
        "get_agent_tool_api___list_business_accounts"
      ],
      "skills": [
        "ach-originator-whitelist"
      ]
    },
    {
      "key": "rba_wire_instructions",
      "operationIds": [
        "get_agent_tool_api___list_business_accounts"
      ],
      "skills": [
        "rba-wire-instructions"
      ]
    },
    {
      "key": "statement_date_management",
      "operationIds": [
        "get_agent_tool_api___get_business_statement_date_tool"
      ],
      "skills": [
        "statement-date-management"
      ]
    },
    {
      "key": "cashback_rewards_reads",
      "operationIds": [
        "post_agent_tool_api___get_rewards_summary",
        "post_agent_tool_api___list_business_entities"
      ],
      "skills": [
        "cashback-rewards"
      ]
    },
    {
      "key": "cashback_rewards_writes",
      "operationIds": [
        "get_agent_tool_api___list_business_accounts",
        "post_agent_tool_api___list_business_entities",
        "post_agent_tool_api___redeem_statement_credit"
      ],
      "skills": [
        "cashback-rewards"
      ]
    },
    {
      "key": "direct_debit_match_apply",
      "operationIds": [
        "post_agent_tool_api___search_bills"
      ],
      "skills": [
        "direct-debit-match-apply"
      ]
    },
    {
      "key": "direct_debit_matching",
      "operationIds": [
        "post_agent_tool_api___search_bills"
      ],
      "skills": [
        "direct-debit-matching"
      ]
    },
    {
      "key": "bill_pay_v1_core",
      "operationIds": [
        "post_agent_tool_api___approve_or_reject_bill",
        "post_agent_tool_api___get_bill_amount_summary",
        "post_agent_tool_api___get_bill_details",
        "post_agent_tool_api___get_bill_history",
        "post_agent_tool_api___get_bill_metrics",
        "post_agent_tool_api___get_bill_status",
        "post_agent_tool_api___get_bills_for_approval",
        "post_agent_tool_api___get_draft_bill_details",
        "post_agent_tool_api___search_bills",
        "post_agent_tool_api___search_vendors"
      ],
      "skills": [
        "accounts-payable",
        "bill-creation"
      ]
    },
    {
      "key": "bill_pay_draft_authoring",
      "operationIds": [
        "post_agent_tool_api___create_draft_bill",
        "post_agent_tool_api___patch_provisional_bill",
        "post_agent_tool_api___submit_draft_bill"
      ],
      "skills": []
    },
    {
      "key": "bill_payment_support",
      "operationIds": [
        "post_agent_tool_api___get_bill_details",
        "post_agent_tool_api___get_bill_history",
        "post_agent_tool_api___get_bill_status",
        "post_agent_tool_api___search_bills"
      ],
      "skills": [
        "bill-payment-support"
      ]
    },
    {
      "key": "payment_method_explanation",
      "operationIds": [
        "post_agent_tool_api___search_vendors"
      ],
      "skills": [
        "payment-method-explanation"
      ]
    },
    {
      "key": "bill_list",
      "operationIds": [
        "post_agent_tool_api___list_bills"
      ],
      "skills": []
    },
    {
      "key": "bill_comments",
      "operationIds": [
        "post_agent_tool_api___get_bill_comments"
      ],
      "skills": []
    },
    {
      "key": "bill_invoices",
      "operationIds": [
        "post_agent_tool_api___get_bill_invoices"
      ],
      "skills": []
    },
    {
      "key": "bill_invoice_upload_link",
      "operationIds": [
        "post_agent_tool_api___request_bill_invoice_upload_link"
      ],
      "skills": []
    },
    {
      "key": "recurring_bill_details",
      "operationIds": [
        "post_agent_tool_api___get_recurring_bill"
      ],
      "skills": []
    },
    {
      "key": "bill_approver_reminders",
      "operationIds": [
        "post_agent_tool_api___remind_bill_approvers"
      ],
      "skills": []
    },
    {
      "key": "expense_policy_help",
      "operationIds": [
        "get_agent_tool_api___get_employee_submission_policy_requirements",
        "get_agent_tool_api___get_expense_workflow_context",
        "get_agent_tool_api___get_missing_items_by_user",
        "get_agent_tool_api___get_policy_details",
        "get_agent_tool_api___get_policy_workflow_body",
        "get_agent_tool_api___list_policies",
        "post_agent_tool_api___answer_policy_question",
        "post_agent_tool_api___get_transaction_missing_items",
        "post_agent_tool_api___get_user_recent_reimbursements",
        "post_agent_tool_api___get_user_transactions",
        "post_agent_tool_api___search_help_center_snippets",
        "post_agent_tool_api___search_user_reimbursements",
        "post_agent_tool_api___simulate_policy_workflow_for_expense"
      ],
      "skills": [
        "policy-qa"
      ]
    },
    {
      "key": "submission_policy_drafting",
      "operationIds": [
        "get_agent_tool_api___list_policies"
      ],
      "skills": []
    },
    {
      "key": "spend_program_lookups",
      "operationIds": [
        "post_agent_tool_api___get_purchase_order_line_item_tracking_categories",
        "post_agent_tool_api___list_business_entities",
        "post_agent_tool_api___list_departments",
        "post_agent_tool_api___list_sk_categories",
        "post_agent_tool_api___search_merchants",
        "post_agent_tool_api___search_vendors"
      ],
      "skills": [
        "edit-spend-program"
      ]
    },
    {
      "key": "workflows_debugging",
      "operationIds": [
        "post_agent_tool_api___get_approval_chain_details",
        "post_agent_tool_api___resolve_approval_target"
      ],
      "skills": []
    },
    {
      "key": "cross_product_approvals",
      "operationIds": [
        "post_agent_tool_api___approve_or_reject_reimbursement",
        "post_agent_tool_api___approve_or_reject_request",
        "post_agent_tool_api___approve_or_reject_transaction",
        "post_agent_tool_api___get_purchase_order_details",
        "post_agent_tool_api___get_reimbursement_receipts",
        "post_agent_tool_api___get_requests_to_review",
        "post_agent_tool_api___get_unified_request_details",
        "post_agent_tool_api___search_purchase_orders",
        "post_agent_tool_api___search_unified_requests"
      ],
      "skills": []
    },
    {
      "key": "advisor_console",
      "operationIds": [
        "post_agent_tool_api___get_authorized_businesses"
      ],
      "skills": []
    },
    {
      "key": "post_comment",
      "operationIds": [
        "post_agent_tool_api___delete_comment",
        "post_agent_tool_api___edit_comment",
        "post_agent_tool_api___post_comment"
      ],
      "skills": []
    },
    {
      "key": "matrix_configuration",
      "operationIds": [
        "post_agent_tool_api___get_all_reduced_users",
        "post_agent_tool_api___get_tracking_categories",
        "post_agent_tool_api___get_tracking_category_options",
        "post_agent_tool_api___list_business_entities",
        "post_agent_tool_api___list_departments",
        "post_agent_tool_api___search_vendors"
      ],
      "skills": [
        "matrix-configuration"
      ]
    },
    {
      "key": "settings_help",
      "operationIds": [
        "post_agent_tool_api___search_help_center_snippets"
      ],
      "skills": [
        "settings-help",
        "travel-preferences",
        "traveler-profile"
      ]
    },
    {
      "key": "help_center",
      "operationIds": [
        "post_agent_tool_api___search_help_center_snippets"
      ],
      "skills": []
    },
    {
      "key": "plugin_marketplace_sandbox",
      "operationIds": [
        "post_agent_tool_api___request_plugin_marketplace_sandbox"
      ],
      "skills": []
    },
    {
      "key": "plugin_marketplace_publishing",
      "operationIds": [
        "post_agent_tool_api___get_plugin_marketplace_status",
        "post_agent_tool_api___save_plugin_marketplace_draft",
        "post_agent_tool_api___submit_plugin_to_marketplace"
      ],
      "skills": []
    },
    {
      "key": "financing_applications",
      "operationIds": [
        "get_agent_tool_api___get_application_details",
        "get_agent_tool_api___get_application_invites",
        "get_agent_tool_api___get_application_status",
        "get_agent_tool_api___get_pending_request_items",
        "post_agent_tool_api___create_client_financing_application",
        "post_agent_tool_api___invite_client_to_review_financing_application",
        "post_agent_tool_api___update_client_financing_application"
      ],
      "skills": []
    },
    {
      "key": "onboarding_setup",
      "operationIds": [
        "post_agent_tool_api___create_department"
      ],
      "skills": [
        "card-setup"
      ]
    },
    {
      "key": "people_lookup",
      "operationIds": [
        "post_agent_tool_api___get_org_chart",
        "post_agent_tool_api___match_user_to_transaction"
      ],
      "skills": []
    },
    {
      "key": "people_directory",
      "operationIds": [
        "post_agent_tool_api___get_all_reduced_users",
        "post_agent_tool_api___get_simplified_user_detail",
        "post_agent_tool_api___list_departments",
        "post_agent_tool_api___match_user_to_transaction"
      ],
      "skills": []
    },
    {
      "key": "department_rename",
      "operationIds": [
        "post_agent_tool_api___rename_department"
      ],
      "skills": []
    },
    {
      "key": "roles_and_permissions",
      "operationIds": [
        "post_agent_tool_api___search_help_center_snippets"
      ],
      "skills": [
        "roles-and-permissions"
      ]
    },
    {
      "key": "attention_feed",
      "operationIds": [
        "post_agent_tool_api___get_attention_feed"
      ],
      "skills": []
    },
    {
      "key": "wbx_spend_request_intake",
      "operationIds": [
        "post_agent_tool_api___answer_policy_question",
        "post_agent_tool_api___find_procurement_deflection_matches",
        "post_agent_tool_api___get_purchase_order_details",
        "post_agent_tool_api___get_purchase_order_line_item_tracking_categories",
        "post_agent_tool_api___get_requests_to_review",
        "post_agent_tool_api___get_unified_request_details",
        "post_agent_tool_api___get_user_funds",
        "post_agent_tool_api___get_vendor_details",
        "post_agent_tool_api___list_business_entities",
        "post_agent_tool_api___list_departments",
        "post_agent_tool_api___list_vendor_agreements",
        "post_agent_tool_api___post_comment",
        "post_agent_tool_api___search_purchase_orders",
        "post_agent_tool_api___search_unified_requests"
      ],
      "skills": [
        "intake"
      ]
    },
    {
      "key": "intake_request_budgets",
      "operationIds": [
        "post_agent_tool_api___list_budgets"
      ],
      "skills": []
    },
    {
      "key": "purchase_order_lifecycle",
      "operationIds": [
        "post_agent_tool_api___bulk_close_purchase_orders",
        "post_agent_tool_api___bulk_reopen_purchase_orders"
      ],
      "skills": []
    },
    {
      "key": "purchase_order_owner_update",
      "operationIds": [
        "post_agent_tool_api___update_purchase_order_owner"
      ],
      "skills": []
    },
    {
      "key": "blanket_purchase_order_release",
      "operationIds": [
        "post_agent_tool_api___create_blanket_purchase_order_release"
      ],
      "skills": []
    },
    {
      "key": "submitted_procurement_request_edit",
      "operationIds": [
        "post_agent_tool_api___update_submitted_procurement_request"
      ],
      "skills": []
    },
    {
      "key": "procurement_policy_search",
      "operationIds": [
        "post_agent_tool_api___search_procurement_policy"
      ],
      "skills": []
    },
    {
      "key": "vendor_search",
      "operationIds": [
        "post_agent_tool_api___search_vendors"
      ],
      "skills": [
        "vendor-search"
      ]
    },
    {
      "key": "vendor_tools",
      "operationIds": [
        "post_agent_tool_api___create_payee",
        "post_agent_tool_api___get_vendor_agreement",
        "post_agent_tool_api___get_vendor_details",
        "post_agent_tool_api___get_vendor_documents",
        "post_agent_tool_api___list_vendor_agreements",
        "post_agent_tool_api___list_vendor_contacts_by_payee"
      ],
      "skills": []
    },
    {
      "key": "vendor_owner_write",
      "operationIds": [
        "post_agent_tool_api___change_vendor_ownership"
      ],
      "skills": []
    },
    {
      "key": "contract_renewals",
      "operationIds": [
        "post_agent_tool_api___find_procurement_deflection_matches"
      ],
      "skills": [
        "contract-renewals"
      ]
    },
    {
      "key": "price_intelligence",
      "operationIds": [
        "post_agent_tool_api___get_vendor_agreement",
        "post_agent_tool_api___list_vendor_agreements"
      ],
      "skills": [
        "price-benchmarking"
      ]
    },
    {
      "key": "vendor_document_uploads",
      "operationIds": [
        "post_agent_tool_api___attach_vendor_document",
        "post_agent_tool_api___bulk_upload_vendor_documents"
      ],
      "skills": []
    },
    {
      "key": "vendor_document_bulk_status",
      "operationIds": [
        "get_agent_tool_api___get_vendor_document_bulk_status"
      ],
      "skills": []
    },
    {
      "key": "vendor_banking_details",
      "operationIds": [
        "post_agent_tool_api___get_vendor_banking_details"
      ],
      "skills": []
    },
    {
      "key": "travel_flight_credits",
      "operationIds": [
        "post_agent_tool_api___get_airline_credits"
      ],
      "skills": [
        "travel-flight-credits"
      ]
    },
    {
      "key": "travel_car_rental_booking",
      "operationIds": [
        "post_agent_tool_api___get_booking_details",
        "post_agent_tool_api___get_bookings",
        "post_agent_tool_api___get_delegated_travelers",
        "post_agent_tool_api___get_office_locations"
      ],
      "skills": [
        "travel-car-rental-booking"
      ]
    },
    {
      "key": "travel_car_rebooking",
      "operationIds": [
        "post_agent_tool_api___booking_modification_details",
        "post_agent_tool_api___get_office_locations",
        "post_agent_tool_api___get_traveler_profile",
        "post_agent_tool_api___list_traveler_loyalty_programs",
        "post_agent_tool_api___remove_traveler_loyalty_program",
        "post_agent_tool_api___set_traveler_loyalty_program",
        "post_agent_tool_api___update_travel_preferences",
        "post_agent_tool_api___update_traveler_profile"
      ],
      "skills": []
    },
    {
      "key": "travel_booking_verification",
      "operationIds": [
        "post_agent_tool_api___get_booking_details",
        "post_agent_tool_api___get_bookings"
      ],
      "skills": [
        "travel-booking-verification"
      ]
    },
    {
      "key": "upcoming_travel",
      "operationIds": [
        "post_agent_tool_api___get_booking_details",
        "post_agent_tool_api___get_bookings"
      ],
      "skills": [
        "upcoming-travel"
      ]
    },
    {
      "key": "trip_management",
      "operationIds": [
        "post_agent_tool_api___create_trip",
        "post_agent_tool_api___get_candidate_trips_for_transaction"
      ],
      "skills": []
    },
    {
      "key": "travel_memory",
      "operationIds": [
        "post_agent_tool_api___update_travel_preferences"
      ],
      "skills": [
        "travel-preferences"
      ]
    },
    {
      "key": "traveler_profile",
      "operationIds": [
        "post_agent_tool_api___get_traveler_profile",
        "post_agent_tool_api___list_traveler_loyalty_programs",
        "post_agent_tool_api___remove_traveler_loyalty_program",
        "post_agent_tool_api___set_traveler_loyalty_program",
        "post_agent_tool_api___update_travel_preferences",
        "post_agent_tool_api___update_traveler_profile"
      ],
      "skills": []
    },
    {
      "key": "travel_hotel_payment_escalation",
      "operationIds": [
        "post_agent_tool_api___get_all_reduced_users",
        "post_agent_tool_api___get_bookings",
        "post_agent_tool_api___get_delegated_travelers"
      ],
      "skills": [
        "travel-hotel-credit-card-authorization"
      ]
    },
    {
      "key": "travel_flight_booking",
      "operationIds": [
        "post_agent_tool_api___get_booking_details",
        "post_agent_tool_api___get_booking_service_status",
        "post_agent_tool_api___get_bookings",
        "post_agent_tool_api___get_delegated_travelers",
        "post_agent_tool_api___get_flight_booking_locations",
        "post_agent_tool_api___get_traveler_profile",
        "post_agent_tool_api___search_flights",
        "post_agent_tool_api___submit_flight_booking",
        "post_agent_tool_api___update_travel_preferences",
        "post_agent_tool_api___update_traveler_profile"
      ],
      "skills": [
        "travel-flight-booking-core"
      ]
    },
    {
      "key": "travel_booking_price_update",
      "operationIds": [
        "post_agent_tool_api___get_booking_details",
        "post_agent_tool_api___get_bookings"
      ],
      "skills": []
    },
    {
      "key": "travel_hotel_booking",
      "operationIds": [
        "post_agent_tool_api___get_booking_details",
        "post_agent_tool_api___get_booking_service_status",
        "post_agent_tool_api___get_bookings",
        "post_agent_tool_api___get_delegated_travelers",
        "post_agent_tool_api___get_hotel_rates",
        "post_agent_tool_api___get_office_locations",
        "post_agent_tool_api___get_traveler_profile",
        "post_agent_tool_api___search_hotels",
        "post_agent_tool_api___submit_hotel_booking",
        "post_agent_tool_api___update_travel_preferences",
        "post_agent_tool_api___update_traveler_profile"
      ],
      "skills": [
        "travel-hotel-booking-core"
      ]
    },
    {
      "key": "travel_booking_status",
      "operationIds": [
        "post_agent_tool_api___get_booking_details",
        "post_agent_tool_api___get_bookings",
        "post_agent_tool_api___get_delegated_travelers"
      ],
      "skills": [
        "travel-booking-status-text"
      ]
    },
    {
      "key": "travel_request_approvals",
      "operationIds": [
        "post_agent_tool_api___get_booking_details",
        "post_agent_tool_api___get_bookings",
        "post_agent_tool_api___get_pending_travel_requests",
        "post_agent_tool_api___travel_request_action"
      ],
      "skills": []
    },
    {
      "key": "airline_check_in",
      "operationIds": [
        "post_agent_tool_api___get_booking_details",
        "post_agent_tool_api___get_traveler_profile"
      ],
      "skills": [
        "travel-flight-check-in"
      ]
    },
    {
      "key": "travel_booking_support",
      "operationIds": [
        "post_agent_tool_api___booking_cancellation_details",
        "post_agent_tool_api___booking_modification_details",
        "post_agent_tool_api___get_booking_details",
        "post_agent_tool_api___get_bookings",
        "post_agent_tool_api___get_delegated_travelers"
      ],
      "skills": [
        "travel-booking-status-text",
        "travel-booking-support-text"
      ]
    },
    {
      "key": "travel_flight_cancellation",
      "operationIds": [
        "post_agent_tool_api___get_booking_details",
        "post_agent_tool_api___get_bookings",
        "post_agent_tool_api___get_delegated_travelers",
        "post_agent_tool_api___submit_flight_cancellation"
      ],
      "skills": [
        "travel-booking-status-text",
        "travel-flight-cancellation-core"
      ]
    },
    {
      "key": "travel_hotel_cancellation",
      "operationIds": [
        "post_agent_tool_api___get_booking_details",
        "post_agent_tool_api___get_bookings",
        "post_agent_tool_api___get_delegated_travelers",
        "post_agent_tool_api___submit_hotel_cancellation"
      ],
      "skills": [
        "travel-booking-status-text",
        "travel-hotel-cancellation-core"
      ]
    },
    {
      "key": "travel_flight_modification",
      "operationIds": [
        "post_agent_tool_api___booking_modification_details",
        "post_agent_tool_api___get_booking_details",
        "post_agent_tool_api___get_bookings",
        "post_agent_tool_api___get_delegated_travelers",
        "post_agent_tool_api___get_traveler_profile",
        "post_agent_tool_api___search_flight_modifications",
        "post_agent_tool_api___submit_flight_modification"
      ],
      "skills": [
        "travel-booking-status-text",
        "travel-flight-modification-core"
      ]
    },
    {
      "key": "travel_flight_traveler_details",
      "operationIds": [
        "post_agent_tool_api___get_booking_details",
        "post_agent_tool_api___get_bookings"
      ],
      "skills": [
        "travel-booking-status-text",
        "travel-booking-support-text"
      ]
    },
    {
      "key": "travel_flight_rebooking",
      "operationIds": [
        "post_agent_tool_api___booking_modification_details",
        "post_agent_tool_api___get_booking_details",
        "post_agent_tool_api___get_bookings",
        "post_agent_tool_api___get_delegated_travelers",
        "post_agent_tool_api___get_flight_booking_locations",
        "post_agent_tool_api___get_traveler_profile",
        "post_agent_tool_api___list_traveler_loyalty_programs",
        "post_agent_tool_api___remove_traveler_loyalty_program",
        "post_agent_tool_api___search_flights",
        "post_agent_tool_api___set_traveler_loyalty_program",
        "post_agent_tool_api___submit_flight_booking",
        "post_agent_tool_api___submit_flight_cancellation",
        "post_agent_tool_api___update_travel_preferences",
        "post_agent_tool_api___update_traveler_profile"
      ],
      "skills": [
        "travel-booking-status-text",
        "travel-flight-rebooking-core"
      ]
    },
    {
      "key": "travel_hotel_rebooking",
      "operationIds": [
        "post_agent_tool_api___booking_modification_details",
        "post_agent_tool_api___get_booking_details",
        "post_agent_tool_api___get_bookings",
        "post_agent_tool_api___get_delegated_travelers",
        "post_agent_tool_api___get_hotel_rates",
        "post_agent_tool_api___get_office_locations",
        "post_agent_tool_api___get_traveler_profile",
        "post_agent_tool_api___list_traveler_loyalty_programs",
        "post_agent_tool_api___remove_traveler_loyalty_program",
        "post_agent_tool_api___search_hotels",
        "post_agent_tool_api___set_traveler_loyalty_program",
        "post_agent_tool_api___submit_hotel_booking",
        "post_agent_tool_api___submit_hotel_cancellation",
        "post_agent_tool_api___update_travel_preferences",
        "post_agent_tool_api___update_traveler_profile"
      ],
      "skills": [
        "travel-booking-status-text",
        "travel-hotel-rebooking-core"
      ]
    },
    {
      "key": "per_diem_reimbursement_estimate",
      "operationIds": [
        "post_agent_tool_api___estimate_per_diem_amount"
      ],
      "skills": []
    }
  ],
  "x-mcp-instructions": [
    {
      "content": "For totals, trends, and breakdowns, use the `ramp_reporting_*` tools, starting with `ramp_reporting_get_skill`. Use the object tools for single records and actions.",
      "tags": [
        "reporting"
      ]
    },
    {
      "content": "Answer from record fields. To find records that have or lack something (receipt, memo, coding, approver), list every record in scope and check that field, paging until there's no next cursor. Missing-items and needs-attention views apply policy thresholds and can leave records out."
    }
  ],
  "x-relationship-summary": [
    {
      "relationships": [
        {
          "field": "id",
          "target": "agents",
          "type": "one-to-one"
        },
        {
          "field": "id",
          "target": "agents",
          "type": "one-to-one"
        },
        {
          "field": "id",
          "target": "users",
          "type": "one-to-one"
        }
      ],
      "resource": "agents"
    },
    {
      "relationships": [
        {
          "field": "id",
          "target": "accounting_fields",
          "type": "many-to-many"
        },
        {
          "field": "id",
          "target": "custom_field_options",
          "type": "many-to-many"
        },
        {
          "field": "user_id",
          "target": "users",
          "type": "many-to-one"
        },
        {
          "field": "department_id",
          "target": "departments",
          "type": "many-to-one"
        },
        {
          "field": "location_id",
          "target": "locations",
          "type": "many-to-one"
        },
        {
          "field": "user_id",
          "target": "users",
          "type": "many-to-one"
        },
        {
          "field": "card_id",
          "target": "cards",
          "type": "many-to-one"
        },
        {
          "field": "entity_id",
          "target": "entities",
          "type": "many-to-one"
        },
        {
          "field": "fund_id",
          "target": "funds",
          "type": "many-to-one"
        },
        {
          "field": "limit_id",
          "target": "limits",
          "type": "many-to-one"
        },
        {
          "field": "merchant_id",
          "target": "merchants",
          "type": "many-to-one"
        },
        {
          "field": "spend_program_id",
          "target": "spend_programs",
          "type": "many-to-one"
        },
        {
          "field": "statement_id",
          "target": "statements",
          "type": "many-to-one"
        },
        {
          "field": "trip_id",
          "target": "trips",
          "type": "many-to-one"
        }
      ],
      "resource": "transactions"
    },
    {
      "relationships": [
        {
          "field": "id",
          "target": "audit_log_events",
          "type": "many-to-one"
        }
      ],
      "resource": "audit_log_events"
    },
    {
      "relationships": [
        {
          "field": "preceding_statement_id",
          "target": "statements",
          "type": "one-to-one"
        },
        {
          "field": "entity_id",
          "target": "entities",
          "type": "many-to-one"
        }
      ],
      "resource": "statements"
    }
  ]
}
