Using the Products API

API Product Management PIM Products API CRUD

The Products API (/api/v1/products) lets you list, read, create, update and delete the products in a business account's product master. This article covers each endpoint's parameters, the field names in responses, the body you send to create and update, the difference between PUT and PATCH, how to replace a product's variants, and how deletion works. If you are building a sync from your own system, Sync your product catalogue with ReceiptRoller gets you running faster.

Prerequisites

  • Reading needs the scope store.products.read; creating, updating and deleting need store.products.write (OAuth Scopes Reference and Availability).
  • The business account is on the Starter plan or higher.
  • Writes work only with a token issued to your app for the business account with no person behind it (an integration token), or a token for a person who holds the SuperUser (owner), OperationsManager or ProductManager role. Any other member's token gets 403.
  • Every store's prices and the cost prices are visible to integration tokens and to SuperUser, OperationsManager, ProductManager and FinanceManager. Other members see only the prices of the stores they are placed at, and cost prices read as 0.
  • Base URL: https://receiptroller.io

Endpoints

MethodPathPurposeScope
GET/api/v1/productsList and search productsstore.products.read
GET/api/v1/products/{productId}Read one product, with variantsstore.products.read
POST/api/v1/productsCreatestore.products.write
PATCH/api/v1/products/{productId}Update only the fields you sendstore.products.write
PUT/api/v1/products/{productId}Replace the whole product (variants are not changed)store.products.write
PUT/api/v1/products/{productId}/variantsReplace the product's list of variantsstore.products.write
DELETE/api/v1/products/{productId}Delete (soft delete)store.products.write
POST/api/v1/products/{productId}/imageUpload the cover imagestore.products.write

There are no bulk create or bulk update endpoints. Send several products one request at a time.

Choosing the business account

Every endpoint accepts the query parameter organizationId.

  • With a token issued for a business account, you can leave it out. If you send it, it must be that business account's ID; a different ID gets 403.
  • With a user token that names no business account, it is required, and the user must be a member of that business account (invitation accepted), or the call gets 403.

List products

curl -s "https://receiptroller.io/api/v1/products?organizationId={organizationId}" \
  -H "Authorization: Bearer {access_token}"

Returns every product that is not deleted, in a single response. There is no paging; totalCount is the number of products returned. Products are ordered by sortOrder, then by name.

QueryEffect
organizationIdThe business account (see above)
searchSearch across product name, SKU and JAN code. It goes through a full-text search engine, so it is not an exact SKU lookup
categoryExact category match
brandExact brand match

When you pass search, category or brand, every matching product is still returned (ordered by search relevance). To match products by SKU during a sync, don't use search; fetch the whole list once and match on your side.

{
  "organizationId": "{organizationId}",
  "products": [
    {
      "id": "{productId}",
      "organizationId": "{organizationId}",
      "productName": "House Blend M",
      "sku": "CFE-BLD-M",
      "janCode": "4912345000017",
      "category": "Drinks",
      "brand": "",
      "supplier": "",
      "description": "",
      "unit": "",
      "modelNumber": "",
      "series": "",
      "color": "",
      "size": "",
      "weight": "",
      "contentVolume": "",
      "material": "",
      "countryOfOrigin": "",
      "casePackSize": "",
      "minimumOrderQuantity": "",
      "leadTimeDays": "",
      "hsCode": "",
      "storageRequirements": "",
      "certifications": "",
      "internalMemo": "",
      "specification": "",
      "orderByCase": false,
      "b2becStockMode": "None",
      "allowSubscriptions": false,
      "pricing": {
        "basePrice": 480,
        "baseCostPrice": 120,
        "taxRate": 0.1,
        "storePrices": [
          { "storeId": "{storeId}", "storeName": "Main store", "price": 500, "costPrice": 120 }
        ]
      },
      "images": { "cover": "", "gallery": [] },
      "status": "Active",
      "sortOrder": 0,
      "variants": { "hasVariants": false, "options": [], "items": [] },
      "preOrder": { "isPreOrder": false, "releaseDate": null, "note": "" },
      "integrations": {
        "squareCatalogObjectId": "",
        "squareVariationId": "",
        "smaregiProductId": ""
      },
      "createdAt": "2026-04-01T09:00:00Z",
      "updatedAt": "2026-05-30T12:34:56Z"
    }
  ],
  "totalCount": 1
}
  • Prices and tax rate are under pricing, images under images (cover and gallery), pre-order settings under preOrder, and external POS IDs under integrations.
  • In the list, variants.items is always empty. For a product whose variants.hasVariants is true, read it by ID to get the items.
  • status is one of Active, Draft or Discontinued.
  • The B2B settings orderByCase and b2becStockMode and the brand catalog setting allowSubscriptions are returned at the top level, under the same names PUT takes.

