Bulk Stock Movement
POST/partners/v1/spare-parts/movements/bulk
Starter | Premium | Ultimate |
---|---|---|
✔️ | ✔️ | ✔️ |
Update all spare parts stock (e.g. inventory) at once. Stock amount will replaced by the given quantity. If multiple spare parts exists with the same article code, then the stock will be replaced on every spare parts with that article code.
⚠️ The request is processed in background. It can takes up to several minutes to see the change if there is a lot of changes.
The spare part identifier can be provided in two way:
- as a simple string
- or a complex typed identifier
For instance, that format:
[
{
"id": "MW-417304e0-2ff0-410d-a7cd-de20439140c8"
}
]
is equivalent to:
[
{
"id": {
"type": "externalReference",
"value": "MW-417304e0-2ff0-410d-a7cd-de20439140c8"
}
}
]
Article code is automatically generated when a spare part is referenced on the CMMS. You can replace it by your own identifier in the UI or by using the API to update spare parts attributes.
⚠️ A maximum of 10.000 stock changes can be processed in a single request. You need to split in several requests if you have more changes.
Request
Responses
- 202
- 400
- 401
- 403
Request accepted (e.g. all changes will be processed as soon as possible)
Request contains invalid data or does not have all required data
Missing or invalid Api Key (e.g. revoked or non-existent)
Subscription plan does not allow to use that API