Update spare part(s) information
POST/partners/v1/spare-parts/attributes
Starter | Premium | Ultimate |
---|---|---|
✔️ | ✔️ | ✔️ |
Update all spare part(s) by replacing information with the provided information.
⚠️ The request is processed in background. It can takes up to several minutes to see the change if there is a lot of changes.
Omit the property if you do not want to make any changes to the attribute. For instance, the following request will only update the spare part name:
[
{
"id": {
"type": "externalReference",
"value": "c6d6f829-6c36-30cc-93be-d5202ca28aa4"
},
"name": "Rotor"
}
]
To unset an attribute, set it to null. For instance, the following request will remove the minimum stock:
[
{
"id": {
"type": "externalReference",
"value": "c6d6f829-6c36-30cc-93be-d5202ca28aa4"
},
"minimumStock": null
}
]
Unit price amount must be passed as an integer in the lowest unit of the currency. For example, EUR and USD have a cent unit, 10 EUR = 1000 cents, 10 USD = 1000 pennies.
For instance, if one spare part has a unit price of €35.00 and another has a unit price of $499.99, the request to update unit price should be:
[
{
"id": {
"type": "externalReference",
"value": "c6d6f829-6c36-30cc-93be-d5202ca28aa4"
},
"unitPrice": {
"amount": 3500,
"currency": "EUR"
}
},
{
"id": {
"type": "externalReference",
"value": "d8194f1f-050d-4f74-a592-2d541e6127aa"
},
"unitPrice": {
"amount": 49999,
"currency": "USD"
}
}
]
⚠️ A maximum of 10.000 updates 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)
Access denied