Update a branch
Admin only. Patches a branch’s name, city, address, VAT number, flag, or currency. Closing a branch is done by setting is_active false, and the code itself is fixed once the branch exists.
PUT
/api/v1/branches/{branchId}Authorization
AuthorizationBearer token (JWT) · headerrequiredJWT from POST /api/v1/auth/login sent as Authorization Bearer.
Path parameters
branchIdstringrequiredThe branch being updated.
Request body
requiredapplication/jsonnamestringcitystringvat_numberstringaddressstringis_activebooleancurrency_codestringResponses
200
Branch updated
idstringrequiredcodestringrequirednamestringrequiredcitystringrequiredvat_numberstringrequiredaddressstringrequiredcurrency_codestringrequiredimage_urlstringrequiredis_activebooleanrequiredis_deletedintegerrequiredmin -9007199254740991 · max 9007199254740991
created_atstringrequiredupdated_atstringrequired400
No valid fields to update, or the currency is unknown
detailstringrequired401
Not authenticated
detailstringrequired403
Caller is not an admin
detailstringrequired404
Branch not found
detailstringrequired