The link object
A comprehensive list of the link resource's attributes and relationships
A link object is returned as part of the response body of each successful list, retrieve, create or update API call to the /api/links
endpoint.
Fields
Field | Type | Description |
---|---|---|
type |
|
|
id |
| The link unique identifier |
links.self |
| The link endpoint URL |
attributes.name |
| The link internal name. |
attributes.client_id |
| The link application client id, used to fetch JWT. |
attributes.scope |
| The link application scope, used to fetch JWT. |
attributes.starts_at |
| The activation date/time of this link. |
attributes.expires_at |
| The expiration date/time of this link (must be after starts_at). |
attributes.active |
| Indicates if the link is active (enabled and not expired). |
attributes.status |
| The link status. One of 'disabled', 'expired', 'pending', or 'active'. |
attributes.domain |
| The link URL second level domain. |
attributes.url |
| The link URL. |
attributes.item_type |
| The type of the associated item. One of 'orders', 'skus', or 'sku_lists'. |
attributes.params |
| The link params to be passed in URL the query string. |
attributes._disable |
| Send this attribute if you want to mark this resource as disabled. |
attributes._enable |
| Send this attribute if you want to mark this resource as enabled. |
attributes.disabled_at |
| Time at which this resource was disabled. |
attributes.created_at |
| Time at which the resource was created. |
attributes.updated_at |
| Time at which the resource was last updated. |
attributes.reference |
| A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. |
attributes.reference_origin |
| Any identifier of the third party system that defines the reference code. |
attributes.metadata |
| Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. |
relationships.item |
| The polymorphic item associated to the link. One of 'orders', 'skus', or 'sku_lists'. |
relationships.events |
| The associated events. |
meta.mode |
| The resource environment (can be one of |
Last updated