# Set PayPal Checkout email

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

## Security:

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

## Path parameters:

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

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

## Request fields (application/json):

  - `email` (string)
    PayPal account email (null removes the email)
    Example: paypal@simpay.pl

## Response 204:

  - `204` (unknown)
    Changes have been saved

## 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)
    Missing permissions or the submerchant is not active (`FLOW_SUBMERCHANT_NOT_ACTIVE`)

## 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 submerchant has no PayPal channel

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

