Currency Rounding API

Manage currency rounding rules

Base URL

https://{tenant}.logzi.com/api/currency_round/

Every request returns a JSON response. On success result.code == 1, on failure result.code == 0. The currency rounding API defines rounding rules per currency and payment method (e.g. rounding to 5 forints for HUF).

GET /api/currency_round/get

Retrieve a single currency rounding rule.

Query parameters

ParameterTypeRequiredDescription
idintRounding rule identifier
currency_idintCurrency identifier
paymod_idintPayment method identifier

Example request

GET /api/currency_round/get?currency_id=1&paymod_id=1
X-API-KEY: {your_api_key}
GET /api/currency_round/list

Retrieve the list of all currency rounding rules.

No parameters required.

Example request

GET /api/currency_round/list
X-API-KEY: {your_api_key}
POST /api/currency_round/save

Create or update a currency rounding rule.

POST fields — data object

The data object should contain the rounding rule's details (currency identifier, payment method, rounding value).

Example request

POST /api/currency_round/save
X-API-KEY: {your_api_key}
Content-Type: application/json

{ "data": { "currency_id": 1, "paymod_id": 1, "round_value": 5 } }
POST /api/currency_round/delete

Delete a currency rounding rule by identifier.

POST fields

FieldTypeRequiredDescription
idintIdentifier of the rounding rule to delete

Example request

POST /api/currency_round/delete
X-API-KEY: {your_api_key}
Content-Type: application/json

{ "id": 1 }

Get in touch with us

Interested in our software? Feel free to write to us!

Need help?

If you can't find the answer and need assistance

Create your account now,
pay later!

Try it free for 3 days, no risk, no obligation!