---
updatedAt: 2025-10-16T12:19:54.000Z
agentTools:
  projectIndex: https://clayhr.readme.io/llms.txt
---

# Create expense report

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Expense Reports",
    "version": "1.0",
    "contact": {}
  },
  "servers": [
    {
      "url": "https://acmecompany.clayhr.com/rm/api"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/expensereport": {
      "post": {
        "tags": [
          "Expense Reports"
        ],
        "summary": "Create expense report",
        "description": "",
        "operationId": "create-a-new-expense-item",
        "parameters": [
          {
            "name": "name",
            "in": "query",
            "description": "Name of the expense report.",
            "example": "Travel expense report.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "amount",
            "in": "query",
            "description": "Amount to be added in expense report.",
            "example": "300",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "userid",
            "in": "header",
            "description": "The ID of the user to authenticate.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "x-api-key",
            "in": "header",
            "description": "The API key of the user to authenticate.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "description",
            "in": "query",
            "description": "Description of the expense report.",
            "example": "This expene report is regarding the travelling.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"message\": \"Expense Report created successfully.\",\n    \"expenseReportId\": \"int\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "Expense Report created successfully."
                    },
                    "expenseReportId": {
                      "type": "string",
                      "example": "int"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "401",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n \"message\": \"You don't have permission to perform this operation.\",\n }"
                  }
                }
              }
            }
          },
          "409": {
            "description": "409",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n \"message\": \"Something Went Wrong!\",\n }"
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true,
    "samples-enabled": true
  },
  "x-readme-fauxas": true
}
```