Product.updatePrices

Used to update product price. Also used for the special price update.

Ventures implementing this call:

  • Jumia
  • Daraz
  • Zalora
  • TheIconic
  • Linio
  • Lamoda
  • Bamilo

Request

JSON example:

{
  "api":1,
  "method":"Product.updatePrices",
  "params":{
    "productsInfo":[
      {
        "product_id":"13",
        "config_id":"7",
        "seller_sku":"duplicate",
        "sku":"ZI501OT89AAKANMY-13",
        "attribute_set":"1",
        "price":"100"
      },
      {
        "product_id":"14",
        "config_id":"7",
        "seller_sku":"Duplicate_1",
        "sku":"ZI501OT88AALANMY-14",
        "price":"150"
      },
      {
        "product_id":"15",
        "config_id":"8",
        "seller_sku":"14728-14378",
        "sku":"ZI501OT87AAMANMY-15",
        "attribute_set":"1",
        "price":"180",
        "special_price":"170",
        "special_from_date":"2014-05-01 00:00:00",
        "special_to_date":"2014-06-01 00:00:00"
      },
      {
        "product_id":"16",
        "config_id":"9",
        "seller_sku":"duplicate_2",
        "sku":"ZI501OT86AANANMY-16",
        "attribute_set":"2",
        "price":"1000",
        "special_price":"950",
        "special_from_date":"2014-06-01 00:00:00",
        "special_to_date":"2014-07-01 00:00:00"
      },
      "id":1
    }
  ]
}

Request fields:

Field name

Type

Example value

Description

method

string

"Product.updatePrices"

Action name

product_id

string

"123"

Endpoint product id

config_id

string

"321"

Endpoint product set id

seller_sku

string

"ABC-98184"

Seller given SKU

sku

string

"ZI501OT86AANANMY-16"

Product SKU provided by Shop

attribute_set

string

"3"

Id of the product attribute set

price

string

"1000"

Price that customer has to pay

special_price

string | null

"950"

Optional Special price during the period

specialfromdate

string | null

"2014-07-01 00:00:00"

Optional Date since when special price is valid

specialtodate

string | null

"2014-07-01 00:00:00"

Optional Date when special price is not valid

Response

JSON example:

[  
   {  
      "api":1,
      "result":[  
         {  
            "status":"failure",
            "error":{  
               "message":"No special from and\/or to date specified for special price"
            },
            "product":{  
               "seller_sku":"CK-TransparentBag-05",
               "sku":"CA069FAAGB59ANPH-356960",
               "id":"356960",
               "config_id":"294381"
            }
         },
         {  
            "status":"success",
            "product":{  
               "seller_sku":"GE526HLACPMUANPH",
               "sku":"GE526HLAE7ZWANPH-227130",
               "id":"227130",
               "config_id":"196988",
               "updated_at":"2015-08-21 17:29:50"
            }
         },
         {  
            "status":"success",
            "product":{  
               "seller_sku":"BELKIN0001",
               "sku":"BE665ELARN-1043118",
               "id":"1043118",
               "config_id":"824067",
               "updated_at":"2015-08-21 17:29:50"
            }
         }
      ],
      "id":1
   }
]

Response fields:

Field

Type

Value

Description

status

string

"success"

Update status:

  • success;
  • failure.

message

string

"No special from and\/or to date specified for special price"

Optional must be filled and returned in case of error

seller_sku

string

"BELKIN0001"

Seller given SKU

sku

string

"BE665ELARN-1043118"

Product SKU

id

string

"1043118"

Endpoint product id

config_id

string

"824067"

Endpoint product set id

updated_at

string

"2015-08-21 17:29:50"

Time when the price was updated

code

int

0

Optional can be returned in case of error. Internal error code.

trace

string

undefined

Optional can be returned in case of error. Internal error stack trace.