CartItem Creation API

Hi, we have an app that generates 3D models according to client´s taste and we are conecting it to this API, how do you make sure the api is getting the right model (how to send it each time a new model is generated). I get how to send the model´s name and extension but not how to send the 3D file of the actual model.
“cartItems”:[
{
“toolID”:"",
“MyCartItemReference”:“some reference”,
“modelID”:"",
“modelFileName”:“kmds.stl”,
“fileUnits”:“mm”,
“fileScaleFactor”:“1”,
“materialID”:“035f4772-da8a-400b-8be4-2dd344b28ddb”,
“finishID”:“bba2bebb-8895-4049-aeb0-ab651cee2597”,
“quantity”:“100”,
“xDimMm”:“12”,
“yDimMm”:“12”,
“zDimMm”:“12”,
“volumeCm3”:“2.0”,
“surfaceCm2”:“100.0”,
“iMatAPIPrice”: “25.0”,
“mySalesPrice”: “26.0”,
}
],
“currency”:“EUR”
}

Hi,

To create a cart item for the right model, you should either specify the right model ID or the file name and the file location on your drive or server. Model ID is returned in the response of Model Upload API.

In other words, you can either upload the file first using the Model Upload API and then specify its ID in the Cart Item Creation API, or upload the file directly in the Cart Item Creation API by providing the right file name and file location.

You can find some examples here: i.materialise GitHub

And test the API here: Cart Item Creation API Demo Site