Create a product of a supplier
POST/api/v1/supplier_products
Create a product of a supplier
Request
- application/vnd.api+json
Body
required
data
object
Possible values: [supplier_products
]
attributes
object
Price of one unit in the package that the product is being sold in
Price of the product (per package sold)
default price of the product, which can be replaced by a custom per-business one and act as a fallback value if there is no custom price
Object containing Product specifications, the format should be
{
"specification_group_A": {
"specification_x": "value_x",
"specification_y": "value_y,
"specification_z": "value_z"
},
"specification_group_B": {
"specification_q": "value_q",
"specification_w": "value_w"
}
}
relationships
object
supplier
object
data
object
Possible values: [supplier
]
Related Supplier ID
supplier_product_category
object
required
data
object
Possible values: [supplier_product_category
]
Related SupplierProductCategory ID
Responses
- 201
Create a product of a supplier
- application/vnd.api+json
- Schema
- Example (from schema)
- Example
Schema
Array [
]
data
object[]
required
attributes
object
Possible values: [true
, false
]
Price of one unit in the package that the product is being sold in
Price of the product (per package sold)
Price of the product for a specific business
Possible values: [true
, false
]
{
"data": [
{
"id": "string",
"type": "string",
"attributes": {
"description": "string",
"description-en": "string",
"description-fr": "string",
"description-de": "string",
"description-it": "string",
"description-es": "string",
"description-el": "string",
"image": "string",
"is-available": true,
"name": "string",
"name-en": "string",
"name-fr": "string",
"name-de": "string",
"name-it": "string",
"name-es": "string",
"name-el": "string",
"price-per-unit-cents": 0,
"selling-price-cents": 0,
"price-in-cents": 0,
"sku-ref": 0,
"specifications": {},
"supplier-name": "string",
"supplier-id": "string",
"open-quantity": 0,
"fixed-quantity": 0,
"quantity-type": "string",
"units": "string",
"from-custom-catalog": true,
"ordering-deadline": 0,
"ordering-lead-time": 0
}
}
]
}
{
"data": {
"id": "7be9bae0-5b9d-4216-8497-dcc03439ca4d",
"type": "supplier-products",
"attributes": {
"description": "Animi vero totam eveniet minima ut",
"description-en": "Animi vero totam eveniet minima ut",
"description-fr": null,
"description-de": null,
"description-it": null,
"description-es": null,
"description-el": null,
"image": {
"type": "string",
"format": "binary"
},
"is-available": true,
"name": "Bumbu Rum XO",
"name-en": "Bumbu Rum XO",
"name-fr": null,
"name-de": null,
"name-it": null,
"name-es": null,
"name-el": null,
"price-per-unit-cents": 3500,
"selling-price-cents": null,
"sku-ref": 1967,
"specifications": {
"specification_group_A": {
"specification_x": "value_x",
"specification_y": "value_y",
"specification_z": "value_z"
},
"specification_group_B": {
"specification_q": "value_q",
"specification_w": "value_w"
}
},
"supplier-name": "asperiores35",
"supplier-id": "9c7a98a0-218e-4cd5-8c49-ebff471829fd",
"open-quantity": null,
"fixed-quantity": 1,
"quantity-type": "fixed",
"units": "liter",
"from-custom-catalog": false,
"ordering-deadline": 57600,
"ordering-lead-time": 172800
}
}
}