- API Reference
- ProxyMarket API
- Plans
Update stock and visibility
A light call that changes only stock and is_active. Use it when a modem goes down (stock: 0, is_active: false), comes back (stock: 1, is_active: true), or a port is free again after an order ends. Limit: 120 calls a minute.
PATCH
/integration/plans/stockRequest body application/json · required
[].external_idstringrequired
The plan to update.
[].stockintegerrequired
How many can be sold now.
[].is_activebooleanoptional
Show (true) or hide (false) the plan.
Responses
How many plans changed.
updatedintegeroptional
The X-API-Key header is missing or wrong. Check the key you saved when you created it.
An external_id is not one of your plans. Sync it first.
Too many calls. Wait, then retry with a growing delay.