ES | EN

📄 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

NombreUbicaciónTipoRequeridoDescripción
customer_supplier_idpathstring

Cuerpo de la solicitud — campos

CampoTipoObligatoriedadDescripción
account_idintegerSiempre obligatorioAssociated account.
namestringSiempre obligatorioName of the customer or supplier.
is_customerbooleanOpcionalIndicates if the entity is a customer.
is_supplierbooleanOpcionalIndicates if the entity is a supplier.
responsible_user_idintegerOpcionalID of the user responsible for this entity.
payment_termstringOpcionalPayment terms for the customer or supplier.
contactsarray<object>OpcionalList of contacts associated with the customer or supplier.
contacts[].first_namestringOpcionalFirst name of the contact.
contacts[].last_namestringOpcionalLast name of the contact.
contacts[].phonestringOpcionalPhone number of the contact.
contacts[].emailstringOpcionalEmail address of the contact.
invoicing_detailsarray<object>OpcionalList of invoicing details associated with the customer or supplier.
invoicing_details[].country_idstringOpcionalIdentifier for the country.
invoicing_details[].tax_id_typestringOpcionalType of tax ID.
invoicing_details[].tax_id_codestringOpcionalTax ID code.
invoicing_details[].legal_namestringOpcionalLegal name of the entity.
invoicing_details[].addressstringOpcionalAddress of the entity.
invoicing_details[].districtstringOpcionalDistrict of the address.
invoicing_details[].citystringOpcionalCity of the address.
invoicing_details[].business_activitystringOpcionalBusiness activity of the entity.
invoicing_details[].phonestringOpcionalPhone number for invoicing purposes.
invoicing_details[].postal_codestringOpcionalPostal code of the address.
additionalobjectOpcionalAdditional data associated with the customer or supplier.
additional.data_name_1stringOpcionalName of additional data field 1.
additional.data_value_1stringOpcionalValue of additional data field 1.
additional.data_name_2stringOpcionalName of additional data field 2.
additional.data_value_2stringOpcionalValue of additional data field 2.
additional.data_name_3stringOpcionalName of additional data field 3.
additional.data_value_3stringOpcionalValue of additional data field 3.
additional.data_name_4stringOpcionalName of additional data field 4.
additional.data_value_4stringOpcionalValue of additional data field 4.
additional.data_name_5stringOpcionalName of additional data field 5.
additional.data_value_5stringOpcionalValue 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