Skip to main content

Create bulk prices

POST 

/v2/bulk-prices/bulk

Create bulk prices

Request

Body

required

An object containing bulk price create inputs and directives

    bulkPricesstring[]required

    An array of bulk price create inputs. Please provide one of ["priceId","productId","source"] in each one

    Example: [{"priceId":"018fe8a7-2cb9-7d15-b439-e838cb07841e","value":5.11,"quantityFrom":7,"validFrom":"2024-06-05T07:36:59+0000","validTo":"2025-06-05T07:36:59+0000"},{"productId":5,"value":6.25,"quantityFrom":16,"validFrom":"2024-06-05T07:36:59+0000","validTo":"2025-06-05T07:36:59+0000"},{"source":{"id":"1","name":"Source 1"},"value":7.13,"quantityFrom":22,"validFrom":"2024-06-05T07:36:59+0000","validTo":"2025-06-05T07:36:59+0000"}]
    directivesstring[]

    Directives. Available directives are : ["resetOnUpdate"]

    Example: [{"operation":"resetOnUpdate","fields":["name","description"]}]

Responses

Bulk prices created

Schema

    idstringrequired

    Primary identifier

    Example: 1234
    createdAtdate-timerequired

    Creation date

    Example: 2022-01-01T00:00:00.000Z
    lastModifiedAtdate-timerequired

    Last modified date

    Example: 2022-01-02T00:00:00.000Z
    validFromdate-time

    Start date from which the bulk pricing is effective. Must be a valid ISO 8601 date string

    Example: 2022-01-01T00:00:00.000Z
    validTodate-time

    End date of the bulk pricing offer. Must be a valid ISO 8601 date string

    Example: 2022-01-31T00:00:00.000Z