> ## 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.

# Retrieve Offer

> Retrieve an offer by ID.

Returns a single offer with its seller, variant, shipping profile, prices, and inventory items.

## Path parameters

**id** `string` *required*

The offer's ID.

## Query parameters

**fields** `string`

Comma-separated fields to include in the response.

## Response

**offer** `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.

**product\_id** `string`

ID of the offered product.

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

ID of the offer's shipping profile.

**sku** `string`

The offer's SKU.

**ean** `string | null`

The offer's EAN.

**upc** `string | null`

The offer's UPC.

**created\_by** `string`

ID of the actor who created the offer.

**variant\_count** `number`

Number of variants on the offered product.

**metadata** `object | null`

Custom key-value data.

**seller** `object`

The seller, with `id`, `name`, and `handle`.

**product\_variant** `object`

The variant, with `id`, `title`, and `sku`.

**shipping\_profile** `object`

The shipping profile, with `id` and `name`.

**prices** `object[]`

Offer prices, each with `id`, `amount`, `currency_code`, `min_quantity`, `max_quantity`, and `price_rules`.

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

Linked inventory items, each with `id`, `inventory_item_id`, `required_quantity`, and `sku`.

**created\_at** `string`

Creation timestamp.

**updated\_at** `string`

Last update timestamp.

```bash cURL theme={null}
curl 'http://localhost:9000/admin/offers/offer_01HXYZ8Q2M4N6P8R0T2V4W6X8Y' \
  -H 'Authorization: Bearer <token>'
```

```ts JS Client theme={null}
const { offer } = await client.admin.offers.$id.query({
  $id: "offer_01HXYZ8Q2M4N6P8R0T2V4W6X8Y",
})
```

```json 200 theme={null}
{
  "offer": {
    "id": "offer_01HXYZ8Q2M4N6P8R0T2V4W6X8Y",
    "seller_id": "sel_01HXYZ",
    "variant_id": "variant_01HXYZ",
    "product_id": "prod_01HXYZ",
    "shipping_profile_id": "sp_01HXYZ",
    "sku": "SHIRT-M-BLUE",
    "ean": null,
    "upc": null,
    "created_by": "user_01HXYZ",
    "variant_count": 3,
    "metadata": null,
    "seller": { "id": "sel_01HXYZ", "name": "Acme Store", "handle": "acme-store" },
    "product_variant": { "id": "variant_01HXYZ", "title": "M / Blue", "sku": "SHIRT-M-BLUE" },
    "shipping_profile": { "id": "sp_01HXYZ", "name": "Default" },
    "prices": [
      { "id": "price_01HXYZ", "amount": 2500, "currency_code": "usd", "min_quantity": null, "max_quantity": null }
    ],
    "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.