In this article, we’ll walk through how to use Postman to test and work with the WB API. Step by step, you’ll learn how to configure the tool correctly, import ready-made collections, manage environments, and send requests successfully. We’ll also cover more advanced Postman features — from automated tests and monitoring to CI/CD integration. This guide will help you set up your integration with the WB API and automate routine tasks.
In this section, we’ll go from installing Postman to sending your first successful request.
Our first goal is simple and clear — get the current stock levels for your Wildberries warehouse using Postman.
First, download and install Postman. It’s easy:
After installation, open Postman. You’ll see a simple, intuitive interface ready to use.
Tip: if you’d rather not install the desktop app, you can use Postman on the web directly in your browser.
Before sending requests, create a separate environment to manage tokens and other variables easily.
apiKey
— your authorization token obtained in your Wildberries Seller Account. You can also add baseUrl
— with this variable, you won’t need to manually paste the base URL for every request; Postman will do it automatically.Tip: you can easily switch between production and test accounts by simply changing the active environment.
The fastest way to start is to import the existing WB API documentation (Swagger file) directly into Postman.
https://dev.wildberries.ru/yaml/ru/02-products.yaml
into the input field — Postman will fetch the methods and offer to import them as a collection.Most WB API requests require token-based authorization. Let’s configure auth once at the collection level:
{{apiKey}}
All requests in the collection will now automatically use your authorization token from the environment.
You’re ready to send your first request.
{{baseUrl}}
where applicable and the Authorization header is set via the collection.Click Send.
In a second, you should see the server response — a list of products and their current stock levels at the warehouse.
Once you get a response, analyze it right in Postman:
If everything is set up correctly, the status should be 200 OK, and the JSON body will contain your current stock data.
After a successful request, it’s a good idea to save the example:
This way, you can quickly reproduce the request and share it with teammates.
Congrats! You’ve just sent your first request to the WB API using Postman and received a valid response. You no longer need to check stock levels manually in the Wildberries Seller Account — use this ready request instead; it takes just a few seconds.
In the next section, we’ll go further: advanced Postman features — automated tests, monitoring, and request automation — to make WB API integration even simpler and more convenient.
After you’ve successfully sent your first request to WB API and received current data, it’s time to move on. Postman isn’t just for manual requests — it’s a platform for running scheduled tests, monitoring stability, and even generating documentation.
In this section, we’ll cover advanced Postman features that help automate WB API tasks, reduce manual work, and lower the risk of errors.
Collections in Postman let you structure requests by purpose and functionality. Well-organized collections speed up your work and make it clear for the whole team.
Why it helps:
Environment variables let you manage multiple environments (production, test, dev) and switch between them without editing requests.
Useful variables to define:
Variable | Description | Example |
---|---|---|
apiKey | WB API authorization token | abcdef123456 |
warehouseId | Your warehouse identifier | 12345 |
base_url | WB API base URL | https://marketplace-api.wildberries.ru |
Switching environments changes request parameters in one click — perfect for quick testing and debugging.
Postman lets you write simple JavaScript tests that run automatically after each request. This helps catch issues early.
Examples of useful tests:
pm.test("Successful status (200)", function () {
pm.response.to.have.status(200);
});
pm.test("Stock data is returned", function () {
var jsonData = pm.response.json();
pm.expect(jsonData.length).to.be.above(0);
});
pm.test("Response time is under 1s", function () {
pm.expect(pm.response.responseTime).to.be.below(1000);
});
These tests run automatically every time you send a request, ensuring integration quality.
If you have many similar requests (e.g., bulk price updates for hundreds of products), use Collection Runner.
This can save hours of manual work.
Newman is the CLI runner for Postman — ideal for automation in CI pipelines. With Newman, you can run all tests from your collections as part of Continuous Integration.
A sample automation scenario:
Sample GitHub Actions workflow (YAML):
name: WB API Test
on: [push]
jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Newman
run: npm install -g newman
- name: Run Postman Collection
run: |
newman run wb-collection.json \
-e wb-production.env.json \
--reporters cli,html \
--reporter-html-export report.html
- uses: actions/upload-artifact@v4
with:
name: postman-report
path: report.html
Now, each time you update the collection, tests run automatically.
(Here you could add a CI/CD pipeline diagram with Newman and GitHub Actions.)
Monitoring lets you regularly check the availability and correctness of WB API. Schedule key requests (e.g., every 30 minutes) and get alerts when something breaks.
This helps you react quickly to any issues.
(For convenience, also consider using the API Status page if available.)
If WB API is temporarily down or rate-limiting, Postman Mock Servers can help. They simulate real API responses so you can continue development and testing without delays.
Using the features above, you can simplify, automate, and improve the quality of your WB API integration.
Next, we’ll briefly compare Postman with other tools so you can confirm it’s the best choice for most WB API scenarios.
Postman is one of the most popular API tools, but not the only one. In this section, we’ll look at well-known alternatives, compare them with Postman, and help you choose the right tool, especially for WB API work.
cURL is a command-line utility available on most systems, used to make HTTP requests.
Pros of cURL:
Cons of cURL:
Choose cURL when:
Choose Postman when:
Insomnia is a graphical tool similar to Postman, popular for its light and simple UI.
Pros of Insomnia:
Cons vs. Postman:
Choose Insomnia when:
Choose Postman when:
Thunder Client is a lightweight API client inside Visual Studio Code.
Pros:
Cons vs. Postman:
Choose Thunder Client when:
Choose Postman when:
SoapUI and JMeter are specialized tools (SOAP testing and load testing).
Pros:
Cons vs. Postman:
Choose SoapUI / JMeter when:
Choose Postman when:
Postman is ideal if you need an “all-in-one” solution: user-friendly UI, automation, testing, monitoring, and collaboration.
If you are:
then Postman is likely the most effective tool for your WB API use cases.
Next, we’ll review Postman’s limitations so you’re prepared for any situation.
Despite its advantages, Postman — like any tool — has limitations. Here’s what to watch for and how to address it when working with the WB API.
Postman is great for functional testing and everyday automation, but it’s not designed for heavy load testing (thousands of concurrent requests).
How to handle it:
Use specialized tools for load tests:
Use Postman for functionality; use the tools above for performance testing.
Since Postman v10, the Scratch Pad (local-only mode) is gone; an account and cloud sync are required. This can conflict with strict corporate security policies.
How to handle it:
Postman is built on Electron and can be resource-heavy, especially on older machines.
How to handle it:
Some features (advanced monitoring frequency, collection versioning, larger teams) require paid plans.
How to handle it:
Collections/environments use Postman’s JSON format. While open, migrating complex scripts to other tools may be time-consuming.
How to handle it:
Next, we’ll cover common mistakes when using WB API in Postman and how to fix them quickly.
As you use the WB API in Postman regularly, you’ll encounter some common errors. Here’s how to deal with the most frequent ones.
This occurs when your request fails authorization.
Possible causes:
Fix:
Correct header example:
Authorization: Bearer abcdef1234567890
Usually means the request body is in the wrong format or doesn’t match API spec.
Possible causes:
Fix:
Correct JSON format example:
{ "productId": 123456, "price": 990.5, "currency": "RUB" }
Indicates a server-side issue (temporary failure, overload, etc.).
Fix:
Simple retry script example:
if (pm.response.code === 500 && !pm.environment.get("retry")) {
pm.environment.set("retry", true);
postman.setNextRequest(pm.info.requestName);
} else {
pm.environment.unset("retry");
}
This will retry the request once on a 500 error.
File upload errors often stem from sending the request in the wrong format.
Fix:
file
) and set type to File.POST
and the URL matches the docs.Example:
POST https://suppliers-api.wildberries.ru/api/v3/orders/upload
key: file | value: select your file
Sometimes you need extra info (headers, response time, size).
How to find it:
You may encounter SSL/TLS issues.
Possible causes:
Fix:
In the next section, we’ll wrap up with final recommendations for daily use so WB API integration brings maximum value with minimal distraction.
Now that you know how to use Postman with WB API, don’t stop here. To make the most of it, here are concrete next steps and resources.
If you liked this article, check out our other materials. In upcoming posts, we’ll cover:
Use Postman and other tools to automate processes and grow your business. WB API is here to help.