Fairmarkit Price Books API
The Price Books API from Fairmarkit — 8 operation(s) for price books.
The Price Books API from Fairmarkit — 8 operation(s) for price books.
openapi: 3.1.1
info:
title: BUYER PUBLIC Business Units Price Books API
version: '3'
description: The Fairmarkit Buyer API is a RESTful API that uses HTTP requests to allow you to access and use your Fairmarkit data. It has predictable resource-oriented URLs that use standard HTTP response codes, authentication, and verbs. See the Fairmarkit API developer portal for more information.
termsOfService: https://www.fairmarkit.com/terms-of-service
contact:
name: Fairmarkit Support
url: https://fmkt.zendesk.com/hc/en-us
email: support@fairmarkit.com
servers:
- url: https://staging.fairmarkit.com/
tags:
- name: Price Books
paths:
/services/self-service/api/v4/price-books/:
get:
tags:
- Price Books
summary: List Price Books
description: Returns a list of price books.
operationId: get_price_books_list_services_self_service_api_v4_price_books__get
parameters:
- description: Filter by IDs.
required: false
schema:
items:
type: string
type: array
title: Id
description: Filter by IDs.
name: id
in: query
- description: Zero-based offset of the first record to return. Defaults to 0.
required: false
schema:
type: integer
minimum: 0
title: Offset
default: 0
description: Zero-based offset of the first record to return. Defaults to 0.
name: offset
in: query
- description: Maximum number of records to return. Defaults to 10.
required: false
schema:
type: integer
maximum: 101
minimum: 0
title: Limit
default: 10
description: Maximum number of records to return. Defaults to 10.
name: limit
in: query
- description: Filter price books by title.
required: false
schema:
type: string
title: Title
name: title
in: query
- description: Filter by active status.
required: false
schema:
type: boolean
title: Active
description: Filter by active status.
name: active
in: query
- description: Ordering field. Prefix with '-' for descending order.
required: false
schema:
type: string
enum:
- created_at
- -created_at
- title
- -title
- active
- -active
title: Ordering
description: Ordering field. Prefix with '-' for descending order.
name: ordering
in: query
- description: Filter items by tags.
required: false
schema:
items:
type: string
type: array
title: Tag
description: Filter items by tags.
name: tag
in: query
- description: Fairmarkit API Key
required: false
schema:
title: X-Fm-Api-Key
type: string
name: X-FM-API-KEY
in: header
responses:
'200':
description: Successful Response
content:
application/json; charset=utf-8:
schema:
items:
$ref: '#/components/schemas/PriceBookResponseV4'
type: array
title: Price Books List Response
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
post:
tags:
- Price Books
summary: Create Price Book
description: Creates a new price book.
operationId: create_price_book_services_self_service_api_v4_price_books__post
parameters:
- description: Fairmarkit API Key
required: false
schema:
type: string
title: X-Fm-Api-Key
name: X-FM-API-KEY
in: header
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PriceBookV4'
required: true
responses:
'201':
description: Successful Response
content:
application/json; charset=utf-8:
schema:
$ref: '#/components/schemas/CreatePriceBookResponseV4'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/services/self-service/api/v4/price-books/{price_book_id}/items:
get:
tags:
- Price Books
summary: List Price Book Items
description: Returns a list of price book items.
operationId: get_price_book_items_services_self_service_api_v4_price_books__price_book_id__items_get
parameters:
- description: The UUID or External ID of the price book to retrieve items from.
required: true
schema:
type: string
title: Price Book Id
name: price_book_id
in: path
- description: Filter items by specific IDs.
required: false
schema:
items:
type: string
type: array
title: Id
name: id
in: query
- description: Zero-based offset of the first record to return. Defaults to 0.
required: false
schema:
type: integer
minimum: 0
title: Offset
default: 0
description: Zero-based offset of the first record to return. Defaults to 0.
name: offset
in: query
- description: Maximum number of records to return. Defaults to 10.
required: false
schema:
type: integer
maximum: 101
minimum: 0
title: Limit
default: 10
description: Maximum number of records to return. Defaults to 10.
name: limit
in: query
- description: Filter items by title.
required: false
schema:
type: string
maxLength: 255
minLength: 1
title: Title
name: title
in: query
- description: Filter items by price book tags.
required: false
schema:
items:
type: string
type: array
title: Price Book Tag
description: Filter items by price book tags.
name: pb_tag
in: query
- description: Currency code used for price conversion.
required: false
schema:
type: string
title: Currency
description: Currency code used for price conversion.
name: currency
in: query
- description: Search term used to filter results.
required: false
schema:
type: string
title: Search
description: Search term used to filter results.
name: search
in: query
- description: Filter items by tags.
required: false
schema:
items:
type: string
type: array
title: Tag
description: Filter items by tags.
name: tag
in: query
- description: Ordering field. Prefix with '-' for descending order.
required: false
schema:
items:
type: string
type: array
title: Ordering
description: Ordering field. Prefix with '-' for descending order.
name: ordering
in: query
- description: Enable semantic search for filtering.
required: false
schema:
type: boolean
title: Is Semantic
default: true
name: is_semantic
in: query
- description: Fairmarkit API Key
required: false
schema:
type: string
title: X-Fm-Api-Key
name: X-FM-API-KEY
in: header
responses:
'200':
description: Successful Response
content:
application/json; charset=utf-8:
schema:
items:
$ref: '#/components/schemas/PriceBookItemResponseV4'
type: array
title: Price Book Items List Response
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
post:
tags:
- Price Books
summary: Create Price Book Items
description: Creates price book items.
operationId: create_price_book_items_services_self_service_api_v4_price_books__price_book_id__items_post
parameters:
- description: The UUID or External ID of the price book to create items in.
required: true
schema:
type: string
title: Price Book Id
name: price_book_id
in: path
- description: Fairmarkit API Key
required: false
schema:
type: string
title: X-Fm-Api-Key
name: X-FM-API-KEY
in: header
requestBody:
content:
application/json:
schema:
items:
$ref: '#/components/schemas/PriceBookItemV4'
type: array
title: Items Data
required: true
responses:
'201':
description: Successful Response
content:
application/json; charset=utf-8:
schema:
items:
$ref: '#/components/schemas/CreatePriceBookItemResponseV4'
type: array
title: Created Items Response
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
delete:
tags:
- Price Books
summary: Delete Price Book Items
description: Delete multiple price book items by their UUIDs or External IDs.
operationId: delete_price_book_items_services_self_service_api_v4_price_books__price_book_id__items_delete
parameters:
- description: The UUID or External ID of the price book to delete items from.
required: true
schema:
type: string
title: Price Book Id
name: price_book_id
in: path
- description: List of price book item UUIDs or External IDs to delete.
required: true
schema:
items:
type: string
type: array
title: Id
name: id
in: query
- description: Fairmarkit API Key
required: false
schema:
type: string
title: X-Fm-Api-Key
name: X-FM-API-KEY
in: header
responses:
'204':
description: Successful Response
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/services/self-service/api/v3/price-books/{price_book_id}:
delete:
tags:
- Price Books
summary: ⚠ Delete Price Book
description: ⚠ End of Life Planned or To Be Sunset - This API is in maintenance mode and will be sunset at a future date. For customers using this endpoint Fairmarkit will work with you on a migration path. Until that time, Fairmarkit will continue to support this API as normal. For New integrations, customers should use this API - [DELETE Price Book v4](/reference/delete_price_book_services_self_service_api_v4_price_books__price_book_id__delete/). Please connect with your customer success contact for any questions.
operationId: PriceBookApi_delete_price_book_services_self_service_api_v3_price_books__price_book_id__delete
parameters:
- required: true
schema:
type: string
format: uuid
title: Price Book Id
name: price_book_id
in: path
- required: false
schema:
type: string
title: X-Fm-Api-Key
name: X-FM-API-KEY
in: header
responses:
'200':
description: Successful Response
content:
application/json; charset=utf-8:
schema:
additionalProperties:
type: string
type: object
title: Response Pricebookapi Delete Price Book Services Self Service Api V3 Price Books Price Book Id Delete
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
deprecated: true
get:
tags:
- Price Books
summary: ⚠ Get Price Book Details
description: ⚠ End of Life Planned or To Be Sunset - This API is in maintenance mode and will be sunset at a future date. For customers using this endpoint Fairmarkit will work with you on a migration path. Until that time, Fairmarkit will continue to support this API as normal. For New integrations, customers should use this API - [GET Retrieve Price Book v4](/reference/get_price_book_services_self_service_api_v4_price_books__price_book_id__get/). Please connect with your customer success contact for any questions.
operationId: PriceBookApi_get_price_book_by_id_services_self_service_api_v3_price_books__price_book_id__get
parameters:
- required: true
schema:
type: string
format: uuid
title: Price Book Id
name: price_book_id
in: path
- required: false
schema:
type: string
title: X-Fm-Api-Key
name: X-FM-API-KEY
in: header
responses:
'200':
description: Successful Response
content:
application/json; charset=utf-8:
schema:
$ref: '#/components/schemas/PriceBookResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
deprecated: true
/services/self-service/api/v4/price-books/{price_book_id}:
patch:
tags:
- Price Books
summary: Update Price Book
description: Updates a price book.
operationId: update_price_book_services_self_service_api_v4_price_books__price_book_id__patch
parameters:
- description: The UUID or External ID of the price book to update.
required: true
schema:
type: string
title: Price Book Id
name: price_book_id
in: path
- description: Fairmarkit API Key
required: false
schema:
type: string
title: X-Fm-Api-Key
name: X-FM-API-KEY
in: header
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/UpdatedPriceBookV4'
required: true
responses:
'200':
description: Successful Response
content:
application/json; charset=utf-8:
schema:
$ref: '#/components/schemas/CreatePriceBookResponseV4'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
delete:
tags:
- Price Books
summary: Delete Price Book
description: Deletes a price book.
operationId: delete_price_book_services_self_service_api_v4_price_books__price_book_id__delete
parameters:
- description: The UUID or External ID of the price book to delete.
required: true
schema:
type: string
title: Price Book Id
name: price_book_id
in: path
- description: Fairmarkit API Key
required: false
schema:
type: string
title: X-Fm-Api-Key
name: X-FM-API-KEY
in: header
responses:
'204':
description: Successful Response
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
get:
tags:
- Price Books
summary: Get Price Book Details
description: Returns details for a price book.
operationId: get_price_book_services_self_service_api_v4_price_books__price_book_id__get
parameters:
- description: The UUID or External ID of the price book to retrieve.
required: true
schema:
type: string
title: Price Book Id
name: price_book_id
in: path
- description: Fairmarkit API Key
required: false
schema:
type: string
title: X-Fm-Api-Key
name: X-FM-API-KEY
in: header
responses:
'200':
description: Successful Response
content:
application/json; charset=utf-8:
schema:
$ref: '#/components/schemas/PriceBookResponseV4'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/services/self-service/api/v4/price-books/{price_book_id}/items/{item_id}:
delete:
tags:
- Price Books
summary: Delete Price Book Item
description: Deletes a price book item.
operationId: delete_price_book_item_services_self_service_api_v4_price_books__price_book_id__items__item_id__delete
parameters:
- description: The UUID or External ID of the price book to delete the item from.
required: true
schema:
type: string
title: Price Book Id
name: price_book_id
in: path
- description: The UUID or External ID of the price book item to delete.
required: true
schema:
type: string
title: Item Id
name: item_id
in: path
- description: Fairmarkit API Key
required: false
schema:
type: string
title: X-Fm-Api-Key
name: X-FM-API-KEY
in: header
responses:
'204':
description: Successful Response
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
patch:
tags:
- Price Books
summary: Update Price Book Item
description: Updates a price book item.
operationId: update_price_book_item_services_self_service_api_v4_price_books__price_book_id__items__item_id__patch
parameters:
- description: The UUID or External ID of the price book to update the item in.
required: true
schema:
type: string
title: Price Book Id
name: price_book_id
in: path
- description: The UUID or External ID of the price book item to update.
required: true
schema:
type: string
title: Item Id
name: item_id
in: path
- description: Fairmarkit API Key
required: false
schema:
type: string
title: X-Fm-Api-Key
name: X-FM-API-KEY
in: header
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/UpdatedPriceBookItemV4'
required: true
responses:
'200':
description: Successful Response
content:
application/json; charset=utf-8:
schema:
$ref: '#/components/schemas/CreatePriceBookItemResponseV4'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
get:
tags:
- Price Books
summary: Get Price Book Item Details
description: Returns details for a price book item.
operationId: get_price_book_item_services_self_service_api_v4_price_books__price_book_id__items__item_id__get
parameters:
- description: The UUID or External ID of the price book to retrieve the item from.
required: true
schema:
type: string
title: Price Book Id
name: price_book_id
in: path
- description: The UUID or External ID of the price book item to retrieve.
required: true
schema:
type: string
title: Item Id
name: item_id
in: path
- description: Fairmarkit API Key
required: false
schema:
type: string
title: X-Fm-Api-Key
name: X-FM-API-KEY
in: header
responses:
'200':
description: Successful Response
content:
application/json; charset=utf-8:
schema:
$ref: '#/components/schemas/PriceBookItemResponseV4'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/services/self-service/api/v3/price-books/{price_book_id}/items:
get:
tags:
- Price Books
summary: ⚠ List Price Book Items
description: ⚠ End of Life Planned or To Be Sunset - This API is in maintenance mode and will be sunset at a future date. For customers using this endpoint Fairmarkit will work with you on a migration path. Until that time, Fairmarkit will continue to support this API as normal. For New integrations, customers should use this API - [GET Price Book Items v4](/reference/get_price_book_items_services_self_service_api_v4_price_books__price_book_id__items_get/). Please connect with your customer success contact for any questions.
operationId: PriceBookApi_get_price_book_items_services_self_service_api_v3_price_books__price_book_id__items_get
parameters:
- required: true
schema:
type: string
format: uuid
title: Price Book Id
name: price_book_id
in: path
- required: false
schema:
type: integer
minimum: 0
title: Offset
default: 0
description: Zero-based offset of the first record to return. Defaults to 0.
name: offset
in: query
description: Zero-based offset of the first record to return. Defaults to 0.
- required: false
schema:
type: integer
maximum: 101
minimum: 0
title: Limit
default: 10
description: Maximum number of records to return. Defaults to 10.
name: limit
in: query
description: Maximum number of records to return. Defaults to 10.
- required: false
schema:
type: string
title: X-Fm-Api-Key
name: X-FM-API-KEY
in: header
responses:
'200':
description: Successful Response
content:
application/json; charset=utf-8:
schema:
items:
$ref: '#/components/schemas/PriceBookItemResponse'
type: array
title: Response Pricebookapi Get Price Book Items Services Self Service Api V3 Price Books Price Book Id Items Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
deprecated: true
post:
tags:
- Price Books
summary: ⚠ Create Price Book Item
description: ⚠ End of Life Planned or To Be Sunset - This API is in maintenance mode and will be sunset at a future date. For customers using this endpoint Fairmarkit will work with you on a migration path. Until that time, Fairmarkit will continue to support this API as normal. For New integrations, customers should use this API - [POST Create Price Book Items v4](/reference/create_price_book_items_services_self_service_api_v4_price_books__price_book_id__items_post/). Please connect with your customer success contact for any questions.
operationId: PriceBookApi_create_price_book_item_services_self_service_api_v3_price_books__price_book_id__items_post
parameters:
- required: true
schema:
type: string
format: uuid
title: Price Book Id
name: price_book_id
in: path
- required: false
schema:
type: string
title: X-Fm-Api-Key
name: X-FM-API-KEY
in: header
requestBody:
content:
application/json:
schema:
items:
$ref: '#/components/schemas/PriceBookItem'
type: array
title: Request
required: true
responses:
'200':
description: Successful Response
content:
application/json; charset=utf-8:
schema:
items:
$ref: '#/components/schemas/CreatePriceBookItemResponse'
type: array
title: Response Pricebookapi Create Price Book Item Services Self Service Api V3 Price Books Price Book Id Items Post
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
deprecated: true
/services/self-service/api/v3/price-books/:
post:
tags:
- Price Books
summary: ⚠ Create Price Book
description: ⚠ End of Life Planned or To Be Sunset - This API is in maintenance mode and will be sunset at a future date. For customers using this endpoint Fairmarkit will work with you on a migration path. Until that time, Fairmarkit will continue to support this API as normal. For New integrations, customers should use this API - [GET Retrieve Price Book v4](/reference/get_price_book_services_self_service_api_v4_price_books__price_book_id__get/). Please connect with your customer success contact for any questions.
operationId: PriceBookApi_create_price_book_services_self_service_api_v3_price_books__post
parameters:
- required: false
schema:
type: string
title: X-Fm-Api-Key
name: X-FM-API-KEY
in: header
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PriceBook'
required: true
responses:
'200':
description: Successful Response
content:
application/json; charset=utf-8:
schema:
$ref: '#/components/schemas/CreatePriceBookResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
deprecated: true
get:
tags:
- Price Books
summary: ⚠ List Price Books
description: ⚠ End of Life Planned or To Be Sunset - This API is in maintenance mode and will be sunset at a future date. For customers using this endpoint Fairmarkit will work with you on a migration path. Until that time, Fairmarkit will continue to support this API as normal. For New integrations, customers should use this API - [GET Price Books List v4](/reference/get_price_books_list_services_self_service_api_v4_price_books__get/). Please connect with your customer success contact for any questions.
operationId: PriceBookApi_get_price_books_services_self_service_api_v3_price_books__get
parameters:
- required: false
schema:
type: string
title: Search
description: Search term used to filter results.
name: search
in: query
description: Search term used to filter results.
- required: false
schema:
type: integer
minimum: 0
title: Offset
default: 0
description: Zero-based offset of the first record to return. Defaults to 0.
name: offset
in: query
description: Zero-based offset of the first record to return. Defaults to 0.
- required: false
schema:
type: integer
maximum: 101
minimum: 0
title: Limit
default: 10
description: Maximum number of records to return. Defaults to 10.
name: limit
in: query
description: Maximum number of records to return. Defaults to 10.
- required: false
schema:
type: string
title: X-Fm-Api-Key
name: X-FM-API-KEY
in: header
responses:
'200':
description: Successful Response
content:
application/json; charset=utf-8:
schema:
items:
$ref: '#/components/schemas/PriceBookResponse'
type: array
title: Response Pricebookapi Get Price Books Services Self Service Api V3 Price Books Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
deprecated: true
/services/self-service/api/v3/price-books/price-book-items/{item_id}:
get:
tags:
- Price Books
summary: ⚠ Get Price Book Item Details
description: ⚠ End of Life Planned or To Be Sunset - This API is in maintenance mode and will be sunset at a future date. For customers using this endpoint Fairmarkit will work with you on a migration path. Until that time, Fairmarkit will continue to support this API as normal. For New integrations, customers should use this API [GET Price Book Item v4](/reference/get_price_book_item_services_self_service_api_v4_price_books__price_book_id__items__item_id__get/). Please connect with your customer success contact for any questions.
operationId: PriceBookApi_get_price_book_item_services_self_service_api_v3_price_books_price_book_items__item_id__get
parameters:
- required: true
schema:
type: string
format: uuid
title: Item Id
name: item_id
in: path
- required: false
schema:
type: string
title: X-Fm-Api-Key
name: X-FM-API-KEY
in: header
responses:
'200':
description: Successful Response
content:
application/json; charset=utf-8:
schema:
$ref: '#/components/schemas/PriceBookItemResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
deprecated: true
components:
schemas:
CreatePriceBookItemResponse:
properties:
id:
type: string
format: uuid
title: Id
type: object
required:
- id
title: CreatePriceBookItemResponse
PriceBookV4:
properties:
supplier_id:
type: string
format: uuid
title: Supplier Id
description: The unique identifier of the supplier.
title:
type: string
title: Title
description: The title of the price book.
schema_id:
type: string
format: uuid
title: Schema Id
description: The unique identifier of the schema.
effective_date_from:
type: string
format: date-time
title: Effective Date From
description: The start date when the price book becomes effective.
effective_date_to:
type: string
format: date-time
title: Effective Date To
description: The end date when the price book expires.
active:
type: boolean
title: Active
default: true
description: Whether the price book is active.
custom_tags:
additionalProperties:
type: array
items: {}
type: object
# --- truncated at 32 KB (45 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/fairmarkit/refs/heads/main/openapi/fairmarkit-price-books-api-openapi.yml