For the complete documentation index, see llms.txt. This page is also available as Markdown.

Enroll an organization with the fiscal control system

Creates the organization as a taxpayer at the fiscal control system and commissions it, in one call that can be repeated.

What it does depends on where the organization already is: with no taxpayer it is created and commissioned, with a taxpayer that was created but not commissioned only the commissioning is retried, and an organization already commissioned is returned unchanged - the values in the body are then ignored, because a commissioned taxpayer cannot be replaced.

Requires the FISCAL extension to be active on the tenant and the organization to have fiscal credentials.

Required permissions: ORGANIZATION

post
/tenants/{tenantUid}/organizations/{organizationUid}/fiscal/enroll
Authorizations
AuthorizationstringRequired

Access token recevied after user login with a deviceToken

Path parameters
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
organizationUidstringRequired

Reference to an organization.

Pattern: ^[A-Za-z0-9-_]+
Body

What an operator confirms before the organization exists as a taxpayer at the fiscal control system.

None of it is taken from the organization itself. The control system keeps a legal name and a trade name where Flow keeps one name, and wants the organisation number, which is not the same string as the VAT number Flow stores. A client can fill the fields in from the organization as a suggestion; the operator decides what is sent, because the values are permanent once the taxpayer is commissioned.

legalNamestring · max: 128Required

Registered legal name of the company.

tradeNamestring · max: 128Required

Name the company trades under.

organisationNumberstringRequired

Swedish organisationsnummer: ten digits starting with 2-9, with no country prefix and no hyphen.

Responses
200

Example response

application/json
addressstringRequired
citystringRequired
countryCodestringRequired
createdAtstring · date-timeRequired
emailstringRequired
externalIdstringRequired
isActivebooleanRequired
lastModifiedAtstring · date-timeRequired
namestringRequired
postalCodestringRequired
phonestringRequired
organizationUidstringRequiredPattern: ^[A-Za-z0-9-_]+
vatNumberstringRequired

VAT identification number for value added tax reporting purposes.

websiteUrlstringRequired
post/tenants/{tenantUid}/organizations/{organizationUid}/fiscal/enroll
POST /v2/tenants/{tenantUid}/organizations/{organizationUid}/fiscal/enroll HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 166

{
  "legalName": "text",
  "tradeName": "text",
  "organisationNumber": "text",
  "address": {
    "street": "text",
    "number": "text",
    "postalCode": "text",
    "city": "text",
    "countryCode": "text"
  }
}
{
  "address": "text",
  "city": "text",
  "countryCode": "text",
  "createdAt": "2026-01-01T00:00:00.000Z",
  "email": "text",
  "externalId": "text",
  "isActive": true,
  "lastModifiedAt": "2026-01-01T00:00:00.000Z",
  "name": "text",
  "postalCode": "text",
  "phone": "text",
  "organizationUid": "text",
  "vatNumber": "text",
  "bankInfo": {
    "accountNumber": "text",
    "bankName": "text",
    "iban": "text",
    "swift": "text",
    "giroAccountNumber": "text"
  },
  "websiteUrl": "text",
  "appSettings": {
    "requireGtinScanBeforeDeliverOut": true
  },
  "fiscal": {
    "unitId": "text",
    "credentialsStored": true,
    "taxpayerId": "text",
    "taxpayerState": ""
  }
}

Last updated

Was this helpful?