Skip to content

HubSpot: Discounts schemas

35 HubSpot schemas with complete fields and constraints.

← Discounts operations · All schemas

Archive batch objects — discounts batch Delete Discounts — request body — body

FieldTypePresenceDescription and constraints
$objectRootRepresents a batch input payload containing a list of simple public object IDs. This component is used when performing batch operations on multiple objects within HubSpot.
inputsarrayRequired within parentAn array of SimplePublicObjectId objects, each containing a unique identifier for a CRM object. This property is required and is used to specify the objects involved in the batch operation.
inputs[]ModelEach itemExpand Read batch objects — discounts batch Get Discounts — request body — body inputs item

Referenced models: Read batch objects — discounts batch Get Discounts — request body — body inputs item

Batch create objects — discounts batch Create Discounts — request body — body

FieldTypePresenceDescription and constraints
$objectRootRepresents a batch input for creating multiple simple public objects in a single request. This component is used to streamline the process of adding new objects to a HubSpot account by allowing multiple entries to be created at once.
inputsarrayRequired within parentAn array of SimplePublicObjectBatchInputForCreate objects, each containing the properties and associations needed to create a single CRM object.
inputs[]ModelEach itemExpand Batch create objects — discounts batch Create Discounts — request body — body inputs item

Referenced models: Batch create objects — discounts batch Create Discounts — request body — body inputs item

Batch create objects — discounts batch Create Discounts — request body — body inputs item

FieldTypePresenceDescription and constraints
$objectRootAn input object that contains a collection of objects to be created together in a batch.
associationsarrayRequired within parentAn array of associations for the CRM objects, where each association specifies the related object IDs and types.
associations[]ModelEach itemExpand Create — discounts create Discount — request body — body associations item
objectWriteTraceIdstringOptionalA string used to trace the write operation for debugging or tracking purposes.
propertiesobjectRequired within parentAn object containing key-value pairs representing the properties of the CRM objects to be created. Each key is a property name, and the value is the property's value.
Additional keys: see wildcard field
properties.*stringAdditional keys

Referenced models: Create — discounts create Discount — request body — body associations item

Batch upsert objects — discounts batch Upsert Discounts — request body — body

FieldTypePresenceDescription and constraints
$objectRootRepresents a batch input operation for upserting simple public objects in HubSpot. This component is used to process multiple upsert operations in a single request, improving efficiency and performance.
inputsarrayRequired within parentAn array of SimplePublicObjectBatchInputUpsert items, each representing an object to be upserted. This property is required.
inputs[]ModelEach itemExpand Batch upsert objects — discounts batch Upsert Discounts — request body — body inputs item

Referenced models: Batch upsert objects — discounts batch Upsert Discounts — request body — body inputs item

Batch upsert objects — discounts batch Upsert Discounts — request body — body inputs item

FieldTypePresenceDescription and constraints
$objectRootRepresents an object used in batch upsert operations, containing an object’s unique identifier, its properties, and optionally the unique property name and a write trace ID.
idstringRequired within parentA string representing the unique identifier of the CRM object.
idPropertystringOptionalThe name of a property whose values are unique for this object
objectWriteTraceIdstringOptionalA string used to trace the write operation for debugging or tracking purposes.
propertiesobjectRequired within parentAn object containing key-value pairs representing the properties of the CRM object. Each key is a property name and the value is the property value, both represented as strings.
Additional keys: see wildcard field
properties.*stringAdditional keys

Batch upsert objects — discounts.batchUpsertDiscounts — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING results item

