# Retrieve list of BLIK aliases

Endpoint: GET /payment/{serviceId}/blik/aliases
Version: 1.0.0
Security: bearerAuth

## Security:

  - `bearerAuth` (unknown)
    http bearer scopes: payment.transactions

## Path parameters:

  - `serviceId` (string, required)

## Query parameters:

  - `filter[status]` (string)

  - `filter[type]` (string)

  - `filter[uuid]` (string)

  - `filter[value]` (string)

  - `filter[blik_key]` (integer)

  - `page` (integer)
    Page number

  - `perPage` (integer)
    Number of results per page

  - `sort` (string)
    Sort order (-created_at = newest first, created_at = oldest first)

## Header parameters:

  - `x-sim-flow-submerchant` (string)
    **Applies only to SimPay Flow integrators.** If you do not use SimPay Flow - skip this header.
Indicates the submerchant on whose behalf the request is made. The value is the submerchant ID (`flsm_...`)
or its `customId` assigned during registration (max. 36 characters).
**When is the header required?**
When `serviceId` in the path is an Online Payments service **linked to your active Flow service**
(the parent service, visible as `paymentService` in `GET /flow/{flowServiceId}`).
In that case every request to `/payment/{serviceId}/...` must include this header - without it you will receive
`422` with the `SIMPAY_FLOW_VALIDATION_ERROR` code.
For regular Online Payments services (not linked to Flow) the header is ignored.
**How does it work?**
- In the path you always pass the
`serviceId`
 of the
**parent service**
 (linked to the Flow service), not the submerchant's service.
- The request is executed in the context of the submerchant's Online Payments service - transactions, refunds, channels, subscriptions

and BLIK aliases belong to the given submerchant, and funds go to its wallet.
- Submerchant Online Payments services cannot be used directly - passing their ID as
`serviceId`

returns
`422`
 (
`VALIDATION_ERROR`
).

**Possible errors:**
- `422`

`SIMPAY_FLOW_VALIDATION_ERROR`
 - missing header for a service linked to Flow or an invalid value,
- `404`

`FLOW_SUBMERCHANT_NOT_FOUND`
 - the submerchant does not exist within this Flow service,
- `403`

`FLOW_SUBMERCHANT_NOT_ACTIVE`
 - the submerchant has not completed onboarding or is not active,
- `400`

`FLOW_SUBMERCHANT_PAYMENT_SERVICE_NOT_FOUND`
 /
`FLOW_SUBMERCHANT_PAYMENT_SERVICE_NOT_ACTIVE`
 - the submerchant's Online Payments service does not exist or is not active.

**Example:** `x-sim-flow-submerchant: flsm_aaaabbbb` or `x-sim-flow-submerchant: user-123`

## Response 200 fields (application/json):

  - `success` (boolean, required)
    Request status

  - `data` (array, required)

  - `data.id` (string, required)
    Alias ID

  - `data.type` (string, required)
    BLIK alias type
    Enum: "PAYID", "UID"

  - `data.value` (string, required)
    Alias value
    Example: AABBCC

  - `data.label` (string, required)
    Label displayed in the mobile app
    Example: Payment for a premium package on service aaa

  - `data.blik_key` (string)
    Alias identifier in BLIK (for a PAYID alias this will be empty)
    Example: null

  - `data.status` (string, required)
    BLIK alias status
    Enum: "alias_pending_registration", "alias_active", "alias_expired", "alias_unregistered"

  - `data.expires_at` (string)
    Creation date in format: ISO 8601

  - `data.subscription` (object)

  - `data.subscription.id` (string, required)
    Subscription ID

  - `data.subscription.status` (string, required)
    Subscription status
    Enum: "subscription_pending", "subscription_active", "subscription_cancelled", "subscription_expired", "subscription_finished", "subscription_fraudulent"

  - `data.subscription.mode` (string, required)
    Subscription mode
    Enum: "BLIK", "CARD"

  - `data.subscription.blik` (object)

  - `data.subscription.blik.model` (string, required)
    BLIK Recurrent Payment Model
    Enum: "A", "O", "M"

  - `data.subscription.frequency` (string)
    Subscription frequency
    Example: 1M

  - `data.subscription.initiation_date` (string)
    Date of the first possible Recurring Payment
    Example: 2025-08-13T23:15:13+02:00

  - `data.subscription.total_amount_limit` (number)
    Total amount limit for this Recurring Payment
    Example: 4000

  - `data.subscription.total_transactions_limit` (integer)
    Total number of possible transactions for this Recurring Payment
    Example: 12

  - `data.subscription.cancelled` (object)

  - `data.subscription.cancelled.by` (string, required)
    Subscription cancelled by
    Enum: "system", "antifraud", "merchant", "payer", "blik"

  - `data.subscription.cancelled.reason` (string)
    Reason for subscription cancellation

  - `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"

## Response 422:

  - `422` (unknown)
    Unprocessable Content

## Response 422 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: "VALIDATION_ERROR"

  - `errors` (object, required)

  - `errors.amount` (array)

