Replace your offerings
Replaces the whole set of offerings that your system manages. Offerings that you leave out are deleted, and offerings of other systems stay as they are.
Changes in 2026-09-27This operation is not available in this version.
PUT /api/v1/catalog/offeringsSince 2026-09-27
Authentication
Secret key (Bearer)
Headers
| Name | Type | Required | Values | Description |
|---|---|---|---|---|
TapPay-Version | string | no | ||
TapPay-Timestamp | string | no | ||
TapPay-Nonce | string | no | ||
TapPay-Signature | string | no |
Request body
| Name | Type | Required | Values | Description |
|---|---|---|---|---|
offerings | array<object> | yes | ||
offerings[].offering_id | string | yes | ||
offerings[].location_ids | array<string (uuid)> | no | ||
offerings[].category_ids | array<string> | no | ||
offerings[].name | string | yes | ||
offerings[].description | string | no | ||
offerings[].media | array<object> | no | ||
offerings[].media[].url | string (uri) | yes | ||
offerings[].media[].kind | string | yes | IMAGE | |
offerings[].attributes | array<object> | no | ||
offerings[].attributes[].label | string | yes | ||
offerings[].attributes[].value | string | yes | ||
offerings[].sort | integer | no | ||
offerings[].status | string | no | ACTIVE, HIDDEN | |
offerings[].pricing | object | yes | ||
offerings[].pricing.model | string | yes | FIXED, FROM, VARIABLE, ON_REQUEST | |
offerings[].pricing.amount | integer | yes | ||
offerings[].pricing.unit_label | string | no | ||
offerings[].pricing.compare_at_amount | integer | no | ||
offerings[].selection | object | no | ||
offerings[].selection.quantity | object | no | ||
offerings[].selection.quantity.min | integer | yes | ||
offerings[].selection.quantity.max | integer | yes | ||
offerings[].selection.quantity.step | integer | yes | ||
offerings[].selection.variants | array<object> | no | ||
offerings[].selection.variants[].variant_id | string | yes | ||
offerings[].selection.variants[].label | string | yes | ||
offerings[].selection.variants[].amount | integer | yes | ||
offerings[].selection.option_groups | array<object> | no | ||
offerings[].selection.option_groups[].group_id | string | yes | ||
offerings[].selection.option_groups[].label | string | yes | ||
offerings[].selection.option_groups[].min | integer | yes | ||
offerings[].selection.option_groups[].max | integer | yes | ||
offerings[].selection.option_groups[].options | array<object> | yes | ||
offerings[].selection.option_groups[].options[].option_id | string | yes | ||
offerings[].selection.option_groups[].options[].label | string | yes | ||
offerings[].selection.option_groups[].options[].price_delta | integer | yes | ||
offerings[].selection.option_groups[].options[].available | boolean | no | ||
offerings[].schedule | object | null | no | ||
offerings[].schedule.mode | string | yes | SLOT, DATE_RANGE, DATETIME | |
offerings[].schedule.duration_minutes | integer | no | ||
offerings[].schedule.min_lead_minutes | integer | no | ||
offerings[].schedule.max_advance_days | integer | yes | ||
offerings[].fulfillment_modes | array<string> | no | ||
offerings[].inputs | array<object> | no | ||
offerings[].inputs[].input_id | string | yes | ||
offerings[].inputs[].type | string | yes | text, number, phone, email, date, select, multi_select, boolean | |
offerings[].inputs[].label | string | yes | ||
offerings[].inputs[].hint | string | no | ||
offerings[].inputs[].required | boolean | no | ||
offerings[].inputs[].pattern | string | no | ||
offerings[].inputs[].min | number | no | ||
offerings[].inputs[].max | number | no | ||
offerings[].inputs[].options | array<string> | no | ||
offerings[].availability | object | no | ||
offerings[].availability.available | boolean | no | ||
offerings[].availability.stock | integer | no | ||
offerings[].availability.sale_hours | unknown | no | ||
offerings[].availability.sold_out_until | string | null | no | ||
offerings[].web_step | object | null | no | ||
offerings[].web_step.reason | string | yes | ||
offerings[].web_step.url | string (uri) | yes |
Response 200
| Name | Type | Required | Values | Description |
|---|---|---|---|---|
success | boolean | yes | true | |
data | object | yes | ||
data.upserted | integer | yes | ||
data.deleted | integer | yes |
Errors
| Code | Status | Message |
|---|---|---|
AUTH-001 | 401 | The API key is missing, invalid or revoked. |
EVT-206 | 401 | Production keys are not accepted in the sandbox. Use a sandbox key (sk_test_/pk_test_). |
EVT-207 | 401 | Sandbox keys are not accepted in production. Use a production key (sk_live_/pk_live_). |
AUTH-018 | 403 | The request came from an IP address that is not on the key's allowlist. |
AUTH-058 | 403 | The API key does not have the scope this operation requires. |
SIG-002 | 401 | The request timestamp is outside the allowed time window. |
SIG-003 | 401 | The request signature is missing or does not match. |
SIG-005 | 409 | This request nonce was already used. |
VAL-014 | 400 | The TapPay-Version header is not a known API version. |
BIZ-004 | 403 | The terminal is not active. |
BIZ-005 | 403 | The merchant account is not in a state that allows this request. |
CAT-005 | 422 | A catalog field or offering is not valid. |
CAT-008 | 404 | The catalog entry, location or offering was not found. |
CAT-004 | 422 | The number of offerings exceeds the catalog limit. |
CAT-006 | 422 | Variable-price offerings require pre-authorization to be enabled. |
CAT-010 | 403 | The offering is managed by another system. |
curl -sS -X PUT "https://api.tappay.mn/api/v1/catalog/offerings" \
-H "Authorization: Bearer sk_test_YOUR_SECRET_KEY" \
-H "TapPay-Version: 2026-09-27" \
-H "Content-Type: application/json" \
-d '{"offerings":[{"offering_id":"latte-m","name":"Latte (M)","pricing":{"model":"FIXED","amount":9000},"fulfillment_modes":["PICKUP"]}]}'import { TapPay } from '@tappay-mn/node';
const tappay = new TapPay({ apiKey: 'sk_test_YOUR_SECRET_KEY' });
const result = await tappay.catalog.putOfferings({
body: {
offerings: [
{
offering_id: 'latte-m',
name: 'Latte (M)',
pricing: {
model: 'FIXED',
amount: 9000,
},
fulfillment_modes: ['PICKUP'],
},
],
},
});
console.log(JSON.stringify(result));<?php
require 'vendor/autoload.php';
use TapPay\TapPay;
$tappay = new TapPay(['apiKey' => 'sk_test_YOUR_SECRET_KEY']);
$result = $tappay->catalog->putOfferings([
'body' => [
'offerings' => [
[
'offering_id' => 'latte-m',
'name' => 'Latte (M)',
'pricing' => [
'model' => 'FIXED',
'amount' => 9000,
],
'fulfillment_modes' => ['PICKUP'],
],
],
],
]);
echo json_encode($result);import json
import tappay
client = tappay.TapPay("sk_test_YOUR_SECRET_KEY")
result = client.catalog.put_offerings({
"body": {
"offerings": [
{
"offering_id": "latte-m",
"name": "Latte (M)",
"pricing": {
"model": "FIXED",
"amount": 9000,
},
"fulfillment_modes": ["PICKUP"],
},
],
},
})
print(json.dumps(result)){
"success": true,
"data": {
"upserted": 1,
"deleted": 0
}
}