Read one product

curl -s "https://receiptroller.io/api/v1/products/{productId}?organizationId={organizationId}" \
  -H "Authorization: Bearer {access_token}"

Returns one product in the same shape as the list. For a product with variants, variants.items holds each variant; the fields of an item are listed under "Variant items in GET responses" in the ProductDto reference. An ID that is not in the business account, or that belongs to a deleted product, returns 404 with {"error": "product not found in this business account"}.

The body for create and update

The body you send to POST and PUT has a different shape from the response. Fields are flat rather than nested, and list fields are sent as JSON strings. This is how they correspond:

Response fieldField to send
pricing.basePrice / pricing.baseCostPrice / pricing.taxRatebasePrice / baseCostPrice / taxRate
pricing.storePricesstorePricesJson (the array as a JSON string)
images.coverimageUrl
images.galleryimageUrlsJson (the URL array as a JSON string)
variants (hasVariants, options, items)Don't send; POST and PUT ignore them. Change variants with PUT /api/v1/products/{productId}/variants
preOrder.isPreOrder / preOrder.releaseDate / preOrder.noteisPreOrder / preOrderReleaseDate / preOrderNote
integrations.*squareCatalogObjectId / squareVariationId / smaregiProductId. On POST, only smaregiProductId is accepted
Everything else (productName, sku, janCode, category, specification, sortOrder, orderByCase, b2becStockMode, allowSubscriptions and so on)Same name

Every body field is listed in the ProductDto reference and the API reference. Each element of storePricesJson has storeId, storeName, price and costPrice; elements for stores that are not in this business account are dropped when the product is saved.

Create a product (POST)

curl -s -X POST "https://receiptroller.io/api/v1/products?organizationId={organizationId}" \
  -H "Authorization: Bearer {access_token}" \
  -H "Content-Type: application/json" \
  -d '{
    "productName": "Iced Tea",
    "sku": "TEA-ICE-001",
    "janCode": "4912345000024",
    "category": "Drinks",
    "description": "A summer-only cold tea.",
    "basePrice": 380,
    "baseCostPrice": 95,
    "taxRate": 0.08,
    "status": "Active"
  }'
  • Only productName is required. If it is empty you get 400 with {"error": "productName is required"}.
  • If you omit taxRate it is set to 0.1; if you omit status it is set to Active.
  • status must be Active, Draft or Discontinued. Any other value returns 400 with {"error": "invalid_status", "status": "...", "allowed": ["Active", "Draft", "Discontinued"]}.
  • Success is 200 (not 201) with the created product. Use its id for later updates.
  • productId is optional; leave it out and the server assigns one. If you send an ID that already exists in the business account, you get 409 with {"error": "product_exists", "productId": "...", "deleted": false} and nothing is written. A deleted product's ID stays taken too; then deleted is true.
  • A new product starts without variants. hasVariants, variantOptionsJson and variants in the body are ignored; add variants afterwards with PUT /api/v1/products/{productId}/variants.
  • Fields that only an import sets (Square, Shopify and brand catalog IDs and timestamps) are ignored. The only external ID POST accepts is smaregiProductId.
  • An organizationId in the body is ignored; the product is created in the business account resolved from the token and the query string.
  • A product with the same SKU as an existing one is not refused. Preventing duplicates is the caller's job.
  • If the business account sends its products to Square, a product with a price may also be created on the Square register.

Update only the fields you send (PATCH)

curl -s -X PATCH "https://receiptroller.io/api/v1/products/{productId}?organizationId={organizationId}" \
  -H "Authorization: Bearer {access_token}" \
  -H "Content-Type: application/json" \
  -d '{ "basePrice": 400, "status": "Active" }'

Changes only the fields you send and leaves everything else as it is. The updated product comes back with 200. PATCH accepts these fields:

productName, description, category, brand, supplier, sku, janCode, basePrice, baseCostPrice, taxRate, status

  • Use PATCH to change prices, names and the like. Everything PATCH does not accept, including per-store prices, images, variants, orderByCase, b2becStockMode and allowSubscriptions, stays as it is.
  • Sending an empty productName returns 400 with {"error": "productName cannot be empty"}. Leave the field out unless you are changing it.
  • status must be Active, Draft or Discontinued; anything else returns 400 with invalid_status. The product's current status is accepted even if it is something else.
  • With no body you get 400 with {"error": "request body required"}. A deleted product returns 404.

Replace the whole product (PUT)

