ChartMogul

The ChartMogul modules allow you to create, update, retrieve, and delete customers, plans, plan group, data source, and subscriptions in your ChartMogul account.

Getting Started with ChartMogul

Prerequisites

  • A ChartMogul account

In order to use ChartMogul with Integromat, it is necessary to have a ChartMogul account. If you do not have one, you can create a ChartMogul account at app.chartmogul.com/sign_up/1.

The module dialog fields that are displayed in bold (in the Integromat scenario, not in this documentation article) are mandatory!

Connecting ChartMogul to Integromat

To connect your ChartMogul account to Integromat you need to obtain the Access Token and Secret Key from your ChartMogul account and insert it in the Create a connection dialog in the Integromat module.r

1. Login to your ChartMogul account.

2. Go to Admin (cog-wheel) > API tab.

caTtPGKDqS.gif

3. Find the generated Access Token and Secret Key on the API Credentials page.

chartmogul1.png

4. Go to Integromat and open the ChartMogul module's Create a connection dialog.

nXPkghmyVN.gif

5. In the Connection name field, enter a name for the connection.

6. In the Token and Secret Key field, enter the access token and secret key provided in step 3. Click Continue.

The connection has been established.

Customer

List Customers

Returns a list of invoice objects created using the API in your ChartMogul account.

ConnectionEstablish a connection to your ChartMogul account.
LimitSet the maximum number of customers Integromat should return during one scenario execution cycle.
Data SourceSelect the data source whose related customers you want to list.
External IDEnter the unique external identifier of the customers you want to list.
StatusSelect the status of the customers whom you want to list:
  • Lead
  • Active
  • Past Due
  • Canceled
SystemSelect the billing system of the customers you want to list:
  • Stripe
  • Recurly
  • Chargify
  • Custom

Get a Customer

Retrieves a customer object from your ChartMogul account.

ConnectionEstablish a connection to your ChartMogul account.
CustomerSelect the customer whose details you want to retrieve.

Create a Customer

Creates a customer object in ChartMogul under the specified data source.

ConnectionEstablish a connection to your ChartMogul account.
Data SourceSelect the data source from where the customer comes from.
External IDEnter the unique ID specified for the customer.
NameEnter the name of the customer.
EmailEnter the email address of the customer.
CompanyEnter the company name to which the customer belongs to.
CountryEnter the customer's or customer company's country location.
StateEnter the state code of the customer or customer's company.
CityEnter the city name of the customer or customer's company.
ZipEnter the area zip code of the customer or customer's company.
Lead Created AtEnter the date and time when the customer is established as a lead.
Free Trial Started AtEnter the date and time when the customer's free trial period started.
TagsEnter the tags related to the customer.
Custom

Add the custom attributes:

Type

Select the data type.

Key

Enter the name of the custom attribute.

Value

Enter the value of the custom attribute.

Update a Customer

Updates certain modifiable attributes of a customer object in your ChartMogul account.

ConnectionEstablish a connection to your ChartMogul account.
CustomerSelect the customer whose details you want to update.
Data SourceSelect the data source from where the customer comes from.
External IDEnter the unique ID specified for the customer.
NameEnter the name of the customer.
EmailEnter the email address of the customer.
CompanyEnter the company name to which the customer belongs to.
CountryEnter the customer's or customer company's country location.
StateEnter the state code of the customer or customer's company.
CityEnter the city name of the customer or customer's company.
ZipEnter the area zip code of the customer or customer's company.
Lead Created AtEnter the date and time when the customer is established as a lead.
Free Trial Started AtEnter the date and time when the customer's free trial period started.
TagsEnter the tags related to the customer.
Custom

Add the custom attributes:

Type

Select the data type.

Key

Enter the name of the custom attribute.

Value

Enter the value of the custom attribute.

Delete a Customer

Deletes the specified customer object and all its associated data.

ConnectionEstablish a connection to your ChartMogul account.
CustomerSelect the customer you want to delete.

Plan

List Plans

Returns a list of plan objects in your ChartMogul account.

ConnectionEstablish a connection to your ChartMogul account.
LimitSet the maximum number of plans Integromat should return during one scenario execution cycle.
Data SourceSelect the data source whose related customers you want to list.
SystemSelect the billing system of the customers you want to list:
  • Stripe
  • Recurly
  • Chargify
  • Custom

Get a Plan

Retrieves a plan object from your ChartMogul account.

ConnectionEstablish a connection to your ChartMogul account.
PlanSelect the plan whose details you want to retrieve.

Create a Plan

Creates a plan object in ChartMogul under the specified source.

ConnectionEstablish a connection to your ChartMogul account.
Data Source UUIDSelect the Data Source ID for which you want to create the subscription plan.
Plan NameEnter a name for the plan. Accepts alphanumeric characters.
Interval CountEnter the frequency of the billing for the plan. For example, 6 for a half-yearly plan.
Interval UnitSelect the unit for billing interval:
  • Day
  • Month
  • Year

