# Get submerchants list

Endpoint: GET /flow/{flowServiceId}/submerchants
Version: 1.0.0
Security: bearerAuth

## Security:

  - `bearerAuth` (unknown)
    http bearer scopes: flow.submerchants

## Path parameters:

  - `flowServiceId` (string, required)
    Flow service ID

## Query parameters:

  - `page` (integer)
    Page number (30 records per page)

## Response 200 fields (application/json):

  - `success` (boolean, required)
    Request status

  - `data` (array, required)

  - `data.id` (string, required)
    Submerchant ID
    Example: flsm_aaaabbbb

  - `data.customId` (string, required)
    Custom submerchant ID assigned by the Flow service
    Example: user-123

  - `data.status` (string, required)
    Submerchant status:
- `flow_submerchant_pending`
 - waiting for onboarding,
- `flow_submerchant_in_verification`
 - being verified by SimPay,
- `flow_submerchant_active`
 - active,
- `flow_submerchant_inactive`
 - inactive.
    Enum: "flow_submerchant_pending", "flow_submerchant_in_verification", "flow_submerchant_active", "flow_submerchant_inactive"

  - `pagination` (object, required)

  - `pagination.total` (integer, required)
    Total number of records
    Example: 1

  - `pagination.count` (integer, required)
    Number of records on the current page
    Example: 1

  - `pagination.per_page` (integer, required)
    Maximum number of records per page
    Example: 15

  - `pagination.current_page` (integer, required)
    Current page
    Example: 1

  - `pagination.total_pages` (integer, required)
    Total number of pages
    Example: 1

  - `pagination.links` (object, required)
    URLs to pages

  - `pagination.links.next_page` (string, required)
    URL to the next page
    Example: null

  - `pagination.links.prev_page` (string, required)
    URL to the previous page
    Example: null

## Response 401:

  - `401` (unknown)
    Unauthorized

## Response 401 fields (application/json):

  - `feedbackUrl` (string)
    URL for reporting API problems (`POST /feedback`). Returned for authenticated API keys.
    Example: https://api.simpay.pl/feedback

  - `success` (boolean, required)
    Request status

  - `errorCode` (string, required)
    Error status code
    Enum: "UNAUTHORIZED"

## Response 403:

  - `403` (unknown)
    Forbidden

## Response 403 fields (application/json):

  - `feedbackUrl` (string)
    URL for reporting API problems (`POST /feedback`). Returned for authenticated API keys.
    Example: https://api.simpay.pl/feedback

  - `success` (boolean, required)
    Request status

  - `errorCode` (string, required)
    Error status code
    Enum: "INVALID_ABILITY_PROVIDED", "IP_ADDRESS_NOT_WHITELISTED"

## Response 404:

  - `404` (unknown)
    NotFound

## Response 404 fields (application/json):

  - `success` (boolean, required)
    Request status

  - `errorCode` (string, required)
    Error status code
    Enum: "SERVICE_NOT_FOUND", "TRANSACTION_NOT_FOUND", "ROUTE_NOT_FOUND"

