GetUpdateMasterVariationPriceResult¶
Use this api to get the result of asynchronously update the specified product.
GET /openapi/product/variation/v1/set-price-result
Request Parameters¶
Parameter | Type | Required | Description |
---|---|---|---|
taskId |
string |
true |
Task id with update master variation price |
Response Parameters¶
Name | Type | Description |
---|---|---|
taskId |
string |
task id |
taskStatus |
string |
Task status,please refer to Task Status for details |
errorMsg |
string |
Error message |
total |
Integer |
Task total number |
successNum |
Integer |
Success number |
failNum |
Integer |
Failed number |
successList |
array(string) |
success master variation id |
failedPriceSettings |
array(FailedPriceSetting) |
failed price settings |
FailedPriceSetting¶
Name | Type | Description |
---|---|---|
variationId |
string |
variation id |
errorPrice |
Price |
error price |
errorMessages |
array(string) |
error messages |
slaveFailedPriceSettings |
array(FailedPriceSetting) |
slave failed price settings |
Price¶
Name | Type | Required | Description |
---|---|---|---|
amount |
bigDecimal |
true |
Amount,less than 1000000000 |
currencyCode |
string |
true |
currency code |
Request Example¶
Example
curl --location --request GET '{Ginee Host}/master/variation/v1/set-price-result?taskId=PRICE_SETTING_RESULT_1508324982181203968' \
--header 'Content-Type: application/json' \
--header 'X-Advai-Country: ID' \
--header 'Authorization: 2aedf7919e5e6cb4:n0IECNXloTKCTSSxeBEYhzmeVClHmgvw4ruI3W2f9eY=' \
Success
{
"code": "SUCCESS",
"message": "成功",
"data": {
"taskId": "PRICE_SETTING_RESULT_1508324982181203968",
"taskStatus": "FINISHED",
"successNum": 1,
"failNum": 0,
"total": 1,
"errorMsg": null,
"successList": ["1"],
"failedPriceSettings": []
},
"extra": null,
"pricingStrategy": "PAY"
}
Invalid parameters
{
"code": "PARAMETER_ERROR",
"message": "error message",
"data": null,
"extra": null
}
Note
You need to check the code
to see if the operation was successful. If failed, see message
for detail reason.