VAT Prices Calculations
Using our price endpoints, you may request the API to calculate VAT compliant prices for you.
VatZen is Deprecated since January 2022 and API server will be shut down soon!
Hot and Cold Price Calculations
Just as with validations, at VatZen we have a concept of 2 price types: Hot and Cold.
Cold prices works in fire-and-forget way. Meaning that you simply call our endpoint and we return you the data, which is never stored afterwards.
Hot prices endpoint is different from the cold one in the way that all the requests you make has id's assigned and stored in our DB. And you can always fetch this prices (fetch them all of fetch by id). For example, you can create them on the server side and then retrieve on the client.
Cold validations are performed via price
endpoint, end hot validation use prices
CRUD endpoints. You can get more details below.
Price Entity
Base of our prices endpoints is the Price
entity, which is returned from all pricing-related endpoints. You can find the description of the Pricing
entity below:
Calculate Price (Cold Price endpoint)
GET
https://api.vatzen.com/v1/price
This endpoint is accessible with public key. This method is used for price calculations, without storing them in the data base. You just get your result and that's it. If you want to later retrieve you pricing object, please use Hot endpoints (see the description below).
Query Parameters
Calculate Price and store in the DB
POST
https://api.vatzen.com/v1/prices
Calculates the price, just like the Cold price endpoint, but also stores the price object in our DB, so you can always retrieve it from there.
Query Parameters
Get Price by ID
GET
https://api.vatzen.com/v1/prices/:price_id
Returns information about the price by id, which you've got when doing POST request.
Path Parameters
Get All Prices
GET
https://api.vatzen.com/v1/prices
Returns all the prices, paginated
Query Parameters
Last updated