Passer au contenu principal
GET
/
crm
/
v3
/
objects
/
discounts
/
{discountId}
Read
curl --request GET \
  --url https://api.hubapi.com/crm/v3/objects/discounts/{discountId} \
  --header 'Authorization: Bearer <token>'
{
  "archived": true,
  "createdAt": "2023-11-07T05:31:56Z",
  "id": "<string>",
  "properties": {},
  "updatedAt": "2023-11-07T05:31:56Z",
  "archivedAt": "2023-11-07T05:31:56Z",
  "associations": {},
  "objectWriteTraceId": "<string>",
  "propertiesWithHistory": {},
  "url": "<string>"
}

Produits pris en charge

Exige l'un des produits suivants ou un produit supérieur.
Marketing HubMarketing Hub -Gratuit
Sales HubSales Hub -Gratuit
Service HubService Hub -Gratuit
Content HubContent Hub -Gratuit

Autorisations

Authorization
string
header
requis

The access token received from the authorization server in the OAuth 2.0 flow.

Paramètres de chemin

discountId
string
requis

Paramètres de requête

archived
boolean
défaut:false

Whether to return only results that have been archived.

associations
string[]

A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.

idProperty
string

The name of a property whose values are unique for this object

properties
string[]

A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.

propertiesWithHistory
string[]

A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored.

Réponse

successful operation

Represents a CRM object along with its properties, timestamps, and a set of associated object IDs grouped by association type.

archived
boolean
requis

Whether the object is archived.

createdAt
string<date-time>
requis

The timestamp when the object was created, in ISO 8601 format.

id
string
requis

The unique ID of the object.

properties
object
requis

Key value pairs representing the properties of the object.

updatedAt
string<date-time>
requis

The timestamp when the object was last updated, in ISO 8601 format.

archivedAt
string<date-time>

The timestamp when the object was archived, in ISO 8601 format.

associations
object

A list defining relationships with other objects.

objectWriteTraceId
string

An identifier used for tracing the creation or update request of the object.

propertiesWithHistory
object

Key-value pairs representing the properties of the object along with their history.

url
string

The URL on the API that provide direct navigation to the corresponding UI pages for the connectors.

Last modified on January 5, 2026