Receipt Type Currency Configuration API

Manage currency and serial number prefix configurations assigned to a receipt type

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.

GET /api/receipt_type_cr/get

Retrieve a single currency configuration by its identifier.

Query parameters

ParameterTypeRequiredDescription
idintConfiguration identifier

Example request

GET /api/receipt_type_cr/get?id=1
X-API-KEY: {your_api_key}
GET /api/receipt_type_cr/list

Paginated list of currency configurations.

Query parameters

ParameterTypeRequiredDescription
list_offsetintPagination offset (default: 0)
list_conditionobjectObject containing filter conditions

Example request

GET /api/receipt_type_cr/list?list_condition[receipt_type_id]=8
X-API-KEY: {your_api_key}
POST /api/receipt_type_cr/save

Create or update a currency configuration. For a new configuration use data[id] = 0.

POST fields — data object

FieldTypeRequiredDescription
idint0 = new configuration, >0 = update
receipt_type_idintReceipt type identifier
currency_idintCurrency identifier
prefixstringSerial number prefix (e.g. SZ, INV)
namestringConfiguration name
receipt_template_idintDefault print template identifier
receipt_type_cr_defaultint1 = 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
  }
}
POST /api/receipt_type_cr/delete

Delete a currency configuration by its identifier.

POST fields

FieldTypeRequiredDescription
idintIdentifier 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 }

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!