Inventory > Packaging > packagingModify
Commerce APIInventoryPackagingpackagingModify
packagingModify
POST:packaging.json

Description

Modify one or multiple packaging.

Permission bit: "packaging.modify"

Topic: Packaging

Arguments

data: [PackagingModify!]!

Main argument for mutations.


ids: [String!]!

List of packaging ids. See also: Unique Identifiers

Example: ["pa_EQzGqWoY"]


shop_id: String!

Unique shop identifier. See also: Unique Identifiers

Example: "sh_EQzGqWoY"


Data Argument Fields

enabled: Boolean

Whether this packaging is enabled or not

Example: false


grams: Int

The weight of the empty packaging in grams

Example: 200

Valid when: grams is a non-negative integer


height: Int

Height of the packaging in millimeters

Example: 200

Valid when: height is a non-negative integer


inventory_location_ids: [String!]


length: Int

Length of the packaging in millimeters

Example: 200

Valid when: length is a non-negative integer


max_grams: Int

The maximum weight this packaging can hold (excluding its own weight)

Example: 200

Valid when: max_grams is a non-negative integer


name: String

Name of the packaging

Example: "Large Box"

Valid when: name is not empty

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


shipping_provider_ids: [String!]


width: Int

Width of the packaging in millimeters

Example: 200

Valid when: width is a non-negative integer


Result

[Packaging!]

Preview (typescript)

Loading module