The documentation on Webflow APIs is sketchy. I am using the API to create a product and SKU from user input. The documentation on “Create Product & SKUs”
Much of the curl is self explanatory. There are a few items that I do not find references for in the documentation.
common to all curl commands is the header
–header ‘Authorization: Bearer {access_token}’ \
Where it is clear there is a reference to the Webflow_APIKEY. This is a string inside curly braces and should be a ‘name : value’ pair. But WHAT is the name? ‘access-token’? ‘webflow_apikey’? Or maybe I have this all wrong?
NEXT confusing thing in the curl:
"ec-product-type": "ff42fee0113744f693a764e3431a9cc2",
where is that found? In Webflow Ecommerce “product type” is one of four “types” not a long text string code.
NEXT confusing thing in the curl
"updated-by": "Person_5d8fcb6d94dd1853060fb3b3",
where does “Person_…” come from? Is that required? Developer optional? Is there any part of that string that is required?
"default-sku": "5e8518536e147040726cc416",
"_cid": "5dd44c493543b37d5449b3a5",
"_id": "5e8518516e147040726cc415"
Where and how are these values generated or are they simply placeholders? Webflow will insert these values dynamically?
“_cid” is…?
“_id” is…?
Documentation on these curl commands is lacking as far as I can see, Certainly be helpful if there was something close by on the web page.
Here is my read only link but don’t think it’s relevant…
https://preview.webflow.com/preview/davids-cool-project-9b22c7?utm_medium=preview_link&utm_source=designer&utm_content=davids-cool-project-9b22c7&preview=454984bc0992fefc4eb788f0bcda7382&pageId=62ccac298cf05d7228d39259&itemId=62ccac298cf05d47dbd39260&workflow=preview
Here is my site Read-Only: LINK
(how to share your site Read-Only link)