Can the shop buy a single connector?
The first question comes before price or stock. If a customer orders one connector, can the retailer buy just one from its supplier?
In one real test, a supplier’s page showed a whole group of parts with a price beside each one. Every part had to be purchased in a pack. The price next to a part was its share of the pack price. Stockroom kept the products and their photos in its records, but left them out of the selection for single-item listings.
For the rest of our example, imagine the buyer has found a different connector that the supplier does sell singly. The next job is finding it again when the supplier updates the catalogue.
How products reach Stockroom
One supplier sent files of products, stock, prices and pictures. Others published this information on their websites. For those sites, ScraperAPI fetched the pages. Stockroom had a separate set of reading instructions for each supplier because their pages were laid out differently.
How does Stockroom find that part in a large catalogue?
Think of a supplier’s category page as a shelf: it shows many products together. A product page is the label for one item and usually has more detail. Reading the shelf first helps Stockroom decide which individual pages are worth opening.
Staff could try one category before committing to the whole catalogue. Stockroom saved the product codes and photo links from the first page. Then it asked for page two. If the supplier sent page one again, Stockroom stopped. Otherwise it could mistakenly report that it had checked products it had never seen.
Once staff selected the connector, Stockroom could fetch its product page for the details still missing. A saved description or photo could be used again. That matters because each fresh request to ScraperAPI can use some of the retailer’s monthly allowance.
- Count one categoryCheck the filter, result count and identifiers.
- Collect its pagesKeep products and photo links together.
- Open selected itemsFetch missing details for products staff want to sell.
How the catalogue check kept its place
Different suppliers used different addresses for page two. Stockroom checked that the chosen stock filter still applied. It could continue an interrupted collection from its next page and keep one product record when the same part appeared in two categories.
The page shows two now and eight later. What does the shop list?
Imagine the connector’s page says “2 ready to dispatch” and “8 due next week”. A person reading it would offer two for immediate delivery. Stockroom needed the same distinction in its instructions. Adding the two numbers together would promise ten parts before the supplier had them.
The price needed similar care. If the supplier charged less per connector when buying a box, a customer ordering one still had to be priced using the single-unit cost. ScraperAPI returned the page containing both prices. Stockroom chose which one applied to this sale.
| Supplier shows | What Stockroom can use |
|---|---|
| 2 ready now; 8 due later | Two available for immediate dispatch. |
| Lower price for a bulk order | Use the single-unit cost for a single-unit listing. |
| “In stock” with no count | Apply the configured unknown-quantity rule. |
| Blank quantity on an incomplete page | Keep the last verified reading and flag the check. |
What if the page only says “in stock”?
Those words confirm availability without giving a count. For suppliers that support it, the retailer can choose to offer one cautiously or wait for an exact figure. Neither choice turns “in stock” into proof that the supplier counted exactly one.
Who decides when the connector goes on sale?
A listing is the page where a customer can buy the item. Finding the connector on the supplier’s website did not put it on sale. Staff selected the products they wanted, reviewed the description and picture, chose the right shop category and checked the price for that shop.
One shop also needed a packed weight to calculate shipping. If the supplier had left it blank, staff could enter the measured weight. A group of identical packages could share one entry, while a heavier product could have its own value. The team could put an item aside if its weight was still unknown.
When the batch was ready, a member of staff approved it. Stockroom then showed which listings the shop had accepted. The buyer could follow the connector from selection to approval without starting a fresh search at every step.
What stayed under the buyer’s control
Staff could narrow the catalogue by buying price and exclude particular manufacturers. Stockroom kept supplier order codes separate from genuine barcodes. Each shop had its own selling-price rules and category choices.
Tomorrow the connector disappears. Has it sold out?
Suppose yesterday’s listing offered two. This morning the connector is missing from the first page of its category. It might have moved to the next page. It might appear in another category. Or the supplier might genuinely have sold out.
For suppliers where Stockroom uses category checks, it waits until it has read all the relevant pages before treating a missing item as unavailable. A partial check leaves the previous reading available for review. This protects the shop from taking down a product simply because a page failed to load.
There was another problem you could miss by eye: a supplier sometimes returned a catalogue for a different country. ScraperAPI could request the intended region. Stockroom still checked the country and currency in the reply before using the figures.
Two different pause buttons
Pausing new page requests lets staff examine copies they already have without spending more credits. A separate emergency control can set marketplace stock to zero while staff investigate. One controls spending on checks. The other controls what customers can order.
What happens when the supplier moves the information?
One supplier sometimes showed a table of related versions where Stockroom expected a normal product list. A person could still read it, but the program no longer knew where to look for the correct product. Treating the unreadable quantity as zero would have given the shop the wrong answer.
Stockroom had kept the page ScraperAPI returned. The team could open that exact copy, find the correct row and fix the reading instructions. They could test the fix on the saved copy while fresh requests were paused. They also checked its date so an old reply could never replace a newer stock reading.
What if a request was already underway?
A background request has a receipt identifying the work ScraperAPI accepted. Stockroom could check that receipt before starting another paid request. Staff could also reserve their remaining credits for items already on sale before searching for new ones.
What could a smaller shop borrow?
Pick one item you already check by hand and finish this sentence: “I can promise delivery today if …”. For our connector, the answer is that it can be bought singly and the supplier explicitly has it ready now.
Try the rule on a good page, a sold-out page and a page with the quantity missing. If you can explain what your shop should do in all three cases, you have a useful first project. Start with the five practice examples below before connecting anything to a live listing.
Try the five stock decisions · Ad