For example, month for the above half-yearly plan.

External IDEnter the unique External ID for the plan. It should be an identifier from your internal system. Accepts alphanumeric characters.

Update a Plan

Updates a plan object in your ChartMogul account.

ConnectionEstablish a connection to your ChartMogul account.
PlanSelect the plan whose details you want to update.
Data Source UUIDSelect the Data Source ID the plan belongs to.
Plan NameEnter a name for the plan. Accepts alphanumeric characters.
Interval CountEnter the frequency of the billing for the plan. For example, 6 for a half-yearly plan.
Interval UnitSelect the unit for billing interval:
  • Day
  • Month
  • Year

For example, month for the above half-yearly plan.

External IDEnter the unique External ID for the plan. It should be an identifier from your internal system. Accepts alphanumeric characters.

Delete a Plan

Deletes the specified plan object in your ChartMogul account.

ConnectionEstablish a connection to your ChartMogul account.
PlanSelect the plan you want to delete.

Plan Group

Get a Plan Group

Retrieves a plan group object from your ChartMogul account.

ConnectionEstablish a connection to your ChartMogul account.
Plan GroupSelect the plan group whose details you want to retrieve.

Create a Plan Group

Creates a plan group object in ChartMogul.

ConnectionEstablish a connection to your ChartMogul account.
NameEnter a name for the plan group.
PlanAdd the plans for the plan group.

Update a Plan Group

Updates a plan group object in your ChartMogul account.

ConnectionEstablish a connection to your ChartMogul account.
Plan GroupSelect the plan group whose details you want to update.
NameEnter a name for the plan group.
PlanAdd the plans for the plan group.

Deletes a Plan Group

Deletes the specified plan group object from your ChartMogul account.

ConnectionEstablish a connection to your ChartMogul account.
Plan GroupSelect the plan group you want to delete.

Data Source

List Data Source

List all data source object in your ChartMogul account.

ConnectionEstablish a connection to your ChartMogul account.
LimitSet the maximum number of data sources Integromat should return during one scenario execution cycle.
Filter by NameEnter the data source name you want to list. For example, My data source.
Filter by SystemSelect the billing system of the data source you want to list:
  • Stripe
  • Recurly
  • Chargify
  • Custom

Get a Data Source

Retrieves a data source object from your ChartMogul account.

ConnectionEstablish a connection to your ChartMogul account.
Data SourceSelect the data source whose details you want to retrieve.

Create a Data Source

Creates a data source object for importing data into ChartMogul.

ConnectionEstablish a connection to your ChartMogul account.
NameEnter a unique name for the data source. For example, Implementation system.

Delete a Data Source

Deletes the specified data source object and all its associated data.

ConnectionEstablish a connection to your ChartMogul account.
Data SourceSelect the data source you want to list.

Invoices

List Invoices

Returns a list of invoice objects created using the API in your ChartMogul account.

ConnectionEstablish a connection to your ChartMogul account.
LimitSet the maximum number of invoices Integromat should return during one scenario execution cycle.
Data SourceSelect the data source whose invoices you want to list.
CustomerSelect the customer whose invoices you want to list.
External IDSelect the unique External ID of the invoice you want to list.

Get an Invoice

Retrieves an invoice object from your ChartMogul account.

ConnectionEstablish a connection to your ChartMogul account.
InvoiceSelect the invoice whose details you want to retrieve.

Import an Invoice

Creates an invoice for a given API customer.

ConnectionEstablish a connection to your ChartMogul account.
Customer UUIDSelect the Customer ID whose invoice you want to import.
External IDEnter the unique External ID of the invoice. It should be an identifier from your internal system. Accepts alphanumeric characters.
Date Enter the date on which the invoice was raised.
CurrencyThe 3-letter currency code of the currency in which this invoice is billed. For example, USD, EUR, GB
Line Items

Add the line items of the invoice:

TypeSelect the invoice type:
  • Subscription
  • One Time
Amount in CentsEnter the final amount charged for the line item for the specified quantity and service period, after discounts, taxes, and fees have been applied.
Subscription External IDEnter the unique identifier for the subscription in your system. Applicable only for the subscription items.
Subscription Set External IDEnter the ChartMogul UUID of the plan for which this subscription is being charged. Applicable only for the subscription items.
Plan UUIDEnter the ChartMogul UUID of the plan for which this subscription is being charged. Applicable only for the subscription items.
  • Gold Quarterly
  • Platinum Monthly
  • Platinum Annual
  • Gold Bi-Annual
  • Gold Monthly
  • Gold Annual