PUT replaces the whole product record with the body. Fields you leave out take their defaults: text fields become empty, taxRate goes back to 0.1, status to Active, sortOrder to 0, orderByCase to false, b2becStockMode to None and allowSubscriptions to false. The cover image, the gallery, per-store prices and pre-order settings are cleared too. Two things are kept when you leave them out: the integrations IDs and the variants (see below).

Use PUT only for fields PATCH cannot change, such as per-store prices (storePricesJson) or image URLs. When you do, read the product by ID with the same token just before, map its values into the body using the table above, and send every field. GET returns orderByCase, b2becStockMode and allowSubscriptions as well, so copying them across keeps their stored values.

curl -s -X PUT "https://receiptroller.io/api/v1/products/{productId}?organizationId={organizationId}" \
  -H "Authorization: Bearer {access_token}" \
  -H "Content-Type: application/json" \
  -d '{
    "productName": "House Blend M",
    "sku": "CFE-BLD-M",
    "janCode": "4912345000017",
    "category": "Drinks",
    "brand": "",
    "supplier": "",
    "description": "",
    "unit": "",
    "modelNumber": "",
    "series": "",
    "color": "",
    "size": "",
    "weight": "",
    "contentVolume": "",
    "material": "",
    "specification": "",
    "countryOfOrigin": "",
    "casePackSize": "",
    "minimumOrderQuantity": "",
    "leadTimeDays": "",
    "hsCode": "",
    "storageRequirements": "",
    "certifications": "",
    "internalMemo": "",
    "basePrice": 480,
    "baseCostPrice": 120,
    "taxRate": 0.1,
    "storePricesJson": "[{\"storeId\":\"{storeId}\",\"storeName\":\"Main store\",\"price\":520,\"costPrice\":120}]",
    "imageUrl": "",
    "imageUrlsJson": "",
    "status": "Active",
    "sortOrder": 0,
    "isPreOrder": false,
    "preOrderReleaseDate": null,
    "preOrderNote": "",
    "orderByCase": false,
    "b2becStockMode": "None",
    "allowSubscriptions": false
  }'
  • productName is required on PUT as well. If it is empty you get 400 with {"error": "productName is required"} and nothing is changed.
  • status must be Active, Draft or Discontinued; anything else returns 400 with invalid_status. The product's current status is accepted even if it is something else, so a PUT built from a GET never fails on it.
  • specification is returned in responses, so copy it from the GET response into the body like any other field.
  • The integrations IDs (squareCatalogObjectId, squareVariationId, smaregiProductId) are not cleared when you leave them out or send them empty. squareVersion is ignored.
  • PUT never changes variants. hasVariants, variantOptionsJson and variants in the body are ignored, and the existing variants and options stay as they are. To change variants, use the endpoint in the next section.
  • An ID that is not in the business account, or that belongs to a deleted product, returns 404.

Replace the variants (PUT /variants)

A product's variants (sizes, colours and so on) have their own endpoint. The body is the product's complete list of variants, saved the same way as the product edit screen in ReceiptRoller saves it.

curl -s -X PUT "https://receiptroller.io/api/v1/products/{productId}/variants?organizationId={organizationId}" \
  -H "Authorization: Bearer {access_token}" \
  -H "Content-Type: application/json" \
  -d '{
    "variants": [
      {
        "variantId": "{variantId}",
        "sku": "TSH-WHT-M",
        "janCode": "4912345000031",
        "imageUrl": "",
        "attributes": { "Size": "M", "Color": "White" },
        "basePrice": 2500,
        "baseCostPrice": 900,
        "taxRate": 0.1,
        "storePrices": [
          { "storeId": "{storeId}", "storeName": "Main store", "price": 2400, "costPrice": 900 }
        ],
        "status": "Active",
        "sortOrder": 0
      },
      {
        "sku": "TSH-WHT-L",
        "janCode": "",
        "imageUrl": "",
        "attributes": { "Size": "L", "Color": "White" },
        "basePrice": 2500,
        "baseCostPrice": 900,
        "taxRate": 0.1,
        "storePrices": [],
        "status": "Active",
        "sortOrder": 1
      }
    ]
  }'
  • The body must contain the variants key. A body without it (such as {}), or with "variants": null, returns 400 {"error": "variants is required"} and nothing is changed.
  • An entry with a variantId updates that variant. Its Square and Shopify links are kept.
  • An entry without a variantId creates a new variant.
  • An existing variant that is not in the list is deleted. Only an explicit empty list ("variants": []) removes every variant.
  • On an update, send only the fields you change. A field you leave out keeps its current value. To keep a variant as it is, an entry of just {"variantId": "..."} is enough.
  • A new variant starts from the defaults in the table below for every field you leave out, and must have at least one attribute in attributes.
  • On an update, attributes may be left out. If you send it, it must not be empty. The product's options (variants.options in GET) and variants.hasVariants are derived from the saved variants' attributes.
  • storePrices is an array here, not a JSON string. Elements for stores outside the business account are dropped.
  • status is Active, Draft or Discontinued.
  • Success is 200 with the product, variants included, in the same shape as reading it by ID.
  • The body is checked before anything is written, so a 400 leaves the product unchanged.
