Skip to content
PharmaFlow Knowledgebase
Esc
↑↓navigate↵open⌘Jpreview

List receipt templates

Any signed in user. Returns every receipt template for a branch, ordered by name. A branch_id may name another branch only for an admin; other callers stay on their own.

GET/api/v1/printing/receipt-templates
Authorization
AuthorizationBearer token (JWT) · headerrequired

JWT from POST /api/v1/auth/login sent as Authorization Bearer.

Query parameters
branch_idstring

The branch to read. Defaults to the caller's own branch.

Responses
200

The branch's receipt templates

itemsobject[]required
Show properties
Array of object
idstringrequired
branch_idstring | nullrequired
namestringrequired
paperstringrequired
header_textstringrequired
footer_textstringrequired
show_logointegerrequired
min -9007199254740991 · max 9007199254740991
show_vatintegerrequired
min -9007199254740991 · max 9007199254740991
show_batchintegerrequired
min -9007199254740991 · max 9007199254740991
is_defaultintegerrequired
min -9007199254740991 · max 9007199254740991
is_activeintegerrequired
min -9007199254740991 · max 9007199254740991
is_deletedintegerrequired
min -9007199254740991 · max 9007199254740991
created_atstringrequired
updated_atstringrequired
401

Not authenticated

detailstringrequired
403

Branch is outside your ownership

detailstringrequired
Try it
Server
Authorization
Parameters
Request
curl -X GET 'http://localhost:8000/api/v1/printing/receipt-templates' \
  -H 'Authorization: Bearer YOUR_TOKEN'
Response
{
  "items": [
    {
      "id": "string",
      "branch_id": "string",
      "name": "string",
      "paper": "string",
      "header_text": "string",
      "footer_text": "string",
      "show_logo": -9007199254740991,
      "show_vat": -9007199254740991,
      "show_batch": -9007199254740991,
      "is_default": -9007199254740991,
      "is_active": -9007199254740991,
      "is_deleted": -9007199254740991,
      "created_at": "string",
      "updated_at": "string"
    }
  ]
}