FieldTypePresenceDescription and constraints
$objectRootRepresents a CRM object that has either been created or updated (upserted)
archivedbooleanRequired within parentIndicates whether this object has been archived. A boolean value.
archivedAtstringOptionalThe date and time when this object was archived, in ISO 8601 format.
Format: date-time
createdAtstringRequired within parentThe date and time when this object was created, in ISO 8601 format.
Format: date-time
idstringRequired within parentThe unique identifier for this object.
newbooleanRequired within parentIndicates whether this object is newly created. A boolean value.
objectWriteTraceIdstringOptionalA trace identifier for the write operation that created or updated this object.
propertiesobjectRequired within parentA map of property names to their current values.
Additional keys: see wildcard field
properties.*stringAdditional keys
propertiesWithHistoryobjectOptionalA map of property names to their values, including historical data with timestamps.
Additional keys: see wildcard field
propertiesWithHistory.*arrayAdditional keys
propertiesWithHistory.*[]ModelEach itemExpand Read — discounts get Discount — response body — properties With History value item
updatedAtstringRequired within parentThe date and time when this object was last updated, in ISO 8601 format.
Format: date-time
urlstringOptionalThe URL link to this object.
warningsarrayOptionalA list of warnings associated with this object, each containing a category, message, and context.
warnings[]ModelEach itemExpand Create a company — response body — warnings item

Referenced models: Create a company — response body — warnings item, Read — discounts get Discount — response body — properties With History value item

Batch upsert objects — discounts.batchUpsertDiscounts — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING — Discounts Batch Response Simple Public Upsert Object

FieldTypePresenceDescription and constraints
$objectRootRepresents the result of a batch upsert operation, including the operation’s status, timestamps, and a list of successfully created or updated objects.
completedAtstringRequired within parentThe date and time when the batch operation was completed, in ISO 8601 format.
Format: date-time
linksobjectOptionalA map of link names to associated URIs, providing additional information or actions related to the batch operation.
Additional keys: see wildcard field
links.*stringAdditional keys
requestedAtstringOptionalThe date and time when the batch operation was requested, in ISO 8601 format.
Format: date-time
resultsarrayRequired within parentAn array of SimplePublicUpsertObject items, representing the objects that were created or updated as part of the batch operation.
results[]ModelEach itemExpand Batch upsert objects — discounts.batchUpsertDiscounts — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING results item
startedAtstringRequired within parentThe date and time when the batch operation started, in ISO 8601 format.
Format: date-time
statusstringRequired within parentThe current status of the batch operation. Valid values include 'PENDING', 'PROCESSING', 'CANCELED', and 'COMPLETE'.
Known values: CANCELED, COMPLETE, PENDING, PROCESSING

Referenced models: Batch upsert objects — discounts.batchUpsertDiscounts — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING results item

Batch upsert objects — discounts.batchUpsertDiscounts — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING — Discounts Batch Response Simple Public Upsert Object With Errors

