Automile ResourceOwnerExpenseReportV2 API

The ResourceOwnerExpenseReportV2 API from Automile — 5 operation(s) for resourceownerexpensereportv2.

Operations 8

GET /v1/resourceowner/expensereport Get a list of expense reports #
POST /v1/resourceowner/expensereport Create an expense reports #
GET /v1/resourceowner/expensereport/{expenseReportId} Get an expense reports #
PUT /v1/resourceowner/expensereport/{expenseReportId} Updates the given expense report #
DELETE /v1/resourceowner/expensereport/{expenseReportId} Removes the given expense report #
POST /v1/resourceowner/expensereport/export/{expenseReportId} Export an expense report in pdf format #
POST /v1/resourceowner/expensereport/export Export an expense report in pdf format #
DELETE /v1/resourceowner/expensereport/{expenseReportId}/expenseReportItems Removes the given expense report rows #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/automile-resourceownerexpensereportv2-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

automile-resourceownerexpensereportv2-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Automile ClientApi Resource Owner Expense Report V2 API
  version: v1
servers:
- url: https://api.automile.com/
tags:
- name: ResourceOwnerExpenseReportV2
paths:
  /v1/resourceowner/expensereport:
    get:
      tags:
      - ResourceOwnerExpenseReportV2
      summary: Get a list of expense reports
      description: Only expense reports that the user has access to are accessible.
      operationId: GetResourceExpenseReport
      parameters:
      - in: query
        name: tripId
        schema:
          type: integer
          format: int32
      - in: query
        name: vehicleId
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: The expense reports are returned
          content:
            text/plain:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ExpenseReportModel'
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ExpenseReportModel'
            text/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ExpenseReportModel'
        '500':
          description: Internal server error
      security:
      - oauth2: []
    post:
      tags:
      - ResourceOwnerExpenseReportV2
      summary: Create an expense reports
      description: This will create expense report
      operationId: CreateExpenseReport
      responses:
        '200':
          description: A header link containing the URL to the newly created resource
        '500':
          description: Internal server error
      security:
      - oauth2: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExpenseReportCreateModel'
          text/json:
            schema:
              $ref: '#/components/schemas/ExpenseReportCreateModel'
          application/*+json:
            schema:
              $ref: '#/components/schemas/ExpenseReportCreateModel'
  /v1/resourceowner/expensereport/{expenseReportId}:
    get:
      tags:
      - ResourceOwnerExpenseReportV2
      summary: Get an expense reports
      description: Only expense reports that the user has access to are accessible.
      operationId: GetResourceOwnerExpenseReportId
      parameters:
      - in: query
        name: expenseReportId
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: The expense report is returned
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/ExpenseReportModel'
            application/json:
              schema:
                $ref: '#/components/schemas/ExpenseReportModel'
            text/json:
              schema:
                $ref: '#/components/schemas/ExpenseReportModel'
        '500':
          description: Internal server error
      security:
      - oauth2: []
    put:
      tags:
      - ResourceOwnerExpenseReportV2
      summary: Updates the given expense report
      description: This will update the given expense report id with a new model.
      operationId: EditResourceOwnerExpenseReport
      parameters:
      - in: path
        name: expenseReportId
        description: The expense report id
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: The expense report was saved
        '400':
          description: Bad request, could occur for a number of cases, see returned message
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
            text/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '403':
          description: Request is forbidden, could occur for a number of reasons, see returned message
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
            text/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '404':
          description: Not found, the expense report you tried to update can't be found
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
            text/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '500':
          description: Internal server error
      security:
      - oauth2: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExpenseReportEditModel'
          text/json:
            schema:
              $ref: '#/components/schemas/ExpenseReportEditModel'
          application/*+json:
            schema:
              $ref: '#/components/schemas/ExpenseReportEditModel'
        description: The new expense report model
    delete:
      tags:
      - ResourceOwnerExpenseReportV2
      summary: Removes the given expense report
      operationId: DeleteResourceOwnerExpenseReport
      parameters:
      - in: path
        name: expenseReportId
        description: The expense report id
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: The expense report has been deleted
        '403':
          description: Request is forbidden, could occur for a number of reasons, see returned message
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
            text/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '404':
          description: Not found, the expense report you tried to remove can't be found
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
            text/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '500':
          description: Internal server error
      security:
      - oauth2: []
  /v1/resourceowner/expensereport/export/{expenseReportId}:
    post:
      tags:
      - ResourceOwnerExpenseReportV2
      summary: Export an expense report in pdf format
      description: Only expense reports that the user has access to are accessible.
      operationId: CreateExpenseReportEmailExport
      parameters:
      - in: path
        name: expenseReportId
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: The expense report is created and sent to the email address
        '500':
          description: Internal server error
      security:
      - oauth2: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EmailExpenseReportModel'
          text/json:
            schema:
              $ref: '#/components/schemas/EmailExpenseReportModel'
          application/*+json:
            schema:
              $ref: '#/components/schemas/EmailExpenseReportModel'
  /v1/resourceowner/expensereport/export:
    post:
      tags:
      - ResourceOwnerExpenseReportV2
      summary: Export an expense report in pdf format
      description: Only expense reports that the user has access to are accessible.
      operationId: CreateExpenseReportsEmailExport
      responses:
        '200':
          description: The expense report is created and sent to the email address
        '404':
          description: No expense reports could be found with the given parameter values and access rights
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
            text/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '500':
          description: Internal server error
      security:
      - oauth2: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EmailExpenseReportsModel'
          text/json:
            schema:
              $ref: '#/components/schemas/EmailExpenseReportsModel'
          application/*+json:
            schema:
              $ref: '#/components/schemas/EmailExpenseReportsModel'
  /v1/resourceowner/expensereport/{expenseReportId}/expenseReportItems:
    delete:
      tags:
      - ResourceOwnerExpenseReportV2
      summary: Removes the given expense report rows
      operationId: DeleteResourceOwnerExpenseReportRows
      parameters:
      - in: path
        name: expenseReportId
        description: The expense report id
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: All expense report rows have been deleted
        '403':
          description: Request is forbidden, could occur for a number of reasons, see returned message
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
            text/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '404':
          description: Not found, the expense report you tried to remove can't be found
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
            text/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '500':
          description: Internal server error
      security:
      - oauth2: []
components:
  schemas:
    ExpenseReportRowContentCreateModel:
      type: object
      properties:
        ExpenseReportRowId:
          format: int32
          type: integer
        Data:
          type: string
        ContentType:
          format: int32
          enum:
          - 0
          - 1
          - 2
          - 3
          - 4
          type: integer
      additionalProperties: false
    ExpenseReportCreateModel:
      type: object
      properties:
        VehicleId:
          format: int32
          type: integer
        ContactId:
          format: int32
          type: integer
        TripId:
          format: int32
          type: integer
        ExpenseReportDateUtc:
          format: date-time
          type: string
        ExpenseReportRows:
          type: array
          items:
            $ref: '#/components/schemas/ExpenseReportRowCreateModel'
      additionalProperties: false
    ExpenseReportRowContentModel:
      type: object
      properties:
        ExpenseReportRowContentId:
          format: int32
          type: integer
        ExpenseReportRowId:
          format: int32
          type: integer
        ContentType:
          format: int32
          enum:
          - 0
          - 1
          - 2
          - 3
          - 4
          type: integer
        ContentFileName:
          type: string
      additionalProperties: false
    ExpenseReportModel:
      type: object
      properties:
        ExpenseReportId:
          format: int32
          type: integer
        ContactId:
          format: int32
          type: integer
        ContactName:
          type: string
        ContactImageUrl:
          type: string
        VehicleId:
          format: int32
          type: integer
        TripId:
          format: int32
          type: integer
        ExpenseReportDateUtc:
          format: date-time
          type: string
        ExpenseReportRows:
          type: array
          items:
            $ref: '#/components/schemas/ExpenseReportRowModel'
        IsEditable:
          type: boolean
      additionalProperties: false
    ExpenseReportRowModel:
      type: object
      properties:
        ExpenseReportRowId:
          format: int32
          type: integer
        ExpenseReportId:
          format: int32
          type: integer
        AmountInCurrency:
          format: double
          type: number
        VATInCurrency:
          format: double
          type: number
        ISO4217CurrencyCode:
          type: string
        Notes:
          type: string
        ExpenseReportRowDateUtc:
          format: date-time
          type: string
        ExpenseReportRowContent:
          type: array
          items:
            $ref: '#/components/schemas/ExpenseReportRowContentModel'
        Category:
          format: int32
          enum:
          - 0
          - 1
          - 2
          - 3
          - 4
          - 5
          - 6
          - 7
          - 8
          - 9
          - 10
          type: integer
        CustomCategory:
          type: string
        CategoryValue:
          format: double
          type: number
        Merchant:
          type: string
      additionalProperties: false
    ExpenseReportRowCreateModel:
      type: object
      properties:
        ExpenseReportId:
          format: int32
          type: integer
        AmountInCurrency:
          format: double
          type: number
        VATInCurrency:
          format: double
          type: number
        ISO4217CurrencyCode:
          type: string
        Notes:
          type: string
        Category:
          format: int32
          enum:
          - 0
          - 1
          - 2
          - 3
          - 4
          - 5
          - 6
          - 7
          - 8
          - 9
          - 10
          type: integer
        ExpenseReportRowDateUtc:
          format: date-time
          type: string
        ExpenseReportRowContent:
          type: array
          items:
            $ref: '#/components/schemas/ExpenseReportRowContentCreateModel'
        CustomCategory:
          type: string
        CategoryValue:
          format: double
          type: number
        Merchant:
          type: string
      additionalProperties: false
    EmailExpenseReportModel:
      type: object
      properties:
        ToEmail:
          type: string
        ISO639LanguageCode:
          type: string
      additionalProperties: false
    EmailExpenseReportsModel:
      type: object
      properties:
        VehicleId:
          format: int32
          type: integer
        FromDate:
          format: date-time
          type: string
        ToDate:
          format: date-time
          type: string
        ToEmail:
          type: string
        ISO639LanguageCode:
          type: string
      additionalProperties: false
    ProblemDetails:
      type: object
      properties:
        type:
          type: string
        title:
          type: string
        status:
          format: int32
          type: integer
        detail:
          type: string
        instance:
          type: string
      additionalProperties: {}
    ExpenseReportEditModel:
      type: object
      properties:
        VehicleId:
          format: int32
          type: integer
        ContactId:
          format: int32
          type: integer
        TripId:
          format: int32
          type: integer
        ExpenseReportDateUtc:
          format: date-time
          type: string
      additionalProperties: false
  securitySchemes:
    oauth2:
      type: oauth2
      flows:
        implicit:
          scopes:
            read: Read access to protected resources
            write: Write access to protected resources
          authorizationUrl: https://api.automile.com/login/
      description: OAuth2 Implicit Grant