1. RunSignup
  2. API
  3. Methods
  4. Setup Event Age Based Pricing

Setup Event Age Based Pricing

Call this API method to set up age based pricing for an event. All existing pricing will be removed and replaced with the new pricing. The response from this API on success is a simple message with a “success” flag.

For JSON requests, the request should look like the example below.

{
	"age_based_pricing": [
		{
			"age_group_pricing_id": null,
			"start_time": "2016-05-29 00:00:00",
			"end_time": "2016-06-03 21:00:00",
			"race_fee_in_cents": 2000,
			"min_age": 10,
			"max_age": 19,
			"no_giveaway": "T",
			"no_membership_price_adjustments": "T"
		},
		{
			"age_group_pricing_id": null,
			"start_time": "2016-06-04 00:00:00",
			"end_time": "2016-06-04 09:00:00",
			"race_fee_in_cents": 2250,
			"min_age": 10,
			"max_age": 19,
			"no_giveaway": "T",
			"no_membership_price_adjustments": "T"
		}
	]
}

For XML requests, the request should look like the example below.

<age_based_pricing>
	<age_range_price>
		<age_group_pricing_id>null<age_group_pricing_id>
		<start_time>2016-05-29 00:00:00<start_time>
		<end_time>2016-06-03 21:00:00<end_time>
		<race_fee_in_cents>2000<race_fee_in_cents>
		<min_age>10<min_age>
		<max_age>19<max_age>
		<no_giveaway>T<no_giveaway>
		<no_membership_price_adjustments>T<no_membership_price_adjustments>
	</age_range_price>
	<age_range_price>
		<age_group_pricing_id>null<age_group_pricing_id>
		<start_time>2016-06-04 00:00:00<start_time>
		<end_time>2016-06-04 09:00:00<end_time>
		<race_fee_in_cents>2250<race_fee_in_cents>
		<min_age>10<min_age>
		<max_age>19<max_age>
		<no_giveaway>T<no_giveaway>
		<no_membership_price_adjustments>T<no_membership_price_adjustments>
	</age_range_price>
</age_based_pricing>

URL

https://www.givesignup.org/rest/race/:race_id/pricing/age-based

HTTP Method

POST

Standard Parameters

Parameter HTTP Method Default Description Datatype
api_key GET API Key string
api_secret GET API Secret string
tmp_key GET Temporary API Key from login API call. This should NOT be used in combination with API Key. string
tmp_secret GET Temporary API Secret from login API call. This should NOT be used in combination with API Secret. string
rsu_api_key GET API v2 key. If used, you must send the API secret in an HTTP header named X-RSU-API-SECRET. string
sp_api_key GET Super partner API key. If used, you must send the API secret in an HTTP header named X-RSU-API-SECRET. string
X-RSU-API-SECRET HTTP Header API v2 or super partner secret. string
format GET xml Format of response. The default if not sent is `xml`, but `json` is preferred. format

Parameters

Parameter HTTP Method Default Description Datatype
race_id
Required
POST ID of race. uint
event_id
Required
POST ID of event. uint
request_format POST xml Format of request. The default if not sent is `xml`, but `json` is preferred. format
request
Required
POST Request in proper format. string

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.