openapi: 3.0.1 info: title: Invoiced Credit Notes Events API description: REST API for the Invoiced accounts-receivable and billing automation platform. Manage customers, invoices, estimates, credit notes, payments, subscriptions, plans, items, and events/webhooks. All requests must use HTTPS. Responses are JSON and dates are returned as UNIX timestamps. termsOfService: https://www.invoiced.com/legal/terms-of-service contact: name: Invoiced Developers email: developers@invoiced.com url: https://developer.invoiced.com/api version: '1.0' servers: - url: https://api.invoiced.com description: Production - url: https://api.sandbox.invoiced.com description: Sandbox security: - basicAuth: [] tags: - name: Events paths: /events: get: operationId: listEvents tags: - Events summary: List account events. parameters: - $ref: '#/components/parameters/Page' - $ref: '#/components/parameters/PerPage' - name: related_to in: query description: Filter events to those related to a given object. schema: type: string responses: '200': description: A paginated list of events. content: application/json: schema: type: array items: $ref: '#/components/schemas/Event' /events/{id}: parameters: - $ref: '#/components/parameters/Id' get: operationId: getEvent tags: - Events summary: Retrieve a specific event. responses: '200': description: The requested event. content: application/json: schema: $ref: '#/components/schemas/Event' components: parameters: PerPage: name: per_page in: query description: The number of records to return per page (max 100). schema: type: integer default: 25 Page: name: page in: query description: The page number for paginated list responses. schema: type: integer default: 1 Id: name: id in: path required: true description: The integer identifier of the object. schema: type: integer schemas: Event: type: object properties: id: type: integer object: type: string type: type: string description: The event type in object.action form, e.g. invoice.paid. timestamp: type: integer data: type: object properties: object: type: object previous: type: object user: type: integer securitySchemes: basicAuth: type: http scheme: basic description: HTTP Basic authentication. Use your Invoiced API key as the username and leave the password blank. API keys are created under Settings -> Developers -> API Keys.