New Subscription Management API
Author
June 22, 2022
In today’s life the Salesforce empowers the business who uses self-service-channel by providing Subscription Management API. This API will help the automation of billing, invoicing, and collecting payments for subscribed items/products and one-time sales. The Salesforce Clients who uses the Einstein AI they can use this API for calculating Risk of late payments and increase in revenue.
Developer can use this API with websites, Slack, and mobile apps. The implementation logic of this is in the form of separate API hence it decouples it from Application Layer.
The Subscription Management API includes collection of Synchronous and Asynchronous APIs.
We need to configure OAuth 2.0 authorization flow (refer the link for Connected App config steps using OAuth 2.0 Protocol)using Connected Apps to access these APIs.
The widely used applications which involve Preconfigured Payment Methods and lets customer to select the Products and purchase it known as buy now solution (checkout)
By chaining one and more APIs we can achieve end to end functionality.
To integrate with external systems we can use REST-APIs of Subscription Management API
In case of Asynchronous API Platform Event gets published when Process completes execution. A subscriber who is subscribed to it , listen to that event. There are many ways to listen it.
Invoke Subscription Management API- Developer can invoke it using one or more combinations of tools. Salesforce provides Flows to invoke this API. We can use invocable Actions to call this API.
Following diagram demonstrate the use of Flow Pause Element . The Asynchronous Action gets executes and completes all events. These are Platform Events. The Pause element wait for this events to complete.
When Invoice creation gets complete then it publishes the invoice processed event.
Using Apex we can call invocable actions and subscribe to the Platform Events which is completion events in this scenario.
We can use LWC as User Interface to call this Subscription Management API .
When these Asynchronous system are outside of Salesforce environment. We can invoke REST APIs of Subscription Managements using tools. We can then subscribe the completion events of Asynchronous API using cometD client (refer https://cometd.org/). This client is used in various popular open source languages.
Please refer the Example with some sample data for Subscription
Cost- 100$ per month
Start Date-11/11/2021
Tax – .57 after calculation of percentage of tax
This shows the POST request
POST – /services/data/v54.0/composite
Pranshu Goyal, Director of Products at Mirekta, states: “We envision DSM to be used by every small to a medium-sized organization dealing with bad data and want to get rid of duplicates easily with no cost. We have faced issues dealing with duplicates in our organization. That inspired us to make a solution that is not only simple to use but can be used widely to make the organization’s data clean to make them more efficient and productive. We want DSM to be a solution for every organization looking for duplicate management capability better than the Salesforce out-of-the-box solution with no additional cost.”
Recent Posts
-
AI for Nonprofits: Use Cases, Tools & Implementation Strategies20 May 2025 Webinar
-
Building a Smart Campus with Salesforce Student Information System: A Road to Smarter Education16 May 2025 Blog
-
Salesforce Nonprofit Cloud: Benefits & Consultant Role15 May 2025 Blog
-
Salesforce Consulting for Nonprofits: Maximize Impact09 May 2025 Blog
-
What to Expect from a Salesforce Admin Service Provider09 May 2025 Blog
-
Maximizing Efficiency with Salesforce Cloud Integration Services09 May 2025 Blog
-
Step-by-Step Guide to Salesforce NPSP Implementation09 May 2025 Blog
-
A Guide on How to Use Salesforce Agentforce for Manufacturing02 May 2025 E-Book
-
Choosing the Right Salesforce Integration Partner: A Complete Guide22 Apr 2025 Blog
-
Salesforce Higher Education: Transforming Modern Universities15 Apr 2025 Blog
-
AI Agents The Future of Business Applications09 Apr 2025 Blog
-
Why Purpose-Built AI Agents Are the Future of AI at Work07 Apr 2025 Blog
-
How the Atlas Reasoning Engine Powers Agentforce03 Apr 2025 Blog
-
Leveraging AI for Code Analysis, Real-Time Interaction, and AI-driven Documentation02 Apr 2025 Use-case
-
Transforming Healthcare with AI-Powered Patient Health Monitoring with Fitbit & Salesforce01 Apr 2025 Use-case
-
5 Myths About Autonomous Agents in Salesforce28 Mar 2025 Blog
-
AI for Nonprofits: Boosting Fundraising with Salesforce Einstein, Agentforce, and Smarter InsightsShape25 Mar 2025 Use-case
-
AI-Powered Vaccination Scheduling with Einstein Copilot & Predictive AI21 Mar 2025 Use-case
-
Leveraging AI to Enhance Sales Effectiveness13 Mar 2025 Use-case
-
Revolutionizing Manufacturing with AI: Predictive Maintenance, Supply Chain Optimization, and More11 Mar 2025 E-Book
Categories
Featured by



