List product imports
GET
/api/v1/commerce/products/imports
const url = 'https://digize.com/api/v1/commerce/products/imports';const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
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://digize.com/api/v1/commerce/products/imports \ --header 'x-api-key: <x-api-key>'The last 20 CSV imports of products, the newest first.
Needs the commerce:read permission.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Done
Media typeapplication/json
object
rows
required
Array<object>
object
id
required
string
status
required
string
filename
required
string
total
required
Products in the file.
number
processed
required
number
created
required
number
updated
required
number
failed
required
Products that weren’t imported.
number
problems
required
The first 100 problems: products left out, and images that weren’t copied.
Array<object>
object
line
required
The CSV line, the header being line 1.
number
handle
required
string
message
required
string
error
required
string | null
actorName
required
string
createdAt
required
string format: date-time
Example
{ "rows": [ { "status": "running" } ]}What was sent isn’t valid (invalid).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}No key, or one that’s unknown, off or expired.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}The key doesn’t have the permission this needs.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Nothing has that id (not_found).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Over the rate limit; see retry-after.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}