ReferenceProduct
List a product's supplier codes
Returns the codes each supplier uses for this product. Requires `Permissions.Product.View`.
GET
Bearerheader
AuthorizationBearer <token>OAuth 2.0 client credentials. Obtain a client id/secret from Winshop support ([email protected]), then POST to the token URL.
productId*integerFormat
int32application/json- response
[index: integer]?The code one supplier uses for a product.
curl -X GET 'https://<your-instance>/api/products/0/suppliers-product-code' \ -H 'Authorization: Bearer <access-token>'[ { "allowedWarehouseId": 0, "colorId": 0, "createdAt": "2019-08-24T14:15:22Z", "dimensionId": 0, "id": 0, "isInvalid": true, "lastModify": "2019-08-24T14:15:22Z", "lengthId": 0, "price": 0, "priceCoefficient": 0, "productId": 0, "quantityCoefficient": 0, "sizeId": 0, "supplierId": 0, "supplierProductCode": "string", "unitId": 0, "userId": 0, "variantId": 0 }]Update supplier terms PUT
Replaces one supplier's purchasing terms for this product and returns the stored row. Requires `Permissions.Product.Update`.
Create a supplier code POST
Adds a supplier's own code for this product and returns it (201, `Location` header set). Requires `Permissions.Product.Create`.