Skip to end of banner
Go to start of banner

Add / Update SKU Attributes API

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Inbound | PUT | /master/sku-attributes

Summary

This API is used to add / update sku attributes. 

Description

This API is used to add skuAttributes if not existing, or update if already present.

Key points for usage

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

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

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

Note : Single payload can contain sku-attributes against maximum 5000 channelSkus.

Request

{
  "skuAttributeList": [
    {
      "channelSkuCode": "erpArticleCode1",
      "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": "erpArticleCode2",
      "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

  • No labels