Bulk Product and Modifier Documentation
API version "1". This guide is for ISV integrators who create many products or modifiers in a merchant's Valor catalogue in one call.
1. Overview
Three operations are available on the existing e-commerce endpoint, POST deeplink/index.php, each chosen by txn_type:
| Operation | txn_type | What it does |
|---|---|---|
| Submit products | bulk_add_products | Accepts 1–1000 products and returns at once; they are created in the background |
| Submit modifiers | bulk_add_modifiers | Accepts 1–1000 modifiers and returns at once; they are created in the background |
| Check status and results | bulk_product_status | Returns the progress and, once finished, the outcome of every item |
Authenticate exactly as for addProduct: send appid, appkey and epi in the JSON body. Every request is limited to the merchant those credentials belong to; you can never see or change another merchant's catalogue or requests.
Every response uses the usual envelope: error_no, mesg, msg, desc. Success is error_no S00 with HTTP 200; every error is HTTP 400 with an error code (section 10).
2. Before you start
- One request at a time per merchant. While a merchant has a bulk request pending or processing (products or modifiers), a new submit for that merchant returns
G55. Retry after the current one finishes. - Modifiers first. A product's
selected_groupmay only name modifier groups that already exist for the merchant. Send the modifiers in abulk_add_modifiersrequest, wait for it to complete, then send the products. - Results are kept for 24 hours after a request finishes. After that the status call returns
G56.
3. Submit products (bulk_add_products)
bulk_add_products)| Field | Type | Required | Rule |
|---|---|---|---|
txn_type | string | yes | bulk_add_products |
api_version | string | yes | "1"; anything else is G57 |
appid, appkey, epi | string | yes | Your credentials, as for addProduct |
idempotency_key | string | yes | 1–64 letters, digits, - or _ (else G53); see section 8 |
products | array | yes | 1–1000 products (missing or empty is G52; more than 1000 is G49); field reference in section 6 |
The whole body may be at most 5 MB (G51); a body that is not valid JSON is G58. A modifiers field sent here is ignored.
Example:
{
"txn_type": "bulk_add_products",
"api_version": "1",
"appid": "<app id>",
"appkey": "<app key>",
"epi": "<epi>",
"idempotency_key": "catalog-2026-11-05-001",
"products": [
{
"product_code": "SKU0001",
"item_name": "Latte",
"description": "Hot latte",
"unit_cost": "3.75",
"inventory": "No",
"taxable": "Yes",
"category": "Coffee",
"is_active": 1,
"no_comm_uom": "Yes",
"is_food_product": "Yes"
},
{
"product_code": "SKU0002",
"item_name": "Coffee beans",
"description": "Beans 1 kg",
"unit_cost": "18.00",
"inventory": "No",
"taxable": "Yes",
"category": "Coffee",
"is_active": 1,
"no_comm_uom": "No",
"commodity_code": "COF001",
"unit_of_measure": "Kilogram",
"unit_of_measure_value": "1"
}
]
}Response (nothing has been created yet; processing starts in the background):
{
"error_no": "S00",
"mesg": "SUCCESS",
"msg": "SUCCESS",
"desc": "Request submitted successfully",
"bulk_request_id": "blk_7f3a91c2",
"status": "pending",
"replayed": false
}| Response field | Meaning |
|---|---|
bulk_request_id | The id to use with bulk_product_status |
status | pending, processing, completed or failed |
replayed | true when this idempotency key was already used with the same body; nothing new was submitted |
4. Submit modifiers (bulk_add_modifiers)
bulk_add_modifiers)The same as section 3, with txn_type bulk_add_modifiers and a modifiers array of 1–1000 modifiers instead of products (missing or empty is G61; more than 1000 is G50). A products field sent here is ignored. The response is the same.
5. Check status and results (bulk_product_status)
bulk_product_status)| Field | Type | Required | Rule |
|---|---|---|---|
txn_type | string | yes | bulk_product_status |
api_version | string | yes | "1" |
appid, appkey, epi | string | yes | Your credentials |
bulk_request_id | string | yes | From the submit response; another merchant's id, an unknown id or one finished more than 24 hours ago is G56 |
Response:
| Field | Meaning |
|---|---|
bulk_request_id, status | As in the submit response |
submitted_at, finished_at | UTC times; finished_at is null until the request finishes |
counts.products, counts.modifiers | Each { total, created, already_exists, failed }; only the request's own kind is filled, the other is all zero |
results | Present once status is completed or failed: one entry per item, in the order you sent them |
Each result has type (product or modifier), position (1-based, in the list you sent), product_code, item_name, outcome and, when the outcome is failed, error_no and error_desc.
6. Field reference
Each item is checked with the same rules, and gives the same error codes, as addProduct or addModifier. The line-item fields (no_comm_uom, commodity_code, unit_of_measure, unit_of_measure_value, is_food_product) are taken by the bulk calls only. A bad item fails on its own; the rest of the request goes on.
Products
| Field | Type | Required | Rule | Error |
|---|---|---|---|---|
product_code | string | yes | 1–12 of A-Z a-z 0-9 @ # | G08 missing, G26 invalid |
item_name | string | yes | Up to 50 characters, no < or > | G09 |
description | string | yes | Up to 50 characters, no < or > | G28 |
unit_cost | string or number | yes | See section 7 | G21, G34 |
quantity | integer | when inventory is Yes | 1–99999 when inventory is Yes; omit or 0 when No | G10, G25 |
inventory | string | yes | Yes or No | G39 |
taxable | string | yes | Yes or No | G37 |
is_active | integer | yes | 0 or 1 | G38 |
precedence | integer | no | 0–99999 | G27 |
category | string | yes | 1–40 letters and digits | G35 |
no_comm_uom | string | yes | Yes or No. Yes: the item has no commodity code or unit of measure, and the next three fields are ignored | G63 |
commodity_code | string | when no_comm_uom is No | 1–12 letters and digits, no spaces or special characters | G65 missing, E96 invalid |
unit_of_measure | string | when no_comm_uom is No | Up to 30 characters, any characters (< and > included). A standard unit (gram, kilogram, centimeter, meter, liter, milliliter, pound, each; matched exactly, letter case included) is saved as that unit; any other label, including a standard name in another letter case, is saved as the merchant's own unit (Inventory > Settings > Unit Of Measure), which is added if it isn't there already | G66 |
unit_of_measure_value | string or number | when no_comm_uom is No | Greater than 0 and at most 9999999999.99, up to 2 decimals | G67 |
is_food_product | string | no | Empty, Yes or No; empty means No | G64 |
Modifiers
| Field | Type | Required | Rule | Error |
|---|---|---|---|---|
item_name | string | yes | Up to 50 characters, no < or > | G09 |
product_code | string | no | 1–12 of A-Z a-z 0-9 @ #; the item name is used when omitted | G26 |
description | string | yes | Up to 250 characters | G28 |
unit_cost | string or number | yes | See section 7 | G21, G34 |
quantity | integer | no | 0–99999 | G25 |
inventory | string | yes | Yes or No | G39 |
taxable | string | yes | Yes or No | G37 |
is_active | integer | yes | 0 or 1 | G38 |
precedence | integer | yes | 0–99999 | G27 |
category | string | yes | 1–40 letters, digits and spaces | G35 |
group_name | string | yes | Up to 250 characters, no < or >; a modifier without a group cannot be offered by a product | A86 |
no_comm_uom | string | yes | As for products | G63 |
commodity_code | string | when no_comm_uom is No | As for products | G65 missing, E96 invalid |
unit_of_measure | string | when no_comm_uom is No | As for products | G66 |
unit_of_measure_value | string or number | when no_comm_uom is No | As for products | G67 |
Modifiers do not take is_food_product.
7. Amounts
unit_cost may be a JSON string ("3.75") or a JSON number (3.75). It must be greater than zero (else G21) and have at most 6 digits before and 2 after the decimal point (else G34). It is stored as whole cents exactly as you wrote it, never rounded. Forms such as 1e3, +12.99 or values with spaces are refused with G34.
8. Idempotency and retries
- Choose a new
idempotency_keyfor each new upload (for example a date and a counter). - If you are not sure a submit reached us (a timeout, a dropped connection), send exactly the same body with the same key. Within 24 hours you get the original
bulk_request_idandreplayed: true, and nothing is submitted twice. - The same key with a different body is
G54. G55means another request for this merchant is still running: wait and retry; do not change the key.- To fix failed items, send a new request (new key) with the corrected items; items already in the catalogue come back as
already_exists, never as duplicates.
9. Outcomes
| Outcome | Meaning |
|---|---|
created | The item was added to the catalogue |
already_exists | The merchant already has this product code (products) or this modifier code or name (modifiers); nothing was changed |
failed | The item was not created; error_no and error_desc say why |
An item that repeats an earlier item of the same request fails with G59. If processing stops and cannot be finished, the request ends failed and every item not processed fails with G60. If an item could not be saved, it fails with G62: send it again in a new request.
10. Error codes
| Code | Text | Where |
|---|---|---|
G49 | TOO MANY PRODUCTS, MAXIMUM IS 1000 | submit products |
G50 | TOO MANY MODIFIERS, MAXIMUM IS 1000 | submit modifiers |
G51 | REQUEST BODY TOO LARGE, MAXIMUM IS 5 MB | submit |
G52 | PRODUCT LIST IS REQUIRED | submit products |
G53 | INVALID IDEMPOTENCY KEY | submit |
G54 | IDEMPOTENCY KEY ALREADY USED WITH A DIFFERENT REQUEST | submit |
G55 | A BULK REQUEST IS ALREADY IN PROGRESS, RETRY LATER | submit |
G56 | BULK REQUEST NOT FOUND OR EXPIRED | status |
G57 | UNSUPPORTED API VERSION | all |
G58 | INVALID REQUEST BODY | all |
G61 | MODIFIER LIST IS REQUIRED | submit modifiers |
G08 | PRODUCT CODE IS REQUIRED | per item |
G09 | INVALID ITEM NAME | per item |
G10 | PRODUCT QUANTITY IS REQUIRED AND ALLOWED MAX 5 CHAR INTEGER ONLY | per item |
G21 | INVALID PRODUCT AMOUNT | per item |
G25 | INVALID PRODUCT QTY | per item |
G26 | INVALID PRODUCT CODE | per item |
G27 | PRECEDENCE ALLOWED MAX 5 CHAR INTEGER ONLY | per item |
G28 | INVALID DESCRIPTION | per item |
G34 | AMOUNT EXCEEDED | per item |
G35 | INVALID CATEGORY | per item |
G37 | TAX SHOULD BE ALLOWED YES OR NO | per item |
G38 | IS ACTIVE SHOULD BE ALLOWED 0 OR 1 | per item |
G39 | INVENTORY SHOULD BE ALLOWED YES OR NO | per item |
G41 | INVALID SELECTED GROUP | per item |
A86 | INVALID MODIFIER GROUP NAME | per item |
G59 | DUPLICATE IN THIS REQUEST | per item |
G60 | PROCESSING DID NOT COMPLETE | per item |
G62 | ITEM COULD NOT BE SAVED, PLEASE RESEND | per item |
G63 | NO_COMM_UOM MUST BE YES OR NO | per item |
G64 | IS_FOOD_PRODUCT MUST BE YES OR NO | per item |
G65 | COMMODITY CODE IS REQUIRED | per item |
E96 | INVALID COMMODITY CODE | per item |
G66 | INVALID UNIT OF MEASURE | per item |
G67 | INVALID UNIT OF MEASURE VALUE | per item |
G68 | UNIT OF MEASURE COULD NOT BE ADDED (a new merchant unit could not be saved; the item is not created) | per item |
Authentication failures return the same codes addProduct returns.
11. Merchant e-mail
When a request finishes, the merchant receives one e-mail at the address on file for their account: the request reference, the times, the counts, and the failed items with their codes (up to 200; beyond that the e-mail gives the number of further failures, and you can see them all with the status call). If processing stopped, the e-mail says so. When the merchant has no address on file, no e-mail is sent; your results are unaffected.
12. Limits summary
| Limit | Value |
|---|---|
| Products per request | 1–1000 |
| Modifiers per request | 1–1000 |
| Request body | 5 MB |
| Idempotency key | 1–64 of letters, digits, -, _ |
| Requests in progress per merchant | 1 |
| Results kept after finishing | 24 hours |
| Failures listed in the merchant e-mail | 200 |
