openapi: 3.0.3 info: title: TutorCruncher Agents Invoices API description: 'REST API for TutorCruncher, tutoring business management software for agencies, companies, and independent tutors. The API exposes the core domain - clients, recipients (students), contractors (tutors), agents, services (jobs), appointments (lessons), invoices, payment orders, proforma invoices, ad hoc charges, and reference data - plus HTTP webhooks for event notifications. Base URL: https://app.tutorcruncher.com/api/. Authentication uses a private API key (found under Integrations) sent in the Authorization header as `token `. All list endpoints are paginated with up to 100 objects per page and return `count`, `next`, `previous`, and `results`. Requests are rate limited to 100 per minute. This document targets API v2 (v1 was deprecated 2025-07-03); in v2, users are updated by ID (for example `POST /api/clients/{id}/`) rather than by email. Note: TutorCruncher''s "Socket" is a JavaScript embed (https://cdn.tutorcruncher.com/socket/latest/socket.js) for publishing public tutor and lesson listings on a website; it is not a WebSocket API and is not modeled here. Event delivery is via HTTP webhooks.' version: '2.0' contact: name: TutorCruncher url: https://tutorcruncher.com license: name: API documentation - TutorCruncher Terms url: https://tutorcruncher.com/terms-and-conditions servers: - url: https://app.tutorcruncher.com/api description: TutorCruncher API security: - tokenAuth: [] tags: - name: Invoices description: Client invoices and payment. paths: /invoices/: get: operationId: listInvoices tags: - Invoices summary: List invoices parameters: - $ref: '#/components/parameters/Page' responses: '200': description: Paginated list of invoices. content: application/json: schema: $ref: '#/components/schemas/PaginatedList' post: operationId: createInvoice tags: - Invoices summary: Create an invoice responses: '201': description: Invoice created. /invoices/{id}/: parameters: - $ref: '#/components/parameters/Id' get: operationId: getInvoice tags: - Invoices summary: Retrieve an invoice responses: '200': description: An invoice. content: application/json: schema: $ref: '#/components/schemas/Invoice' /invoices/{id}/take-payment/: parameters: - $ref: '#/components/parameters/Id' post: operationId: takeInvoicePayment tags: - Invoices summary: Take payment for an invoice description: Charges the client's stored payment method against the invoice. responses: '200': description: Payment taken. components: schemas: Invoice: type: object properties: id: type: integer client: type: integer display_id: type: string gross: type: string net: type: string tax: type: string status: type: string date_sent: type: string format: date-time nullable: true PaginatedList: type: object properties: count: type: integer next: type: string nullable: true previous: type: string nullable: true results: type: array items: type: object parameters: Id: name: id in: path required: true description: The object ID. schema: type: integer Page: name: page in: query required: false description: Page number for paginated results (100 objects per page). schema: type: integer securitySchemes: tokenAuth: type: apiKey in: header name: Authorization description: 'Private API key sent as: Authorization: token '