Lectronz API Reference, Version 1

Products

JSON product representation

The product object represents a single product from a store, including all available options for that product. A product has one of the following statuses:

  • draft: The product is in draft state and only visible to the seller.
  • under_review: The seller has requested Lectronz to review this product before publication.
  • reviewed: The product has been approved for publication. It is not listed publicly yet but can already be purchased through a dedicated private link.
  • active: The product is publicly listed on Lectronz.
  • retired: The product is no longer available for sale.
  • pre_order: The product is part of a pre-order campaign (this feature is currently in beta-test).

This object has the following properties:

idinteger

Unique identifier of the product.

store_idinteger

Unique identifier of the store selling the product on Lectronz.

store_urlstring

No description provided

titlestring

Title of the product.

statusstring

Product status.

Valid values are: draft, under_review, reviewed, active, retired, pre_order.

pricenumber

Base price of the product, excluding options.

currencystring

Currency used for pricing.

Valid values are: EUR, USD.

slugstring

URL slug for the product.

stock_availablenumber

Product stock available, excluding further restrictions due to selected options.

total_soldnumber

Total number of units sold.

skustring, optional

Optional unique identifier used by the seller to track inventory. Only provided if present.

short_descriptionstring

A short description of the product (max 140 characters).

descriptionstring

A detailed description of the product in markdown format.

linksobject

No description provided

See details
documentationstring, optional

Link to documentation.

codestring, optional

Link to source code.

design_filesstring, optional

Link to design files (KiCad, Eagle, etc.).

schematicsstring, optional

Link to schematics.

bomstring, optional

Link to bill of materials.

imagesarray of string

List of URLs of images of the product.

thumbnailstring, optional

URL of product thumbnail.

weightnumber

Product weight.

weight_unitstring

Weight unit.

Valid values are: kg, gr, lb, oz.

hs_codestring, optional

Optional harmonized system code used throughout the export process for this product.

oshwa_uidstring, optional

Optional open-source hardware certificate identifier.

product_optionsarray of object

List of options available for the product.

See details
idinteger

Unique identifier for this product option.

namestring

Name of the production option.

explanationstring

Description of the product option.

display_ordernumber, optional

Ranking order of the product option as presented to the customer (lower goes first).

choicesarray of object

Available choices for the option.

See details
idinteger

Unique identifier for this choice.

namestring

Name of this choice.

pricenumber

Price added or subtracted to the product price when this choice is selected.

stock_availablenumber, optional

Optional. Stock available for this choice.

skustring, optional

Optional unique identifier used by the seller to track inventory. Only provided if present.

weightnumber

Weight added by this choice.

display_ordernumber, optional

Ranking order of the choice as presented to the customer (lower goes first).

published_atstring

UTC publication date of product in ISO 8601 format (i.e. when the product reached active status).

created_atstring

UTC creation date of the product in ISO 8601 format.

updated_atstring

UTC timestamp of last update of the product in ISO 8601 format.

urlstring

Product URL.

Get product details

Request

GET/api/v1/products/{id}

Response body (object)

JSON product representation

details
idinteger

Unique identifier of the product.

store_idinteger

Unique identifier of the store selling the product on Lectronz.

store_urlstring

No description provided

titlestring

Title of the product.

statusstring

Product status.

Valid values are: draft, under_review, reviewed, active, retired, pre_order.

pricenumber

Base price of the product, excluding options.

currencystring

Currency used for pricing.

Valid values are: EUR, USD.

slugstring

URL slug for the product.

stock_availablenumber

Product stock available, excluding further restrictions due to selected options.

total_soldnumber

Total number of units sold.

skustring, optional

Optional unique identifier used by the seller to track inventory. Only provided if present.

short_descriptionstring

A short description of the product (max 140 characters).

descriptionstring

A detailed description of the product in markdown format.

linksobject

No description provided

See details
documentationstring, optional

Link to documentation.

codestring, optional

Link to source code.

design_filesstring, optional

Link to design files (KiCad, Eagle, etc.).

schematicsstring, optional

Link to schematics.

bomstring, optional

Link to bill of materials.

imagesarray of string

List of URLs of images of the product.

thumbnailstring, optional

URL of product thumbnail.

weightnumber

Product weight.

weight_unitstring

Weight unit.

Valid values are: kg, gr, lb, oz.

hs_codestring, optional

Optional harmonized system code used throughout the export process for this product.

oshwa_uidstring, optional

Optional open-source hardware certificate identifier.

product_optionsarray of object

List of options available for the product.

See details
idinteger

Unique identifier for this product option.

namestring

Name of the production option.

explanationstring

Description of the product option.

display_ordernumber, optional

Ranking order of the product option as presented to the customer (lower goes first).

choicesarray of object

Available choices for the option.

See details
idinteger

Unique identifier for this choice.

namestring

Name of this choice.

pricenumber

Price added or subtracted to the product price when this choice is selected.

stock_availablenumber, optional

Optional. Stock available for this choice.

skustring, optional

Optional unique identifier used by the seller to track inventory. Only provided if present.

weightnumber

Weight added by this choice.

display_ordernumber, optional

Ranking order of the choice as presented to the customer (lower goes first).

published_atstring

UTC publication date of product in ISO 8601 format (i.e. when the product reached active status).

created_atstring

UTC creation date of the product in ISO 8601 format.

