Creates a supplier. The returned guid can be used as supplierGuid in the product endpoints. Supplier names are not unique.
Security
shoptetAccessToken or shoptetPrivateApiToken
- Mock serverhttps://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/suppliers
- https://api.myshoptet.comhttps://api.myshoptet.com/api/suppliers
curl -i -X POST \
https://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/suppliers \
-H 'Content-Type: application/json' \
-H 'Shoptet-Access-Token: YOUR_API_KEY_HERE' \
-d '{
"data": {
"name": "Willy Wonka"
}
}'Response
{ "data": { "guid": "1b02cb8e-d7b5-11e0-9a5c-feab5ed617ed", "name": "Willy Wonka" }, "errors": [ { … } ], "metadata": { "requestId": "019c8c34-64f3-7328-af43-bf1e34fa39d7" } }