Skip to content

Square: Channels schemas

6 Square schemas with complete fields and constraints.

← Channels operations · All schemas

Bulk Retrieve Channels — request body — body

FieldTypePresenceDescription and constraints
$objectRootDefines the fields that are included in the request body for the
[BulkRetrieveChannels](api-endpoint:Channels-BulkRetrieveChannels) endpoint.
channel_idsarrayRequired within parent
channel_ids[]stringEach item

Bulk Retrieve Channels — response body

FieldTypePresenceDescription and constraints
$objectRootDefines the fields that are included in the request body for the
[BulkRetrieveChannels](api-endpoint:Channels-BulkRetrieveChannels) endpoint.
errorsarrayOptionalInformation about errors encountered during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item
responsesobjectOptionalA 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.*ModelAdditional keysExpand Retrieve Channel — response body

Referenced models: Get Shift — response body — errors item, Retrieve Channel — response body

List Channels — response body

FieldTypePresenceDescription and constraints
$objectRoot
channelsarrayOptionalList of requested Channel.
channels[]ModelEach itemExpand Retrieve Channel — response body — channel
cursorstringOptionalThe token required to retrieve the next page of results.
errorsarrayOptionalInformation about errors encountered during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item

Referenced models: Retrieve Channel — response body — channel, Get Shift — response body — errors item

Retrieve Channel — response body

FieldTypePresenceDescription and constraints
$objectRoot
channelModelOptionalExpand Retrieve Channel — response body — channel
The requested Channel.
errorsarrayOptionalInformation about errors encountered during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item

Referenced models: Retrieve Channel — response body — channel, Get Shift — response body — errors item

Retrieve Channel — response body — channel

FieldTypePresenceDescription and constraints
$objectRoot
created_atstringOptionalThe 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
idstringOptionalThe channel's unique ID.
Read only: true
merchant_idstringOptionalThe unique ID of the merchant this channel belongs to.
Read only: true
nameJSONOptional
name (anyOf 1)stringAlternativeThe name of the channel.
name (anyOf 2)nullAlternative
referenceJSONOptional
reference (anyOf 1)ModelAlternativeExpand Retrieve Channel — response body — channel reference id, type
Represents an entity the channel is associated with.
reference (anyOf 2)nullAlternative
statusJSONOptional
status (anyOf 1)stringAlternativeStatus of the channel.
See [Status](#type-status) for possible values
Known values: ACTIVE, INACTIVE
status (anyOf 2)nullAlternative
updated_atstringOptionalThe 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
versionJSONOptional
version (anyOf 1)integerAlternativeThe version number which is incremented each time an update is made to the channel.
Read only: true
version (anyOf 2)stringAlternativePattern: ^-?[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

FieldTypePresenceDescription and constraints
$objectRoot
idstringOptionalThe id of the entity a channel is associated with.
typeJSONOptional
type (anyOf 1)stringAlternativeThe 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)nullAlternative

Report an issue with this page

Necessary

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

Always active

Analytics

Helps us understand how our website, product, and documentation are used.

Performance diagnostics

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

Advertising

Shares visits and sign-ups with Meta, Reddit, and X so we can measure which of our ads work.

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