Skip to content

List products

GET /products

Your products, newest first, a page at a time. total counts every product that matches, on all pages.

Parameters

  • query text

    Products whose title, or a variant's SKU, contains this.

  • status active · draft

    Only products with this status.

  • availability in_stock · out_of_stock · available_soon · pre_order · discontinued · hidden

    Only products with a variant of this availability.

  • category id

    Only products in this category.

  • sort created_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.

  • cursor text

    The next_cursor of the previous page. Leave it out for the first page.

  • limit number

    How many items to return. 1 to 100. Default 50.

  • page number

    A numbered page, starting at 1. Use it instead of cursor when people jump between pages.

curl "https://app.reeflip.com/api/v1/products?status=active" \
  -H "Authorization: Bearer $REEFLIP_KEY"
Response 200 OK
{
  "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

  • query text

    The words to look for.

  • category text

    Only products in the category with this name, in any case.

  • status active · draft

    Only products with this status.

  • limit number

    How 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"
Response 200 OK
{
  "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_id id Required

    The 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"
Response 200 OK
{
  "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

  • title text Required

    The product's name.

  • description_html text

    Paragraphs with bold, italics, lists and links. Anything else is removed.

  • status active · draft

    Active products are shown in flipbooks; drafts are not.

  • product_type text

    Your own word for the kind of product, such as Chairs.

  • price_display show · hide · on_request

    Whether flipbooks show the price, hide it, or say "Price on request".

  • weight text

    A decimal, such as "4.5". Send weight_unit with 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"
      }
    ]
  }'
Response 201 Created
{
  "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_id id Required

    The product's id.

Body

  • version number

    The version you changed; leave it out to change whatever is there.

  • availability in_stock · out_of_stock · available_soon · pre_order · discontinued · hidden

    Sets every variant's availability at once. Leave variants out when sending it.

  • title text

    The product's name.

  • description_html text

    Paragraphs with bold, italics, lists and links. Anything else is removed.

  • status active · draft

    Active products are shown in flipbooks; drafts are not.

  • product_type text

    Your 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"
  }'
Response 200 OK
{
  "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_id id Required

    The 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"
Response 204 No Content

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_id id Required

    The 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"
Response 201 Created
{
  "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

  • products list Required

    Up 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"
        }
      }
    ]
  }'
Response 200 OK
{
  "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

  • updates list Required

    Up 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"
        }
      }
    ]
  }'
Response 200 OK
{
  "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

  • ids list of ids Required

    Up 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"
    ]
  }'
Response 200 OK
{
  "results": [
    {
      "id": "bc050757-597c-4ba7-a5f6-280dd5e742d7",
      "outcome": "deleted"
    }
  ]
}