Products
Your products, with their options, variants and photos. To keep Reeflip in step with your own stock list, use Add or update by SKU.
Needs a key with Products access: Read for GET requests, Read and write for the rest.
List products
GET /products
Your products, newest first, a page at a time. total counts every product that matches, on all pages.
Parameters
querytextProducts whose title, or a variant's SKU, contains this.
statusactive · draftOnly products with this status.
availabilityin_stock · out_of_stock · available_soon · pre_order · discontinued · hiddenOnly products with a variant of this availability.
categoryidOnly products in this category.
sortcreated_desc · title_asc · title_desc · price_asc · price_desc · updated_desc …The order. Price uses each product's lowest price; titles ignore case. Default created_desc.
cursortextThe
next_cursorof the previous page. Leave it out for the first page.limitnumberHow many items to return. 1 to 100. Default 50.
pagenumberA numbered page, starting at 1. Use it instead of
cursorwhen people jump between pages.
curl "https://app.reeflip.com/api/v1/products?status=active" \ -H "Authorization: Bearer $REEFLIP_KEY"
{
"next_cursor": null,
"items": [
{
"id": "bc050757-597c-4ba7-a5f6-280dd5e742d7",
"title": "Oak dining chair",
"status": "active",
"product_type": "Chairs",
"price_display": "show",
"cover": {
"id": "bc050757-597c-4ba7-a5f6-280dd5e742d7",
"filename": "oak-chair.jpg",Find products
GET /products/find
Searches titles, product types, SKUs and category names, and says what tells each product apart: its prices, availability, photo and categories. Handy when you know a product only by its name.
A category name you don't have gets category_not_found, with did_you_mean listing the closest names. total counts every product the search finds.
Parameters
querytextThe words to look for.
categorytextOnly products in the category with this name, in any case.
statusactive · draftOnly products with this status.
limitnumberHow many products to return. 1 to 200. Default 50.
Other errors category_not_found
curl "https://app.reeflip.com/api/v1/products/find?query=oak%20chair" \ -H "Authorization: Bearer $REEFLIP_KEY"
{
"items": [
{
"id": "bc050757-597c-4ba7-a5f6-280dd5e742d7",
"title": "Oak dining chair",
"status": "active",
"product_type": "Chairs",
"price_min": "",
"price_max": "",
"availabilities": [
"in_stock"
],Get a product
GET /products/{product_id}
One product with its options, variants and photos.
Parameters
product_idid RequiredThe product's id.
Other errors product_not_found
curl https://app.reeflip.com/api/v1/products/9bea82de-f865-44d0-a499-eb252805f127 \
-H "Authorization: Bearer $REEFLIP_KEY"{
"id": "bc050757-597c-4ba7-a5f6-280dd5e742d7",
"title": "Oak dining chair",
"description_html": "<p>Solid oak, oiled finish.</p>",
"status": "active",
"product_type": "Chairs",
"price_display": "show",
"weight": "4.5",
"weight_unit": "kg",
"size": "45 x 52 x 81 cm",
"selling_unit": "1 chair",
"min_order_quantity": 1,Add a product
POST /products
Makes a product. Without variants it gets one variant, priced 0 and in stock.
Photos must be added to your business first (see Photos). The first photo is the cover. A product has as many photos as your plan allows; more get plan_limit.
Body
titletext RequiredThe product's name.
description_htmltextParagraphs with bold, italics, lists and links. Anything else is removed.
statusactive · draftActive products are shown in flipbooks; drafts are not.
product_typetextYour own word for the kind of product, such as Chairs.
price_displayshow · hide · on_requestWhether flipbooks show the price, hide it, or say "Price on request".
weighttextA decimal, such as "4.5". Send
weight_unitwith it.
Other errors photo_not_found category_not_found plan_limit
curl -X POST https://app.reeflip.com/api/v1/products \ -H "Authorization: Bearer $REEFLIP_KEY" \ -H "Content-Type: application/json" \ -d '{ "title": "Oak dining chair", "status": "active", "variants": [ { "sku": "CH-OAK-01", "price": "129.00", "availability": "in_stock" } ] }'
{
"id": "bc050757-597c-4ba7-a5f6-280dd5e742d7",
"title": "Oak dining chair",
"description_html": "<p>Solid oak, oiled finish.</p>",
"status": "active",
"product_type": "Chairs",
"price_display": "show",
"weight": "4.5",
"weight_unit": "kg",
"size": "45 x 52 x 81 cm",
"selling_unit": "1 chair",
"min_order_quantity": 1,Change a product
PATCH /products/{product_id}
Changes only the fields you send. options, variants and media are replaced whole, and changing options needs variants too. A variant sent with its id keeps it.
media that adds a photo must fit your plan's photos for each product, or the answer is plan_limit. A product keeps photos it got on a bigger plan: they can still be removed or put in another order.
Send version from when you read the product: if someone changed it since, you get product_conflict and nothing changes.
Parameters
product_idid RequiredThe product's id.
Body
versionnumberThe version you changed; leave it out to change whatever is there.
availabilityin_stock · out_of_stock · available_soon · pre_order · discontinued · hiddenSets every variant's availability at once. Leave
variantsout when sending it.titletextThe product's name.
description_htmltextParagraphs with bold, italics, lists and links. Anything else is removed.
statusactive · draftActive products are shown in flipbooks; drafts are not.
product_typetextYour own word for the kind of product, such as Chairs.
Other errors product_not_found product_conflict photo_not_found category_not_found plan_limit
curl -X PATCH https://app.reeflip.com/api/v1/products/9bea82de-f865-44d0-a499-eb252805f127 \ -H "Authorization: Bearer $REEFLIP_KEY" \ -H "Content-Type: application/json" \ -d '{ "version": 3, "status": "draft" }'
{
"id": "bc050757-597c-4ba7-a5f6-280dd5e742d7",
"title": "Oak dining chair",
"description_html": "<p>Solid oak, oiled finish.</p>",
"status": "active",
"product_type": "Chairs",
"price_display": "show",
"weight": "4.5",
"weight_unit": "kg",
"size": "45 x 52 x 81 cm",
"selling_unit": "1 chair",
"min_order_quantity": 1,Delete a product
DELETE /products/{product_id}
Deletes the product and takes it out of its categories and flipbooks. Its photos go too, unless something else uses them. This can't be undone.
Parameters
product_idid RequiredThe product's id.
Other errors product_not_found
curl -X DELETE https://app.reeflip.com/api/v1/products/9bea82de-f865-44d0-a499-eb252805f127 \
-H "Authorization: Bearer $REEFLIP_KEY"Nothing in the body.
Copy a product
POST /products/{product_id}/duplicate
Makes a draft copy called "Copy of …", with the same options, variants, photos and categories. In each category, the copy goes after the last product.
Parameters
product_idid RequiredThe product's id.
Other errors product_not_found plan_limit
curl -X POST https://app.reeflip.com/api/v1/products/9bea82de-f865-44d0-a499-eb252805f127/duplicate \
-H "Authorization: Bearer $REEFLIP_KEY"{
"id": "bc050757-597c-4ba7-a5f6-280dd5e742d7",
"title": "Oak dining chair",
"description_html": "<p>Solid oak, oiled finish.</p>",
"status": "active",
"product_type": "Chairs",
"price_display": "show",
"weight": "4.5",
"weight_unit": "kg",
"size": "45 x 52 x 81 cm",
"selling_unit": "1 chair",
"min_order_quantity": 1,Add or update by SKU
POST /products/upsert
The easiest way to keep Reeflip in step with your stock list. Send up to 100 products, each with a sku.
If a variant has that SKU, its product is updated: its product fields, and that variant's price and availability. If not, a new product is made with one variant of that SKU, and then title is needed. Sending the same list twice makes no copies.
Each product gets its own result: created, updated or invalid. An invalid one names the field to fix and a code: invalid_field, title_required, sku_ambiguous (two products have the SKU), category_not_found, photo_not_found or plan_limit.
When the plan has no room for every product the list would make, nothing is made or changed, and the answer is plan_limit.
To give a product photos, add them with its product_id (see Photos), or set them all at once, in order, with product.media. product.media keeps the photos your plan has room for on one product and leaves out the rest; the result's message then says how many were kept.
Body
productslist RequiredUp to 100, each with a
sku.
Other errors plan_limit
curl -X POST https://app.reeflip.com/api/v1/products/upsert \ -H "Authorization: Bearer $REEFLIP_KEY" \ -H "Content-Type: application/json" \ -d '{ "products": [ { "sku": "CH-OAK-01", "price": "119.00", "availability": "in_stock" }, { "sku": "TB-WAL-02", "price": "640.00", "product": { "title": "Walnut dining table" } } ] }'
{
"results": [
{
"sku": "CH-OAK-01",
"outcome": "updated",
"id": "6f1c2a90-3b7e-4d15-9a0c-81e4f2b6d7a3",
"field": "",
"code": "",
"message": ""
},
{
"sku": "TB-WAL-02",Change many products
POST /products/bulk-update
Up to 250 changes in one request, each like Change a product. Each gets its own result: updated, not_found, conflict (it changed since your version) or invalid (with the field and why). The others are still made when some fail.
Body
updateslist RequiredUp to 250, each with the product's
id.
curl -X POST https://app.reeflip.com/api/v1/products/bulk-update \ -H "Authorization: Bearer $REEFLIP_KEY" \ -H "Content-Type: application/json" \ -d '{ "updates": [ { "id": "6f1c2a90-3b7e-4d15-9a0c-81e4f2b6d7a3", "changes": { "version": 3, "status": "draft" } }, { "id": "b2d9e4c1-7a63-4f08-8e5b-2c91a0f4d6e8", "changes": { "price_display": "on_request" } } ] }'
{
"results": [
{
"id": "bc050757-597c-4ba7-a5f6-280dd5e742d7",
"outcome": "updated",
"field": "",
"message": "Do you make these in walnut?"
}
]
}Delete many products
POST /products/bulk-delete
Deletes up to 250 products, like Delete a product. Each gets deleted or not_found. This can't be undone.
Body
idslist of ids RequiredUp to 250 product ids.
curl -X POST https://app.reeflip.com/api/v1/products/bulk-delete \ -H "Authorization: Bearer $REEFLIP_KEY" \ -H "Content-Type: application/json" \ -d '{ "ids": [ "bc050757-597c-4ba7-a5f6-280dd5e742d7" ] }'
{
"results": [
{
"id": "bc050757-597c-4ba7-a5f6-280dd5e742d7",
"outcome": "deleted"
}
]
}