Skip to main content

Update a price list

PATCH 

/api/price-lists/{id}

  • pricelist.edit: allows to update resources.

Here the dedicated support page.

Request

Path Parameters

    id integerrequired

    Possible values: Value must match regular expression [0-9]+

    The ID of the price list 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

    client_id integer

    ID of the client to associate with this price list

    name string

    Possible values: <= 255 characters

    The price list name

    description string

    Possible values: <= 50 characters

    The price list description

    available_from date

    The date from which the price list is available. This follows the YYYY-MM-DD format

    available_to date

    The date until which the price list is available. This follows the YYYY-MM-DD format

    is_default_for_client boolean

    Whether this price list is the default for the client

    sync_with_company_default boolean

    Whether this price list is synced with the company default costs

Responses

Returns the price list updated.

Schema

    id integerrequired

    Possible values: >= 1

    The unique identifier of the resource

    created_at date-timerequired

    The date and time when the resource was created

    updated_at date-timerequired

    The date and time when the resource was last updated

    name stringrequired

    The price list name

    description string

    The price list description

    available_from date

    The date from which the price list is available. This follows the YYYY-MM-DD format

    available_to date

    The date until which the price list is available. This follows the YYYY-MM-DD format

    is_default_for_client booleanrequired

    Whether this is the default price list for the client

    is_default_for_company booleanrequired

    Whether this is the default price list for the company

    uses_default_price_list_costs booleanrequired

    Whether to sync costs with company default price list

    client_id integer

    Possible values: >= 1

    ID of the client to associate with this employee

Loading...