Skip to content

API reference

Download the customers as a file

Other routes API

GET/v1/data-files/customers

Returns this company’s newest customer list as one file: a CSV, an Excel sheet or JSON. With no customers saved, the file has only its header row (or is an empty JSON list). The CSV and the sheet have one row per customer. Each column is named with the API’s field name, a nested one dotted (address.city, delivery.to), and each fact a country’s rules ask of a buyer has a column facts.<name>. files is one cell, its ids separated by commas. 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 customers, as GET /v1/customers holds them. Any credential may read it.

Query parameters

  • formatstring

    The file's format. Absent, CSV.

    One of csv, 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/customers
Example
curl https://api.certinvo.com/v1/data-files/customers \
  -H "Authorization: Bearer $CERTINVO_API_KEY"
const response = await fetch(`https://api.certinvo.com/v1/data-files/customers`, {
  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/customers",
    headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}"},
)
print(response.status_code, response.text)
200
No response body.
Success response
GET
/v1/data-files/customers
Download the customers as a file
All
›AuthenticationRequiredBearerAuth

Provide your API key in the Authorization: Bearer <key> header. Keys are stored locally in your browser.

›Headers2
›Query Parameters1
›Code Snippet
curl -X GET "https://api.certinvo.com/v1/data-files/customers" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response

No request sent yet

Configure parameters and click Send to view the response.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close