Skip to content

Update the catalog entry

View as Markdown

Changes the fields of your catalog entry that you may edit, such as the description, contacts and order switch. Send null to clear a field.

Changes in 2026-09-27

PATCH /api/v1/catalogSince 2026-09-27

Authentication

Secret key (Bearer)

Headers

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

Request body

NameTypeRequiredValuesDescription
descriptionstring | nullno
contact_phonestring | nullno
contact_emailstring | nullno
cover_urlstring | nullno
loyalty_infostring | nullno
extra_category_idsarray<string>no
order_enabledbooleanno
booking_enabledbooleanno
pausedbooleanno

Response 200

NameTypeRequiredValuesDescription
successbooleanyestrue
dataobjectyes
data.merchant_idstring (uuid)yes
data.merchant_codestringyes
data.statusstringyesACTIVE, PAUSED, INACTIVE
data.missingarray<string>yes
data.namestring | nullyes
data.merchant_namestring | nullyes
data.brand_namestring | nullyes
data.category_idsarray<string>yes
data.extra_category_idsarray<string>yes
data.descriptionstring | nullyes
data.contact_phonestring | nullyes
data.registered_phonestring | nullyes
data.contact_emailstring | nullyes
data.cover_urlstring | nullyes
data.logo_urlstring | nullyes
data.loyalty_infostring | nullyes
data.catalog_pausedbooleanyes
data.order_enabledbooleanyes
data.booking_enabledbooleanyes
data.opt_outobject | nullyes
data.opt_out.atstringyes
data.opt_out.sourcestringyesMERCHANT, PARTNER, NODE
data.blockedobject | nullyes
data.blocked.atstringyes
data.blocked.reasonstring | nullyes
data.owner_partner_idstring | nullyes
data.versionintegeryes
data.synced_atstring | nullyes
data.updated_atstring | nullyes
data.locationsarray<object>yes
data.locations[].location_idstring (uuid)yes
data.locations[].namestringyes
data.locations[].addressstring | nullyes
data.locations[].districtstring | nullyes
data.locations[].khoroostring | nullyes
data.locations[].locationobject | nullyes
data.locations[].location.latnumberyes
data.locations[].location.lngnumberyes
data.locations[].is_headbooleanyes
data.locations[].statusstringyes
data.locations[].visiblebooleanyes
data.locations[].hoursunknownno
data.locations[].accepting_ordersbooleanyes
data.locations[].busy_untilstring | nullyes
data.locations[].prep_minutesinteger | nullyes
data.locations[].order_terminal_idstring | nullyes
data.locations[].order_handlerstringyesNODE_COMMERCE, NODE_POS, MERCHANT_SYSTEM, MERCHANT_PORTAL
data.locations[].fulfillment_modesarray<string>yes
data.offering_countsobjectyes

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-007409The catalog entry was hidden by TapPay and cannot be resumed.
curl -sS -X PATCH "https://api.tappay.mn/api/v1/catalog" \
  -H "Authorization: Bearer sk_test_YOUR_SECRET_KEY" \
  -H "TapPay-Version: 2026-09-27" \
  -H "Content-Type: application/json" \
  -d '{"description":"Coffee and pastries","order_enabled":true}'
import { TapPay } from '@tappay-mn/node';

const tappay = new TapPay({ apiKey: 'sk_test_YOUR_SECRET_KEY' });
const result = await tappay.catalog.update({ body: { description: 'Coffee and pastries', order_enabled: true } });
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->update(['body' => ['description' => 'Coffee and pastries', 'order_enabled' => true]]);
echo json_encode($result);
import json
import tappay

client = tappay.TapPay("sk_test_YOUR_SECRET_KEY")
result = client.catalog.update({"body": {"description": "Coffee and pastries", "order_enabled": True}})
print(json.dumps(result))
{
  "success": true,
  "data": {
    "merchant_id": "YOUR_MERCHANT_ID",
    "merchant_code": "M-SANDBOX-01",
    "status": "ACTIVE",
    "missing": [],
    "name": "Sandbox Cafe",
    "merchant_name": "Sandbox Cafe LLC",
    "brand_name": "Sandbox Cafe",
    "category_ids": [
      "FOOD_CAFE"
    ],
    "extra_category_ids": [],
    "description": "Coffee and pastries",
    "contact_phone": null,
    "registered_phone": "+97699000000",
    "contact_email": "shop@example.com",
    "cover_url": null,
    "logo_url": null,
    "loyalty_info": null,
    "catalog_paused": false,
    "order_enabled": true,
    "booking_enabled": false,
    "opt_out": null,
    "blocked": null,
    "owner_partner_id": null,
    "version": 4,
    "synced_at": "2026-10-03T08:15:00.000Z",
    "updated_at": "2026-10-03T08:15:00.000Z",
    "locations": [
      {
        "location_id": "0192f8a4-1b2c-7d3e-8f40-5a6b7c8d9f01",
        "name": "Main branch",
        "address": "Peace Avenue 1, Ulaanbaatar",
        "district": null,
        "khoroo": null,
        "location": {
          "lat": 47.9186,
          "lng": 106.9177
        },
        "is_head": true,
        "status": "ACTIVE",
        "visible": true,
        "hours": {
          "weekly": [
            {
              "day": 1,
              "open": "09:00",
              "close": "21:00"
            }
          ],
          "exceptions": [],
          "closures": []
        },
        "accepting_orders": true,
        "busy_until": null,
        "prep_minutes": 15,
        "order_terminal_id": "YOUR_TERMINAL_ID",
        "order_handler": "MERCHANT_SYSTEM",
        "fulfillment_modes": [
          "PICKUP"
        ]
      }
    ],
    "offering_counts": {
      "MERCHANT_SYSTEM": 2
    }
  }
}