The Ramp API allows developers to quickly and securely integrate payments into their applications. Ramp uses tokenization, encryption and audit trails & compliance to keep data safe, so developers can securely create custom payment experience. With the Ramp API:
Here are a few examples of what you can do with the Ramp API:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
ramp: {
type: "app",
app: "ramp",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.ramp.com/developer/v1/business`,
headers: {
Authorization: `Bearer ${this.ramp.$auth.oauth_access_token}`,
},
})
},
})
Ramp uses OAuth authentication. When you connect your Ramp account, Pipedream will open a popup window where you can sign into Ramp and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Ramp API.
Pipedream requests the following authorization scopes when you connect your account:
transactions:read
cards:read
cards:write
card_programs:read
card_programs:write
users:read
users:write
locations:read
locations:write
departments:read
departments:write
business:read
receipts:read
GET
https://app.ramp.com/v1/authorize
?
client_id={{oauth.client_id}}
&
redirect_uri={{oauth.redirect_uri}}
&
state={{oauth.state}}
&
response_type=code
&
scope={{oauth.space_separated_scopes}}
POST
https://api.ramp.com/developer/v1/token
content-type: application/x-www-form-urlencoded
accept: application/json
redirect_uri={{oauth.redirect_uri}}
&
grant_type=authorization_code
&
code={{oauth.code}}
POST
https://api.ramp.com/developer/v1/token
content-type: application/x-www-form-urlencoded
accept: application/json
grant_type=refresh_token
&
refresh_token={{oauth.refresh_token}}