# SimPay Flow

 - [GET /flow](https://docs.simpay.pl/en/apis/flow/flowgetservices.md)
 - [GET /flow/{flowServiceId}](https://docs.simpay.pl/en/apis/flow/flowgetservice.md)
 - [GET /flow/{flowServiceId}/submerchants](https://docs.simpay.pl/en/apis/flow/flowgetsubmerchants.md)
 - [POST /flow/{flowServiceId}/submerchants](https://docs.simpay.pl/en/apis/flow/flowcreatesubmerchant.md): Creates a submerchant account within the Flow service together with an Online Payments service. For services with the `role_payment_service_provider` role, the `service` object is required. The respon
 - [GET /flow/{flowServiceId}/submerchants/{submerchantId}](https://docs.simpay.pl/en/apis/flow/flowgetsubmerchant.md)
 - [POST /flow/{flowServiceId}/submerchants/{submerchantId}/onboardings](https://docs.simpay.pl/en/apis/flow/flowsubmerchantonboarding.md): Returns the next onboarding step for the submerchant. For `redirect_user` a new SimPay onboarding link is generated.
 - [POST /flow/{flowServiceId}/submerchants/{submerchantId}/widgets](https://docs.simpay.pl/en/apis/flow/flowsubmerchantwidget.md): Generates a one-time link to the SimPay panel widget for the submerchant. The link is valid for 5 minutes. Limit: 5 requests per minute.
 - [GET /flow/{flowServiceId}/submerchants/{submerchantId}/payment-channels](https://docs.simpay.pl/en/apis/flow/flowgetsubmerchantpaymentchannels.md)
 - [PATCH /flow/{flowServiceId}/submerchants/{submerchantId}/payment-channels](https://docs.simpay.pl/en/apis/flow/flowupdatesubmerchantpaymentchannels.md): Enables or disables payment channels. Channels that do not exist, are not active or have no active Flow commission are skipped.
 - [GET /flow/{flowServiceId}/submerchants/{submerchantId}/payment-channels/available-for-registration](https://docs.simpay.pl/en/apis/flow/flowgetsubmerchantavailablepaymentchannels.md)
 - [POST /flow/{flowServiceId}/submerchants/{submerchantId}/payment-channels/register](https://docs.simpay.pl/en/apis/flow/flowregistersubmerchantpaymentchannel.md): 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
 - [PUT /flow/{flowServiceId}/submerchants/{submerchantId}/payment-channels/paypal](https://docs.simpay.pl/en/apis/flow/flowupdatesubmerchantpaypal.md)
 - [GET /flow/{flowServiceId}/submerchants/{submerchantId}/webhooks](https://docs.simpay.pl/en/apis/flow/flowgetsubmerchantwebhooks.md)
 - [PATCH /flow/{flowServiceId}/submerchants/{submerchantId}/webhooks](https://docs.simpay.pl/en/apis/flow/flowupdatesubmerchantwebhooks.md): Sets a custom webhook URL (`customUrl`) or restores the default URL from the Flow service (`useDefault`). At least one of the `flow` or `payment` objects is required. Within an object, `customUrl` and
 - [PATCH /flow/{flowServiceId}/submerchants/{submerchantId}/webhooks/key](https://docs.simpay.pl/en/apis/flow/flowupdatesubmerchantwebhookkey.md): Generates a new key for the custom webhook URL. Requires `customUrl` to be set first.
 - [GET /flow/{flowServiceId}/submerchants/{submerchantId}/finances](https://docs.simpay.pl/en/apis/flow/flowgetsubmerchantwallets.md)
 - [GET /flow/{flowServiceId}/submerchants/{submerchantId}/finances/invoices](https://docs.simpay.pl/en/apis/flow/flowgetsubmerchantinvoices.md)
 - [GET /flow/{flowServiceId}/submerchants/{submerchantId}/finances/{walletId}](https://docs.simpay.pl/en/apis/flow/flowgetsubmerchantwallet.md)
 - [PATCH /flow/{flowServiceId}/submerchants/{submerchantId}/finances/{walletId}](https://docs.simpay.pl/en/apis/flow/flowupdatesubmerchantwallet.md): Updates the invoice language and withdrawal settings of the wallet. Sending the `withdraw` object overwrites all existing withdrawal settings. Withdrawal types: - `manual` - withdrawals requested man
 - [GET /flow/{flowServiceId}/submerchants/{submerchantId}/finances/{walletId}/transactions](https://docs.simpay.pl/en/apis/flow/flowgetsubmerchantwallettransactions.md): List of wallet operations with cursor pagination. To fetch the next page, pass `cursor` in the query parameter named in `cursor.queryField`.
 - [POST /flow/{flowServiceId}/submerchants/{submerchantId}/finances/{walletId}/raport](https://docs.simpay.pl/en/apis/flow/flowsubmerchantwalletreport.md): Generates a CSV report (`;` separator) of wallet operations for the given period (`date`) or for the given withdrawal (`withdraw`). For a withdrawal, the report covers operations from the previous (no
 - [GET /flow/{flowServiceId}/submerchants/{submerchantId}/finances/{walletId}/withdraws](https://docs.simpay.pl/en/apis/flow/flowgetsubmerchantwithdraws.md)
 - [POST /flow/{flowServiceId}/submerchants/{submerchantId}/finances/{walletId}/withdraws](https://docs.simpay.pl/en/apis/flow/flowcreatesubmerchantwithdraw.md): Requests a manual withdrawal of funds from the wallet. Requires `withdraw.type` set to `manual` in the wallet settings.
