Create invoice with the Everhour API

Creates an invoice for a client from the time tracked in the period, and the expenses when asked. The time records it covers are marked as invoiced. Mark it as sent or paid with Update invoice.

Identifier
everhour_create_invoice

The request

POST https://connect.reportei.com/api/tools/everhour_create_invoice/execute
Authorization: Bearer <merchant token>
x-customer-token: <customer token>
Content-Type: application/json
Accept: application/json

{
  "customer_toolkit": "<connection UUID>",
  "arguments": {
    "client_id": 1
  }
}

Your system sends your customer's connection id and the tool arguments. The headers are the same as the rest of the Connect API: your product's token and your customer's token.

Parameters

ParameterTypeRequiredDescription
client_idintegerYesId of the client, from List clients.
limitDateFromstringNoFirst day of the time invoiced, in YYYY-MM-DD.
limitDateTillstringNoLast day of the time invoiced, in YYYY-MM-DD.
includeTimebooleanNotrue adds the tracked time.
includeExpensesbooleanNotrue adds the billable expenses.
projectsarrayNoIds of the projects of the client to invoice, from List clients. Omit it to invoice all of them.
taxobjectNoTax of the invoice.
discountnumberNoDiscount as a percentage.

Supported connections

Your customer connects their Everhour account once, with one of the modes below. The same connection serves every tool of the toolkit.

API key

Your customer pastes the app's key on a Connect screen, or your system sends the key with POST /api/customer-toolkits, with no screen.

The response

On success, Connect preserves the app's response status and body. HTTP errors returned by the app use the {error, api_error} envelope; authentication or validation can fail before execution. The X-Toolkit-Execution-Id header identifies the recorded execution, available at GET /api/tools/executions/{uuid}.

Ready for AI agents

This tool's input is a JSON Schema, available at GET /api/tools/everhour_create_invoice. It becomes your agent's tool definition with no conversion.

Other Everhour tools

See all 15 tools

Toolkits in the same category

See all 100 toolkits

See Connect applied to your product.

Try it for 15 days with no card, or walk our team through your use case.