/
Add / Update SKU Custom Attributes API

Add / Update SKU Custom Attributes API

Inbound | PUT | /master/sku-attributes

Summary

This API is used to add / update sku attributes. 

Description

This API is used to add SKU Custom Attributes if not existing, or update if already present.

Key points for usage

  • If the value of SKU Custom Attribute does not exist against an SKU, it will be saved.

  • If the value of SKU Custom Attribute already exists, providing an empty string " " against it in the payload will set the attribute value to null.

  • If the value of Sku Custom Attribute already exists, providing null in the payload will not update the attribute value against the attribute key.

Note : Single payload can contain SKU Custom attributes against maximum 5000 channelSkus.

Request

{ "skuAttributeList": [ { "channelSkuCode": "channelSkusCode1", "skuAttributes": { "attribute1": "string", "attribute10": "string", "attribute11": "string", "attribute12": "string", "attribute13": "string", "attribute14": "string", "attribute15": "", "attribute2": "", "attribute3": "", "attribute4": "", "attribute5": null, "attribute6": null, "attribute7": null, "attribute8": null, "attribute9": null } }, { "channelSkuCode": "channelSkusCode2", "skuAttributes": { "attribute1": "string", "attribute10": "", "attribute11": "", "attribute12": "", "attribute13": "", "attribute14": "", "attribute15": "", "attribute2": "string", "attribute3": "string", "attribute4": "string", "attribute5": null, "attribute6": null, "attribute7": null, "attribute8": null, "attribute9": null } } ] }

Parameter Name

Data Type

Description

Mandatory

skuAttributeList.channelSkuCode

String

Code used by channel to identify an SKU

yes

skuAttributeList.skuAttributes

Object [ ]

SKU Attributes of the product

no

 

Response

EmptyBody

 

HttpStatus : 200