Inventory > Suppliers > suppliersCreate
Commerce APIInventorySupplierssuppliersCreate
suppliersCreate
POST:suppliers.json

Description

Create one or multiple suppliers.

Permission bit: "suppliers.create"

Topic: Suppliers

Arguments

data: [SupplierCreate!]!

Main argument for mutations.


shop_id: String!

Unique shop identifier. See also: Unique Identifiers

Example: "sh_EQzGqWoY"


Data Argument Fields

address: AddressCreate!

Address of the supplier


currency: String

Default supplier currency

Example: "USD"


email: String

Email of the supplier

Example: "supplier@abcinc.com"

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


name: String!

Name of the supplier

Example: "ABC Inc."

Valid when: name is not empty

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


url: String

Supplier home page

Example: "http://abcinc.com"

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


Result

[Supplier!]

Preview (typescript)

Loading module