CreateProductInput

GraphQL input to create a product. Currency is taken from the vendor.

Fields

    ageRestricted
    Boolean

    Whether buyers must pass an age check. Defaults to false.

    availableQty
    Int

    Opening stock for locationId. Omit to leave the branch unstocked.

    barcode
    String
    Scanned barcode (EAN/UPC) if the product carries one.
    capacity
    String

    Packaged size as free text, e.g. 500 alongside a unit of ml.

    deliverable
    Boolean

    Whether the product can be delivered. Defaults to true.

    description
    String
    Long-form description shown on the product page.
    digital
    Boolean

    Whether the product is digital and needs no physical fulfilment. Defaults to false.

    discountPrice
    Decimal

    Sale price in major units. Defaults to 0, meaning no discount.

    featured
    Boolean

    Whether to surface the product in featured placements. Defaults to false.

    imageUrls
    [String!]!
    Required
    Defaults:
    Publicly reachable image URLs. At least one is required — a product with no image renders as a blank tile everywhere it is listed. Defaulted at the schema level so the omission is rejected by the service with an actionable message rather than by GraphQL validation.
    isActive
    Boolean

    Whether the product is orderable. Defaults to true.

    locationId
    Int!
    Required
    Branch the initial inventory row is attached to. Must belong to the authenticated vendor.
    name
    String!
    Required
    Customer-facing product name.
    packageCount
    String
    Number of items in a multi-pack, as free text.
    plusOption
    Boolean

    Whether the product is restricted to Plus members. Defaults to false.

    price
    Decimal!
    Required

    List price in major units of the vendor's currency, e.g. 12.50. Excludes tax.

    sku
    String
    Vendor's own stock-keeping unit. Not checked for uniqueness.
    unit
    String

    Unit capacity is expressed in, e.g. g, ml, piece.

Built with