Create a branch
Admin only. Registers a branch with its code, name, and city, active on creation. The code has to be unique, and the trade currency must already exist in the registry or the branch is refused.
POST
/api/v1/branchesAuthorization
AuthorizationBearer token (JWT) · headerrequiredJWT from POST /api/v1/auth/login sent as Authorization Bearer.
Request body
requiredapplication/jsoncodestringrequirednamestringrequiredcitystringrequiredvat_numberstringaddressstringcurrency_codestringResponses
201
Branch created
idstringrequiredcodestringrequirednamestringrequiredcitystringrequiredvat_numberstringrequiredaddressstringrequiredcurrency_codestringrequiredimage_urlstringrequiredis_activebooleanrequiredis_deletedintegerrequiredmin -9007199254740991 · max 9007199254740991
created_atstringrequiredupdated_atstringrequired400
A required field is missing, the branch code already exists, or the currency is unknown
detailstringrequired401
Not authenticated
detailstringrequired403
Caller is not an admin
detailstringrequired