📄 MIPYME Documents
Update company branch
PUT
URL del endpoint
https://api-billing.koywe.com/V1/company_branches/{company_branch_id}
Requiere autenticación
Autenticación
Envía la cabecera Authorization: Bearer <token> (obtenido en POST /auth) en los endpoints protegidos.
Parámetros
| Nombre | Ubicación | Tipo | Requerido | Descripción |
|---|---|---|---|---|
company_branch_id | path | string | ✓ | — |
Cuerpo de la solicitud — campos
| Campo | Tipo | Obligatoriedad | Descripción |
|---|---|---|---|
account_id | integer | Opcional | ID of the associated account |
company_branch_id | integer | Opcional | ID of the company branch |
name | string | Opcional | Name of the company branch. |
address | string | Opcional | Address of the company branch. |
district | string | Opcional | District of the company branch. |
city | string | Opcional | City of the company branch. |
phone | string | Opcional | Phone of the company branch. |
company_branch_tax_code | string | Opcional | Tax code assigned to the company branch for fiscal and accounting purposes. |
company_branch_internal_code | string | Opcional | Internal code assigned to the company branch for identification within the system. |
parent_company_branch_id | integer | Opcional | ID of the parent company branch. |
user_permissions | object | Opcional | — |
user_permissions.user_id | string | Opcional | User ID associated to the subscription. Not used on API |
user_permissions.user_name | string | Opcional | — |
user_permissions.has_branch_permission | number | Opcional | — |
Ejemplo JSON del cuerpo
{
"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
}
}
Respuestas
Product location updated successfully
Invalid data or product location not found