# Register payment channel

Registers a payment channel for the submerchant. After registration the channel is disabled (`enabled: false`) - enable it via `PATCH /payment-channels`.
Channels that require verification are sent to SimPay for verification.
To activate BLIK Level 0 + OneClick, pass `id: blik-level0-oneclick` (requires an active `blik-level0` channel).

Endpoint: POST /flow/{flowServiceId}/submerchants/{submerchantId}/payment-channels/register
Version: 1.0.0
Security: bearerAuth

## Security:

  - `bearerAuth` (unknown)
    http bearer scopes: flow.payment_methods, flow.payment_methods.register

## Path parameters:

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

  - `submerchantId` (string, required)
    Submerchant ID (`flsm_...`) or its `customId`

## Request fields (application/json):

  - `id` (string, required)
    Payment channel ID (from the list of channels available for registration) or `blik-level0-oneclick`
    Example: paypal

## Response 202:

  - `202` (unknown)
    Channel activated (`Channel activated`) or sent for verification (`Channel sent for verification`)

## Response 202 fields (application/json):

  - `success` (boolean, required)
    Request status

  - `message` (string, required)
    Enum: "Channel activated", "Channel sent for verification"

## Response 400:

  - `400` (unknown)
    The submerchant has no assigned (`FLOW_SUBMERCHANT_PAYMENT_SERVICE_NOT_FOUND`) or active (`FLOW_SUBMERCHANT_PAYMENT_SERVICE_NOT_ACTIVE`) Online Payments service

## Response 400 fields (application/json):

  - `success` (boolean, required)
    Request status

  - `message` (string)
    Error description

  - `errorCode` (string, required)
    Error code

## 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)
    - `FLOW_SUBMERCHANT_NOT_ACTIVE`
 - submerchant is not active
- `BLIK_LEVEL0_NOT_ACTIVE`
 - the
`blik-level0`
 channel is not active
- `ONECLICK_ACTIVATION_IN_PROGRESS`
 - OneClick is already active or its activation is in progress

## Response 403 fields (application/json):

  - `success` (boolean, required)
    Request status

  - `message` (string)
    Error description

  - `errorCode` (string, required)
    Error code

## Response 404:

  - `404` (unknown)
    - `FLOW_SUBMERCHANT_NOT_FOUND`
 - submerchant not found
- `CHANNEL_NOT_FOUND`
 - the channel does not exist, is already registered or is not available
- `BLIK_LEVEL0_NOT_REGISTERED`
 -
`blik-level0`
 must be registered before activating OneClick

## Response 404 fields (application/json):

  - `success` (boolean, required)
    Request status

  - `message` (string)
    Error description

  - `errorCode` (string, required)
    Error code

## Response 406:

  - `406` (unknown)
    The channel requires a registered business (`CHANNEL_REQUIRES_COMPANY`)

## Response 406 fields (application/json):

  - `success` (boolean, required)
    Request status

  - `message` (string)
    Error description

  - `errorCode` (string, required)
    Error code

## 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)

