Preview. This site is still being built. Features, prices and terms may change, and nothing here is a binding offer. Read the preview notice

Preview. Still being built; nothing here is a binding offer. Details

Products

12 routes. Paths are relative to https://api.intersink.com/v1.

All groups

Published products of a channel (paged)

GET/products

Public: no sign-in needed.

Parameters

NameTypeDescription
qstring, queryAt most 100 characters.
typestring, queryAt most 100 characters.
sortstring, queryOne of: "date_created", "-date_created", "name", "-name".
pagenumber, queryMinimum 1, maximum 10000.
limitnumber, queryMinimum 1, maximum 100.
x-refstring, header

Response

200. The payload in data is not described in the spec yet.

Create

POST/products

Needs a signed-in user (Bearer token or access_token cookie).

Request body application/json or multipart/form-data

FieldTypeDescription
channel_idstringChannel to list the product in (defaults to the token's channel). The caller must manage it.
namerequiredstringAt most 255 characters.
slugstringAt most 255 characters. Example: "blue-mug"
skustringAt most 100 characters.
descriptionstringAt most 20000 characters.
short_descriptionstringAt most 2000 characters.
pricestringUnit price, major units, max 2 decimals, below 1000000 Example: "249.50"
quantitynumberUnits in stock. Omit / null = stock not tracked (unlimited). Minimum 0, maximum 1000000.
statusstringRequested status; moderation may override it (never auto-publishes flagged text). One of: "draft", "published", "sold", "archived".
typestringAt most 100 characters.
codboolean
shippingboolean
modelstringAt most 255 characters.
keywordsstringAt most 2000 characters.

Response

201. The payload in data is of type object.

Find one

GET/products/{id}

Public: no sign-in needed.

Parameters

NameTypeDescription
idrequiredstring, path
x-refstring, header

Response

200. The payload in data is of type object.

Update

PATCH/products/{id}

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
idrequiredstring, path

Request body application/json or multipart/form-data

FieldTypeDescription
namestringAt most 255 characters.
slugstringAt most 255 characters. Example: "blue-mug"
skustringAt most 100 characters.
descriptionstringAt most 20000 characters.
short_descriptionstringAt most 2000 characters.
pricestringUnit price, major units, max 2 decimals, below 1000000 Example: "249.50"
quantitynumberUnits in stock. Omit / null = stock not tracked (unlimited). Minimum 0, maximum 1000000.
statusstringRequested status; moderation may override it (never auto-publishes flagged text). One of: "draft", "published", "sold", "archived".
typestringAt most 100 characters.
codboolean
shippingboolean
modelstringAt most 255 characters.
keywordsstringAt most 2000 characters.

Response

200. The payload in data is of type object.

Remove

DELETE/products/{id}

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
idrequiredstring, path

Response

200. The payload in data is not described in the spec yet.

Add up to 10 pictures to a product's gallery (multipart field `images`)

POST/products/{id}/images

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
idrequiredstring, path

Response

201. The payload in data is not described in the spec yet.

Remove one picture from a product's gallery

DELETE/products/{id}/images/{imageId}

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
idrequiredstring, path
imageIdrequirednumber, path

Response

200. The payload in data is not described in the spec yet.

Reorder a product's gallery: { order: [imageId, …] }

PATCH/products/{id}/images/order

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
idrequiredstring, path

Response

200. The payload in data is not described in the spec yet.

All products of a channel the caller manages

GET/products/manage

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
qstring, queryAt most 100 characters.
typestring, queryAt most 100 characters.
sortstring, queryOne of: "date_created", "-date_created", "name", "-name".
pagenumber, queryMinimum 1, maximum 10000.
limitnumber, queryMinimum 1, maximum 100.
channel_idstring, queryDefaults to the token's channel
statusstring, queryOne of: "draft", "published", "sold", "archived", "under_review", "rejected".

Response

200. The payload in data is not described in the spec yet.

Find by slug

GET/products/slug/{slug}

Public: no sign-in needed.

Parameters

NameTypeDescription
slugrequiredstring, path
x-refstring, header

Response

200. The payload in data is of type object.

Newest 4 published products of a channel

GET/products/trending

Public: no sign-in needed.

Parameters

NameTypeDescription
x-refstring, header

Response

200. data is object[].