FieldTypePresenceDescription and constraints
$objectRootRepresents the response from a batch upsert operation, including the status, timestamps, successfully processed objects, and any errors that occurred during processing.
completedAtstringRequired within parentThe date and time when the batch operation was completed, in ISO 8601 format.
Format: date-time
errorsarrayOptionalAn array of errors encountered during the batch operation. Each error provides detailed information about the issue.
errors[]ModelEach itemExpand Read batch objects — discounts.batchGetDiscounts — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING errors item
linksobjectOptionalA map of link names to associated URIs, providing additional resources or documentation related to the batch operation.
Additional keys: see wildcard field
links.*stringAdditional keys
numErrorsJSONOptional
numErrors (anyOf 1)integerAlternativeThe total number of errors encountered during the batch operation.
Format: int32
numErrors (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
requestedAtstringOptionalThe date and time when the batch operation was requested, in ISO 8601 format.
Format: date-time
resultsarrayRequired within parentAn array of objects representing the results of the upsert operation. Each object contains details about the upserted object.
results[]ModelEach itemExpand Batch upsert objects — discounts.batchUpsertDiscounts — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING results item
startedAtstringRequired within parentThe date and time when the batch operation started, in ISO 8601 format.
Format: date-time
statusstringRequired within parentThe current status of the batch operation. Valid values include 'PENDING', 'PROCESSING', 'CANCELED', and 'COMPLETE'.
Known values: CANCELED, COMPLETE, PENDING, PROCESSING

Referenced models: Read batch objects — discounts.batchGetDiscounts — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING errors item, Batch upsert objects — discounts.batchUpsertDiscounts — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING results item

Create — discounts create Discount — request body — body

FieldTypePresenceDescription and constraints
$objectRootIs the input object used to create a new CRM object, containing the properties to be set and optional associations to link the new record with other CRM objects.
associationsarrayRequired within parentAn array of associations that define relationships between this object and other objects. Each association specifies the target object and the type of association.
associations[]ModelEach itemExpand Create — discounts create Discount — request body — body associations item
propertiesobjectRequired within parentAn object containing key-value pairs representing the properties of the CRM object to be created. Each key is a property name, and each value is the property's value.
Additional keys: see wildcard field
properties.*stringAdditional keys

Referenced models: Create — discounts create Discount — request body — body associations item

Create — discounts create Discount — request body — body associations item

FieldTypePresenceDescription and constraints
$objectRootRepresents the associations for a specific object in HubSpot, detailing the types of associations and the related objects involved.
toModelRequired within parentExpand Create — leads create Lead — request body — body associations item to
typesarrayRequired within parentAn array of association specifications, each detailing the type of association between the objects.
types[]ModelEach itemExpand Create — invoices create Invoice — request body — body associations item types item

Referenced models: Create — invoices create Invoice — request body — body associations item types item, Create — leads create Lead — request body — body associations item to

List associations — discounts get Associations By To Object Type — response body

FieldTypePresenceDescription and constraints
$objectRootRepresents a paginated collection of objects that are associated with multiple labels, including the results and pagination details. This component is used when retrieving associated objects with specific labels in a forward-paging manner.
pagingModelOptionalExpand List — discounts get Discounts — response body — paging
resultsarrayRequired within parentAn array of objects, each representing an association with a label. Each object contains details about the associated object and the types of associations.
results[]ModelEach itemExpand List associations — discounts get Associations By To Object Type — response body — results item

Referenced models: List — discounts get Discounts — response body — paging, List associations — discounts get Associations By To Object Type — response body — results item

List associations — discounts get Associations By To Object Type — response body — results item

FieldTypePresenceDescription and constraints
$objectRootRepresents an object that is associated with multiple other objects, with optional context.
associationTypesarrayRequired within parentAn array of association specifications, each including a label. These define the types of associations between the objects.
associationTypes[]ModelEach itemExpand List associations — discounts get Associations By To Object Type — response body — results item association Types item
toObjectIdstringRequired within parentThe unique identifier of the object to which associations are being made. It is a string.

Referenced models: List associations — discounts get Associations By To Object Type — response body — results item association Types item

List associations — discounts get Associations By To Object Type — response body — results item association Types item

FieldTypePresenceDescription and constraints
$objectRootDefines the type, direction, and details of the relationship between two CRM objects.
categorystringRequired within parentA string representing the category of the association. Valid values include 'HUBSPOT_DEFINED', 'USER_DEFINED', 'INTEGRATOR_DEFINED', and 'WORK'.
Known values: HUBSPOT_DEFINED, INTEGRATOR_DEFINED, USER_DEFINED, WORK
fromObjectTypeIdstringOptionalA string representing the unique identifier of the object type from which the association originates.
labelstringOptionalA string that provides an optional label for the association, allowing for user-defined descriptions.
toObjectTypeIdstringOptionalA string representing the unique identifier of the object type to which the association points.
typeIdJSONRequired within parent
typeId (anyOf 1)integerAlternativeAn integer that uniquely identifies the type of association.
Format: int32
typeId (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

List — discounts get Discounts — response body

FieldTypePresenceDescription and constraints
$objectRootRepresents a paginated collection response that includes simple public objects with their associations. This component is used to handle the results and pagination details when retrieving a list of objects from the API.
pagingModelOptionalExpand List — discounts get Discounts — response body — paging
resultsarrayRequired within parentAn array of SimplePublicObjectWithAssociations, each representing a CRM object along with its associated data.
results[]ModelEach itemExpand Read — discounts get Discount — response body

Referenced models: List — discounts get Discounts — response body — paging, Read — discounts get Discount — response body

List — discounts get Discounts — response body — paging

FieldTypePresenceDescription and constraints
$objectRootPaging information for forward-only pagination. Contains the next page reference when more results are available; omitted or empty on the last page.
nextModelOptionalExpand List — discounts get Discounts — response body — paging next

Referenced models: List — discounts get Discounts — response body — paging next

List — discounts get Discounts — response body — paging next

FieldTypePresenceDescription and constraints
$objectRootSpecifies the paging information needed to retrieve the next set of results in a paginated API response
afterstringRequired within parentA string token used as a cursor to fetch the next page of results.
linkstringOptionalA string containing the URL link to the next page of results.

Merge objects — discounts merge — request body — body

FieldTypePresenceDescription and constraints
$objectRootInput data for merging two records.
objectIdToMergestringRequired within parentThe unique identifier for the object that will be merged into the primary object. This is a string.
primaryObjectIdstringRequired within parentThe unique identifier for the primary object that will remain after the merge. This is a string.

Merge objects — discounts merge — response body

FieldTypePresenceDescription and constraints
$objectRootA simple public object.
archivedbooleanRequired within parentA boolean indicating whether this object is archived.
archivedAtstringOptionalThe date and time when this object was archived, in ISO 8601 format.
Format: date-time
createdAtstringRequired within parentThe date and time when this object was created, in ISO 8601 format.
Format: date-time
idstringRequired within parentThe unique identifier for this CRM object, represented as a string.
objectWriteTraceIdstringOptionalA string used for tracing the write operations on this object.
propertiesobjectRequired within parentA map of property names to their values, where each value is a string.
Additional keys: see wildcard field
properties.*stringAdditional keys
propertiesWithHistoryobjectOptionalA map of property names to arrays of historical values, each with a timestamp and source information.
Additional keys: see wildcard field
propertiesWithHistory.*arrayAdditional keys
propertiesWithHistory.*[]ModelEach itemExpand Read — discounts get Discount — response body — properties With History value item
updatedAtstringRequired within parentThe date and time when this object was last updated, in ISO 8601 format.
Format: date-time
urlstringOptionalA string representing the URL of this object.
warningsarrayOptionalAn array of warnings associated with this object, each containing a category, message, and context.
warnings[]ModelEach itemExpand Create a company — response body — warnings item

Referenced models: Create a company — response body — warnings item, Read — discounts get Discount — response body — properties With History value item

Read batch objects — discounts batch Get Discounts — request body — body

FieldTypePresenceDescription and constraints
$objectRootSpecifies the input for reading a batch of CRM objects, including arrays of object IDs, requested property names (with optional history), and an optional unique identifying property.
idPropertystringOptionalWhen using a custom unique value property to retrieve records, the name of the property. Do not include this parameter if retrieving by record ID.
inputsarrayRequired within parentAn array of SimplePublicObjectId objects, each containing an ID of the object to be read.
inputs[]ModelEach itemExpand Read batch objects — discounts batch Get Discounts — request body — body inputs item
propertiesarrayRequired within parentAn array of strings representing the properties to be returned in the response for each object.
properties[]stringEach item
propertiesWithHistoryarrayRequired within parentAn array of strings specifying the properties to be returned along with their history of previous values.
propertiesWithHistory[]stringEach item

Referenced models: Read batch objects — discounts batch Get Discounts — request body — body inputs item

Read batch objects — discounts batch Get Discounts — request body — body inputs item

FieldTypePresenceDescription and constraints
$objectRootContains the Id of a Public Object
idstringRequired within parentThe unique identifier for the CRM object. It is a string that is required for operations involving specific objects.

Read batch objects — discounts.batchGetDiscounts — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING errors item

FieldTypePresenceDescription and constraints
$objectRootRepresents a standard error response in the HubSpot API, providing detailed information about an error that occurred during an API request.
categorystringRequired within parentA string that categorizes the error.
contextobjectRequired within parentAn object containing additional context about the error condition, with keys as context names and values as arrays of strings.
Additional keys: see wildcard field
context.*arrayAdditional keys
context.*[]stringEach item
errorsarrayRequired within parentAn array of ErrorDetail objects providing further information about the error.
errors[]ModelEach itemExpand Batch insert events — response body — errors item errors item
idstringOptionalA string representing the unique identifier for this error.
linksobjectRequired within parentAn object mapping link names to associated URIs that contain documentation about the error or recommended remediation steps.
Additional keys: see wildcard field
links.*stringAdditional keys
messagestringRequired within parentA string containing a human-readable message describing the error.
statusstringRequired within parentA string indicating the status of the error.
subCategoryobjectOptionalAn object providing more specific categorization of the error.

Referenced models: Batch insert events — response body — errors item errors item

Read batch objects — discounts.batchGetDiscounts — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING — Discounts Batch Response Simple Public Object

FieldTypePresenceDescription and constraints
$objectRootA public object batch response object
completedAtstringRequired within parentThe date and time when the batch operation was completed, in ISO 8601 format.
Format: date-time
linksobjectOptionalA map of link names to associated URIs, providing additional information or actions related to the batch operation.
Additional keys: see wildcard field
links.*stringAdditional keys
requestedAtstringOptionalThe date and time when the batch operation was requested, in ISO 8601 format.
Format: date-time
resultsarrayRequired within parentAn array of simple public objects that were processed in the batch operation.
results[]ModelEach itemExpand Merge objects — discounts merge — response body
startedAtstringRequired within parentThe date and time when the batch operation started, in ISO 8601 format.
Format: date-time
statusstringRequired within parentThe current status of the batch operation. Valid values include 'PENDING', 'PROCESSING', 'CANCELED', and 'COMPLETE'.
Known values: CANCELED, COMPLETE, PENDING, PROCESSING

Referenced models: Merge objects — discounts merge — response body

Read batch objects — discounts.batchGetDiscounts — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING — Discounts Batch Response Simple Public Object With Errors

FieldTypePresenceDescription and constraints
$objectRootRepresents the result of a batch operation on CRM objects, including the processing status, batch results, timestamps, and a list of any errors encountered during the operation.
completedAtstringRequired within parentThe date and time when the batch operation was completed, in ISO 8601 format.
Format: date-time
errorsarrayOptionalAn array of standard errors that occurred during the batch operation.
errors[]ModelEach itemExpand Read batch objects — discounts.batchGetDiscounts — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING errors item
linksobjectOptionalA map of link names to associated URIs, providing additional information or actions related to the batch operation.
Additional keys: see wildcard field
links.*stringAdditional keys
numErrorsJSONOptional
numErrors (anyOf 1)integerAlternativeThe number of errors that occurred during the batch operation.
Format: int32
numErrors (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
requestedAtstringOptionalThe date and time when the batch operation was requested, in ISO 8601 format.
Format: date-time
resultsarrayRequired within parentAn array of simple public objects that were processed in the batch operation.
results[]ModelEach itemExpand Merge objects — discounts merge — response body
startedAtstringRequired within parentThe date and time when the batch operation started, in ISO 8601 format.
Format: date-time
statusstringRequired within parentThe current status of the batch operation. Valid values include 'PENDING', 'PROCESSING', 'CANCELED', and 'COMPLETE'.
Known values: CANCELED, COMPLETE, PENDING, PROCESSING

Referenced models: Read batch objects — discounts.batchGetDiscounts — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING errors item, Merge objects — discounts merge — response body

Read — discounts get Discount — response body

FieldTypePresenceDescription and constraints
$objectRootRepresents a CRM object along with its properties, timestamps, and a set of associated object IDs grouped by association type.
archivedbooleanRequired within parentA boolean indicating whether this object is archived.
archivedAtstringOptionalThe date and time when this object was archived, in ISO 8601 format.
Format: date-time
associationsobjectOptionalA map of associated object types to their respective associated IDs.
Additional keys: see wildcard field
associations.*ModelAdditional keysExpand Read — discounts get Discount — response body — associations value
createdAtstringRequired within parentThe date and time when this object was created, in ISO 8601 format.
Format: date-time
idstringRequired within parentThe unique identifier for this object.
objectWriteTraceIdstringOptionalAn identifier for tracing the write operations on this object.
propertiesobjectRequired within parentA map of property names to their current values for this object.
Additional keys: see wildcard field
properties.*stringAdditional keys
propertiesWithHistoryobjectOptionalA map of property names to their values along with a history of changes, including timestamps and sources.
Additional keys: see wildcard field
propertiesWithHistory.*arrayAdditional keys
propertiesWithHistory.*[]ModelEach itemExpand Read — discounts get Discount — response body — properties With History value item
updatedAtstringRequired within parentThe date and time when this object was last updated, in ISO 8601 format.
Format: date-time
urlstringOptionalThe URL link to this object.
warningsarrayOptionalA list of warnings related to this object, each containing a category, message, and context.
warnings[]ModelEach itemExpand Create a company — response body — warnings item

Referenced models: Create a company — response body — warnings item, Read — discounts get Discount — response body — associations value, Read — discounts get Discount — response body — properties With History value item

Read — discounts get Discount — response body — associations value

FieldTypePresenceDescription and constraints
$objectRootRepresents a collection of associated IDs returned by an API request, including pagination details for navigating through the results.
pagingModelOptionalExpand Search — discounts search Discounts — response body — paging
resultsarrayRequired within parentAn array of associated IDs, each represented by an AssociatedId object.
results[]ModelEach itemExpand Read — products get Product — response body — associations value results item

Referenced models: Read — products get Product — response body — associations value results item, Search — discounts search Discounts — response body — paging

Read — discounts get Discount — response body — properties With History value item

FieldTypePresenceDescription and constraints
$objectRootProperty model that includes timestamp.
sourceIdstringOptionalA string representing the unique identifier of the source from which the value was obtained.
sourceLabelstringOptionalA string providing a human-readable label for the source of the value.
sourceTypestringRequired within parentA string indicating the type of source from which the value originated. This property is required.
timestampstringRequired within parentThe date and time when the value was recorded, in ISO 8601 format.
Format: date-time
updatedByUserIdJSONOptional
updatedByUserId (anyOf 1)integerAlternativeAn integer representing the ID of the user who last updated the value.
Format: int32
updatedByUserId (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
valuestringRequired within parentThe value associated with the timestamp. This is a string representing the data that was recorded.

Search — discounts search Discounts — request body — body

FieldTypePresenceDescription and constraints
$objectRootDescribes a search request
afterstringRequired within parentA string used as a paging cursor token. It represents the last successfully read resource and is used to fetch the next set of results in a paged response.
filterGroupsarrayRequired within parentAn array of filter groups used to narrow down the search results. Each filter group can contain multiple filters that are applied together.
filterGroups[]ModelEach itemExpand Search — discounts search Discounts — request body — body filter Groups item
limitintegerRequired within parentAn integer indicating the maximum number of results to return. This helps control the size of the result set.
Format: int32
propertiesarrayRequired within parentAn array of strings specifying the properties to be returned in the search results. If a specified property is not present on the objects, it will be ignored.
properties[]stringEach item
querystringOptionalA string representing a search query to match against the objects' properties.
sortsarrayRequired within parentAn array of strings specifying the sort order of the search results. Each string represents a property to sort by, with optional direction (e.g., 'propertyName ASC' or 'propertyName DESC').
sorts[]stringEach item

Referenced models: Search — discounts search Discounts — request body — body filter Groups item

Search — discounts search Discounts — request body — body filter Groups item

FieldTypePresenceDescription and constraints
$objectRootRepresents a group of filters used to query data within HubSpot. This component is used to define criteria for filtering records in various API endpoints.
filtersarrayRequired within parentAn array of Filter objects that define the criteria for the search. Each filter specifies a property, an operator, and a value or range of values to filter by.
filters[]ModelEach itemExpand Search — discounts search Discounts — request body — body filter Groups item filters item

Referenced models: Search — discounts search Discounts — request body — body filter Groups item filters item

Search — discounts search Discounts — request body — body filter Groups item filters item

FieldTypePresenceDescription and constraints
$objectRootDefines a single condition for searching CRM objects, specifying the property to filter on, the operator to use (such as equals, greater than, or contains), and the value(s) to compare against.
highValuestringOptionalAn optional string representing the upper boundary value for range-based filters. It is used with operators like 'BETWEEN' to specify a range.
operatorstringRequired within parentThe operator used to compare the property value. It is a string and can be one of several predefined values such as 'EQ', 'NEQ', 'LT', 'LTE', 'GT', 'GTE', 'BETWEEN', 'IN', 'NOT_IN', 'HAS_PROPERTY', 'NOT_HAS_PROPERTY', 'CONTAINS_TOKEN', or 'NOT_CONTAINS_TOKEN'.
One of: BETWEEN, CONTAINS_TOKEN, EQ, GT, GTE, HAS_PROPERTY, IN, LT, LTE, NEQ, NOT_CONTAINS_TOKEN, NOT_HAS_PROPERTY, NOT_IN
propertyNamestringRequired within parentThe name of the property to filter by. It is a string that identifies which property of the CRM object the filter applies to.
valuestringOptionalThe value to compare the property against. This is a string used in conjunction with the operator to determine if the property meets the filter condition.
valuesarrayOptionalAn array of strings representing multiple values for the filter. This is used with operators like 'IN' or 'NOT_IN' to match any of the specified values.
values[]stringEach item

Search — discounts search Discounts — response body

FieldTypePresenceDescription and constraints
$objectRootRepresents a list of simple objects returned from an API request, along with the total count of objects available.
pagingModelOptionalExpand Search — discounts search Discounts — response body — paging
resultsarrayRequired within parentAn array of SimplePublicObject items, each representing an individual object in the collection.
results[]ModelEach itemExpand Merge objects — discounts merge — response body
totalJSONRequired within parent
total (anyOf 1)integerAlternativeThe number of available results
Format: int32
total (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Referenced models: Search — discounts search Discounts — response body — paging, Merge objects — discounts merge — response body

Search — discounts search Discounts — response body — paging

FieldTypePresenceDescription and constraints
$objectRootRepresents the pagination information for navigating through a list of results in the API. It provides details on how to access the previous or next set of results.
nextModelOptionalExpand List — discounts get Discounts — response body — paging next
prevModelOptionalExpand Search — discounts search Discounts — response body — paging prev

Referenced models: List — discounts get Discounts — response body — paging next, Search — discounts search Discounts — response body — paging prev

Search — discounts search Discounts — response body — paging prev

FieldTypePresenceDescription and constraints
$objectRootspecifies the paging information needed to retrieve the previous set of results in a paginated API response
beforestringRequired within parentA string token used to retrieve the previous page of results.
linkstringOptionalA URL link to access the previous page of results.

Update batch objects — discounts batch Update Discounts — request body — body

FieldTypePresenceDescription and constraints
$objectRootRepresents a batch input component used to handle multiple simple public objects in a single API request. This component is typically used when performing batch operations to create, update, or delete multiple records simultaneously.
inputsarrayRequired within parentAn array of SimplePublicObjectBatchInput objects, each containing the properties and identifiers for a CRM object to be updated.
inputs[]ModelEach itemExpand Update batch objects — discounts batch Update Discounts — request body — body inputs item

Referenced models: Update batch objects — discounts batch Update Discounts — request body — body inputs item

Update batch objects — discounts batch Update Discounts — request body — body inputs item

FieldTypePresenceDescription and constraints
$objectRootContains an array of CRM object records to be processed in a batch operation, each defined by their ID and properties.
idstringRequired within parentThe id to be updated. This can be the object id, or the unique property value of the idProperty property
idPropertystringOptionalThe name of a property whose values are unique for this object
objectWriteTraceIdstringOptionalAn optional string used to trace the write operations on the objects.
propertiesobjectRequired within parentA map of property names to their values for the objects being processed. Each property is represented as a string.
Additional keys: see wildcard field
properties.*stringAdditional keys

Update — discounts update Discount — request body — body

FieldTypePresenceDescription and constraints
$objectRootRepresents the input required to update a CRM object, containing an object with property names and their corresponding values.
propertiesobjectRequired within parentA map of property names to their values, where each property is represented as a string.
Additional keys: see wildcard field
properties.*stringAdditional keys

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.