latestOpenAPI 3.0.02026-08-105585620.8 KB
18e2f2e178dd
Mockup Generator API
Retrieve product variant printfiles
List of printfiles available for products variants. Printfile indicates what file resolution should be used to create a mockup or submit an order.
<div class="alert alert-info"> This endpoint uses DTG as a default printing technique for products with more than one technique available. For products with DTG and more techniques available please specify the correct technique in query by using the `technique` parameter. For more information read the <a href="#tag/Examples/Mockup-Generator-API-examples">examples</a>. </div>get/mockup-generator/printfiles/{id}
Path parameters
idinteger required
Product ID.
Query parameters
orientation'horizontal' | 'vertical'
Optional orientation for wall art product printfiles. Allowed values: horizontal, vertical
techniquestring
Optional technique for product. This can be used in cases where product supports multiple techniques like DTG and embroidery
Headers
X-PF-Store-Idstring
Use this to specify which store you want to use (required only for account level token).
The store IDs can be retrieved with the Get basic information about stores endpoint.
Response
OK
Example response
{
"code": 200,
"result": {
"product_id": 71,
"available_placements": {
"front": "Front print",
"back": "Back print",
"label_outside": "Outside label"
},
"printfiles": [
{
"printfile_id": 1,
"width": 1800,
"height": 2400,
"dpi": 150,
"fill_mode": "fit"
}
],
"variant_printfiles": [
{
"variant_id": 4012,
"placements": {
"front": 1,
"back": 1,
"label_outside": 1
}
}
]
}
}