Answers.Body: <p>Would using the <a href="https://civicrm.org/extensions/group-based-pricing" rel="nofollow">Group Based Pricing</a> extension be an option? You could then in theory create a smart group for those contacts that have attended the event and use that group in the price configuration?</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-04T07:10:07.827Z
Answers.LastActivityDate: 2015-09-04T07:10:07.827Z
Answers.UserDisplayName: Parvez Saleh
Answers.Body: <p>I think the advanced api just allows you to add fields that would apply to contact.get api - e.g we use it like {"custom_67" : "Retiree"}</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-12-01T07:59:19.670Z
Answers.LastActivityDate: 2016-07-02T15:57:43.670Z
Answers.LastEditDate: 2016-07-02T15:57:43.670Z
Answers.UserDisplayName: eileen
Answers.Body: <p>If 'Participant' is allowed as an 'entity' in the entity box, {"event_id": "nn"} where nn = event_id of the event whose participants should get a discount seems like it should work w/out your having to put attendees into a group </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-30T14:26:30.053Z
Answers.LastActivityDate: 2016-07-02T15:58:00.780Z
Answers.LastEditDate: 2016-07-02T15:58:00.780Z
Answers.UserDisplayName: Lesley Evensen
Answers.Body: <p>Would this "Event Additional Signup" extension do the job: <a href="https://civicrm.org/extensions/event-additional-signup" rel="nofollow">https://civicrm.org/extensions/event-additional-signup</a> ?</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-30T10:51:26.400Z
Answers.LastActivityDate: 2015-09-30T10:51:26.400Z
Answers.UserDisplayName: Graham
Body: <p>CiviDiscount gives an easy way to say, "Members get a lower price on a certain event", but I have the opposite situation - "attendees of a certain event get a discount on a membership".  Can anyone tell me how to do this?</p>
  
  <p>It seems like I should be able to use the "advanced API filter" to find event attendees - but I can't find any examples of how to use that option.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-11-17T05:11:56.213Z
Comments.Text: hey jon - just skimming around topics related to CiviDiscount - any outcome on this?
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-11-17T17:35:13.660Z
Comments.Text: @petednz-fuzion I believe I got it working using an API call like Lesley and Eileen suggested - but I don't work there anymore and don't have access to the db, so can't say for sure!
Comments.UserDisplayName: Jon G - Megaphone Tech
Tags: <civievent><civimember><api><cividiscount>
Title: CiviDiscount based on group membership
ThreadText: # CiviDiscount based on group membership
  
  (Asked by: username_0 on 2015-09-03)
  
  CiviDiscount gives an easy way to say, "Members get a lower price on a certain event", but I have the opposite situation - "attendees of a certain event get a discount on a membership". Can anyone tell me how to do this?
  
  It seems like I should be able to use the "advanced API filter" to find event attendees - but I can't find any examples of how to use that option.
  
  **Tags:** civievent, civimember, api, cividiscount
  
  > **Comments:**
  > **username_1**: hey jon - just skimming around topics related to CiviDiscount - any outcome on this?  
  > **username_0**: @petednz-fuzion I believe I got it working using an API call like Lesley and Eileen suggested - but I don't work there anymore and don't have access to the db, so can't say for sure!  
  
  ---
  
  ## 4 answers
  
  ### Answer by username_2 on 2015-09-04. Score: 2
  
  Would using the [Group Based Pricing](https://civicrm.org/extensions/group-based-pricing) extension be an option? You could then in theory create a smart group for those contacts that have attended the event and use that group in the price configuration?
  
  
  ---
  
  ### Answer by username_3 on 2015-12-01. Score: 1
  
  I think the advanced api just allows you to add fields that would apply to contact.get api - e.g we use it like {"custom\_67" : "Retiree"}
  
  
  ---
  
  ### Answer by username_4 on 2015-09-30. Score: 0
  
  If 'Participant' is allowed as an 'entity' in the entity box, {"event\_id": "nn"} where nn = event\_id of the event whose participants should get a discount seems like it should work w/out your having to put attendees into a group
  
  
  ---
  
  ### Answer by username_5 on 2015-09-30. Score: 0
  
  Would this "Event Additional Signup" extension do the job: <https://civicrm.org/extensions/event-additional-signup> ?
  
  
  ---
  
  