37
Views
4
Comments
API consuming between modules
Question

Hi All,

There's internet and intranet communication happening between my app and stripe.

I have trigger an API from Online_IS module --> This app consumes the REST API exposed from Donation_API module

The Donation_API will then consume the Stripe API from Stripe_IS and calls the Cancel Subscription Schedule API.


Stripe_IS module has all the stripe APIs. Here i have a subscription schedule cancelling api being consumed and is wrapped in a action.

This stripe API, i have to consume in the other module Donation_API. Now when I try adding the rest api, it asks for a URL, where to get this URL from?

2022-07-11 14-05-36
Jeroen Barnhoorn

Hi Simran,

If I understand your question correctly, you're looking for the base URL of the Stripe API, is that correct? Based on Stripe's documentation, this would be https://api.stripe.com/ (see https://docs.stripe.com/api).

Kind regards,
Jeroen

2022-07-25 09-47-59
Simran Vaswani

No, I already have the base URL of the Stripe API being consumed in Stripe_IS module.

2024-08-22 11-39-17
Pedro Sousa

Hello @Simran Vaswani ,

If you're creating an API you should choose the Expose REST API option. After you create the API the URL can be seen in:

Service Studio 


Service Center


If you right click on the RESTAPI in Service Studio you can open documentation and see the full URL and some generated documentation about your API.


Regards,

Pedro.

2024-08-22 11-39-17
Pedro Sousa

Hello @Simran Vaswani,


Just adding to the comment of @Jeroen Barnhoorn. Check the API documentation  https://docs.stripe.com/api and consume/add the method(s) you need p.e. "https://api.stripe.com/v1/charges".

To use this API you'll need an API key consult the documentation for it :)


Regards,

Pedro

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.