I am trying to use the API 4 to get all the related Price Sets for a given Contribution Page. I am having a hard time with this, being new to the API and the join function. Any help? In API 3, Price Sets were returned with a list of related entities, and I was able to go through all of them to identify those related to the Contribution Page.
1 Answer
Unfortunately, there isn't a way to get the price set used for the contribution or event page. The link is stored in civicrm_price_set_entity, with entity_table set as civicrm_contribution_page or civicrm_event and entity_id as contribution page or event id.