{"id":4596,"date":"2016-06-30T00:00:00","date_gmt":"2016-06-30T00:00:00","guid":{"rendered":"https:\/\/azure.microsoft.com\/blog\/how-to-monetize-apis-with-azure-api-management"},"modified":"2025-06-25T09:13:50","modified_gmt":"2025-06-25T16:13:50","slug":"how-to-monetize-apis-with-azure-api-management","status":"publish","type":"post","link":"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-monetize-apis-with-azure-api-management\/","title":{"rendered":"How to monetize APIs with Azure API Management"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><i>This article describes the steps to set up monetization of APIs hosted in Azure API Management. Code samples are provided to help you set up integration with your chosen payment provider.<\/i><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">One question we are consistently asked by customers, is \u201chow can I set up billing for my APIs?\u201d API Management has all the information you need to set up billing accessible through our <a href=\"https:\/\/msdn.microsoft.com\/en-us\/library\/azure\/dn776326.aspx\">Management APIs<\/a> \u2013 we leave the choice of <a href=\"https:\/\/en.wikipedia.org\/wiki\/List_of_online_payment_service_providers\">which payment provider<\/a> to use up to you. However, if you would like a bit more guidance this blog post should help.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"two-ways-to-directly-monetize-your-apis\">Two Ways to Directly Monetize Your APIs<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The two most common ways to directly monetize your APIs are: <b>Subscription Billing<\/b>, where you charge your customers a flat monthly fee to access your APIs; and <b>Metered Billing<\/b>, where you charge your customers based on the number of API calls they make.<\/p>\n\n\n\n<figure class=\"wp-block-image has-custom-border\"><img decoding=\"async\" src=\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2016\/06\/1e89d531-f4bf-41d4-9a7d-a519a06e7767.webp\" alt=\"clip_image002\" style=\"border-radius:0px\" title=\"clip_image002\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"subscription-billing-model\">Subscription Billing Model:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">With a subscription model, your customers pay a flat monthly fee and are allowed to make a certain number of API calls per month. For example, a customer pays $100 to access up to 10,000 API calls per month. Whether they make 0 API calls or 10,000 API calls, the customer is charged $100 each month. If a customer subscribes to your API in the middle of a billing period, the customer would be charged a pro-rated amount for the number of days the subscription was active.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"metered-billing-model\">Metered Billing Model:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">As the name implies, with a Metered Billing model you charge your customers a fee for each API call they make. Your customers are able to make as many calls as they want and are charged based on the total number of calls made. If the customer makes 7,000 API calls at $0.01 per call then the bill at the end of the month would be $70.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">With the Metered Billing model you charge your customers once a month and all you need to know is how many calls they&#8217;ve made during that period.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"using-a-payment-platform-for-invoicing-and-collecting-payments\">Using a payment platform for Invoicing and Collecting Payments<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Azure API Management tracks API usage in real time so you know how many API calls are made by each of your customers. This usage data can be used to bill each customer and send an invoice to collect monthly payments. To bill your users, you need a 3rd-party recurring billing solution, such as Stripe (which we will use as an example in this article). Stripe supports multiple billing models, currencies and payment methods, and its own API enables you to integrate with API Management seamlessly. Azure API Management does not recommend any particular payment service \u2013 you should <a href=\"https:\/\/en.wikipedia.org\/wiki\/List_of_online_payment_service_providers\">select a paym<\/a><a href=\"https:\/\/en.wikipedia.org\/wiki\/List_of_online_payment_service_providers\">ent provider<\/a> that best meets your needs.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"how-api-management-and-a-payment-platform-works-together\">How API Management and a payment platform Works Together<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To set this up, we will need to integrate Azure API Management and Stripe; they both have APIs that you can use to create smooth customer experience. The API Management API exposes API usage and subscription details for each of your customers. The Stripe API enables you to send a monthly invoice to each of your customers which includes billing details for each product in their subscription.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"create-products-in-azure-api-management\">Create Products in Azure API Management<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To manage your API with Azure API Management you need to create a Product and then add one or more APIs to it. You add your APIs to Product bundles because this is how customers subscribe to your APIs. Once a product is published, developers can subscribe to the Product bundles and begin to use the product&#8217;s APIs.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"map-api-management-products-to-stripe-plans\">Map API Management Products to Stripe Plans<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Your API customer is mapped to a Stripe user account via the Azure API Management customer account (often referred to as a developer account). which might include multiple product subscriptions. So the primary integration task is to retrieve monthly customer usage details from API Management\u2019s API and send these details to Stripe.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">With API Management\u2019s own API, you can determine the number of active users, list the subscriptions for each user, and get monthly usage for each active product subscription. This information will be retrieved by your custom code and then submitted to the Stripe API to create and send customer invoices by email.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"create-stripe-plans-for-each-api-management-product\">Create Stripe Plans for each API Management Product<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Stripe refers to Plans much in the same way Azure API Management refers to Products, so you should create a Stripe Plan for each Product you create in API Management. Each Stripe Plan has a unique id, which you will map to its API Management Product counterpart.<\/p>\n\n\n\n<figure class=\"wp-block-image has-custom-border\"><img decoding=\"async\" src=\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2016\/06\/eeaf60a7-3e81-41d0-842c-e7653d52105e.webp\" alt=\"clip_image003\" style=\"border-radius:0px\" title=\"clip_image003\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">To connect a monthly subscription Product on API Management to a monthly subscription Plan on Stripe you will set a price for your Stripe plan as well as a billing frequency. For example, when you describe a $100 \/ month subscription product in API Management, you\u2019d create a Stripe Plan and specify a price of $100 and a billing frequency of one month.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To connect a metered billing product on API Management to a metered billing Plan on Stripe, you\u2019d create a plan with $0 per month price and add fees to the monthly bill based on usage. The amount of the additional fees would be calculated by your custom code and submitted as an API request. These metered billing fees are called Invoice items and are considered non-recurring charges because they can be different from month to month.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"sign-customers-up-and-register-their-product-choices\">Sign customers up and register their product choices<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">When a customer signs up, or adds a new product, there will be additional information that you want to capture or present to the user (e.g. credit card information, payment terms) that will then allow you to register them with your payment provider.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The way API Management allows you to do this is with <a href=\"https:\/\/azure.microsoft.com\/en-us\/documentation\/articles\/api-management-howto-setup-delegation\/\">sign-in delegation<\/a>. Each time a customer subscribes to one of your API Management Products, your code will redirect them to capture additional information using the unique Stripe Plan ID to create a subscription through the Stripe API. You can create a new Stripe customer at the same time that you sign them up for a subscription by including the Plan id in the API call to create a new customer Take a look at the <a href=\"https:\/\/azure.microsoft.com\/en-us\/documentation\/articles\/api-management-howto-setup-delegation\/\">delegation article<\/a> for more information, as this step can be a little tricky. See the accompanying <a href=\"https:\/\/github.com\/Azure\/api-management-monetization\">sample code<\/a> also.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"cancelling-a-subscription-from-stripe\">Cancelling a Subscription from Stripe<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">When a customer cancels a monthly subscription, you need to cancel the subscription on Stripe too. This can also be done through Stripe\u2019s API. From then on the customer&#8217;s credit card will not be charged again.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For metered billing you don\u2019t have to do anything, however you customers will continue getting a $0 invoice which may be avoided by cancelling the $0\/month subscription through the Stripe API as well.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"setting-up-a-monthly-subscription-product\">Setting Up a Monthly Subscription Product<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Here are the basic steps to implement subscription billing:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"wp-block-list-item\">Package your APIs into tiered products e.g. Bronze, Silver, Gold. Offering various API call allowances, and\/or maybe different call rates.<\/li>\n\n\n\n<li class=\"wp-block-list-item\">Apply <a href=\"https:\/\/azure.microsoft.com\/en-us\/documentation\/articles\/api-management-howto-product-with-rules\/\">quota and rate limit<\/a> policies to your products as appropriate<\/li>\n\n\n\n<li class=\"wp-block-list-item\">Create corresponding Stripe Plans<\/li>\n\n\n\n<li class=\"wp-block-list-item\">Write code to run a monthly billing job that pulls all subscribers of each product listed in API Management during a given billing period. Submit the usage details to the Stripe API to generate bills and invoices.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"calculating-the-bill-for-monthly-subscription-users\">Calculating the Bill for Monthly Subscription Users<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Calculating bills for monthly subscription users is very easy because you don\u2019t need to know how many API calls were made. Instead, you charge each user a flat monthly fee. In fact, once a customer\u2019s subscription is created in Stripe, it stores the price of the subscription and will take care of the billing the monthly subscriber until the subscription is canceled.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">See the accompanying <a href=\"https:\/\/github.com\/Azure\/api-management-monetization\">sample code<\/a> for specific details.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"setting-up-a-metered-billing\">Setting Up a Metered Billing<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">How to implement metered billing:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"wp-block-list-item\">Package APIs into tiered products e.g. Bronze, Silver, Gold<\/li>\n\n\n\n<li class=\"wp-block-list-item\">Apply <a href=\"https:\/\/azure.microsoft.com\/en-us\/documentation\/articles\/api-management-howto-product-with-rules\/\">rate limit<\/a> policies to products<\/li>\n\n\n\n<li class=\"wp-block-list-item\">Create corresponding Stripe Plans<\/li>\n\n\n\n<li class=\"wp-block-list-item\">Run a monthly billing job that pulls usage info from API Management for each subscriber during a given billing period, and feed that info into Stripe to generate your customer\u2019s bill<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"calculating-the-bill-for-metered-users\">Calculating the Bill for Metered Users<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To calculate this, your custom code will query API Management to get the customer\u2019s API usage for each metered product. Your custom code will multiply this number by the cost per API call to calculate the total fee for this product. See the accompanying sample code for more details.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">See the accompanying sample code for specific details.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"notes\">Notes<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"wp-block-list-item\"><a href=\"https:\/\/azure.microsoft.com\/en-us\/documentation\/articles\/api-management-get-started\/\" target=\"_blank\" rel=\"noopener\">Getting started with Azure API Management<\/a><\/li>\n\n\n\n<li class=\"wp-block-list-item\"><a href=\"https:\/\/docs.microsoft.com\/azure\/api-management\/monetization-overview\" target=\"_blank\" rel=\"noopener\">Learn more about monetization in Azure API Management<\/a><\/li>\n\n\n\n<li class=\"wp-block-list-item\"><a href=\"https:\/\/docs.microsoft.com\/azure\/api-management\/monetization-support\" target=\"_blank\" rel=\"noopener\">Understand how Azure API Management supports monetization<\/a><\/li>\n\n\n\n<li class=\"wp-block-list-item\">Explore the <a href=\"https:\/\/aka.ms\/apim\/monetization\/sample\" target=\"_blank\" rel=\"noopener\">sample monetization code<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>This article describes the steps to set up monetization of APIs hosted in Azure API Management. Code samples are provided to help you set up integration with your chosen payment provider.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ms_queue_id":[],"ep_exclude_from_search":false,"_classifai_error":"","_classifai_text_to_speech_error":"","_alt_title":"","footnotes":"","msx_community_cta_settings":[]},"categories":[1498,1485,1556,1461],"tags":[],"audience":[3054,3055,3053,3056],"content-type":[1511],"product":[1499],"tech-community":[],"topic":[],"coauthors":[643],"class_list":["post-4596","post","type-post","status-publish","format-standard","hentry","category-integration","category-internet-of-things","category-mobile","category-web","audience-business-decision-makers","audience-developers","audience-it-decision-makers","audience-it-implementors","content-type-best-practices","product-api-management","review-flag-1680286581-295","review-flag-1680286584-658","review-flag-7-1680286581-146","review-flag-and-o-1680286581-349","review-flag-bundl-1680286579-710","review-flag-integ-1680286579-214","review-flag-new-1680286579-546"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to monetize APIs with Azure API Management | Microsoft Azure Blog<\/title>\n<meta name=\"description\" content=\"This article describes the steps to set up monetization of APIs hosted in Azure API Management. Code samples are provided to help you set up integration with your chosen payment provider.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-monetize-apis-with-azure-api-management\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to monetize APIs with Azure API Management | Microsoft Azure Blog\" \/>\n<meta property=\"og:description\" content=\"This article describes the steps to set up monetization of APIs hosted in Azure API Management. Code samples are provided to help you set up integration with your chosen payment provider.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-monetize-apis-with-azure-api-management\/\" \/>\n<meta property=\"og:site_name\" content=\"Microsoft Azure Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/microsoftazure\" \/>\n<meta property=\"article:published_time\" content=\"2016-06-30T00:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-06-25T16:13:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2016\/06\/1e89d531-f4bf-41d4-9a7d-a519a06e7767.webp\" \/>\n<meta name=\"author\" content=\"Mike Budzynski\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@azure\" \/>\n<meta name=\"twitter:site\" content=\"@azure\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Mike Budzynski\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-monetize-apis-with-azure-api-management\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-monetize-apis-with-azure-api-management\/\"},\"author\":[{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/author\/mike-budzynski\/\",\"@type\":\"Person\",\"@name\":\"Mike Budzynski\"}],\"headline\":\"How to monetize APIs with Azure API Management\",\"datePublished\":\"2016-06-30T00:00:00+00:00\",\"dateModified\":\"2025-06-25T16:13:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-monetize-apis-with-azure-api-management\/\"},\"wordCount\":1448,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-monetize-apis-with-azure-api-management\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2016\/06\/1e89d531-f4bf-41d4-9a7d-a519a06e7767.webp\",\"articleSection\":[\"Integration\",\"Internet of things\",\"Mobile\",\"Web\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-monetize-apis-with-azure-api-management\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-monetize-apis-with-azure-api-management\/\",\"url\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-monetize-apis-with-azure-api-management\/\",\"name\":\"How to monetize APIs with Azure API Management | Microsoft Azure Blog\",\"isPartOf\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-monetize-apis-with-azure-api-management\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-monetize-apis-with-azure-api-management\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2016\/06\/1e89d531-f4bf-41d4-9a7d-a519a06e7767.webp\",\"datePublished\":\"2016-06-30T00:00:00+00:00\",\"dateModified\":\"2025-06-25T16:13:50+00:00\",\"description\":\"This article describes the steps to set up monetization of APIs hosted in Azure API Management. Code samples are provided to help you set up integration with your chosen payment provider.\",\"breadcrumb\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-monetize-apis-with-azure-api-management\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-monetize-apis-with-azure-api-management\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-monetize-apis-with-azure-api-management\/#primaryimage\",\"url\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2016\/06\/1e89d531-f4bf-41d4-9a7d-a519a06e7767.webp\",\"contentUrl\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2016\/06\/1e89d531-f4bf-41d4-9a7d-a519a06e7767.webp\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-monetize-apis-with-azure-api-management\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog home\",\"item\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Integration\",\"item\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/category\/integration\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to monetize APIs with Azure API Management\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#website\",\"url\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/\",\"name\":\"Microsoft Azure Blog\",\"description\":\"Get the latest Azure news, updates, and announcements from the Azure blog. From product updates to hot topics, hear from the Azure experts.\",\"publisher\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#organization\",\"name\":\"Microsoft Azure Blog\",\"url\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2024\/06\/microsoft_logo.webp\",\"contentUrl\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2024\/06\/microsoft_logo.webp\",\"width\":512,\"height\":512,\"caption\":\"Microsoft Azure Blog\"},\"image\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/microsoftazure\",\"https:\/\/x.com\/azure\",\"https:\/\/www.instagram.com\/microsoftdeveloper\/\",\"https:\/\/www.linkedin.com\/company\/16188386\",\"https:\/\/www.youtube.com\/user\/windowsazure\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#\/schema\/person\/c702e5edd662b328b49b7e1180cab117\",\"name\":\"shakir\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/9342c7c05bb16548741bc5cd3a3e3b7ee0c8e746844ad2cc582db5beb5514c6f?s=96&d=mm&r=g7664e653ea371ce16eaf75e9fa8952c4\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/9342c7c05bb16548741bc5cd3a3e3b7ee0c8e746844ad2cc582db5beb5514c6f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/9342c7c05bb16548741bc5cd3a3e3b7ee0c8e746844ad2cc582db5beb5514c6f?s=96&d=mm&r=g\",\"caption\":\"shakir\"},\"sameAs\":[\"https:\/\/azure.microsoft.com\"],\"url\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/author\/shakir\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to monetize APIs with Azure API Management | Microsoft Azure Blog","description":"This article describes the steps to set up monetization of APIs hosted in Azure API Management. Code samples are provided to help you set up integration with your chosen payment provider.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-monetize-apis-with-azure-api-management\/","og_locale":"en_US","og_type":"article","og_title":"How to monetize APIs with Azure API Management | Microsoft Azure Blog","og_description":"This article describes the steps to set up monetization of APIs hosted in Azure API Management. Code samples are provided to help you set up integration with your chosen payment provider.","og_url":"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-monetize-apis-with-azure-api-management\/","og_site_name":"Microsoft Azure Blog","article_publisher":"https:\/\/www.facebook.com\/microsoftazure","article_published_time":"2016-06-30T00:00:00+00:00","article_modified_time":"2025-06-25T16:13:50+00:00","og_image":[{"url":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2016\/06\/1e89d531-f4bf-41d4-9a7d-a519a06e7767.webp","type":"","width":"","height":""}],"author":"Mike Budzynski","twitter_card":"summary_large_image","twitter_creator":"@azure","twitter_site":"@azure","twitter_misc":{"Written by":"Mike Budzynski","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-monetize-apis-with-azure-api-management\/#article","isPartOf":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-monetize-apis-with-azure-api-management\/"},"author":[{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/author\/mike-budzynski\/","@type":"Person","@name":"Mike Budzynski"}],"headline":"How to monetize APIs with Azure API Management","datePublished":"2016-06-30T00:00:00+00:00","dateModified":"2025-06-25T16:13:50+00:00","mainEntityOfPage":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-monetize-apis-with-azure-api-management\/"},"wordCount":1448,"commentCount":0,"publisher":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#organization"},"image":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-monetize-apis-with-azure-api-management\/#primaryimage"},"thumbnailUrl":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2016\/06\/1e89d531-f4bf-41d4-9a7d-a519a06e7767.webp","articleSection":["Integration","Internet of things","Mobile","Web"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-monetize-apis-with-azure-api-management\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-monetize-apis-with-azure-api-management\/","url":"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-monetize-apis-with-azure-api-management\/","name":"How to monetize APIs with Azure API Management | Microsoft Azure Blog","isPartOf":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-monetize-apis-with-azure-api-management\/#primaryimage"},"image":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-monetize-apis-with-azure-api-management\/#primaryimage"},"thumbnailUrl":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2016\/06\/1e89d531-f4bf-41d4-9a7d-a519a06e7767.webp","datePublished":"2016-06-30T00:00:00+00:00","dateModified":"2025-06-25T16:13:50+00:00","description":"This article describes the steps to set up monetization of APIs hosted in Azure API Management. Code samples are provided to help you set up integration with your chosen payment provider.","breadcrumb":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-monetize-apis-with-azure-api-management\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-monetize-apis-with-azure-api-management\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-monetize-apis-with-azure-api-management\/#primaryimage","url":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2016\/06\/1e89d531-f4bf-41d4-9a7d-a519a06e7767.webp","contentUrl":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2016\/06\/1e89d531-f4bf-41d4-9a7d-a519a06e7767.webp"},{"@type":"BreadcrumbList","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-monetize-apis-with-azure-api-management\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog home","item":"https:\/\/azure.microsoft.com\/en-us\/blog\/"},{"@type":"ListItem","position":2,"name":"Integration","item":"https:\/\/azure.microsoft.com\/en-us\/blog\/category\/integration\/"},{"@type":"ListItem","position":3,"name":"How to monetize APIs with Azure API Management"}]},{"@type":"WebSite","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#website","url":"https:\/\/azure.microsoft.com\/en-us\/blog\/","name":"Microsoft Azure Blog","description":"Get the latest Azure news, updates, and announcements from the Azure blog. From product updates to hot topics, hear from the Azure experts.","publisher":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/azure.microsoft.com\/en-us\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#organization","name":"Microsoft Azure Blog","url":"https:\/\/azure.microsoft.com\/en-us\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2024\/06\/microsoft_logo.webp","contentUrl":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2024\/06\/microsoft_logo.webp","width":512,"height":512,"caption":"Microsoft Azure Blog"},"image":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/microsoftazure","https:\/\/x.com\/azure","https:\/\/www.instagram.com\/microsoftdeveloper\/","https:\/\/www.linkedin.com\/company\/16188386","https:\/\/www.youtube.com\/user\/windowsazure"]},{"@type":"Person","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#\/schema\/person\/c702e5edd662b328b49b7e1180cab117","name":"shakir","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/9342c7c05bb16548741bc5cd3a3e3b7ee0c8e746844ad2cc582db5beb5514c6f?s=96&d=mm&r=g7664e653ea371ce16eaf75e9fa8952c4","url":"https:\/\/secure.gravatar.com\/avatar\/9342c7c05bb16548741bc5cd3a3e3b7ee0c8e746844ad2cc582db5beb5514c6f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/9342c7c05bb16548741bc5cd3a3e3b7ee0c8e746844ad2cc582db5beb5514c6f?s=96&d=mm&r=g","caption":"shakir"},"sameAs":["https:\/\/azure.microsoft.com"],"url":"https:\/\/azure.microsoft.com\/en-us\/blog\/author\/shakir\/"}]}},"msxcm_display_generated_audio":false,"msxcm_animated_featured_image":null,"distributor_meta":false,"distributor_terms":false,"distributor_media":false,"distributor_original_site_name":"Microsoft Azure Blog","distributor_original_site_url":"https:\/\/azure.microsoft.com\/en-us\/blog","push-errors":false,"_links":{"self":[{"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/posts\/4596","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/comments?post=4596"}],"version-history":[{"count":1,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/posts\/4596\/revisions"}],"predecessor-version":[{"id":43448,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/posts\/4596\/revisions\/43448"}],"wp:attachment":[{"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/media?parent=4596"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/categories?post=4596"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/tags?post=4596"},{"taxonomy":"audience","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/audience?post=4596"},{"taxonomy":"content-type","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/content-type?post=4596"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/product?post=4596"},{"taxonomy":"tech-community","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/tech-community?post=4596"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/topic?post=4596"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/coauthors?post=4596"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}