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

Read a branch

Any signed in user. Returns one branch with its address, VAT number, and trade currency. The identifier is a branch id, and an id that matches no row is refused rather than returned empty.

GET/api/v1/branches/{branchId}
Authorization
AuthorizationBearer token (JWT) · headerrequired

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

Path parameters
branchIdstringrequired

The branch id.

Responses
200

The branch

idstringrequired
codestringrequired
namestringrequired
citystringrequired
vat_numberstringrequired
addressstringrequired
currency_codestringrequired
image_urlstringrequired
is_activebooleanrequired
is_deletedintegerrequired
min -9007199254740991 · max 9007199254740991
created_atstringrequired
updated_atstringrequired
401

Not authenticated

detailstringrequired
404

Branch not found

detailstringrequired
Try it
Server
Authorization
Parameters
Request
curl -X GET 'http://localhost:8000/api/v1/branches/string' \
  -H 'Authorization: Bearer YOUR_TOKEN'
Response
{
  "id": "string",
  "code": "string",
  "name": "string",
  "city": "string",
  "vat_number": "string",
  "address": "string",
  "currency_code": "string",
  "image_url": "string",
  "is_active": true,
  "is_deleted": -9007199254740991,
  "created_at": "string",
  "updated_at": "string"
}