GET
/v1/data-files/productsReturns this company’s products as one file: a CSV, an Excel sheet or JSON, by name. With no products saved, the file has only its header row (or is an empty JSON list). The columns are id, then the fields POST /v1/products takes: name, description, sellerItemId, unitCode, unitPrice, priceBasis, vatCategory, vatRate. The CSV is separated by semicolons, in UTF-8 with a byte order mark. A cell starting with =, +, - or @ is written with a leading ', so a spreadsheet never runs it; an import takes the ' off again. The JSON is a list of products, each its id and fields. Any credential may read it.
Query parameters
- formatstring
The file's format. Absent, CSV.
One ofcsv,xlsx,json.
Status codes
| Status | Meaning |
|---|---|
200 |
|
400 |
The format is not one of csv, xlsx or json (invalid_format). |
401 |
No usable credential was sent (invalid_credentials). |
GET
/v1/data-files/productsExample
curl https://api.certinvo.com/v1/data-files/products \
-H "Authorization: Bearer $CERTINVO_API_KEY"const response = await fetch(`https://api.certinvo.com/v1/data-files/products`, {
headers: {
Authorization: `Bearer ${process.env.CERTINVO_API_KEY}`,
},
})
console.log(response.status, await response.json())import os
import requests
response = requests.get(
"https://api.certinvo.com/v1/data-files/products",
headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}"},
)
print(response.status_code, response.text)200
No response body.
Success response