Skip to main content

Update a list of custom prices for a product

PATCH 

/api/v1/custom_prices/list

Max. 1000 per request.

Request

Body

required

    data

    object

    type string

    Possible values: [custom_prices]

    custom_prices

    object[]

    Max. 1000 per request.

  • Array [

  • id string

    ID of the Custom Price to update

    attributes

    object

    in_cents int32
    default boolean

    Pass 'true' if this should be a default Price for this product, otherwise use 'false'

    business_ids string[]

    Complete list of IDs of businesses (business_ids) linked to this price. Don't use combined with 'add_business_ids' nor 'remove_business_ids'.

    add_business_ids string[]

    List of IDs of businesses (business_ids) to additionally link to this price. Preserves businesses already linked to this price.'

    remove_business_ids string[]

    List of IDs of businesses (business_ids) to dissociate from this price. Preserves businesses whose ID is not provided in the list.

    custom_ref string

    Can be used to assign Supplier's own ID to a Price

  • ]

Responses

Upate a list of prices

Schema

    data

    object[]

    required

  • Array [

  • id string
    type string

    attributes

    object

    in-cents integer
    default boolean
    supplier-product-id string
    businesses array
    custom-ref string
  • ]

Loading...