Skip to content

Replace your offerings

View as Markdown

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-27

PUT /api/v1/catalog/offeringsSince 2026-09-27

Authentication

Secret key (Bearer)

Headers

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

Request body

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

Response 200

NameTypeRequiredValuesDescription
successbooleanyestrue
dataobjectyes
data.upsertedintegeryes
data.deletedintegeryes

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-004422The number of offerings exceeds the catalog limit.
CAT-006422Variable-price offerings require pre-authorization to be enabled.
CAT-010403The 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
  }
}