Skip to main content

Get a product custom price for a business

GET 

/api/v1/supplier_products/:id/custom_prices/:business_id

This EP allows you to retrieve the custom price a business is linked to, for a given product. As an option, you can decide if you want the EP to return the default price if no custom price exists.

Request

Path Parameters

    id stringrequired

    id of the product of which price you want to retrieve

    business_id stringrequired

Query Parameters

    fallback_to_default boolean

    Pass 'true' if you want to have the default price returned as a fallback if no custom price exists. Pass 'false' if '404 Not Found' should be returned instead.

Responses

Returns a price object linked to the business and product passed in the request. Returns '404 Not Found' if no custom price is found and fallback_to_default is set to false.

Schema

    data

    object

    required

    id string
    type string

    attributes

    object

    in_cents integer
    default boolean
    supplier-product-id string
    businesses array
    custom_ref string
Loading...