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.
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
-
kscorey commented
Thanks Dmitry,
That resolved the issue.
-
Dmitry Smirnov commented
Kevin,
I took you code and replaced ID with values from my account. Everything works fine except for 1 thing: you pass bundle id value as a string ("2055529") but it should be a number (2055529) as API returned.
I am 100% sure code is valid (https://gist.github.com/DmitriySmirnov/8b29429d75e9b66eef9c88d4a647a3e8).
So just replace
"Value": "2055529" => "Value": 2055529 -
kscorey commented
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
Is it still the case that a Contact cannot be added to a bundle as a 'Bundle member' via the API?
-
Evgeny Zaritovskiy commented
Moved to Wishlist
-
Dmitry Smirnov commented
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.