A product can be quite complex and contain a lot of information. This example shows the minimum information required to be able to handle the inventory.
Below is the minimum information that is needed:
remoteId:
must be unique. This could be the internal id from the connected system. Make sure that to save the relation between remoteId and localId in the connected system. localId is the unique identifier within plugboard.
vatRatePercent:
is mandatory and must be provided
stock:
the available stock
stockType:
an enum see the API reference for available options
sku:
a unique SKU for the product
Endpoint:
POST /product
Example of a request body:
{
"remoteId": "x",
"vatRatePercent": "25",
"stock": "10",
"stockType":"stocked",
"sku":"z"
}
Make sure to save the localId from the response.
Response:
{
"localId": "0006463d034d595774bf76d0311a21be",
"remoteId": "x",
"....":"....."
}
Kommentarer
0 kommentarer
Artikeln är stängd för kommentarer.