POST service/PostStockAndPrice

Request Information

URI Parameters

None.

Body Parameters

Collection of NoonStockAndPriceModel
NameDescriptionTypeAdditional information
partner_sku

string

None.

price_ae

decimal number

None.

saleprice_ae

decimal number

None.

price_sa

decimal number

None.

saleprice_sa

decimal number

None.

stock

integer

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "partner_sku": "sample string 1",
    "price_ae": 2.0,
    "saleprice_ae": 1.0,
    "price_sa": 3.0,
    "saleprice_sa": 1.0,
    "stock": 4
  },
  {
    "partner_sku": "sample string 1",
    "price_ae": 2.0,
    "saleprice_ae": 1.0,
    "price_sa": 3.0,
    "saleprice_sa": 1.0,
    "stock": 4
  }
]

application/xml, text/xml

Sample:
<ArrayOfNoonStockAndPriceModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SMS.WebApi.Common">
  <NoonStockAndPriceModel>
    <partner_sku>sample string 1</partner_sku>
    <price_ae>2</price_ae>
    <price_sa>3</price_sa>
    <saleprice_ae>1</saleprice_ae>
    <saleprice_sa>1</saleprice_sa>
    <stock>4</stock>
  </NoonStockAndPriceModel>
  <NoonStockAndPriceModel>
    <partner_sku>sample string 1</partner_sku>
    <price_ae>2</price_ae>
    <price_sa>3</price_sa>
    <saleprice_ae>1</saleprice_ae>
    <saleprice_sa>1</saleprice_sa>
    <stock>4</stock>
  </NoonStockAndPriceModel>
</ArrayOfNoonStockAndPriceModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ReturnResult
NameDescriptionTypeAdditional information
code

integer

None.

msg

string

None.

entity

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "code": 1,
  "msg": "sample string 2",
  "entity": {}
}

application/xml, text/xml

Sample:
<ReturnResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SMS.WebApi.Common">
  <code>1</code>
  <entity />
  <msg>sample string 2</msg>
</ReturnResult>