updated_atstring

UTC timestamp of last update of the product in ISO 8601 format.

urlstring

Product URL.

Update a product

This API call is currently limited to updating the value of the stock_available property of a product.

Request

PATCH/api/v1/products/{id}

Request body (object)

Request Body

details
stock_availablenumber

Number of units of the product available for sale.

Response body (object)

JSON product representation

details
idinteger

Unique identifier of the product.

store_idinteger

Unique identifier of the store selling the product on Lectronz.

store_urlstring

No description provided

titlestring

Title of the product.

statusstring

Product status.

Valid values are: draft, under_review, reviewed, active, retired, pre_order.

pricenumber

Base price of the product, excluding options.

currencystring

Currency used for pricing.

Valid values are: EUR, USD.

slugstring

URL slug for the product.

stock_availablenumber

Product stock available, excluding further restrictions due to selected options.

total_soldnumber

Total number of units sold.

skustring, optional

Optional unique identifier used by the seller to track inventory. Only provided if present.

short_descriptionstring

A short description of the product (max 140 characters).

descriptionstring

A detailed description of the product in markdown format.

linksobject

No description provided

See details
documentationstring, optional

Link to documentation.

codestring, optional

Link to source code.

design_filesstring, optional

Link to design files (KiCad, Eagle, etc.).

schematicsstring, optional

Link to schematics.

bomstring, optional

Link to bill of materials.

imagesarray of string

List of URLs of images of the product.

thumbnailstring, optional

URL of product thumbnail.

weightnumber

Product weight.

weight_unitstring

Weight unit.

Valid values are: kg, gr, lb, oz.

hs_codestring, optional

Optional harmonized system code used throughout the export process for this product.

oshwa_uidstring, optional

Optional open-source hardware certificate identifier.

product_optionsarray of object

List of options available for the product.

See details
idinteger

Unique identifier for this product option.

namestring

Name of the production option.

explanationstring

Description of the product option.

display_ordernumber, optional

Ranking order of the product option as presented to the customer (lower goes first).

choicesarray of object

Available choices for the option.

See details
idinteger

Unique identifier for this choice.

namestring

Name of this choice.

pricenumber

Price added or subtracted to the product price when this choice is selected.

stock_availablenumber, optional

Optional. Stock available for this choice.

skustring, optional

Optional unique identifier used by the seller to track inventory. Only provided if present.

weightnumber

Weight added by this choice.

display_ordernumber, optional

Ranking order of the choice as presented to the customer (lower goes first).

published_atstring

UTC publication date of product in ISO 8601 format (i.e. when the product reached active status).

created_atstring

UTC creation date of the product in ISO 8601 format.

updated_atstring

UTC timestamp of last update of the product in ISO 8601 format.

urlstring

Product URL.

Get the list of products in the store

Request

GET/api/v1/products

Response body (object)

Response Body

details
limitinteger

No description provided

offsetinteger

No description provided

total_countinteger

The total number of products.

productsarray of object

No description provided

See details
idinteger

Unique identifier of the product.

store_idinteger

Unique identifier of the store selling the product on Lectronz.

store_urlstring

No description provided

titlestring

Title of the product.

statusstring

Product status.

Valid values are: draft, under_review, reviewed, active, retired, pre_order.

pricenumber

Base price of the product, excluding options.

currencystring

Currency used for pricing.

Valid values are: EUR, USD.

slugstring

URL slug for the product.

stock_availablenumber

Product stock available, excluding further restrictions due to selected options.

total_soldnumber

Total number of units sold.

skustring, optional

Optional unique identifier used by the seller to track inventory. Only provided if present.

short_descriptionstring

A short description of the product (max 140 characters).

descriptionstring

A detailed description of the product in markdown format.

linksobject

No description provided

See details
documentationstring, optional

Link to documentation.

codestring, optional

Link to source code.

design_filesstring, optional

Link to design files (KiCad, Eagle, etc.).

schematicsstring, optional

Link to schematics.

bomstring, optional

Link to bill of materials.

imagesarray of string

List of URLs of images of the product.

thumbnailstring, optional

URL of product thumbnail.

weightnumber

Product weight.

weight_unitstring

Weight unit.

Valid values are: kg, gr, lb, oz.

hs_codestring, optional

Optional harmonized system code used throughout the export process for this product.

oshwa_uidstring, optional

Optional open-source hardware certificate identifier.

product_optionsarray of object

List of options available for the product.

See details
idinteger

Unique identifier for this product option.

namestring

Name of the production option.

explanationstring

Description of the product option.

display_ordernumber, optional

Ranking order of the product option as presented to the customer (lower goes first).

choicesarray of object

Available choices for the option.

See details
idinteger

Unique identifier for this choice.

namestring

Name of this choice.

pricenumber

Price added or subtracted to the product price when this choice is selected.

stock_availablenumber, optional

Optional. Stock available for this choice.

skustring, optional

Optional unique identifier used by the seller to track inventory. Only provided if present.

weightnumber

Weight added by this choice.

display_ordernumber, optional

Ranking order of the choice as presented to the customer (lower goes first).

published_atstring

UTC publication date of product in ISO 8601 format (i.e. when the product reached active status).

created_atstring

UTC creation date of the product in ISO 8601 format.

updated_atstring

UTC timestamp of last update of the product in ISO 8601 format.

urlstring

Product URL.