1. RunSignup
  2. API
  3. Methods
  4. Get Giveaway Inventories

Get Giveaway Inventories

This API returns every giveaway option on an event with the quantity remaining in its inventory.

quantity_remaining is the inventory’s total quantity minus the registrations assigned to that inventory. Options that share a giveaway_option_inventory_id return the same quantity_remaining. quantity_remaining is null when the option has no inventory. 0 means none are left, and a negative number means the inventory is oversold.

Response Format


{
	"giveaway_options": [
		{
			"giveaway_option_id": 1,
			"giveaway_option_inventory_id": 10,
			"quantity_remaining": 4
		},
		{
			"giveaway_option_id": 2,
			"giveaway_option_inventory_id": 10,
			"quantity_remaining": 4
		},
		{
			"giveaway_option_id": 3,
			"giveaway_option_inventory_id": null,
			"quantity_remaining": null
		}
	]
}

URL

https://api.runsignup.com/rest/v2/giveaway-inventories.json

HTTP Method

GET

API Caller Identification

Parameter HTTP Method Default Description Datatype
rsu_api_reg GET API caller token. If used, you must send the API caller password in an HTTP header named X-RSU-API-REG-SECRET. string
X-RSU-API-REG-SECRET HTTP Header API caller password. string

Parameters

Parameter HTTP Method Default Description Datatype
api_key GET Race API key. string
api_secret GET Race API secret. string
rsu_api_key GET API key string
X-RSU-API-SECRET HTTP Header API secret string
Authorization HTTP Header OAuth 2.0 Authorization header (e.g. `Bearer ...`). string
race_id
Required
GET Race ID. uint
event_id
Required
GET Event ID. uint

If you continue to use this site, you consent to use all cookies. We use cookies to offer you a better browsing experience. Read how we use cookies and how you can control them by visiting our Privacy Policy.

If you continue to use this site, you consent to use all cookies.