How can we make it easier for you to develop on top of Wild Apricot?

Creating Bundles with API

All was going very well with the API V2 until I wanted to set up Bundles with the membership. I can create contacts and assign a membership level. But when I try to assign a create a Bundle Administrator or Bundle Member, nothing seems to take. The API says only a Bundle ID and NOT an email address like the Import can use. To automate this process, I don't/can't use the Import process.

Has anyone been successful in using the API to create a Bundle? (Administrator and/or Member)

Any help is greatly appreciated. Our trial is almost over and this is the last thing that would put us over the edge to purchase. Without it, I will have a hard time justifying the work to change providers.

Thanks.

2 votes
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)

    We’ll send you updates on this idea

    brsinburnsville shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →
    Resolved  ·  AdminTeam Mobile (Mobile apps and API, Wild Apricot) responded  · 

    Now it is possible.

    Step by step:
    1. Create bundle admin
    2. As a result of POST operation you will get a json of new contact.
    So find a record in FieldValues with “FieldName”: “Bundle ID” and take “Value” from that record.
    3. Create a bundle member
    4. Check we have a bundle and it contains members we expect

    Here is a complete description with requests you should send: https://gist.github.com/DmitriySmirnov/8b29429d75e9b66eef9c88d4a647a3e8

    6 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...
      • kscorey commented  ·   ·  Flag as inappropriate

        I'm having an issue when attempting to create a Bundle member.

        The scenario I have is Membership Levels are used by several Bundle Administrators.

        If I use the API to create a Bundle member passing in membership level id and bundle id I do not see the new contact within the membership tab of the bundle administrator.

        They appear to have been created as a new Bundle administrator.

        e.g. If I have a Bundle administrator with Bundle ID of 2055529, the following json creates a new Bundle administrator: -
        {
        "FirstName": "Test",
        "LastName": "Case",
        "Email": "test.case@atest.com",
        "MembershipLevel": {
        "Id": 855680
        },
        "MembershipEnabled": true,
        "FieldValues": [
        {
        "FieldName": "Bundle ID",
        "Value": "2055529"
        },
        {
        "FieldName": "Position",
        "Value": "Web Test"
        },
        {
        "FieldName": "Member role",
        "Value": "Bundle member"
        }
        ],
        "Id": 0
        }

        I was expecting to see the new contact within the members list of the Bundle administrators.

      • kscorey commented  ·   ·  Flag as inappropriate

        Is it still the case that a Contact cannot be added to a bundle as a 'Bundle member' via the API?

      • Dmitry commented  ·   ·  Flag as inappropriate

        Currently there is no way to set bundle participation. Waiting for your votes to implement this feature.

        Regarding expiration of your trial account: you can contact WA support team and ask to extend trial period.

      Feedback and Knowledge Base