Download OpenAPI specification:Download
API documentation for STQRY's public API
page | integer Page number |
per_page | integer [ 1 .. 1000 ] Default: 30 Number of items per page, max 1000 |
sort_field | string Enum: "coupon_code" "valid_from" "valid_to" "id" Field to sort by |
sort_direction | string Default: "ASC" Enum: "ASC" "DESC" Direction to sort by |
q | string Search query |
{- "meta": {
- "page": 1,
- "pages": 10,
- "per_page": 30,
- "count": 305
}, - "data": [
- {
- "id": 0,
- "status": "expired",
- "linked_id": 0,
- "linked_type": "Project",
- "valid_from": "2021-01-01",
- "valid_to": "2021-01-01",
- "coupon_code": "string",
- "redemption_count": 0,
- "project_id": 0,
- "max_redemptions": 0,
- "expire_after": 0,
- "timezone": "string",
- "tags": [
- "string"
], - "created_at": "2017-07-21T17:32:28Z",
- "updated_at": "2017-07-21T17:32:28Z"
}
]
}
Code
id | integer |
status | string Enum: "expired" "future" "valid" "invalid" "collection_unlocked" "current" "max_redemptions" |
linked_id | integer |
linked_type | string Enum: "Project" "Collection" |
string or null (Date) | |
string or null (Date) | |
coupon_code | string |
redemption_count | integer |
project_id | integer |
integer or null | |
integer or null | |
timezone | string (Timezone) Timezone as defined by TZInfo |
tags | Array of strings (TagList) Array of tags to help orgainse the codes |
string or null (DateTime) | |
string or null (DateTime) |
{- "id": 0,
- "status": "expired",
- "linked_id": 0,
- "linked_type": "Project",
- "valid_from": "2021-01-01",
- "valid_to": "2021-01-01",
- "coupon_code": "string",
- "redemption_count": 0,
- "project_id": 0,
- "max_redemptions": 0,
- "expire_after": 0,
- "timezone": "string",
- "tags": [
- "string"
], - "created_at": "2017-07-21T17:32:28Z",
- "updated_at": "2017-07-21T17:32:28Z"
}
{- "code": {
- "id": 0,
- "status": "expired",
- "linked_id": 0,
- "linked_type": "Project",
- "valid_from": "2021-01-01",
- "valid_to": "2021-01-01",
- "coupon_code": "string",
- "redemption_count": 0,
- "project_id": 0,
- "max_redemptions": 0,
- "expire_after": 0,
- "timezone": "string",
- "tags": [
- "string"
], - "created_at": "2017-07-21T17:32:28Z",
- "updated_at": "2017-07-21T17:32:28Z"
}
}
id required | integer ID of the Code to retrieve |
{- "code": {
- "id": 0,
- "status": "expired",
- "linked_id": 0,
- "linked_type": "Project",
- "valid_from": "2021-01-01",
- "valid_to": "2021-01-01",
- "coupon_code": "string",
- "redemption_count": 0,
- "project_id": 0,
- "max_redemptions": 0,
- "expire_after": 0,
- "timezone": "string",
- "tags": [
- "string"
], - "created_at": "2017-07-21T17:32:28Z",
- "updated_at": "2017-07-21T17:32:28Z"
}
}
id required | integer ID of the Code to retrieve |
Code
id | integer |
status | string Enum: "expired" "future" "valid" "invalid" "collection_unlocked" "current" "max_redemptions" |
linked_id | integer |
linked_type | string Enum: "Project" "Collection" |
string or null (Date) | |
string or null (Date) | |
coupon_code | string |
redemption_count | integer |
project_id | integer |
integer or null | |
integer or null | |
timezone | string (Timezone) Timezone as defined by TZInfo |
tags | Array of strings (TagList) Array of tags to help orgainse the codes |
string or null (DateTime) | |
string or null (DateTime) |
{- "id": 0,
- "status": "expired",
- "linked_id": 0,
- "linked_type": "Project",
- "valid_from": "2021-01-01",
- "valid_to": "2021-01-01",
- "coupon_code": "string",
- "redemption_count": 0,
- "project_id": 0,
- "max_redemptions": 0,
- "expire_after": 0,
- "timezone": "string",
- "tags": [
- "string"
], - "created_at": "2017-07-21T17:32:28Z",
- "updated_at": "2017-07-21T17:32:28Z"
}
{- "code": {
- "id": 0,
- "status": "expired",
- "linked_id": 0,
- "linked_type": "Project",
- "valid_from": "2021-01-01",
- "valid_to": "2021-01-01",
- "coupon_code": "string",
- "redemption_count": 0,
- "project_id": 0,
- "max_redemptions": 0,
- "expire_after": 0,
- "timezone": "string",
- "tags": [
- "string"
], - "created_at": "2017-07-21T17:32:28Z",
- "updated_at": "2017-07-21T17:32:28Z"
}
}
id required | integer ID of the Code to retrieve |
Code
id | integer |
status | string Enum: "expired" "future" "valid" "invalid" "collection_unlocked" "current" "max_redemptions" |
linked_id | integer |
linked_type | string Enum: "Project" "Collection" |
string or null (Date) | |
string or null (Date) | |
coupon_code | string |
redemption_count | integer |
project_id | integer |
integer or null | |
integer or null | |
timezone | string (Timezone) Timezone as defined by TZInfo |
tags | Array of strings (TagList) Array of tags to help orgainse the codes |
string or null (DateTime) | |
string or null (DateTime) |
{- "id": 0,
- "status": "expired",
- "linked_id": 0,
- "linked_type": "Project",
- "valid_from": "2021-01-01",
- "valid_to": "2021-01-01",
- "coupon_code": "string",
- "redemption_count": 0,
- "project_id": 0,
- "max_redemptions": 0,
- "expire_after": 0,
- "timezone": "string",
- "tags": [
- "string"
], - "created_at": "2017-07-21T17:32:28Z",
- "updated_at": "2017-07-21T17:32:28Z"
}
{- "code": {
- "id": 0,
- "status": "expired",
- "linked_id": 0,
- "linked_type": "Project",
- "valid_from": "2021-01-01",
- "valid_to": "2021-01-01",
- "coupon_code": "string",
- "redemption_count": 0,
- "project_id": 0,
- "max_redemptions": 0,
- "expire_after": 0,
- "timezone": "string",
- "tags": [
- "string"
], - "created_at": "2017-07-21T17:32:28Z",
- "updated_at": "2017-07-21T17:32:28Z"
}
}
page | integer Page number |
per_page | integer [ 1 .. 1000 ] Default: 30 Number of items per page, max 1000 |
sort_field | string Enum: "id" "name" "created_at" "updated_at" Field to sort by |
sort_direction | string Default: "ASC" Enum: "ASC" "DESC" Direction to sort by |
q | string Search query |
{- "meta": {
- "page": 1,
- "pages": 10,
- "per_page": 30,
- "count": 305
}, - "data": [
- {
- "id": 0,
- "name": "string",
- "created_at": "2017-07-21T17:32:28Z",
- "updated_at": "2017-07-21T17:32:28Z"
}
]
}
id required | integer ID of the Collection to retrieve |
{- "collection": {
- "id": 0,
- "name": "string",
- "created_at": "2017-07-21T17:32:28Z",
- "updated_at": "2017-07-21T17:32:28Z"
}
}
page | integer Page number |
per_page | integer [ 1 .. 1000 ] Default: 30 Number of items per page, max 1000 |
sort_field | string Enum: "id" "name" "created_at" "updated_at" Field to sort by |
sort_direction | string Default: "ASC" Enum: "ASC" "DESC" Direction to sort by |
q | string Search query |
{- "meta": {
- "page": 1,
- "pages": 10,
- "per_page": 30,
- "count": 305
}, - "data": [
- {
- "id": 0,
- "name": "string",
- "created_at": "2017-07-21T17:32:28Z",
- "updated_at": "2017-07-21T17:32:28Z"
}
]
}
id required | integer ID of the MediaItem to retrieve |
{- "media_item": {
- "id": 0,
- "name": "string",
- "created_at": "2017-07-21T17:32:28Z",
- "updated_at": "2017-07-21T17:32:28Z"
}
}
page | integer Page number |
per_page | integer [ 1 .. 1000 ] Default: 30 Number of items per page, max 1000 |
sort_field | string Enum: "id" "name" "created_at" "updated_at" Field to sort by |
sort_direction | string Default: "ASC" Enum: "ASC" "DESC" Direction to sort by |
q | string Search query |
{- "meta": {
- "page": 1,
- "pages": 10,
- "per_page": 30,
- "count": 305
}, - "data": [
- {
- "id": 0,
- "name": "string",
- "created_at": "2017-07-21T17:32:28Z",
- "updated_at": "2017-07-21T17:32:28Z"
}
]
}
page | integer Page number |
per_page | integer [ 1 .. 1000 ] Default: 30 Number of items per page, max 1000 |
sort_field | string Enum: "id" "name" "created_at" "updated_at" Field to sort by |
sort_direction | string Default: "ASC" Enum: "ASC" "DESC" Direction to sort by |
q | string Search query |
{- "meta": {
- "page": 1,
- "pages": 10,
- "per_page": 30,
- "count": 305
}, - "data": [
- {
- "id": 0,
- "name": "string",
- "created_at": "2017-07-21T17:32:28Z",
- "updated_at": "2017-07-21T17:32:28Z"
}
]
}