Info > Info > infoCustomItemCreate
Commerce APIInfoInfoinfoCustomItemCreate
infoCustomItemCreate
POST:info/custom_item.json

Description

Imitate custom item creation. This is useful if you want to get its id.

Topic: Info

Arguments

data: OrderCustomItemCreate!

Main argument for mutations.


Data Argument Fields

grams: Int

The weight of the custom item in grams

Example: 200

Valid when: grams is a non-negative integer


height: Int

Height of the custom item (in millimeters)

Example: 150

Valid when: height is a non-negative integer


inventory_location_id: String


length: Int

Length of the custom item (in millimeters)

Example: 150

Valid when: length is a non-negative integer


physical: Boolean

Whether this item requires shipping or not


price: Int

Price of the custom item (per single item)

Valid when: price is a non-negative integer


tax_class: String

Tax class of this item

Valid when: tax_class's length doesn't exceed 250 characters


taxable: Boolean

Whether this item is taxable or not


title: String!

Custom item title

Valid when: title is not empty

Valid when: title's length doesn't exceed 250 characters


width: Int

Width of the custom item (in millimeters)

Example: 150

Valid when: width is a non-negative integer


Result

OrderCustomItem

Preview (typescript)

Loading module