Base URL
https://{tenant}.logzi.com/api/receipt_type_cr/
Every request returns a JSON response. On success result.code == 1, on error result.code == 0. A receipt type currency configuration (CR) stores a currency-prefix pair assigned to a receipt type — it defines the serial number prefix and default status of documents issued in that currency.
/api/receipt_type_cr/get
Retrieve a single currency configuration by its identifier.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | int | Configuration identifier |
Example request
GET /api/receipt_type_cr/get?id=1
X-API-KEY: {your_api_key}
/api/receipt_type_cr/list
Paginated list of currency configurations.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
list_offset | int | Pagination offset (default: 0) | |
list_condition | object | Object containing filter conditions |
Example request
GET /api/receipt_type_cr/list?list_condition[receipt_type_id]=8
X-API-KEY: {your_api_key}
/api/receipt_type_cr/save
Create or update a currency configuration. For a new configuration use data[id] = 0.
POST fields — data object
| Field | Type | Required | Description |
|---|---|---|---|
id | int | 0 = new configuration, >0 = update | |
receipt_type_id | int | Receipt type identifier | |
currency_id | int | Currency identifier | |
prefix | string | Serial number prefix (e.g. SZ, INV) | |
name | string | Configuration name | |
receipt_template_id | int | Default print template identifier | |
receipt_type_cr_default | int | 1 = default configuration for this type |
Example request
POST /api/receipt_type_cr/save
X-API-KEY: {your_api_key}
Content-Type: application/json
{
"data": {
"id": 0,
"receipt_type_id": 8,
"currency_id": 1,
"prefix": "SZ",
"name": "HUF számla",
"receipt_type_cr_default": 1
}
}
/api/receipt_type_cr/delete
Delete a currency configuration by its identifier.
POST fields
| Field | Type | Required | Description |
|---|---|---|---|
id | int | Identifier of the configuration to delete |
Example request
POST /api/receipt_type_cr/delete
X-API-KEY: {your_api_key}
Content-Type: application/json
{ "id": 1 }
Create your account now,
pay later!