Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

An access token from the OAuth flow (eo_at_...). It lasts one hour; refresh it with the refresh token. See Authentication.

Headers

Idempotency-Key
string

A unique key (up to 255 printable ASCII characters). The same key from your app within 24 hours answers the first result again, with Idempotent-Replayed: true, instead of creating twice.

Maximum string length: 255

Body

application/json
name
string
required

One line, trimmed, with at least one visible character.

Maximum string length: 255
price
number
required

Up to 4 decimals. An amount that cannot be stored exactly is refused (rule precision).

Required range: 0 <= x <= 100000000
thumb
string
required

An https URL.

Maximum string length: 2048
slug
string

Unique among the store's products. Made from the name on create when left out.

Maximum string length: 255
Pattern: ^[a-zA-Z0-9-]+$
sku
string
Maximum string length: 255
external_sku
string

The product's code in an outside system.

Maximum string length: 255
description
string

HTML, cleaned before it is saved; see HTML descriptions. No limit of its own beyond the 50 KB of the product.

meta_description
string

One line.

Maximum string length: 1000
sale_price
number

Under price, or 0 for no sale.

Required range: 0 <= x <= 100000000
sale_end_date
string<date-time> | null

RFC 3339. null removes the end date.

images
string[]

https URLs, up to 2048 bytes each. Replaces the whole list.

Maximum array length: 20
position
integer
Required range: -1000000000 <= x <= 1000000000
hidden
boolean
quantity
integer

Sets the product's stock.

Required range: 0 <= x <= 1000000000
track_stock
boolean
disable_orders_for_no_stock
boolean
category_ids
string<uuid>[]

Categories of the store. Replaces the product's categories; [] removes them all.

Maximum array length: 50
options
object[]

Replaces every option of the product. Needs variants in the same request.

Maximum array length: 3
variants
object[]

The product's variants after the write. A variant with an id is updated, one without is created, and one left out is deleted. [] deletes them all.

Maximum array length: 100
is_skip_cart
boolean
buy_now_text
string

One line.

Maximum string length: 100
is_fixed_bottom_buy
boolean
is_one_page_checkout
boolean
is_fast_checkout
boolean
is_free_shipping
boolean
is_quantity_hidden
boolean
is_header_hidden
boolean
is_reviews_enabled
boolean
is_visitor_counter
boolean
visitor_counter_min
integer

At most visitor_counter_max.

Required range: 0 <= x <= 1000000
visitor_counter_max
integer
Required range: 0 <= x <= 1000000
is_countdown_timer
boolean
countdown_timer_hours
integer
Required range: 0 <= x <= 8760

Response

The product created. Location is its path.

product
object
required