You can define a native integration for sending your end customer Account Bills generated in m3ter outbound into your Chargebee system:
First, create the integration.
Second, set up authentication for the integration to connect with Chargebee.
You can quickly set up a native Chargebee integration from the Configurations page in the Console.
Tip: Reviewing Integration Runs! When you've set up an integration with Chargebee for your Organization in your production environment, you can review details of the integration runs performed for the integration. See Reviewing Integration Run Details.
To define a m3ter - Chargebee integration:
1. Select Integrations:
The Configurations page opens in Grid view.
2. Under Chargebee, select Configure new integration>Integrate bills with Chargebee:
The Create page opens and the Entity type - Bill and External system - Chargebee are shown at the top of the page.
3. Use the Global configuration panel to:
Enter a Name for the Integration. This is required and is useful if you intend to create multiple Integrations for the same External system/Entity Type and need to clearly differentiate them.
Select the Accounts you want the integration to apply to:
Account ids. Select the Accounts you want to include - all selected Accounts are treated as allowed for the integration.
Restricted account ids. Select the Accounts you want to exclude - all selected Accounts are treated as disallowed for the integration.
Notes:
If you want to include all Accounts in the integration, leave both Accounts ids and Restricted account ids empty.
Any filtering by Account ids you define using these settings to control which Accounts the integration runs for will be in addition to any filtering you define using the Account filter option - see the following step for Entity Configuration options.
Select Users for Email notifications if disabled:
Integration disabled notification users. Select Organization Users you want to receive an Email notification if the integration is automatically disabled.
Notes:
An integration is automatically disabled if there have been 10 successive previous error Event responses to earlier attempts to run the integration. See Reviewing and Resolving Integration Events for more details.
If you select Organization Users to receive an Email notification when the integration is automatically disabled, their User id will be listed under Configuration Data on the Integration Details page.
4. Use the Entity configuration panel to configure the m3ter entity you'll be synchronizing with for the integration. In the case of an outbound Bill integration, this entity will be the Bill generated for a customer Account in m3ter:
Only send bill on approval. Enable this if you only want Bills to be sent when they have been approved. If disabled, the Bill will be sent every time it is regenerated. Default is disabled. Note that:
The frequency of Bills sent will depend on the billing frequency defined for the Account Plan attached to the Account - such as daily/weekly/monthly/annually.
If an Account has a Prepayment on it and the billing for Prepayment fees is configured to run on a customized schedule, Bills will be sent when scheduled Bills are generated.
If a Bill is manually recalculated the updated Bill will be sent.
If you enable this, then the integration will not run for all Bill Jobs.
Use external mapping account code. Enable this if you want the integration to look in the External Mappings for the Account identifier code, which means you can use an external Id. If this is disabled, the m3ter Account Id is used. Default is disabled.
Excluded line item types. Optionally filter the Bill line items you send to the destination system. For example, only send charges or credits and exclude all other line items.
For details of line item types, see Bill Line Item Types.
Account filter. Optionally, enter an expression that is run on the Account to determine whether or not the integration is run. You can use this setting if you have multiple destinations for sending Bills outbound to your Chargebee system. For example:
customFields != null AND customFields.country = = UK
In this example, the integration will run for an Account only if you have created a Custom Field for the Account called country and given the field a value of UK.
Notes:
Other Account fields for Account filter expression? You can reference other fields on the Account object in the Account filter expression. For details and another example, see Managing Multiple Third Party Destinations for Integrations.
Additional filtering? Any global filtering you define using the settings to include/exclude Accounts for integration runs by Account ids will be in addition to any filtering you define using the Account filter option - see the previous step for Global Configuration.
Enforce external mappings for config. Optionally enable this if you want the integration to use only those external mappings specified as being for this configuration.
Use this setting if you want to set up multiple integrations for the same external system. You can then create separate external mappings for each integration from the details page of each integration, and these external mappings become Linked external mappings for the specific integration. See Creating Linked External Mappings.
5. Use the External system configuration panel to enter the settings specific to the external system. These settings include field mappings as well as other system-specific configurations:
Chargebee minimum spend item price. Optional - enter the Charge Item Price ID to use when minimum spend line items are added to the invoice. Note that the value of the Charge Item will be used as the default value if there is no value available for a given pricing.
Chargebee standing charge item price. Optional - enter the Charge Item Price ID to use when standing charge line items are added to the invoice. Note that the value of the Charge Item will be used as the default value if there is no value available for a given pricing.
Chargebee create invoice. Whether or not m3ter should create an invoice in Chargebee. If disabled, m3ter will wait for Chargebee to generate a subscription invoice before trying to add line items. Default is disabled.
Chargebee use multidecimal. Whether or not multi-decimal support is enabled in your Chargebee site. If it is, m3ter can send certain line item values with higher precision. Default is disabled.
Chargebee multi decimal price decimal places. Enter the number of decimal places to be used when sending multi-decimal price values to Chargebee. This should be less than or equal to the number of decimal places configured in your Chargebee site:
Note: Only relevant if Chargebee use multidecimal is enabled.
Chargebee multi decimal units decimal places. Enter the number of decimal places to be used when sending multi-decimal units values to Chargebee. This should be less than or equal to the number of decimal places configured in your Chargebee site:
Note: Only relevant if Chargebee use multidecimal is enabled.
Tip: Rounding for decimal values? Values are rounded up to nearest half. For example, if price or unit values in m3ter are set to 5 decimal places and you set price or unit values for the integration to use 3 decimal places to match the setting in Chargebee:
0.13333 is rounded to 0.133
0.16666 is rounded to 0.167
Split usage line items. This setting determines how m3ter will create usage invoice items in Chargebee. Chargebee charge items can be mapped to an individual usage pricing band or to a product:
Item per usage band
Item per product
Chargebee default price id. This setting defines the Chargebee Price ID that will be used if there is no External Mapping entity configured in m3ter between m3ter and Chargebee - for example "Other".
Chargebee price id mapping:
If configured, this setting means line items of the specified type will be mapped to the specified Chargebee Price ID.
If not configured, the CHARGEBEE_DEFAULT_PRICE_ID will be used.
Sort line items by. Optionally, select a property to sort line items by before they are sent out to the external system. Three options:
None
Subtotal
Aggregation ID
6. Select Create integration. You are taken to the details page for the integration, where you can immediately complete the configuration by setting up authentication to allow the integration to connect with your Chargebee system - see the following Setting Up Authentication section for details:
Note that if you are not ready to continue your workflow immediately and set up authentication, you can do this at a later time.
When you've created a Chargebee integration, you can select an Integration Credential you've created for authentication allowing the integration to connect with your Chargebee system:
Note that if you've followed the workflow given in the earlier section for creating the integration, on creation you'll be taken directly to the Integration Details page to continue and immediately set up authentication. The procedure described in this section assumes you've returned at a later date to set up authentication for the integration - the main steps you need to follow if you're setting up authentication immediately after creation are the same.
To set up authentication for your m3ter - Chargebee integration:
1. Select Configurations. The Configurations page opens in Grid view.
2. Select the NAME hotlink text of the Chargebee integration you want to set up authentication for. The Integration details page opens:
Notes:
A warning is shown that the integration is not yet connected to your Chargebee system.
The ID of the integration configuration is shown at the bottom of the Details card, and you can copy the ID directly to your clipboard.
3. Select Add credential. A Select one credential modal appears.
4. Select a Credential you created earlier and want to use to authenticate the integration with Chargebee. See Creating Chargebee Integration Credentials.
5. Select Confirm. The modal closes and on Integrations details the integration now shows as CONNECTED:
If at any time you want to disconnect the integration, select Disconnect.
If you want to use a different Credential for connecting the integration, select Update credential. The Select one credential modal appears and you can select a different Credential.
Tip: Testing your Native Integration Setup? Your Chargebee integration is now available for use. However, it remains in Beta release and we strongly recommend you test the implementation in your m3ter Sandbox or QA environment before releasing it to your Production environment. See section 7. of our Terms of Service for Beta Usage.
Tip: Integrations API Calls? When you have set up your Chargebee integration, you can review and manage the integration using a full set of API Calls. See the Integrations section of our API Reference Docs.
Next: Managing Multiple Third Party Destinations for Integrations
Login to the Support portal for additional help and to send questions to our Support team.