> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mercurjs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Batch Create Offers

> Create up to 100 offers for a seller in one request.

Creates multiple offers on behalf of a seller. The authenticated admin user is recorded as the creator.

## Body parameters

**seller\_id** `string` *required*

ID of the seller the offers belong to.

**offers** `object[]` *required*

The offers to create, between 1 and 100.

**properties**

**sku** `string` *required*

The offer's SKU.

**variant\_id** `string` *required*

ID of the product variant to offer.

**shipping\_profile\_id** `string` *required*

ID of the seller's shipping profile.

**prices** `object[]` *required*

Offer prices, at least one.

**properties**

**amount** `number` *required*

The price amount.

**currency\_code** `string` *required*

The price currency.

**min\_quantity** `number`

Minimum quantity the price applies to.

**max\_quantity** `number`

Maximum quantity the price applies to.

**rules** `object`

Price rules as attribute-value pairs.

**inventory\_items** `object[]` *required*

Inventory items backing the offer, at least one.

**properties**

**title** `string`

The inventory item's title.

**sku** `string`

The inventory item's SKU.

**required\_quantity** `number` (default: 1)

Quantity required per unit sold.

**stock\_levels** `object[]`

Initial stock levels.

**properties**

**location\_id** `string` *required*

The stock location's ID.

**stocked\_quantity** `number` *required*

Quantity in stock at the location.

**ean** `string`

The offer's EAN.

**upc** `string`

The offer's UPC.

**metadata** `object`

Custom key-value data.

## Response

**offers** `object[]`

**properties**

**id** `string`

The offer's ID.

**seller\_id** `string`

ID of the seller who owns the offer.

**variant\_id** `string`

ID of the offered product variant.

**shipping\_profile\_id** `string`

ID of the offer's shipping profile.

**sku** `string`

The offer's SKU.

**prices** `object[]`

The offer's prices.

**inventory\_items** `object[]`

The offer's linked inventory items.

```bash cURL theme={null}
curl -X POST 'http://localhost:9000/admin/offers/batch' \
  -H 'Authorization: Bearer <token>' \
  -H 'Content-Type: application/json' \
  -d '{
    "seller_id": "sel_01HXYZ",
    "offers": [
      {
        "sku": "SHIRT-M-BLUE",
        "variant_id": "variant_01HXYZ",
        "shipping_profile_id": "sp_01HXYZ",
        "prices": [{ "amount": 2500, "currency_code": "usd" }],
        "inventory_items": [
          {
            "sku": "SHIRT-M-BLUE",
            "required_quantity": 1,
            "stock_levels": [{ "location_id": "sloc_01HXYZ", "stocked_quantity": 100 }]
          }
        ]
      }
    ]
  }'
```

```ts JS Client theme={null}
const { offers } = await client.admin.offers.batch.mutate({
  seller_id: "sel_01HXYZ",
  offers: [
    {
      sku: "SHIRT-M-BLUE",
      variant_id: "variant_01HXYZ",
      shipping_profile_id: "sp_01HXYZ",
      prices: [{ amount: 2500, currency_code: "usd" }],
      inventory_items: [
        {
          sku: "SHIRT-M-BLUE",
          required_quantity: 1,
          stock_levels: [{ location_id: "sloc_01HXYZ", stocked_quantity: 100 }],
        },
      ],
    },
  ],
})
```

```json 201 theme={null}
{
  "offers": [
    {
      "id": "offer_01HXYZ8Q2M4N6P8R0T2V4W6X8Y",
      "seller_id": "sel_01HXYZ",
      "variant_id": "variant_01HXYZ",
      "shipping_profile_id": "sp_01HXYZ",
      "sku": "SHIRT-M-BLUE",
      "prices": [
        { "id": "price_01HXYZ", "amount": 2500, "currency_code": "usd" }
      ],
      "inventory_items": [
        { "id": "iitem_01HXYZ", "inventory_item_id": "iitem_01HXYZ", "required_quantity": 1, "sku": "SHIRT-M-BLUE" }
      ]
    }
  ]
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.