Skip to content

Update an offering

View as Markdown

Changes some fields of one offering that your system manages, such as its price or availability. Fields that you do not send stay as they are.

Changes in 2026-09-27

PATCH /api/v1/catalog/offerings/{offering_id}Since 2026-09-27

Authentication

Secret key (Bearer)

Headers

NameTypeRequiredValuesDescription
TapPay-Versionstringno
TapPay-Timestampstringno
TapPay-Noncestringno
TapPay-Signaturestringno

Path parameters

NameTypeRequiredValuesDescription
offering_idstringyes

Request body

NameTypeRequiredValuesDescription
location_idsarray<string (uuid)>no
category_idsarray<string>no
namestringno
descriptionstringno
mediaarray<object>no
media[].urlstring (uri)yes
media[].kindstringyesIMAGE
attributesarray<object>no
attributes[].labelstringyes
attributes[].valuestringyes
sortintegerno
statusstringnoACTIVE, HIDDEN
pricingobjectno
pricing.modelstringyesFIXED, FROM, VARIABLE, ON_REQUEST
pricing.amountintegeryes
pricing.unit_labelstringno
pricing.compare_at_amountintegerno
selectionobjectno
selection.quantityobjectno
selection.quantity.minintegeryes
selection.quantity.maxintegeryes
selection.quantity.stepintegeryes
selection.variantsarray<object>no
selection.variants[].variant_idstringyes
selection.variants[].labelstringyes
selection.variants[].amountintegeryes
selection.option_groupsarray<object>no
selection.option_groups[].group_idstringyes
selection.option_groups[].labelstringyes
selection.option_groups[].minintegeryes
selection.option_groups[].maxintegeryes
selection.option_groups[].optionsarray<object>yes
selection.option_groups[].options[].option_idstringyes
selection.option_groups[].options[].labelstringyes
selection.option_groups[].options[].price_deltaintegeryes
selection.option_groups[].options[].availablebooleanno
scheduleobject | nullno
schedule.modestringyesSLOT, DATE_RANGE, DATETIME
schedule.duration_minutesintegerno
schedule.min_lead_minutesintegerno
schedule.max_advance_daysintegeryes
fulfillment_modesarray<string>no
inputsarray<object>no
inputs[].input_idstringyes
inputs[].typestringyestext, number, phone, email, date, select, multi_select, boolean
inputs[].labelstringyes
inputs[].hintstringno
inputs[].requiredbooleanno
inputs[].patternstringno
inputs[].minnumberno
inputs[].maxnumberno
inputs[].optionsarray<string>no
availabilityobjectno
availability.availablebooleanno
availability.stockintegerno
availability.sale_hoursunknownno
availability.sold_out_untilstring | nullno
web_stepobject | nullno
web_step.reasonstringyes
web_step.urlstring (uri)yes

Response 200

NameTypeRequiredValuesDescription
successbooleanyestrue
dataobjectyes
data.offering_idstringyes

Errors

CodeStatusMessage
AUTH-001401The API key is missing, invalid or revoked.
EVT-206401Production keys are not accepted in the sandbox. Use a sandbox key (sk_test_/pk_test_).
EVT-207401Sandbox keys are not accepted in production. Use a production key (sk_live_/pk_live_).
AUTH-018403The request came from an IP address that is not on the key's allowlist.
AUTH-058403The API key does not have the scope this operation requires.
SIG-002401The request timestamp is outside the allowed time window.
SIG-003401The request signature is missing or does not match.
SIG-005409This request nonce was already used.
VAL-014400The TapPay-Version header is not a known API version.
BIZ-004403The terminal is not active.
BIZ-005403The merchant account is not in a state that allows this request.
CAT-005422A catalog field or offering is not valid.
CAT-008404The catalog entry, location or offering was not found.
CAT-006422Variable-price offerings require pre-authorization to be enabled.
CAT-010403The offering is managed by another system.
curl -sS -X PATCH "https://api.tappay.mn/api/v1/catalog/offerings/latte-m" \
  -H "Authorization: Bearer sk_test_YOUR_SECRET_KEY" \
  -H "TapPay-Version: 2026-09-27" \
  -H "Content-Type: application/json" \
  -d '{"availability":{"available":false}}'
import { TapPay } from '@tappay-mn/node';

const tappay = new TapPay({ apiKey: 'sk_test_YOUR_SECRET_KEY' });
const result = await tappay.catalog.updateOffering({ offering_id: 'latte-m', body: { availability: { available: false } } });
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->updateOffering(['offering_id' => 'latte-m', 'body' => ['availability' => ['available' => false]]]);
echo json_encode($result);
import json
import tappay

client = tappay.TapPay("sk_test_YOUR_SECRET_KEY")
result = client.catalog.update_offering({"offering_id": "latte-m", "body": {"availability": {"available": False}}})
print(json.dumps(result))
{
  "success": true,
  "data": {
    "offering_id": "latte-m"
  }
}