Fix TARIFF api resource (issue #1879)