Skip to main content

I cannot add a bank with code 8050

Unable to add a bank with a code such as 8050 (this may also apply to other bank codes)

Written by Petr Pech

An account with a bank code that no longer exists (for example 8050) cannot be created — the request will fail with error 400. The financial institution is present in the code list, but its validity is limited.


How to check this

You won't find the record in the registry listing — invalid code list entries are not returned in the list. However, you can address it by its code:

GET /c/{firma}/penezni-ustav/code:8050.xml?detail=full

The response includes the fields platiOd and platiDo — these are years. For a discontinued bank, platiDo is set to the year it ceased to exist (for code 8050, this is 1998); for regular banks, it contains 9999.


Extending validity

If you need to use the code, extend the validity of the record. First, find its internal ID:

GET /c/{firma}/penezni-ustav/code:8050.xml?detail=custom:id,kod,platiDo

Then update it:

<winstrom version="1.0">
<penezni-ustav>
<id>51</id>
<platiDo>9999</platiDo>
</penezni-ustav>
</winstrom>

🚨 Use the internal ID for the update, not code:8050. An invalid record cannot be looked up by its code, so Flexi would interpret the write as creating a new record and would fail with error Pole 'Název' musí být vyplněno.

Once validity has been extended, an account with this bank code will be created without any issues.

ℹ️ In Slovakia, a bank with code 8050 exists, so the record may be valid for a Slovak company.


Related

Did this answer your question?