The SumUp API allows you to integrate your payment processing operations with SumUp's payment platform, creating seamless financial transactions for your business. With Pipedream, you can automate payment flows, sync transaction data with other tools, and build custom notifications based on payment events. You can use Pipedream’s serverless platform to trigger workflows on various SumUp events, process the data, and connect with countless other apps to extend functionality.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
sumup: {
type: "app",
app: "sumup",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.sumup.com/v0.1/me`,
headers: {
Authorization: `Bearer ${this.sumup.$auth.oauth_access_token}`,
},
})
},
})
Automated Receipt Generation: When a payment is processed through SumUp, trigger a Pipedream workflow to generate a digital receipt using a PDF generation service like PDF.co, and then email it to the customer using a service like SendGrid.
Sales Dashboard Update: After every SumUp transaction, use a Pipedream workflow to update a real-time sales dashboard hosted on a service like Google Sheets. This could involve parsing transaction details and updating a row with the new sales data.
Inventory Management on Shopify: Post-sales, trigger a Pipedream workflow to deduct the sold items from inventory in your Shopify store. This keeps your stock levels accurate without manual updates, streamlining inventory management.
Emit new event when a new transaction is posted in SumUp. See the documenation
Lists detailed history of all transactions associated with the merchant profile. See the documenation
SumUp uses OAuth authentication. When you connect your SumUp account, Pipedream will open a popup window where you can sign into SumUp and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any SumUp API.
Pipedream requests the following authorization scopes when you connect your account:
user.app-settings
transactions.history
user.profile_readonly
GET
https://api.sumup.com/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.sumup.com/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
redirect_uri={{oauth.redirect_uri}}
&
grant_type=authorization_code
&
code={{oauth.code}}
POST
https://api.sumup.com/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
grant_type=refresh_token
&
refresh_token={{oauth.refresh_token}}