Skip to main content

Create a price for SupplierProduct

POST 

/api/v1/supplier_products/:id/custom_prices

Create a price for SupplierProduct

Request

Path Parameters

    id stringrequired

    id of the product of which price you want to retrieve

Body

required

    data

    object

    type stringrequired

    Possible values: [custom_prices]

    attributes

    object

    in_cents integerrequired

    Product Price in cents.

    default booleanrequired

    Use 'true' if this should be the default Price used by Businesses that don't have a custom price. Otherwise use 'false'.

    business_ids string[]

    Collection of ids of businesses that should be using this Price.

    custom_ref string

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

Responses

Create a price for SupplierProduct

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...