import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
shopware: {
type: "app",
app: "shopware",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.shopware.$auth.server_url}/api/user`,
headers: {
Authorization: `Bearer ${this.shopware.$auth.oauth_access_token}`,
},
})
},
})
Create a new order. See the documentation
Get an order by ID. See the documentation
List all orders. See the documentation
List all payment methods. See the documentation
List all shipping methods. See the documentation
Shopware uses OAuth authentication. When you connect your Shopware account, Pipedream will open a popup window where you can sign into Shopware and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Shopware API.
Pipedream requests the following authorization scopes when you connect your account:
POST{{custom_fields.server_url}}/api/oauth/tokencontent-type: application/x-www-form-urlencodedaccept: application/jsonclient_id={{custom_fields.client_id}}&client_secret={{custom_fields.client_secret}}&grant_type=client_credentialsPOST{{custom_fields.server_url}}/api/oauth/tokencontent-type: application/x-www-form-urlencodedaccept: application/jsonclient_id={{custom_fields.client_id}}&client_secret={{custom_fields.client_secret}}&grant_type=client_credentials