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).
/api/currency_round/get
Retrieve a single currency rounding rule.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | int | Rounding rule identifier | |
currency_id | int | Currency identifier | |
paymod_id | int | Payment method identifier |
Example request
GET /api/currency_round/get?currency_id=1&paymod_id=1
X-API-KEY: {your_api_key}
/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}
/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 } }
/api/currency_round/delete
Delete a currency rounding rule by identifier.
POST fields
| Field | Type | Required | Description |
|---|---|---|---|
id | int | Identifier 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 }
Create your account now,
pay later!