Save ERP code to approved product
POST /PIM/SaveExternalSku — PIM API · Supplier Products
Links the company's own ERP codes (external code, external barcode,
external option/model code) to the product sent for approval by the supplier. The product is found by CommerceLab SKU (Sku) or supplier SKU +
supplier ID (MerchantSku + SupplierId).
- Only SKU, unique and bundle type products are accepted.
- Codes are normalized before saving.
- If the product was previously approved, the approved record is also updated and
ProgressPositionreturnsApproved.
Returns separate results for each item; an error in one item does not stop others.
Parametreler
Tenant(header, string): Company code for users accessing multiple companies with Basic Auth. Not required if using Bearer token.
İstek gövdesi
Sku(string): CommerceLab SKU of the product.SupplierId(integer): Supplier ID (together withMerchantSku).VendorCode(string): Seller code.MerchantSku(string): Supplier's SKU of the product (instead ofSku).ExternalCode(string): ERP product code.ExternalModel(string): ERP model code.ExternalBarcode(string): ERP barcode.ExternalOptionCode(string): ERP option code.
Yanıtlar
- 200: List of results per item.
- 400: Request body is not valid JSON or field types mismatch.
- 401: Authentication failed (missing header, incorrect Basic info or invalid token). Body is empty.
- 500: Unexpected server-side error.
200 yanıt alanları
IsSuccess(boolean):trueif save succeeded.ResultMessage(string): Error message (e.g.Product not found,Invalid product type).LeadProductSku(string): RequestSku.ProgressPosition(integer): Approval process step:-99approval revoked,-1rejected,0waiting for verification,1waiting for external info,2waiting for approval,100approved.ApprovedProductId(integer): Approved product ID (if approved).ProgressPositionValue(string): Name ofProgressPosition(e.g.Approved,WaitingForApproval).LeadProductMerchantSku(string): RequestMerchantSku.