Using the Products API
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 needstore.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),OperationsManagerorProductManagerrole. Any other member's token gets403. - Every store's prices and the cost prices are visible to integration tokens and to
SuperUser,OperationsManager,ProductManagerandFinanceManager. Other members see only the prices of the stores they are placed at, and cost prices read as0. - Base URL:
https://receiptroller.io
Endpoints
| Method | Path | Purpose | Scope |
|---|---|---|---|
| GET | /api/v1/products | List and search products | store.products.read |
| GET | /api/v1/products/{productId} | Read one product, with variants | store.products.read |
| POST | /api/v1/products | Create | store.products.write |
| PATCH | /api/v1/products/{productId} | Update only the fields you send | store.products.write |
| PUT | /api/v1/products/{productId} | Replace the whole product (variants are not changed) | store.products.write |
| PUT | /api/v1/products/{productId}/variants | Replace the product's list of variants | store.products.write |
| DELETE | /api/v1/products/{productId} | Delete (soft delete) | store.products.write |
| POST | /api/v1/products/{productId}/image | Upload the cover image | store.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.
| Query | Effect |
|---|---|
organizationId | The business account (see above) |
search | Search across product name, SKU and JAN code. It goes through a full-text search engine, so it is not an exact SKU lookup |
category | Exact category match |
brand | Exact 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 underimages(coverandgallery), pre-order settings underpreOrder, and external POS IDs underintegrations. - In the list,
variants.itemsis always empty. For a product whosevariants.hasVariantsistrue, read it by ID to get the items. statusis one ofActive,DraftorDiscontinued.- The B2B settings
orderByCaseandb2becStockModeand the brand catalog settingallowSubscriptionsare 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 field | Field to send |
|---|---|
pricing.basePrice / pricing.baseCostPrice / pricing.taxRate | basePrice / baseCostPrice / taxRate |
pricing.storePrices | storePricesJson (the array as a JSON string) |
images.cover | imageUrl |
images.gallery | imageUrlsJson (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.note | isPreOrder / 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
productNameis required. If it is empty you get400with{"error": "productName is required"}. - If you omit
taxRateit is set to0.1; if you omitstatusit is set toActive. statusmust beActive,DraftorDiscontinued. Any other value returns400with{"error": "invalid_status", "status": "...", "allowed": ["Active", "Draft", "Discontinued"]}.- Success is
200(not201) with the created product. Use itsidfor later updates. productIdis optional; leave it out and the server assigns one. If you send an ID that already exists in the business account, you get409with{"error": "product_exists", "productId": "...", "deleted": false}and nothing is written. A deleted product's ID stays taken too; thendeletedistrue.- A new product starts without variants.
hasVariants,variantOptionsJsonandvariantsin the body are ignored; add variants afterwards withPUT /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
organizationIdin 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,b2becStockModeandallowSubscriptions, stays as it is. - Sending an empty
productNamereturns400with{"error": "productName cannot be empty"}. Leave the field out unless you are changing it. statusmust beActive,DraftorDiscontinued; anything else returns400withinvalid_status. The product's current status is accepted even if it is something else.- With no body you get
400with{"error": "request body required"}. A deleted product returns404.
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
}'
productNameis required on PUT as well. If it is empty you get400with{"error": "productName is required"}and nothing is changed.statusmust beActive,DraftorDiscontinued; anything else returns400withinvalid_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.specificationis returned in responses, so copy it from the GET response into the body like any other field.- The
integrationsIDs (squareCatalogObjectId,squareVariationId,smaregiProductId) are not cleared when you leave them out or send them empty.squareVersionis ignored. - PUT never changes variants.
hasVariants,variantOptionsJsonandvariantsin 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
variantskey. A body without it (such as{}), or with"variants": null, returns400{"error": "variants is required"}and nothing is changed. - An entry with a
variantIdupdates that variant. Its Square and Shopify links are kept. - An entry without a
variantIdcreates 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,
attributesmay be left out. If you send it, it must not be empty. The product's options (variants.optionsin GET) andvariants.hasVariantsare derived from the saved variants'attributes. storePricesis an array here, not a JSON string. Elements for stores outside the business account are dropped.statusisActive,DraftorDiscontinued.- Success is
200with the product, variants included, in the same shape as reading it by ID. - The body is checked before anything is written, so a
400leaves the product unchanged.
| Field | Type | New variant (no variantId) | Update (with variantId) |
|---|---|---|---|
variantId | string | Leave out. | Required. The variant to update. |
sku / janCode / imageUrl | string | Optional. Default empty. | Optional. Kept if left out. |
attributes | object | Required. At least one attribute. | Optional. Kept if left out; must not be empty if sent. |
basePrice / baseCostPrice | number | Optional. Default 0. | Optional. Kept if left out. |
taxRate | number | Optional. Default 0.10. | Optional. Kept if left out. |
storePrices | array | Optional. Default empty. | Optional. Kept if left out. |
status | string | Optional. Default Active. | Optional. Kept if left out. |
sortOrder | integer | Optional. Default 0. | Optional. Kept if left out. |
| Error | Cause |
|---|---|
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 |
404 | The 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-dataunder the field namefile. JPEG, PNG or WebP (extensions.jpg,.jpeg,.png,.webp), up to 5 MB. - On success the product's
images.coverchanges to the new URL, and{"url", "contentType", "bytes"}comes back with200. - 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.smaregiProductIdorintegrations.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
| Status | Cause | What 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 size | Read error and fix the request |
400 (body with errors) | Malformed JSON, or a non-number in a numeric field | Fix the type of the fields listed in errors |
401 (no body) | No token, or the token is invalid or expired | Refresh 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 writes | Check 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 deleted | Re-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 ID | Update 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
-
Using the Store Information APIA guide to the REST API for fetching and updating a store's basic information (store name, store type, contact details, and address). Lets you implement a store information editing screen from token-authenticated clients such as staff apps.
-
Purchase and receipt data integrationExplains the structure of the purchase and receipt data ReceiptRoller handles, how to retrieve it, related scopes, Webhooks, and common use cases.
-
PosTransactionDto specification — field reference for transaction dataA complete field reference for PosTransactionDto, the canonical model for the transaction data ReceiptRoller handles. For each category — identifiers, dates, amounts, line items, payments, staff, status, and CRM linkage — it summarizes the field names, types, meanings, and how each POS vendor populates them. A reference for developers and external-system integrators. Also referenced from the Smaregi and Square mapping articles.
-
Using the Orders / OMS APIA guide to CRUD operations on the orders under a business account using ReceiptRoller's Orders / OMS API (/api/v1/orders). Covers creating, updating, transitioning status (confirm, process, cancel), and deleting orders, plus the flow for Android / iOS apps and server integrations.
-
Using the Business Hours APIA guide to ReceiptRoller's Business Hours API (/api/v1/stores/{storeId}/business-hours). Covers retrieving and updating per-day business hours, registering special business days (temporary closures and hour changes), configuring a store's workable hours (the upper bound for shift creation), and determining whether the store is currently open.