Service Period StartEnter the start date of the service period for which this subscription is being charged. Applicable only for the subscription items.
Service Period EndEnter the end date of the service period for which this subscription is being charged. Applicable only for the subscription items.
Canceled AtEnter the date and time when the subscription has been canceled, if the subscription has canceled.
ProratedSelect whether this item is prorated:
  • Yes
  • No
  • Not defined

Accepted for one-time line items.
Ignored for subscription line items.

DescriptionEnter the details of the item.
QuantityEnter the quantity of the items. The default quantity is 1.
Discount Amount In Cents

Enter the discount applied to this line item in cents. Defaults to 0.

The discount amount does not impact the calculation of MRR.

Discount CodeEnter the discount code applicable to the item.
Tax Amount In CentsEnter the tax applied to this line item in cents. Defaults to 0. If specified, we exclude the tax amount from MRR.
Transaction Fees In CentsEnter the final total transaction fees paid to the billing provider and/or payment processor for this line item in cents (or pence for GBP, etc.).
External IDEnter the unique External ID specified for the line item. Typically an identifier from your internal system. Accepts alphanumeric characters.
Account CodeEnter the unique account code or the account number of this line item used for the purposes of accounting and revenue recognition. Accepts a maximum of 30 alphanumeric characters.
Data SourceEnter the ChartMogul UUID of the Data Source to which these invoices should be attributed. 
Customer External IDEnter the unique Customer External ID specified by you for the customer. Typically an identifier from your internal system. Accepts alphanumeric characters. 
Transactions

Add the transactions:

DateEnter the date of the transaction was made.
TypeSelect the transaction type:
  • Payment
  • Refund
ResultSelect the transaction result:
  • Successful
  • Failed
External IDEnter the unique External ID of the transaction.
Due DateEnter the date by when the invoice must be paid.

Delete an Invoice

Deletes the specified invoice object and all its associated data.

ConnectionEstablish a connection to your ChartMogul account.
Invoice Select the invoice you want to delete.

Import an Invoice Transaction

Creates a transaction object for an invoice imported using the import API.

ConnectionEstablish a connection to your ChartMogul account.
InvoiceSelect the invoice whose transaction you want to import.
TypeSelect the invoice transaction type:
  • Payment
  • Refund
Date

Enter the date of the transaction.

ResultSelect the result of the invoice transaction:
  • Successful
  • Failed
External IDEnter the External ID of the invoice transaction.

Subscriptions

List Customer's Subscriptions

Returns a list of subscription objects for a given customer.

ConnectionEstablish a connection to your ChartMogul account.
CustomerSelect the customer whose subscriptions you want to list.
LimitSet the maximum number of subscriptions Integromat should return during one scenario execution cycle.

Cancel a Customer's Subscription

Cancels a list of subscription that was generated from an imported invoice.

ConnectionEstablish a connection to your ChartMogul account.
Subscription UUIDEnter the ChartMogul UUID of the subscription that needs to be canceled.
Canceled AtEnter the time at which the subscription was canceled.
Cancellation Dates

Add the cancellation dates:

Canceled At

Enter the time at which the subscription was canceled.

Other

Make an API Call

Performs an arbitrary authorized API call. 

ConnectionEstablish a connection to your ChartMogul account.
URL

Enter a path relative to https://api.chartmogul.com/. For example: /v1/customers

For the list of available endpoints, refer to the ChartMogul API Documentation.
Method

Select the HTTP method you want to use:

GET
to retrieve information for an entry.

POST
to create a new entry.

PUT
to update/replace an existing entry.

PATCH
to make a partial entry update.

DELETE
to delete an entry.

HeadersEnter the desired request headers. You don't have to add authorization headers; we already did that for you.
Query StringEnter the request query string.
BodyEnter the body content for your API call.

Example of Use - List Plans

The following API call returns all the plans from your ChartMogul account:

URL:
/v1/plans

Method:
GET

chartmogul3.png

Matches of the search can be found in the module's Output under BundleBody > plans
In our example, 6 plans were returned:

chartmogul2.png

 

Popular use cases from our blog

automated-data-collection-crm-illustration

How to Automate Data Collection - Part 5: CRM Systems

automated-data-collection-chatbot-marketing-illustration

How to Automate Data Collection - Part 4: Chatbot Marketing

automated-data-collection-paid-ads-illustration

How to Automate Data Collection - Part 3: Paid Ads

automated-data-collection-email-illustration

How to Automate Data Collection - Part 2: Email Marketing Segmentation

personalized-customer-experience-illustration-integromat

5 Automated Solutions to Personalize Customer Experience

data-collection-automation-forms-pt-1

How to Automate Data Collection - Part 1: Online Forms

Didn’t find what you were looking for?

Expert

Find an expert

We feature a network of 450+ certified partners across the globe who are ready to help

Find an expert

Automate any workflow in your business

Sign up for a free account today. No credit card required, no time limits on free plan.