---
title: "Create price guard"
method: POST
path: "/api-offers/price-guard"
tags: ["Price Guard"]
---

# Create price guard

`POST /api-offers/price-guard`

## Request

- Base URL: `https://live.copilot.fabric.inc`
- URL: `https://live.copilot.fabric.inc/api-offers/price-guard`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/fabric/apis/offers-v2/docs/api-offers/price-guard/post.ts> (a function with typed inputs; its response is checked against the schema)

Creates a price guard record that can contain various price kinds other than the elemental prices such as base price, sale price, and clearance price.

## Headers

- `x-site-context` string, required

## Request body

- NewPriceGuardRequest
  - `itemId` integer, required: Item ID
  - `itemSku` string: Item SKU
  - `priceListId` integer, required: PriceList ID
  - `MSRP` number: Manufacturer suggested retail price
  - `MAP` number: Minimum advertised price
  - `ceiling` number: Maximum price the seller is allowed to charge for the product. Price created for the item ID or item SKU under the specified pricelist should not exceed the given ceiling price.
  - `floor` number: Lowest price at which the product can be sold. Price created for the item ID or item SKU under the specified pricelist should not be lower than the given floor price.

## Response `200`

OK

- PriceGuard
  - `_id` string: fabric database ObjectId of the record
  - `itemId` integer: Item ID
  - `itemSku` string: Item SKU
  - `priceListId` integer: ID of the pricelist under which the price kinds are created
  - `MSRP` number: Manufacturer suggested retail price
  - `MAP` number: Minimum advertised price
  - `ceiling` number: Maximum price the seller is allowed to charge for the product. Price created for the item ID or item SKU under the specified pricelist should not exceed the given ceiling price.
  - `floor` number: Lowest price at which the product can be sold. Price created for the item ID or item SKU under the specified pricelist should not be lower than the given floor price.
  - `deleted` boolean: true: price guard is deleted<br /> false: price guard is not deleted
  - `createdAt` string, date-time: Creation date of the record
  - `updatedAt` string, date-time: Last updated date of the record

## Other responses

- `400`: Bad request
- `404`: Not Found
- `500`: Internal Server Error

---

[API](https://skmtc.dev/fabric/apis/offers-v2.md) - [All operations](https://skmtc.dev/fabric/apis/offers-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/fabric/apis/offers-v2/revisions/da2bd742b9bc?raw)
