# Replace your offerings

> Replaces the whole set of offerings that your system manages.

Source: https://docs.tappay.mn/reference/catalog/put-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.

`PUT /api/v1/catalog/offerings` 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 | | |

### 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`](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-004`](https://docs.tappay.mn/errors.md#CAT-004) | 422 | The number of offerings exceeds the catalog limit. |
| [`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/put-offerings/

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

```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.putOfferings({
  body: {
    offerings: [
      {
        offering_id: 'latte-m',
        name: 'Latte (M)',
        pricing: {
          model: 'FIXED',
          amount: 9000,
        },
        fulfillment_modes: ['PICKUP'],
      },
    ],
  },
});
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->putOfferings([
    'body' => [
        'offerings' => [
            [
                'offering_id' => 'latte-m',
                'name' => 'Latte (M)',
                'pricing' => [
                    'model' => 'FIXED',
                    'amount' => 9000,
                ],
                'fulfillment_modes' => ['PICKUP'],
            ],
        ],
    ],
]);
echo json_encode($result);
```

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

```json title="Response"
{
  "success": true,
  "data": {
    "upserted": 1,
    "deleted": 0
  }
}
```
