---
updatedAt: 2026-09-07T14:40:25.000Z
agentTools:
  projectIndex: https://developers.shine.fr/llms.txt
---

# Query

Query and retrieve a list of invoices. FR only, not yet available for NL companies.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "3.0.0",
    "title": "Shine Connect",
    "description": "Shine currently supports accounts in France (FR) and the Netherlands (NL), determined by the ISO 3166-1 alpha-2 country prefix of the `iban` field. NL support is a first iteration and is currently limited to bank transfers and reading bank accounts and transactions. Receipts, invoicing, and transaction enrichment are FR-only for now."
  },
  "security": [
    {
      "google_id_token": []
    }
  ],
  "servers": [
    {
      "url": "https://public.api.shine.fr/",
      "description": "Read Only Production server"
    },
    {
      "url": "https://public.api.staging.shine.fr/",
      "description": "Read Only Sandbox server"
    },
    {
      "url": "https://mtls.connect.shine.fr/",
      "description": "Read/Write Production server"
    },
    {
      "url": "https://mtls.connect.staging.shine.fr/",
      "description": "Read/Write Sandbox server"
    }
  ],
  "paths": {
    "/invoicing/invoices": {
      "get": {
        "tags": [
          "Invoices"
        ],
        "summary": "Query",
        "description": "Query and retrieve a list of invoices. FR only, not yet available for NL companies.",
        "operationId": "queryInvoices",
        "x-eov-operation-id": "invoicingProxy",
        "x-eov-operation-handler": "middlewares",
        "parameters": [
          {
            "name": "uid",
            "in": "query",
            "description": "Retrieve invoices for a specific user id",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyProfileId",
            "in": "query",
            "description": "Retrieve invoices for a specific companyProfileId",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "first",
            "in": "query",
            "description": "Number of invoices to retrieve at the beginning of the window determined by the before/after cursor(s)",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "after",
            "in": "query",
            "description": "Retrieve invoices after a specific cursor (createdAt or invoiceId)",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "clientId",
            "in": "query",
            "description": "Retrieve invoices for a specific client id",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fiscalId",
            "in": "query",
            "description": "Retrieve an invoice per fiscal Id. Each id should be uniq for a given user",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "generatedFromInvoiceId",
            "in": "query",
            "description": "Retrieve an invoice per generatedFromInvoiceId",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "deleted",
            "in": "query",
            "description": "Filter on deleted, true or false",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "searchInput",
            "in": "query",
            "description": "Filter on invoices client name matching input",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "description": "Retrieve invoices with a specific status",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "CANCELED",
                  "MARKED_AS_PAID",
                  "OVERDUE",
                  "PAID",
                  "PENDING",
                  "SENT"
                ]
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/InvoiceOrQuote"
                      }
                    }
                  }
                }
              }
            }
          },
          "default": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "google_id_token": {
        "type": "oauth2",
        "x-google-issuer": "https://accounts.google.com",
        "flows": {
          "implicit": {
            "authorizationUrl": "/",
            "scopes": {}
          }
        }
      }
    },
    "schemas": {
      "ErrorResponse": {
        "type": "object",
        "required": [
          "message",
          "status"
        ],
        "properties": {
          "message": {
            "type": "string"
          },
          "status": {
            "type": "number"
          }
        }
      },
      "InvoiceOrQuote": {
        "type": "object",
        "required": [
          "invoiceId"
        ],
        "properties": {
          "invoiceId": {
            "type": "string",
            "description": "primary key"
          },
          "companyProfileId": {
            "type": "string"
          },
          "allowCreditCardPayment": {
            "type": "boolean",
            "description": "can this invoice be paid via credit card though a third party like HiPay or Stripe"
          },
          "allowIbanPayment": {
            "type": "boolean",
            "description": "can this invoice be paid via wire transfer"
          },
          "cardPaymentStatus": {
            "type": "string",
            "enum": [
              "NONE",
              "PENDING",
              "VALIDATED",
              "CANCELED"
            ],
            "description": "NONE before any card payment attemps, then PENDING / VALIDATED / CANCELED"
          },
          "clientContactIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "List of IDs of ClientContact the invoice is sent to"
          },
          "clientId": {
            "type": "string",
            "description": "a reference to the primary key in the Clients table"
          },
          "client": {
            "$ref": "#/components/schemas/InvoiceOrQuoteClient"
          },
          "currency": {
            "type": "string",
            "description": "ISO_4217 (https://en.wikipedia.org/wiki/ISO_4217) currency code, defaults to \"EUR\""
          },
          "deleted": {
            "type": "boolean"
          },
          "deletedAt": {
            "type": "string",
            "description": "timestamp when deleted was set to true"
          },
          "fiscalId": {
            "type": "string",
            "description": "must be a unique identifier based on a chronological sequence (https://www.lecoindesentrepreneurs.fr/numeroter-correctement-ses-factures-correctement/)"
          },
          "generatedFromInvoiceId": {
            "type": "string",
            "description": "the invoiceId of the quote that was used to generate the invoice",
            "nullable": true
          },
          "isUserCcedOnEmails": {
            "type": "boolean",
            "description": "Determines whether the user should be in CC of emails sent to his/her client"
          },
          "lateFeePercentage": {
            "type": "number",
            "description": "for a late fee of 3%, (its value would be \"3\") it means after an invoice is overdue, the invoice's cost rises every day at the yearly rate of 3%"
          },
          "lateFeeFloatPercentage": {
            "type": "number",
            "description": "for a late fee of 3%, (its value would be \"3\") it means after an invoice is overdue, the invoice's cost rises every day at the yearly rate of 3%"
          },
          "lateMaxDays": {
            "type": "integer",
            "description": "payments delay in days, after `startAt` date"
          },
          "logoUrl": {
            "type": "string",
            "nullable": true,
            "description": "url of the embedded logo"
          },
          "note": {
            "type": "string",
            "description": "additional information added by the user"
          },
          "pdfUrl": {
            "deprecated": true,
            "type": "string",
            "description": "Deprecated, use `GET /invoicing/invoices/:invoiceId/pdf` instead. Url of the generated pdf. A lang query param can be added to this url. Supported values are fr|en"
          },
          "sentAt": {
            "type": "string",
            "description": "ISO date of when the document was sent to the client",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "ACCEPTED",
              "ARCHIVED",
              "CANCELED",
              "MARKED_AS_PAID",
              "OVERDUE",
              "PAID",
              "PENDING",
              "SENT"
            ],
            "description": "Document's current status"
          },
          "statusAt": {
            "type": "string",
            "description": "Timestamp of the last time the status of the document changed"
          },
          "paidAt": {
            "type": "integer",
            "description": "payment timestamp"
          },
          "publicPaymentId": {
            "type": "string",
            "description": "A uniq and simple id to identificate invoice payment on bank transfer (the id will be in the object field)"
          },
          "lastOverdueNotificationAt": {
            "type": "integer",
            "description": "Last reminder sent to the user for an overdue invoice. In total, up to two notifications are sent per invoice."
          },
          "startAt": {
            "type": "integer",
            "description": "Emitting date of the document"
          },
          "uid": {
            "type": "string"
          },
          "tasks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InvoiceOrQuoteTask"
            }
          },
          "type": {
            "type": "string",
            "enum": [
              "INVOICE",
              "QUOTE"
            ]
          },
          "user": {
            "$ref": "#/components/schemas/InvoiceOrQuoteUser"
          },
          "title": {
            "type": "string",
            "description": "Text describing the document"
          },
          "subtitle": {
            "type": "string",
            "description": "Text giving more details about the document"
          },
          "settings": {
            "$ref": "#/components/schemas/InvoiceOrQuoteSettings"
          }
        }
      },
      "InvoiceOrQuoteClient": {
        "type": "object",
        "properties": {
          "invoiceId": {
            "type": "string",
            "description": "Id of the parent Invoice"
          },
          "invoiceClientId": {
            "type": "string",
            "description": "Id of the InvoiceClient"
          },
          "city": {
            "type": "string",
            "description": "Address: city"
          },
          "country": {
            "type": "string",
            "description": "Address: country"
          },
          "name": {
            "type": "string",
            "description": "Trade name / legal name of the client"
          },
          "street": {
            "type": "string",
            "description": "Address: street"
          },
          "taxId": {
            "type": "string",
            "description": "Client Tax Id"
          },
          "vatId": {
            "type": "string",
            "description": "Client Vat Id"
          },
          "zip": {
            "type": "string",
            "description": "Address: zip code"
          }
        }
      },
      "InvoiceOrQuoteUser": {
        "type": "object",
        "properties": {
          "invoiceId": {
            "type": "string",
            "description": "Id of the parent Invoice"
          },
          "invoiceUserId": {
            "type": "string",
            "description": "Id of the InvoiceUser"
          },
          "city": {
            "type": "string",
            "description": "Address: city"
          },
          "country": {
            "type": "string",
            "description": "Address: country"
          },
          "firstName": {
            "type": "string",
            "description": "User first name"
          },
          "lastName": {
            "type": "string",
            "description": "User last name"
          },
          "street": {
            "type": "string",
            "description": "Address: street"
          },
          "taxId": {
            "type": "string",
            "description": "Client Tax Id"
          },
          "vatId": {
            "type": "string",
            "description": "Client Vat Id"
          },
          "zip": {
            "type": "string",
            "description": "Address: zip code"
          }
        }
      },
      "InvoiceOrQuoteTask": {
        "type": "object",
        "properties": {
          "invoiceId": {
            "type": "string",
            "description": "Id of the parent invoice"
          },
          "invoiceTaskId": {
            "type": "string",
            "description": "Id of the InvoiceTask"
          },
          "unitPrice": {
            "type": "number",
            "description": "Price per unit. Ex: 400. The currency is set at root level into the Invoice"
          },
          "units": {
            "type": "number",
            "description": "Number of units"
          },
          "taskOrder": {
            "type": "integer",
            "description": "Ascending, position to display the task in the list, starting from 0"
          },
          "vatPercentage": {
            "type": "number",
            "description": "Percentage for VAT. 0 if none. Ex: 20"
          },
          "title": {
            "type": "string",
            "description": "Text describing the task"
          },
          "subtitle": {
            "type": "string",
            "nullable": true,
            "description": "Text giving more details about the task"
          }
        }
      },
      "InvoiceOrQuoteSettings": {
        "type": "object",
        "properties": {
          "invoiceSettingsId": {
            "type": "string",
            "description": "Id of the row in DB"
          },
          "invoiceId": {
            "type": "string",
            "description": "Id of the invoice or quote the settings row is attached to"
          },
          "clientId": {
            "type": "string",
            "description": "Id of the client the settings row is attached to",
            "nullable": true
          },
          "companyProfileId": {
            "type": "string",
            "description": "Id of the company profile the settings row is attached to",
            "nullable": true
          },
          "isReminderEnabled": {
            "type": "boolean",
            "description": "Whether Shine should send reminders to the client"
          },
          "issuerEmail": {
            "type": "string",
            "description": "Invoice's issuer email",
            "nullable": true
          },
          "legalMentions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Array containing a list of custom legal mentions"
          },
          "quoteValidityDays": {
            "type": "number",
            "description": "Number of days until the quote is not valid anymore",
            "nullable": true
          },
          "reminderFrequency": {
            "type": "string",
            "description": "Frequency at which Shine sends the reminders",
            "nullable": true,
            "enum": [
              "ONCE",
              "WEEKLY",
              null
            ]
          },
          "reminderLanguage": {
            "type": "string",
            "description": "Language used in the reminders",
            "enum": [
              "fr"
            ]
          },
          "reminderMaxOccurrences": {
            "type": "integer",
            "description": "Maximum number of occurrences of reminders sent by Shine",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "description": "Timestamp on which the invoice settings row was created in DB"
          },
          "updatedAt": {
            "type": "string",
            "description": "Timestamp on which the invoice settings row was last updated in DB"
          }
        }
      }
    }
  }
}
```