# Update an offering

> Changes some fields of one offering, such as its price or availability.

Source: https://docs.tappay.mn/reference/catalog/patch-offering/

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.

`PATCH /api/v1/catalog/offerings/{offering_id}` Since 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 | | |

### Path parameters

| Name | Type | Required | Values | Description |
| - | - | - | - | - |
| `offering_id` | string | yes | | |

### Request body

| Name | Type | Required | Values | Description |
| - | - | - | - | - |
| `location_ids` | array\<string (uuid)> | no | | |
| `category_ids` | array\<string> | no | | |
| `name` | string | no | | |
| `description` | string | no | | |
| `media` | array\<object> | no | | |
| `media[].url` | string (uri) | yes | | |
| `media[].kind` | string | yes | `IMAGE` | |
| `attributes` | array\<object> | no | | |
| `attributes[].label` | string | yes | | |
| `attributes[].value` | string | yes | | |
| `sort` | integer | no | | |
| `status` | string | no | `ACTIVE`, `HIDDEN` | |
| `pricing` | object | no | | |
| `pricing.model` | string | yes | `FIXED`, `FROM`, `VARIABLE`, `ON_REQUEST` | |
| `pricing.amount` | integer | yes | | |
| `pricing.unit_label` | string | no | | |
| `pricing.compare_at_amount` | integer | no | | |
| `selection` | object | no | | |
| `selection.quantity` | object | no | | |
| `selection.quantity.min` | integer | yes | | |
| `selection.quantity.max` | integer | yes | | |
| `selection.quantity.step` | integer | yes | | |
| `selection.variants` | array\<object> | no | | |
| `selection.variants[].variant_id` | string | yes | | |
| `selection.variants[].label` | string | yes | | |
| `selection.variants[].amount` | integer | yes | | |
| `selection.option_groups` | array\<object> | no | | |
| `selection.option_groups[].group_id` | string | yes | | |
| `selection.option_groups[].label` | string | yes | | |
| `selection.option_groups[].min` | integer | yes | | |
| `selection.option_groups[].max` | integer | yes | | |
| `selection.option_groups[].options` | array\<object> | yes | | |
| `selection.option_groups[].options[].option_id` | string | yes | | |
| `selection.option_groups[].options[].label` | string | yes | | |
| `selection.option_groups[].options[].price_delta` | integer | yes | | |
| `selection.option_groups[].options[].available` | boolean | no | | |
| `schedule` | object \| null | no | | |
| `schedule.mode` | string | yes | `SLOT`, `DATE_RANGE`, `DATETIME` | |
| `schedule.duration_minutes` | integer | no | | |
| `schedule.min_lead_minutes` | integer | no | | |
| `schedule.max_advance_days` | integer | yes | | |
| `fulfillment_modes` | array\<string> | no | | |
| `inputs` | array\<object> | no | | |
| `inputs[].input_id` | string | yes | | |
| `inputs[].type` | string | yes | `text`, `number`, `phone`, `email`, `date`, `select`, `multi_select`, `boolean` | |
| `inputs[].label` | string | yes | | |
| `inputs[].hint` | string | no | | |
| `inputs[].required` | boolean | no | | |
| `inputs[].pattern` | string | no | | |
| `inputs[].min` | number | no | | |
| `inputs[].max` | number | no | | |
| `inputs[].options` | array\<string> | no | | |
| `availability` | object | no | | |
| `availability.available` | boolean | no | | |
| `availability.stock` | integer | no | | |
| `availability.sale_hours` | unknown | no | | |
| `availability.sold_out_until` | string \| null | no | | |
| `web_step` | object \| null | no | | |
| `web_step.reason` | string | yes | | |
| `web_step.url` | string (uri) | yes | | |

### Response 200

| Name | Type | Required | Values | Description |
| - | - | - | - | - |
| `success` | boolean | yes | `true` | |
| `data` | object | yes | | |
| `data.offering_id` | string | yes | | |

### Errors

| Code | Status | Message |
| - | - | - |
| [`AUTH-001`](https://docs.tappay.mn/errors.md#AUTH-001) | 401 | The API key is missing, invalid or revoked. |
| [`EVT-206`](https://docs.tappay.mn/errors.md#EVT-206) | 401 | Production keys are not accepted in the sandbox. Use a sandbox key (sk_test\_/pk_test\_). |
| [`EVT-207`](https://docs.tappay.mn/errors.md#EVT-207) | 401 | Sandbox keys are not accepted in production. Use a production key (sk_live\_/pk_live\_). |
| [`AUTH-018`](https://docs.tappay.mn/errors.md#AUTH-018) | 403 | The request came from an IP address that is not on the key's allowlist. |
| [`AUTH-058`](https://docs.tappay.mn/errors.md#AUTH-058) | 403 | The API key does not have the scope this operation requires. |
| [`SIG-002`](https://docs.tappay.mn/errors.md#SIG-002) | 401 | The request timestamp is outside the allowed time window. |
| [`SIG-003`](https://docs.tappay.mn/errors.md#SIG-003) | 401 | The request signature is missing or does not match. |
| [`SIG-005`](https://docs.tappay.mn/errors.md#SIG-005) | 409 | This request nonce was already used. |
| [`VAL-014`](https://docs.tappay.mn/errors.md#VAL-014) | 400 | The TapPay-Version header is not a known API version. |
| [`BIZ-004`](https://docs.tappay.mn/errors.md#BIZ-004) | 403 | The terminal is not active. |
| [`BIZ-005`](https://docs.tappay.mn/errors.md#BIZ-005) | 403 | The merchant account is not in a state that allows this request. |
| [`CAT-005`](https://docs.tappay.mn/errors.md#CAT-005) | 422 | A catalog field or offering is not valid. |
| [`CAT-008`](https://docs.tappay.mn/errors.md#CAT-008) | 404 | The catalog entry, location or offering was not found. |
| [`CAT-006`](https://docs.tappay.mn/errors.md#CAT-006) | 422 | Variable-price offerings require pre-authorization to be enabled. |
| [`CAT-010`](https://docs.tappay.mn/errors.md#CAT-010) | 403 | The offering is managed by another system. |

Try it in the playground: https://docs.tappay.mn/reference/catalog/patch-offering/

```bash title="curl"
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}}'
```

```js title="Node.js"
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 title="PHP"
<?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);
```

```python title="Python"
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))
```

```json title="Response"
{
  "success": true,
  "data": {
    "offering_id": "latte-m"
  }
}
```
