Map subscription to an organizer

This API is used to associate or upgrade a plan to an organizer.
When this API gets called, the application will create a monthly overage subscription in Chargebee if it's not created yet. Along with this, the application also updates the plan name to the intercome for the company.
If the passed invoice has a charge and has already been used to add a plan quantity, then that will be ignored and it will not add an unwanted plan quantity.
If the Invoice has charges of starter or professional plan then that plan quantity will be added to the organizer.
If the invoice will have a charge for DES (Dedicated Event Support) then that also gets added to the application for reference.

Path Parameters
organizerId- Unique identifier of an organizer.

Body Parameters
Not Required

Response
Details / Check response object

Authentication required - ✅

Role wise accessibility 

Super Admin - ✅
Admin - ❌
Staff - ❌
Attendee - ❌
Exhibitor - ❌
Speaker - ❌

Modules
Display - ❌
Portal - ❌
Host - ✅

Here are the possible error messages, which will return if any condition fails or if the required data is missing for processing.

Error code

Error description

4030203

This will appear when a user who does not have a superadmin access tries to call this API.

4040600

This will appear when the passed organizer id is not found.

4040100

This will appear when no owner is found for an organizer profile.

4044004

This will appear when the passed customer id is not found in Chargebee.

40440105

This will appear when the passed subscription id is not found in Chargebee.

4044104

This will be raised when the invoice has an item that does not exist on our platform.

4060516

This will appear when the passed subscription ID is already linked to another organizer or Whitelabel account.

For a subscription id that is associated with another organizer, the error message will be the following:
Subscription id is already linked with the Organizer {Organizer_URL}

For a subscription id that is associated with a Whitelabel account, the error message will be the following:
Subscription id is already linked with the Whitelabel {Whitelabel_URL}

4060536

The subscription is for a Legacy Plan and is associated after 2021. This error will appear because, after 2021, the Legacy Plan is no longer supported.

Language
Authentication
Header
Click Try It! to start a request and see the response here!