Skip to main content

Create a Price Book

POST 

/pcm/pricebooks

Creates a price book. You can add the prices to the price book now or update the price book later.

Request

Body

required

Creates a price book with the following attributes.

    data objectrequired
    type stringrequired

    Possible values: [pricebook]

    Default value: pricebook

    attributes objectrequired
    description stringnullable

    A brief description that describes the purpose of a price book, for example, flash sale pricing or preferred customer pricing.

    name stringrequired

    Possible values: non-empty

    The name of the price book. Price books must have a unique name.

    external_ref stringnullable

    A unique attribute that you can use to contain information from another company system, for example. The maximum length is 2048 characters.

Responses

A price book with the following attributes.

Schema
    data objectrequired

    A price book with the following attributes.

    id stringrequired

    A unique identifier of a price book.

    type stringrequired

    Possible values: [pricebook]

    Default value: pricebook

    Always pricebook.

    attributes objectrequired
    external_ref stringnullable

    A unique attribute that you could use to contain information from another company system, for example. The maximum length is 2048 characters.

    description stringnullable

    A brief description that outlines the purpose of a price book, for example, flash sale pricing or preferred customer pricing.

    name stringnullablerequired

    The name of a price book. Price books must have a unique name

    created_at date-timerequired

    The date and time when the price book was created.

    updated_at date-timerequired

    The date and time when the price book was last updated.

    meta object
    owner stringnullable

    The resource owner, either organization or store.

    links object

    Links are used to allow you to move between requests.

    self urinullable

    Single entities use a self parameter with a link to that specific resource.

Loading...