📄 MIPYME Documents
Update customer/supplier
PUT
URL del endpoint
https://api-billing.koywe.com/V1/customers_suppliers/{customer_supplier_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 |
|---|---|---|---|---|
customer_supplier_id | path | string | ✓ | — |
Cuerpo de la solicitud — campos
| Campo | Tipo | Obligatoriedad | Descripción |
|---|---|---|---|
account_id | integer | Siempre obligatorio | Associated account. |
name | string | Siempre obligatorio | Name of the customer or supplier. |
is_customer | boolean | Opcional | Indicates if the entity is a customer. |
is_supplier | boolean | Opcional | Indicates if the entity is a supplier. |
responsible_user_id | integer | Opcional | ID of the user responsible for this entity. |
payment_term | string | Opcional | Payment terms for the customer or supplier. |
contacts | array<object> | Opcional | List of contacts associated with the customer or supplier. |
contacts[].first_name | string | Opcional | First name of the contact. |
contacts[].last_name | string | Opcional | Last name of the contact. |
contacts[].phone | string | Opcional | Phone number of the contact. |
contacts[].email | string | Opcional | Email address of the contact. |
invoicing_details | array<object> | Opcional | List of invoicing details associated with the customer or supplier. |
invoicing_details[].country_id | string | Opcional | Identifier for the country. |
invoicing_details[].tax_id_type | string | Opcional | Type of tax ID. |
invoicing_details[].tax_id_code | string | Opcional | Tax ID code. |
invoicing_details[].legal_name | string | Opcional | Legal name of the entity. |
invoicing_details[].address | string | Opcional | Address of the entity. |
invoicing_details[].district | string | Opcional | District of the address. |
invoicing_details[].city | string | Opcional | City of the address. |
invoicing_details[].business_activity | string | Opcional | Business activity of the entity. |
invoicing_details[].phone | string | Opcional | Phone number for invoicing purposes. |
invoicing_details[].postal_code | string | Opcional | Postal code of the address. |
additional | object | Opcional | Additional data associated with the customer or supplier. |
additional.data_name_1 | string | Opcional | Name of additional data field 1. |
additional.data_value_1 | string | Opcional | Value of additional data field 1. |
additional.data_name_2 | string | Opcional | Name of additional data field 2. |
additional.data_value_2 | string | Opcional | Value of additional data field 2. |
additional.data_name_3 | string | Opcional | Name of additional data field 3. |
additional.data_value_3 | string | Opcional | Value of additional data field 3. |
additional.data_name_4 | string | Opcional | Name of additional data field 4. |
additional.data_value_4 | string | Opcional | Value of additional data field 4. |
additional.data_name_5 | string | Opcional | Name of additional data field 5. |
additional.data_value_5 | string | Opcional | Value of additional data field 5. |
Ejemplo JSON del cuerpo
{
"account_id": 0,
"name": "string",
"is_customer": true,
"is_supplier": true,
"responsible_user_id": 0,
"payment_term": "0,30",
"contacts": [
{
"first_name": "string",
"last_name": "string",
"phone": "string",
"email": "string"
}
],
"invoicing_details": [
{
"country_id": "string",
"tax_id_type": "string",
"tax_id_code": "string",
"legal_name": "string",
"address": "string",
"district": "string",
"city": "string",
"business_activity": "string",
"phone": "string",
"postal_code": "string"
}
],
"additional": {
"data_name_1": "string",
"data_value_1": "string",
"data_name_2": "string",
"data_value_2": "string",
"data_name_3": "string",
"data_value_3": "string",
"data_name_4": "string",
"data_value_4": "string",
"data_name_5": "string",
"data_value_5": "string"
}
}
Respuestas
Product updated successfully
Invalid data or product not found