📄 MIPYME Documents
Update company branch
PUT
Endpoint URL
https://api-billing.koywe.com/V1/company_branches/{company_branch_id}
Requires authentication
Authentication
Send header Authorization: Bearer <token> (obtained from POST /auth) for protected endpoints.
Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
company_branch_id | path | string | ✓ | — |
Request body — fields
| Field | Type | Required | Description |
|---|---|---|---|
account_id | integer | Optional | ID of the associated account |
company_branch_id | integer | Optional | ID of the company branch |
name | string | Optional | Name of the company branch. |
address | string | Optional | Address of the company branch. |
district | string | Optional | District of the company branch. |
city | string | Optional | City of the company branch. |
phone | string | Optional | Phone of the company branch. |
company_branch_tax_code | string | Optional | Tax code assigned to the company branch for fiscal and accounting purposes. |
company_branch_internal_code | string | Optional | Internal code assigned to the company branch for identification within the system. |
parent_company_branch_id | integer | Optional | ID of the parent company branch. |
user_permissions | object | Optional | — |
user_permissions.user_id | string | Optional | User ID associated to the subscription. Not used on API |
user_permissions.user_name | string | Optional | — |
user_permissions.has_branch_permission | number | Optional | — |
Request body — JSON example
{
"account_id": 0,
"company_branch_id": 0,
"name": "string",
"address": "string",
"district": "string",
"city": "string",
"phone": "string",
"company_branch_tax_code": "string",
"company_branch_internal_code": "string",
"parent_company_branch_id": 0,
"user_permissions": {
"user_id": "string",
"user_name": "string",
"has_branch_permission": 0
}
}
Responses
Product location updated successfully
Invalid data or product location not found