Receipt Comment API

Manage predefined receipt comment templates — for automatic text fill-in

Base URL

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

Every request returns a JSON response. On success result.code == 1, on error result.code == 0. A receipt comment is a predefined text that can automatically be inserted into the header or footer of a document — based on payment method or document type.

GET /api/receipt_comment/get

Retrieve a single comment template by its identifier.

Query parameters

ParameterTypeRequiredDescription
idintComment template identifier

Example request

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

Paginated list of comment templates.

Query parameters

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

Example request

GET /api/receipt_comment/list?list_offset=0
X-API-KEY: {your_api_key}
POST /api/receipt_comment/save

Create or update a comment template. For a new template use data[id] = 0.

POST fields — data object

FieldTypeRequiredDescription
idint0 = new template, >0 = update
comment_namestringComment name (for internal identification)
comment_valuestringComment text
receipt_type_idintDocument type identifier
receipt_comment_type_idintComment type (header / footer)
receipt_comment_auto_fillint1 = auto fill-in
receipt_comment_paymod_idintPayment method filter (if NULL: applies to every payment method)

Example request

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

{
  "data": {
    "id": 0,
    "comment_name": "Átutalásos megjegyzés",
    "comment_value": "Kérjük az összeget 8 napon belül átutalni.",
    "receipt_type_id": 8,
    "receipt_comment_type_id": 2,
    "receipt_comment_auto_fill": 1,
    "receipt_comment_paymod_id": 2
  }
}
POST /api/receipt_comment/delete

Delete a comment template by its identifier.

POST fields

FieldTypeRequiredDescription
idintIdentifier of the comment to delete

Example request

POST /api/receipt_comment/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!