Is It Possible to Retrieve SumUp Invoices via Pipedream for a Newbie?

This topic was automatically generated from Slack. You can find the original thread here.

hello, sorry, I'm a newbie, and I'm trying to understand... is it possible to retrieve sumup invoices via pipedream?

hello, sorry, I’m a newbie, and I’m trying to understand… is it possible to retrieve sumup invoices via pipedream?

To retrieve SumUp invoices via Pipedream, you can use the SumUp API within a Pipedream workflow. Pipedream allows you to connect to the SumUp API using OAuth authentication, which means you can make authorized requests to the API to retrieve invoices or any other data you need. Here’s a basic example of how you can set up a Pipedream component to make a request to the SumUp API: import { axios } from "@pipedream/platform"; export default defineComponent({ props: { sumup: { type: "app", app: "sumup", }, }, async run({ steps, $ }) { const response = await axios($, { url: `https://api.sumup.com/v0.1/invoices`, // Adjust the endpoint as needed headers: { Authorization: `Bearer ${this.sumup.$auth.oauth_access_token}`, }, }); return response; // This will return the invoices data }, }); ### Steps to Use the Component: 1. Connect your SumUp account: In the Pipedream UI, you’ll need to connect your SumUp account to authorize the requests. 2. Adjust the API endpoint: Make sure to use the correct API endpoint for retrieving invoices. The example uses a placeholder endpoint (/v0.1/invoices), which you should replace with the actual endpoint provided by SumUp’s API documentation. 3. Run the workflow: Once set up, run the workflow to retrieve the invoices. If you need further assistance or encounter any issues, you can visit Pipedream Support for more help.

, could you try that and see if it works?
Btw, the import actually is:

import { axios } from "@pipedream/platform";