FieldTypeNew variant (no variantId)Update (with variantId)
variantIdstringLeave out.Required. The variant to update.
sku / janCode / imageUrlstringOptional. Default empty.Optional. Kept if left out.
attributesobjectRequired. At least one attribute.Optional. Kept if left out; must not be empty if sent.
basePrice / baseCostPricenumberOptional. Default 0.Optional. Kept if left out.
taxRatenumberOptional. Default 0.10.Optional. Kept if left out.
storePricesarrayOptional. Default empty.Optional. Kept if left out.
statusstringOptional. Default Active.Optional. Kept if left out.
sortOrderintegerOptional. Default 0.Optional. Kept if left out.
ErrorCause
400 {"error": "variants is required"}The body has no variants key, or variants is null
400 {"error": "variant_attributes_required", "index": 0}The entry at index is a new variant without attributes, or sends attributes as an empty object
400 {"error": "invalid_status", "index": 0, "status": "...", "allowed": [...]}The entry at index has a status that is not allowed; status echoes the value sent
400 {"error": "variant_not_found", "index": 0, "variantId": "..."}The variantId does not belong to this product, or appears twice in the list
404The product is not in the business account, or has been deleted

Delete a product (DELETE)

curl -s -X DELETE "https://receiptroller.io/api/v1/products/{productId}?organizationId={organizationId}" \
  -H "Authorization: Bearer {access_token}"
  • Success is 204 No Content.
  • This is a soft delete. The record is kept and marked as deleted, and it drops out of the list and search. Past transaction line items still resolve to it.
  • For a product with variants, the variants are deleted as well.

After deletion the product answers like one that never existed: reading it by ID, PUT, PATCH, replacing variants, image upload and a second DELETE all return 404. Its ID stays taken, so a POST that supplies the same productId returns 409 with deleted: true.

Upload the cover image

curl -s -X POST "https://receiptroller.io/api/v1/products/{productId}/image?organizationId={organizationId}" \
  -H "Authorization: Bearer {access_token}" \
  -F "file=@photo.jpg"
  • Send the file as multipart/form-data under the field name file. JPEG, PNG or WebP (extensions .jpg, .jpeg, .png, .webp), up to 5 MB.
  • On success the product's images.cover changes to the new URL, and {"url", "contentType", "bytes"} comes back with 200.
  • The previous image file is not deleted; it simply stops being referenced.

External POS and e-commerce links

  • Products imported from Smaregi or Square carry the source system's ID in integrations.smaregiProductId or integrations.squareCatalogObjectId. Those IDs are used to match products on later syncs, so don't change them.
  • For a product linked to Square, changing its name, description, SKU, category or base price may also send the change to Square.
  • For a product imported from Shopify, changing the base price may also send the price to Shopify.
  • Both are sent in the background after the save completes, so the API response does not include the result of the external send.

Error responses

StatusCauseWhat to do
400 {"error": "..."}Empty productName on POST or PUT (productName is required) or on PATCH (productName cannot be empty), a status that is not allowed (invalid_status), no body on PATCH, a problem in a variants body (see the table above), or an image of the wrong type or sizeRead error and fix the request
400 (body with errors)Malformed JSON, or a non-number in a numeric fieldFix the type of the fields listed in errors
401 (no body)No token, or the token is invalid or expiredRefresh the token and try again
403 (no body)Missing scope, an organizationId that differs from the token's, not a member, or no role that allows writesCheck the scopes, the ID and the role (403/401 is returned)
404 {"error": "product not found in this business account"}No product with that ID in the business account, or the product has been deletedRe-read the list and check the ID
409 {"error": "product_exists", "productId": "...", "deleted": false}POST supplied a productId that already exists; deleted is true when it is a deleted product's IDUpdate the existing product, or create without productId

The Products API has no rate limit of its own. Even so, send bulk work one request at a time (Rate limiting and throttling).

Related articles

Published: 2026-06-01 Updated: 2026-11-14
About this topic
Developer API
See the feature
Tags
API (24) OAuth (18) Android (10) iOS (8) Webhook (5) App registration (4) Node.js (4) PIM (4) POS Integration (4) Quickstart (4)
Related articles