The API's Documentation said I should put in Body Params:
- restaurant_token:(required)string -> API Access Token providen by Tiller
- provider_token:(required)string -> API Access Token providen by Tiller
- inventory:(required)file -> Inventory import file
- clear:(booleantrue) -> remove existing items or not
My POST request is :
https://app.tillersystems.com/api/inventory/import
And my JSON is:
{
"provider_token": "xxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"restaurant_token": "xxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"inventory": "C://Mes Projets//N74_Interface_Sage_Tiller//Exe//Traitement//Articles_SAGE_20210826172848541.csv",
"clear": true
}
The request's answer is:
{
"import": false,
"message": "Missing \"inventory\" file field."
}