API Quickstart
For detailed documentation on the Maple API, please review our API Reference
Get an API Token
Create an API token from the Maple web app under Developers > API Token. The generated token will only be visible to you once.
Once created, you cannot retrieve or update the same API token again. Make sure to be save the token in a secure manner
Create a Customer
Below is an example to create a customer using the Create Customer API
Copy the customer’s id
from the response.
You can verify that the customer was created using the Web UI or calling the Get Customer or Find Customer API.
Create a Product in the UI
You cannot create a product using the API. This is to ensure proper set up and thought around the different components of your pricing plan and strategy.
Go to the Maple web app and navigate to Products > Overview and click on the ‘Add New Product’ button.
Copy the Product Pricing’s id
from the UI.
Create a Product Pricing in the UI
You cannot create a product pricing using the API. This is to ensure proper set up and thought around the different components of your pricing plan and strategy.
Under the new product, click on ‘Add New Product Pricing’ to create a plan.
Create a Subscription
The subscription will show up in the Maple web app as follows
Review the first invoice
You can verify that the first invoice was generated in the UI or using the Invoice Find API. See examples of both below.