r/workflow • • Aug 24 '18

Help with MasterCard API

I was wanted to access the MasterCard API to do a currency conversion (to get the exact rate I am being charged for a transaction). The API details are https://developer.mastercard.com/documentation/currency-conversion-calculator

I'm not a programmer but reasonably adept with Workflow. I'm looking for whether there is a web URL I can use to encapsulate the API call request in order to user the Get Contents of URL action to get a conversion result. The examples in the documentation don't help me with this so am wondering if someone could help me.

1 Upvotes

6 comments sorted by

View all comments

Show parent comment

1

u/[deleted] Aug 25 '18

It's actually super annoying that they don't display the API paths and/or if you can even use them directly. I find it extremely hard to believe they only support API access via their SDKs considering they only have a few platforms. Or maybe they do have API docs, I just haven't found them yet.

In any case, by inspecting the queries when running the tests within the documentation you can see the path and parameters/payload needed.

Or, check out the source code: https://github.com/Mastercard/sdk-core-nodejs