header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Query Params
limit
integer
optional
The maximum number of results to return in a single page. This limit is advisory. The response might contain more or fewer results. If the specified limit is less than 1 or greater than 100, Square returns a 400 VALUE_TOO_LOW or 400 VALUE_TOO_HIGH error. The default value is 100.
sortField
enum<string>
optional
Use the default sort key.
Allowed values:
DEFAULTCREATED_AT
sortOrder
enum<string>
optional
Indicates whether customers should be sorted in ascending (ASC) or descending (DESC) order.
Allowed values:
ASCDESC
Header Params
Content-Type
string
required
Default:
application/json
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request GET 'https://dev.your-api-server.com/v1/games?limit=&sortField=&sortOrder='
Responses
🟢200Success
application/json
Body
programs
array [object {7}]
required
The list of program for workspace, sorted by ascending name.
id
string<uuid>
read-onlyrequired
The assigned ID of the loyalty program. Updates to the loyalty program do not modify the identifier.
<= 36 characters
status
enum<string>
optional
Whether the program is currently active.
Allowed values:
ACTIVEINACTIVE
name
string
optional
availableTime
object
optional
The scheduling information that defines when transaction can qualify to earn points from an ACTIVE program.