I’m trying to create a new ecommerce “product” using the API but can’t find documentation on how to fill the price field (and any other required ecommerce fields?). I can post properly with the CMS API but it errors in Webflow because it’s missing a required field.
Does anyone have the full schema for the fields in an ecommerce product?
Yes, but I don’t see anything specific about the fields for posting a new product to the ecommerce cms, am I missing something?
I’m not sure but i think product is a private collection. Not open in the API.
@QA_Brandon can you confirn this
@kylethacker if ypu use the import file/format used when importing csv to the products it might help you
QA_Brandon
(Brandon Mosco)
January 8, 2020, 1:56pm
6
@kylethacker
Have you looked here: https://developers.webflow.com/#order-model
Thanks for the shout out @JanneWassberg
Best Regards,
~ Brandon
webdev
(Jeff Selser)
January 8, 2020, 2:08pm
7
Here is a call to an product item.
"items": [
{
"tax-category": "standard-taxable",
"_archived": false,
"_draft": false,
"shippable": true,
"default-sku": "5c473cee77cdea826c2c3847",
"name": "Blue Plate",
"description": "Lorem ipsum dolor sit amet, consectetur adipisicing elit sed do eiusmod tempor incididunt ut labore dolore aua. Ut enim ad minim veniam, quis nostrud exercitationulco laboris nisi ut aliquip ex ea commodo consequatuisaute.",
"slug": "blue-plate",
"updated-on": "2019-04-23T01:03:46.299Z",
"updated-by": "Collaborator_5c6b05e6f7ece0a9096cf170",
"created-on": "2018-10-03T13:55:05.966Z",
"created-by": "Person_5395e5a46f3937933998d3a1",
"published-on": "2019-04-23T01:03:49.475Z",
"published-by": "Collaborator_5c6b05e6f7ece0a9096cf170",
"category": [
"5c473cee77cdea272f2c3848"
],
"categorie": "5c473cee77cdea272f2c3848",
"sku-properties": [
{
"id": "df55896f630880d2a0115087c93b3ab4",
"name": "Size",
"enum": [
{
"id": "f4946449e3f3287ab36320107a3373bc",
"name": "Small",
"slug": "small"
},
{
"id": "aa8c8937bc4920c5ca7ee2c6d285f9fc",
"name": "Medium",
"slug": "medium"
},
{
"id": "3e8a326dfb857f0a2440808078ae1920",
"name": "Large",
"slug": "large"
}
]
}
],
"_cid": "5c473cee77cdeaa4982c377d",
"_id": "5c473cee77cdea4c8c2c3845"
}
],
"count": 1,
"limit": 100,
"offset": 0,
"total": 12
}