Public Commission Sample Data
2 min
If you need a set of sample commission data to test against, there are a few options available:
- If you already have a Wildfire Application ID and Secret, you can request sample commissions be created for your application. These sample commissions include a very small set of data with a single record in each possible status.
- Alternatively, if you need a larger, more diverse set of data, or if you don't have an application created yet, you can use a sample set of commission data.
This page describes this second option.
API Description
Get Sample Commission Data
Retrieve a sample set of commission data
GET
https://api.wfi.re/v5/public/commission?limit=100
require "uri"
require "net/http"
url = URI("https://api.wfi.re/v5/public/commission?limit=10")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Accept"] = "application/json"
response = https.request(request)
puts response.read_body
Response Details
These records will represent a normal commission with the following exceptions:
- The ApplicationID will always show as 0
- The Device ID will always show as 0
- The Status is randomized (you'll see cases where a brand new commission record is marked PAID which would never happen in the practice)
You can find the other description of fields in the following article: Syncing Commission Data via API and Callbacks