Square: Channels schemas
6 Square schemas with complete fields and constraints.
← Channels operations · All schemas
Bulk Retrieve Channels — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines the fields that are included in the request body for the [BulkRetrieveChannels](api-endpoint:Channels-BulkRetrieveChannels) endpoint. |
channel_ids | array | Required within parent | |
channel_ids[] | string | Each item |
Bulk Retrieve Channels — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines the fields that are included in the request body for the [BulkRetrieveChannels](api-endpoint:Channels-BulkRetrieveChannels) endpoint. |
errors | array | Optional | Information about errors encountered during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
responses | object | Optional | A map of channel IDs to channel responses which tell whether retrieval for a specific channel is success or not. Channel response of a success retrieval would contain channel info whereas channel response of a failed retrieval would have error info. Additional keys: see wildcard field |
responses.* | Model | Additional keys | Expand Retrieve Channel — response body |
Referenced models: Get Shift — response body — errors item, Retrieve Channel — response body
List Channels — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
channels | array | Optional | List of requested Channel. |
channels[] | Model | Each item | Expand Retrieve Channel — response body — channel |
cursor | string | Optional | The token required to retrieve the next page of results. |
errors | array | Optional | Information about errors encountered during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
Referenced models: Retrieve Channel — response body — channel, Get Shift — response body — errors item
Retrieve Channel — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
channel | Model | Optional | Expand Retrieve Channel — response body — channel The requested Channel. |
errors | array | Optional | Information about errors encountered during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
Referenced models: Retrieve Channel — response body — channel, Get Shift — response body — errors item
Retrieve Channel — response body — channel
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
created_at | string | Optional | The timestamp for when the channel was created, in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). For more information, see [Working with Dates](https://developer.squareup.com/docs/build-basics/working-with-dates). Read only: true |
id | string | Optional | The channel's unique ID. Read only: true |
merchant_id | string | Optional | The unique ID of the merchant this channel belongs to. Read only: true |
name | JSON | Optional | |
name (anyOf 1) | string | Alternative | The name of the channel. |
name (anyOf 2) | null | Alternative | |
reference | JSON | Optional | |
reference (anyOf 1) | Model | Alternative | Expand Retrieve Channel — response body — channel reference id, type Represents an entity the channel is associated with. |
reference (anyOf 2) | null | Alternative | |
status | JSON | Optional | |
status (anyOf 1) | string | Alternative | Status of the channel. See [Status](#type-status) for possible values Known values: ACTIVE, INACTIVE |
status (anyOf 2) | null | Alternative | |
updated_at | string | Optional | The timestamp for when the channel was last updated, in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). For more information, see [Working with Dates](https://developer.squareup.com/docs/build-basics/working-with-dates). Read only: true |
version | JSON | Optional | |
version (anyOf 1) | integer | Alternative | The version number which is incremented each time an update is made to the channel. Read only: true |
version (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
Referenced models: Retrieve Channel — response body — channel reference id, type
Retrieve Channel — response body — channel reference id, type
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
id | string | Optional | The id of the entity a channel is associated with. |
type | JSON | Optional | |
type (anyOf 1) | string | Alternative | The type of platform concept a channel can represent. The type of entity a channel is associated with. See [Type](#type-type) for possible values Known values: UNKNOWN_TYPE, LOCATION, FIRST_PARTY_INTEGRATION, OAUTH_APPLICATION, ONLINE_SITE, ONLINE_CHECKOUT, INVOICE, GIFT_CARD, GIFT_CARD_MARKETPLACE, RECURRING_SUBSCRIPTION, ONLINE_BOOKING_FLOW, SQUARE_ASSISTANT, CASH_LOCAL, POINT_OF_SALE, KIOSK |
type (anyOf 2) | null | Alternative |