The purchaseBundle API call is used to purchase a bundle for a member. It can be used to purchase bundles for existing members or to place an initial purchase for new members. For initial purchases for new members, MemberMouse will automatically create a new account, apply the default membership level and then purchase the bundle and apply it to the new account.



Sample Request URL


http://{Your_API_URL}?q=/purchaseBundle



Input Parameters


Parameter Description Required
apikey API key from MemberMouse API Credentials Yes
apisecret API secret from MemberMouse API Credentials Yes
product_id The ID of the product to charge the member for. This must be a valid product ID that's associated with an active bundle in MemberMouse. Yes
email Email address of the member to purchase the bundle for Yes
first_name First name of the new member No
last_name Last name of the new member No
phone Phone number of the new member No
billing_address billing address of the new member Yes
billing_city billing city of the new member. Yes
billing_state billing state of the new member Yes
billing_zip billing zip code of the new member Yes
billing_country billing country of the new member (2-digit ISO country code) Yes
credit_number New member's credit card number Yes
exp_month Expiration month of the new member's credit card (2 digits) Yes
exp_year Expiration year of the new member's credit card (4 digits) Yes
security_code Security code (CVV) of the new member's credit card Yes
shipping_same_as_billing This can be set to YES or NO. If set to YES you do not need to provide shipping address information. NO is the default value. No
shipping_method Shipping method code of the shipping method you want to apply to the order. You can find shipping method codes on the shipping methods screen in MemberMouse. Conditional (No if shipping address is the same as billing address)
shipping_address shipping address of the new member Conditional (No if shipping address is the same as billing address)
shipping_city shipping city of the new member Conditional (No if shipping address is the same as billing address)
shipping_state shipping state of the new member Conditional (No if shipping address is the same as billing address)
shipping_zip shipping zip code of the new member Conditional (No if shipping address is the same as billing address)
shipping_country shipping country of the new member (2-digit ISO country code) Conditional (No if shipping address is the same as billing address)
affiliate_id Affiliate ID to create with the order No
sub_affiliate_id Sub-affiliate ID to credit with the order No
coupon_code Valid coupon code that you want applied to the order No

Response Codes


  • 200 - Success

  • 409 - Unable to add bundle


Response Data


Parameter Description
confirmation_url The URL for the confirmation page associated with the purchase. It has a transaction key attached to it so that MemberMouse SmartTags will work on the confirmation page.