Skip to main content

Update a client

PATCH 

/api/client/:id

  • crm.edit: allows to update resources.

Here the dedicated support page.

Request

Path Parameters

    id integerrequired

    The ID of the client to update

Header Parameters

    Wethod-Company stringrequired

    The company you want to interact with

    Wethod-Version stringrequired

    The API version you want to use

Body

    corporate_name string

    Possible values: <= 255 characters

    Corporate name of the client

    acronym string

    Possible values: <= 80 characters

    Acronym of client name

    email string

    Possible values: <= 80 characters

    Email address of the client

    notes string

    Notes about the client

    website string

    Possible values: <= 250 characters

    Client website

    linkedin string

    Possible values: <= 250 characters

    Client linkedin profile

    description string

    Client description

    street string

    Possible values: <= 80 characters

    Client street address

    zip_code string

    Possible values: <= 80 characters

    Client zip code

    town string

    Possible values: <= 80 characters

    Client town

    country string

    Possible values: <= 80 characters

    Client country name. The list of all accepted country name is available at https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes. It is also accepted the Italian version of a country name.

    vat string

    Possible values: <= 80 characters

    Client VAT number

    payment_condition string

    Client payment condition

    sdi_code string

    Client sdi code

    pec string

    Possible values: <= 320 characters

    Client pec

    administration_email string

    Possible values: <= 320 characters

    Client pec

    company_registration_number string

    Client registration number

    legal_name string

    Possible values: <= 255 characters

    Client legal name

    intent_code string

    Possible values: <= 250 characters

    Client intent code

    intent_date date

    Client intent date in YYYY-MM-DD format

    phone string

    Client phone number

    tax_reference string

    Client tax reference

    group_id integer

    ID of the group to associate with this client

    bank_account_id integer

    ID of the bank account to associate with this client

    vat_rate_id integer

    ID of the vat rate to associate with this client

    payment_term_id integer

    ID of the payment term to associate with this client

Responses

Returns the client updated.

Schema

    id integerrequired

    Possible values: >= 1

    created_at date-timerequired
    updated_at date-timerequired
    corporate_name stringrequired

    Possible values: <= 255 characters

    acronym string

    Possible values: <= 50 characters

    email string

    Possible values: <= 80 characters

    notes string
    website string

    Possible values: <= 250 characters

    linkedin string

    Possible values: <= 250 characters

    description string
    street string

    Possible values: <= 80 characters

    zip_code string

    Possible values: <= 80 characters

    town string

    Possible values: <= 80 characters

    country string

    Possible values: <= 80 characters

    vat string

    Possible values: <= 80 characters

    payment_condition string
    group_company int

    Possible values: >= 1

    sdi_code string
    pec string

    Possible values: <= 320 characters

    administration_email string

    Possible values: <= 320 characters

    company_registration_number string
    legal_name string

    Possible values: <= 255 characters

    intent_code string

    Possible values: <= 250 characters

    intent_date date

    Declaration of intent date

    phone string
    tax_reference string
    group_id int

    Possible values: >= 1

    bank_account_id int

    Possible values: >= 1

    vat_rate_id int

    Possible values: >= 1

    payment_term_id int

    Possible values: >= 1

Loading...