Creates multiple subscriptions at once under the same customer and consolidates them into a subscription group.
You must provide one and only one of the payer_id/payer_reference/payer_attributes for the customer attached to the group.
You must provide one and only one of the payment_profile_id/credit_card_attributes/bank_account_attributes for the payment profile attached to the group.
Only one of the subscriptions can have "primary": true attribute set.
When passing a product to a subscription you can use either product_id or product_handle or offer_id. You can also use custom_price instead.
The subscription request examples below will be split into two sections.
The first section, "Subscription Customization", will focus on passing different information with a subscription, such as components, calendar billing, and custom fields. These examples will presume you are using a secure chargify_token generated by Maxio.js (formerly Chargify.js).
The username is a Maxio Chargify API key and the password is x. Basic authentication works only with the US and EU environments, which connect to chargify.com directly. The Maxio API Gateway environment does not accept Basic authentication.
In: header
application/json
TypeScript Definitions
Use the request body type in TypeScript.
application/json
application/json
curl -X POST \ --url 'https://subdomain.chargify.com/subscription_groups/signup.json' \ -H 'Accept: application/json' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer ACCESS_TOKEN' \ --data-raw '{ "subscription_group": { "payment_profile_id": 123, "payer_id": 123, "subscriptions": [ { "product_id": 11, "primary": true }, { "product_id": 12 }, { "product_id": 13 } ] }}'