Import Stocks via Sheet
Developing
Request
Add the parameter Authorization
to Headers Example:Authorization: ********************
or
Add parameter in cookie access_token
Example:access_token: ********************
or
Body Params multipart/form-data
Request Code Samples
curl --location --request POST 'https://mock.apidog.com/m1/1052146-0-default/inventory/imports' \
--header 'Authorization: Bearer <token>' \
--form 'file=@"/Users/topzoft/Downloads/sku_100000_unique_cost_lt_sell.csv"' \
--form 'txn_date="{{$date.now|substr(0,length=10)}}"' \
--form 'outlet_id="a790701b40214f139e7b8d6755abbea6"'
Responses
application/json {
"token": "inv-42-7-abc123",
"dryRun": true,
"status": "COMPLETED",
"counts": {
"productsInserted": 0,
"productsUpdated": 12,
"pricesInserted": 5,
"pricesUpdated": 7,
"stockInserted": 20
},
"errorsSample": []
}
Modified at 2025-10-04 08:59:05