# Marketplace Price Change API

### Product wholesale price setting

| Mező               | Kötelező? | Leírás                                        |
| ------------------ | --------- | --------------------------------------------- |
| `apiKey`           | Igen      | API key                                       |
| `sku`              | Igen      | SKU of the product                            |
| `wholesalePrice`   | Igen      | Wholesale price of the product (net)          |
| `recommendedPrice` | Igen      | Recommended retail price of the product (net) |

in case of **XML**:

Url: <https://app.webshippy.com/wspyapi/DropshippyPriceChange/xml>

Request:

```
<?xml version="1.0" encoding="utf-8"?>
<request>
<apiKey>api-key-comes-here</apiKey>
<products>
<sku>piros-polo</sku>
<wholesalePrice>1000</wholesalePrice>
<recommendedPrice>1700</recommendedPrice>
</products>
<products>
<sku>zold-sapka</sku>
<wholesalePrice>300</wholesalePrice>
<recommendedPrice>800</recommendedPrice>
</products>
</request>
```

Response (example):

```
<?xml version="1.0" encoding="utf-8"?>
<response>
  <status>success</status>
  <message>
    <elem>2 records were processed.</elem>
    <elem>2 updates successful.</elem>
  </message>
  <products>
    <elem>
      <sku>piros-polo</sku>
      <message>Update successful.</message>
    </elem>
    <elem>
      <sku>zold-sapka</sku>
      <message>Update successful.</message>
    </elem>
  </products>
</response>
```

in case of **JSON**:

Url: [https://app.webshippy.com/wspyapi/DropshippyPriceChange/](https://app.webshippy.com/wspyapi/DropshippyPriceChange/xml)json

Request:

```
{
 "apiKey": "api-key-comes-here",
 "products": [ 
 {
 "sku": "piros-polo",
 "wholesalePrice": "1000",
 "recommendedPrice": "1700" 
},
 {
 "sku": "zold-sapka",
 "wholesalePrice": "300",
 "recommendedPrice": "800"
  } ]
}
```

Response (example):

```
{
    "status": "success",
    "message": [
        "2 records were processed.",
        "2 updates successful."
    ],
    "products": [
        {
            "sku": "piros-polo",
            "message": "Update successful."
        },
        {
            "sku": "zold-sapka",
            "message": "Update successful."
        }
    ]
}
```

###

### Error messages that occur

Missing SKU. \
Property wholesalePrice missing. \
Property recommendedPrice missing. \
No price was provided. \
Product is not dropshipped or SKU doesn't exists. \
Incorrect price format, only positive numbers allowed!


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.apidoc-en.webshippy.com/webshippy-api-guide/dropshippy-price-change-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
