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

# Get by user

Get a user bank accounts

# 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": {
    "/bank/accounts/query": {
      "get": {
        "operationId": "queryBankAccounts",
        "x-eov-operation-id": "queryBankAccounts",
        "x-eov-operation-handler": "middlewares",
        "tags": [
          "Bank accounts"
        ],
        "summary": "Get by user",
        "description": "Get a user bank accounts",
        "parameters": [
          {
            "name": "companyProfileId",
            "in": "query",
            "required": true,
            "description": "Company profile id",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "first",
            "in": "query",
            "description": "Number of bank accounts to retrieve",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "after",
            "in": "query",
            "description": "Retrieve bank accounts after a specific cursor",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/BankAccount"
                      }
                    }
                  }
                }
              }
            }
          },
          "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"
          }
        }
      },
      "BankAccount": {
        "type": "object",
        "description": "Represents a Shine bank account. Shine currently supports accounts in both France (FR) and the Netherlands (NL). Determine it from the ISO 3166-1 alpha-2 country prefix of the `iban` field (e.g. `FR76...` vs `NL...`).",
        "additionalProperties": false,
        "required": [
          "bankAccountId",
          "bic",
          "companyProfileId",
          "createdAt",
          "currency",
          "currentBalance",
          "currentBalanceFloat",
          "iban",
          "isHidden",
          "name",
          "nextBalance",
          "nextBalanceFloat",
          "ownerName",
          "status",
          "type",
          "updatedAt"
        ],
        "properties": {
          "bankAccountId": {
            "type": "string"
          },
          "bic": {
            "type": "string"
          },
          "companyProfileId": {
            "type": "string"
          },
          "createdAt": {
            "type": "integer"
          },
          "currency": {
            "type": "string"
          },
          "currentBalance": {
            "type": "integer"
          },
          "currentBalanceFloat": {
            "type": "number"
          },
          "iban": {
            "type": "string",
            "description": "International Bank Account Number. The first two characters are the ISO 3166-1 alpha-2 country code (e.g. `FR`, `NL`) and can be used to determine which market this account belongs to."
          },
          "isHidden": {
            "type": "boolean"
          },
          "name": {
            "type": "string"
          },
          "nextBalance": {
            "type": "integer"
          },
          "nextBalanceFloat": {
            "type": "number"
          },
          "ownerName": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "PENDING",
              "VALIDATED",
              "CLOSED",
              "LOCKED"
            ]
          },
          "type": {
            "type": "string"
          },
          "updatedAt": {
            "type": "integer"
          }
        }
      }
    }
  }
}
```