Skip to content

Register submerchant

Request

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 response contains an onboarding object describing the next step:

  • redirect_user - redirect the user to redirectUrl, where they complete onboarding at SimPay,
  • provide_api - onboarding is performed by the Flow service via the API.
Security
bearerAuth(Required scopes: flow.submerchants.create)
Path
flowServiceIdstring^flow_[0-9a-z]{1,8}$required

Flow service ID

Example:flow_aaaabbbb
Bodyapplication/jsonrequired
customIdstring, <= 36 characters^[a-zA-Z0-9-_]+$required

Custom submerchant ID, unique within the Flow service. Cannot start with flsm_.

Example:"user-123"
emailstring, (email), <= 128 charactersrequired

Submerchant email (unique within the Flow service)

Example:"jan.kowalski@example.com"
namestring, <= 150 characters

Submerchant (company) name

Example:"Jan Kowalski"
serviceobject

Submerchant Online Payments service details. Required for role_payment_service_provider.

curl -i -X POST \
  https://docs.simpay.pl/_mock/en/apis/flow/flow_aaaabbbb/submerchants \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "customId": "user-123",
    "email": "jan.kowalski@example.com",
    "name": "Jan Kowalski",
    "service": {
      "name": "Sklep Jana",
      "url": "https://example.com",
      "termsUrl": "https://example.com/regulamin",
      "mcc": "5999",
      "contact": {
        "email": "kontakt@example.com",
        "phone": "+48123123123",
        "name": "Jan Kowalski"
      }
    }
  }'

Responses

Bodyapplication/json
successbooleanrequired

Request status

messagestringrequired
Example:"Submerchant successfully registered"
dataobjectrequired
Response
{ "success": true, "message": "Submerchant successfully registered", "data": { "submerchantId": "flsm_aaaabbbb", "customId": "user-123", "onboarding": { … } } }