API reference · Area

Product templates

Work with made-to-order products and the options customers can choose.

30 endpointsStable throughout v1
Required permissionsChange the catalogRead the catalogDelete recordsSee costsEnter and correct costs

Find records

9 endpoints
GET/product-template-exports/{id}Get a template exportReturns an export’s status: queued, running, completed, failed or expired.Change the catalogGET/product-templatesList product templatesReturns active made-to-order product templates, or drafts with status, most recently changed first unless sort sets another order.Read the catalogGET/product-templates/importsList template importsThe store’s product template imports, newest first, as Products › Import lists them: the files people uploaded in OrderPilot and those API keys…Any ofRead the catalogChange the catalogGET/product-templates/imports/{id}Get a template importReturns an import’s status, counts, progress, up to 500 check issues with errors first, rows that could not be saved and, once finished, the templates…Any ofRead the catalogChange the catalogGET/product-templates/{id}Get a product templateReturns an active or draft product template with its options and status.Read the catalogGET/product-templates/{id}/costsSee a template’s costsWhat a template has cost, as the template editor’s cost cards read it: its supplier cost estimate, the last 25 deliveries received for it with their…Any ofSee costsEnter and correct costsGET/product-templates/{id}/online-optionsSee a template’s online optionsA template’s Online options page: how its options block on the online store shows each option (its look, the look’s settings, Hide online), the price…Read the catalogGET/product-templates/{id}/optionsList a template’s optionsA template’s options as the template editor’s Options card shows them: each attached option with its values (offered or not), this template’s price…Read the catalogGET/product-templates/{id}/warrantySee a template’s warrantyA template’s Warranty card: the product’s term a new order gets today and where it comes from, this template’s own term, the options whose term…Read the catalog

Create records

3 endpoints

Record actions

10 endpoints
POST/product-templates/imports/{id}/applyApply a template importStarts saving a validated import in batches, then publishes the templates once.Change the catalogPOST/product-templates/imports/{id}/confirmCheck an uploaded importChecks the uploaded file and returns 202 with the import marked validating; confirming again returns its current state.Change the catalogPOST/product-templates/imports/{id}/discardDiscard a template importDiscards an import in uploading, validating or validated, marks it expired and deletes its file.Change the catalogPOST/product-templates/{id}/activeActivate a template or set it to draftSets active: true to make a template sellable and send it to Shopify, or active: false to archive its Shopify product and remove it from the…Change the catalogPOST/product-templates/{id}/duplicateDuplicate a templateCopies a template’s options, prices and settings into a draft named “… (copy)”.Change the catalogPOST/product-templates/{id}/optionsAttach an option to a templateAttach an option of the library (field_id) or a bundle (bundle_id) to a template, as the Options card’s Add does.Change the catalogPOST/product-templates/{id}/options/{fieldId}/match-bundleMatch a template’s option to its bundleMake an option follow its bundle again, as the Options card’s Match bundle does: the values it offers, required and its rules come from the bundle…Change the catalogPOST/product-templates/{id}/options/{fieldId}/valuesAdd a value from a templateAdd a value to a dropdown option from a template, as the Options card’s Add value does: the value joins the shared option in the library (every…Change the catalogPOST/product-templates/{id}/pinPin or unpin a templateSets pinned: true to place a template at the top of template pickers and the Products list, or unpins it.Change the catalogPOST/product-templates/{id}/sync-retryRetry a template’s Shopify syncStarts an active template’s Shopify sync with sync_status set to syncing; read the template again for the result.Change the catalog

Update or delete records

8 endpoints
DELETE/product-templates/{id}Delete a templatePermanently deletes a template and archives its Shopify product so past orders still reference it.Change the catalogAndDelete recordsPATCH/product-templates/{id}/availability/units/{unitId}Set a unit’s prices and nameSets a finished unit’s prices by location and its name, changing only the fields supplied; use null to use the template’s price at that location or…Change the catalogDELETE/product-templates/{id}/bundles/{bundleId}Remove a bundle from a templateStop a template following a bundle, as the Options card’s Remove bundle does: options it brought that this template never changed come off, changed…Change the catalogPATCH/product-templates/{id}/online-optionsChange a template’s online optionsChange a template’s Online options, as the page saves them: the price line, Show lead time, Also offer Request a quote, the button labels, and per…Change the catalogPATCH/product-templates/{id}/optionsReorder or lock a template’s optionsReorder a template’s options (order) or lock the whole template against its bundles (locked), as the Options card does.Change the catalogPATCH/product-templates/{id}/options/{fieldId}Change a template’s optionChange one option on this template, as the Options card’s Manage dialog saves it: required, Starts as, which values it offers, each value’s price…Change the catalogDELETE/product-templates/{id}/options/{fieldId}Remove an option from a templateTake an option off a template, as the Options card’s Remove does: this template’s overrides for it go with it; the option stays in the library and on…Change the catalogPATCH/product-templates/{id}/warrantyChange a template’s warrantyChange a template’s Warranty card, as the editor saves it: its own product term (null follows the category and vendor again), an option’s own term and…Change the catalog

Stuck?

Chip, the OrderPilot beaver

Send us your request, the response and the time you sent it. Remove your key before sharing.

Email support[email protected]