Download the product-import CSV template
const url = 'https://app.prokure.ca/api/v1/products/import/template';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://app.prokure.ca/api/v1/products/import/templateReturns an empty product-import CSV with the header row and one example, as a file download. The header row must carry all seven columns, in any order: oem_partner, name, model, description, commodity_codes, rep_status, source_url. They are matched by name, ignoring case and surrounding spaces. (optional) below describes the cell value, which may be left blank; the column itself is always required. oem_partner (required) - the manufacturer’s name; matched case-insensitively against manufacturers already on the account, and created and authorized when it is new. name (required) - the product name; at most 200 characters. model (optional) - at most 100 characters. Together with oem_partner and name it identifies the product: a repeat updates that row instead of adding a second one. description (optional) - at most 4000 characters. Quote the cell if it contains a comma or a line break. commodity_codes (optional) - semicolon-separated, at most 50 codes of at most 50 characters each. rep_status (optional) - carried or catalog; blank means carried. source_url (optional) - an http or https URL.
Responses
Section titled “Responses”The import template, as a CSV file.
Default Response
object
Example
{ "error": "unauthorized"}Default Response
object
Example
{ "error": "unauthorized"}Default Response
object
Example
{ "error": "unauthorized"}Default Response
object
Example
{ "error": "unauthorized"}