> ## 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 in a single request.

Creates multiple offers at once; the whole batch is validated and processed together.

## Query parameters

**fields** `string`

Comma-separated fields to include in the returned offers. Prefix with `+`/`-` to add to or remove from the defaults.

## Body parameters

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

Between 1 and 100 offers to create.

**properties**

**sku** `string` *required*

The seller's SKU for the listing.

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

ID of the product variant being listed.

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

ID of the shipping profile used to fulfill the offer.

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

At least one price.

**properties**

**amount** `number` *required*

Price amount.

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

Currency code, e.g. `usd`.

**min\_quantity** `number`

Minimum quantity for the price to apply; positive integer.

**max\_quantity** `number`

Maximum quantity for the price to apply; positive integer.

**rules** `object`

Price rules as attribute-to-value pairs.

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

At least one inventory item.

**properties**

**title** `string`

Title for the created inventory item.

**sku** `string`

SKU for the created inventory item.

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

Units consumed per sale; positive integer.

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

**properties**

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

Stock location ID.

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

Stocked quantity at the location; non-negative integer.

**ean** `string`

EAN barcode.

**upc** `string`

UPC barcode.

**manage\_inventory** `boolean` (default: true)

Whether stock is tracked for the offer. Set to `false` to sell without inventory checks.

**allow\_backorder** `boolean` (default: false)

Whether the offer can be purchased when it is out of stock.

**metadata** `object`

Custom key-value pairs.

## Response

**offers** `object[]`

**properties**

**id** `string`

The offer's ID.

**variant\_id** `string`

ID of the listed product variant.

**sku** `string`

The seller's SKU for the listing.

**manage\_inventory** `boolean`

Whether stock is tracked for the offer.

**allow\_backorder** `boolean`

Whether the offer can be purchased when it is out of stock.

**prices** `object[]`

The offer's prices.

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

Linked inventory items.

```bash cURL theme={null}
curl -X POST 'http://localhost:9000/vendor/offers/batch' \
  -H 'Authorization: Bearer <token>' \
  -H 'x-seller-id: <seller_id>' \
  -H 'Content-Type: application/json' \
  -d '{
    "offers": [
      {
        "sku": "ACME-SHIRT-S",
        "variant_id": "variant_01HABC",
        "shipping_profile_id": "sp_01HXYZ",
        "prices": [{ "amount": 2500, "currency_code": "usd" }],
        "inventory_items": [{ "required_quantity": 1 }]
      },
      {
        "sku": "ACME-SHIRT-M",
        "variant_id": "variant_01HXYZ",
        "shipping_profile_id": "sp_01HXYZ",
        "prices": [{ "amount": 2500, "currency_code": "usd" }],
        "inventory_items": [{ "required_quantity": 1 }]
      }
    ]
  }'
```

```ts JS Client theme={null}
const { offers } = await client.vendor.offers.batch.mutate({
  offers: [
    {
      sku: "ACME-SHIRT-M",
      variant_id: "variant_01HXYZ",
      shipping_profile_id: "sp_01HXYZ",
      prices: [{ amount: 2500, currency_code: "usd" }],
      inventory_items: [{ required_quantity: 1 }],
    },
  ],
})
```

```json 201 theme={null}
{
  "offers": [
    {
      "id": "offer_01HABC",
      "variant_id": "variant_01HABC",
      "sku": "ACME-SHIRT-S"
    },
    {
      "id": "offer_01HXYZ",
      "variant_id": "variant_01HXYZ",
      "sku": "ACME-SHIRT-M"
    }
  ]
}
```


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