This guide outlines the key API and webhook resources for building integrations and workflows. When you’re finished, you will be able to build integrations and workflows to 3rd party systems.
API Summary
- Feature
- API
- You Need
-
1. Completed Design Your Integration
2. Developer(s) experienced with integrating systems, data modification, and APIs. - Code
- Yes
- Difficulty
- ◉◉◉◎◎
API Core Resources
If you are coding your own integration, then you have a strong understanding of the needs of your project. These Core Resources will help you the most.
Resource |
Description |
All API endpoints and examples |
|
Developer documentation resources |
|
Get an API Key |
|
Advanced Billing’s API uses Basic Authentication. Your API Key and Password are structured like API_Key:X where X or x (upper or lowercase) is your password. See the example below for a quickstart. |
|
Full API Guidelines |
|
Information about rate limits. |
Test Authentication
// GET SAMPLE, list subscriptions. Replace SUBDOMAIN, APIKEY.
// Copy/paste in terminal
curl https://SUBDOMAIN.chargify.com/subscriptions.json \
-X GET \
-u APIKEY:x \
-H 'Content-Type: application/json'
API Code Generator
The core resources for writing API calls to Advanced Billing. API Documentation Code Generator
Resource |
Description |
Shell |
|
Javascript |
|
Node |
|
Python |
|
Go |
|
C |
|
Obj-C |
|
OCaml |
|
C# |
|
Java |
|
Http |
|
OCaml |
|
C# |
|
Java |
|
Http |
|
Clojure |
|
Kotlin |
|
PHP |
|
Powershell |
|
R |
|
Ruby |
|
Swift |
|
Webhooks Summary
- Advanced Billing Feature
- Webhooks
- You Need
-
1. Completed Design Your Integration
2. Developer(s) experienced with webhooks - Code
- Yes
- Difficulty
- ◉◉◉◎◎
Webhooks Core Resources
If you are coding your own integration, then you have a strong understanding of the needs of your project. These Core Resources will help you the most.
Resource |
Description |
In your Advanced Billing Site, go to Config > Settings > Webhooks to view and configure. |
|
A full overview of Advanced Billing webhooks. |
|
Ensure the incoming webhook is valid |
|
Full examples |
|
Helps with quick testing, determining errors, and more. |
|
Helps with quick testing and retrying errors. |
|
JSON Webhooks |
JSON Webhooks have been supported as of July 2022. Open a support ticket to enable JSON webhooks. |
Testing Tips
Use these tips to develop faster.
Important
Advanced Billing does not assist in building, debugging, maintaining, or supporting anything you or a developer builds with iPaaS. However, based on your plan, Advanced Billing can assist with helping you determine which Advanced Billing Webhooks and Advanced Billing APIs to use.
iPaaS Summary
- Advanced Billing Feature
- Advanced Billing's APIs and Webhooks + 3rd party iPaaS (Integration Platform as a Service)
- You Need
-
1. Completed Design Your Integration
2. Person(s) with technical experience building (but not coding) integrations, handling data modification, and knowledge of APIs and Webhooks.
3. An iPaaS software - Code
- No-code to low-code
- Difficulty
- ◉◎◎◎◎
Building an Integration with iPaaS
If you are not a developer, but need to a) design an integration or b) build an integration with iPaaS, follow these steps:
In its simplest form, an integration is a collection of triggers and actions. Make your own list of Trigger-Action Statements, which is a collection of all of the functionality your integration needs. Use the examples below to guide you.
Trigger-Action Statements
When trigger in system, action in system
Examples of Trigger-Action Statements
1. When a subscription is canceled in Advanced Billing, update deal record in HubSpot
2. When an invoice is created in Advanced Billing, create an invoice in NetSuite
3. When a customer changes bronze to silver plan in Advanced Billing, update the subscription's component price point in Advanced Billing
Adding Conditionals
Sometimes you only want to perform the action, based on a condition.
When trigger in system, conditional, action in system
Examples of Trigger-Action Statements with Conditionals
1. When a subscription is canceled in Advanced Billing, if the subscription has the churn reason code TRIAL-CANCEL, update deal record in HubSpot
2. When an invoice is created in Advanced Billing, if the invoice type is 'signup', create an invoice in NetSuite
3. When a customer changes bronze to silver plan in Advanced Billing, if the customer subscribes to the user-licenses component, update the subscription's component price point in Advanced Billing
Adding Multiple Steps (multiple actions)
Sometimes you only want to perform multiple actions, with conditionals.
When trigger in system, conditional, action1 in system, action2 in system
Examples of Trigger-Action Statements with Conditionals
1. When a subscription is canceled in Advanced Billing, if the subscription has the churn reason code TRIAL-CANCEL, update deal record in HubSpot, update the company record in HubSpot
2. When an invoice is created in Advanced Billing, if the invoice type is 'signup', create an invoice in NetSuite, mark the invoice paid in NetSuite
3. When a customer changes bronze to silver plan in Advanced Billing, if the customer subscribes to the user-licenses component, read the customer signup date in Advanced Billing, if the signup date was in January, update the subscription's component price point in Advanced Billing
Now that you have a list of your needs, you need to determine if an iPaaS tool actually supports them. Other companies have built 3rd party integrations with Zapier and Cyclr, so we've compiled an overview of the systems, as well as information on how to scope an integration with each system.
Zapier |
Cyclr |
Other iPaaS |
|
Reason to use |
Small integrations at affordable cost |
Any size integration; medium-large businesses; flexibility. |
Your business already uses one, and it supports your integration needs -and- You understand that this integration is your responsibility. Advanced Billing does not help build, debug, maintain, or support the integration. |
Best for |
Small 1way From integrations |
1way From, 1way To, 2way integrations |
1way From |
Pricing |
Starts at $29.99/mo |
Starts at |
Ranges from |
Advanced Billing Triggers |
Always use Advanced Billing Webhooks |
Always use |
Always use Advanced Billing Webhooks |
Advanced Billing Read Actions |
7 |
40+ |
Typically not many |
Advanced Billing Create/Update Actions |
5 |
40+ |
Typically not many |
Supports conditionals |
Yes |
Yes |
Typically yes |
Supports multiple steps |
Yes |
Yes |
Typically yes |
Other Systems |
4000+ |
350 |
Very good |
Cron Jobs |
? |
Yes |
Typically yes |
Next, you need to determine if the iPaaS supports the scope of your integration (the list of triggers and actions you outlined in step 1). Use the table below.
Data Flow | Scope Trigger | Scope Action(s) | |
Zapier |
|
Use Zapier Webhooks. All Advanced Billing Webhooks supported. |
1. Go to https://zapier.com/apps/chargify/integrations |
|
Use Zapier Webhooks. All Advanced Billing Webhooks supported. |
Same as above. Note: if your final action is an Advanced Billing API request, use Zapier Code. |
|
Other → |
See Zapier Scope Actions for steps |
Same as above. | |
Cyclr |
|
Use Cyclr Webhooks. All Advanced Billing Webhooks supported. |
1. Open Advanced Billing for Cyclr: https://cyclr.com/integrate/chargify (scroll down to the list of actions) 2. Open all connectors for Cyclr, and find the other System: https://cyclr.com/connectors 3. For Advanced Billing and the other System, review the Triggers and Actions. Triggers begin the integration, and Actions are what you want to do. Next, follow the steps based on your integration type. |
|
Use Cyclr Webhooks. All Advanced Billing Webhooks supported. |
Same as above | |
Other → |
See Cyclr Scope Actions for steps | Same as above | |
Other |
|
Typically webhooks, check the iPaaS' documentation | Check the iPaaS' documentation |
Other → |
Same as above | Same as above | |
|
Same as above | Same as above |
After following steps 1-3, you should now have a clear idea on exactly how you will proceed with your custom integration. Use the resources below as a guide:
- Building Workflows and Integrations with Zapier
- Building Workflows and Integrations with Cyclr