๐ฏChallenges
This page provides an exhaustive description of all the routes available for managing challenges. Each route is explained, with its parameters, required headers, possible responses and examples of use
Last updated
This page provides an exhaustive description of all the routes available for managing challenges. Each route is explained, with its parameters, required headers, possible responses and examples of use
Last updated
โก๏ธ Get all challenges from a location
โก๏ธ Get a location challenge
โก๏ธ Activate location challenge
Parameter | Type | Explanation | Mandatory |
---|---|---|---|
This route enables you to retrieve the challenges linked to a specific location. It provides a detailed list of all current challenges, along with their descriptions, statuses, and other relevant details.
GET https://api.fyre.app/api/v1/locations/{fyre_id}/challenges
Requires permission:
challenges.list
This route allows you to retrieve details of a specific challenge linked to a location. By accessing this route, you will obtain full information on the challenge, such as its status, requirements and the results associated with the location concerned.
GET https://api.fyre.app/api/v1/locations/{fyre_id}/challenges/{challenge_id}
Requires permission:
challenges.read
This route allows you to accept a challenge associated with a specific location. Once accepted, the challenge will begin tracking sales for that location in real time
POSThttps://api.fyre.app/api/v1/locations/{fyre_id}/challenges/{challenge_id}/activate
Requires permission:
challenges.accept
Value | Explanation |
---|---|
Parameter | Type | Explanation | Mandatory |
---|---|---|---|
Value | Explanation |
---|---|
Parameter | Type | Explanation | Mandatory |
---|---|---|---|
Parameter | Type | Explanation | Mandatory |
---|---|---|---|
id
string
Unique ID for the challenge
โ
fyre_id
string
Unique Location ID in Fyre system
โ
brand_id
string
Unique ID of the brand
โ
brand_name
string
Name of the brand
โ
title
string
Title of the challenge
โ
description
string
Description of the challenge
โ
contact_email
string
Brand contact email
โ
logo_url
string
Logo URL in storage
โ
banner_url
string
Banner URL in storage
โ
terms_and_conditions
Array<string>
Terms and conditions
โ
terms_and_conditions_url
string
URL to term and conditions document
โ
goal_type
Type of the goal
โ
goal_amount
number
Challenge goal amount depending on the goal type: this can either be amount or quantity
โ
products
Array of product IDs for this challenge
โ
start_date
string
Challenge start date format ISO 8601
โ
end_date
string
Challenge end date format ISO 8601
โ
location_challenge_status
Challenge status (see LocationChallengeStatus for more informations)
โ
sales
{
[product_id: string]: {
goal_amount: number
}
}
Sales grouped by product ID
โ
accepted_at
string
Date when the challenge was accepted format ISO 8601
โ
completed_at
string
Date when the challenge was completed format ISO 8601
โ
published_at
string
Date when the challenge was published format ISO 8601
โ
created_at
string
Date when the challenge was created format ISO 8601
โ
updated_at
string
Date when the challenge was updated format ISO 8601
โ
amount
Amount to reach
quantity
Quantity to sell to reach
referential_ref
string
ID of the product in brands system
โ
name
string
Name of the product
โ
image_url
string
Image URL of the product
โ
published
Challenge status is set as "published" once the brand published it
accepted
Challenge status is set as "accepted" if location has accepted to participate in a challenge
completed
Challenge status is set as "completed" if location has reached the challenge goal
expired
The challenge status is set to "expired" if the challenge has ended, the location did not meet the goal in time, or the location did not participate in the challenge.
disabled
The challenge status is set to "disabled" when the brand has published the challenge, but the location's access has been revoked.
status
Array<LocationChallengeStatus>
When provided, it will return only challenges that match the specified status.
โ
brand_id
Array<string>
When provided, it will return only challenges that were published by a speicifc brand
โ
filter
LocationChallengesFilterInput
If provided, it will filter the location challenges by status and/or brand.
โ