Post-Purchase CX Automation Platform built for Retail. WeSupply helps retailers reduce their customer support tickets with Pre-purchase delivery prediction, automated shipping tracking, proactive notifications and self-service returns.
Go to siteimport { axios } from "@pipedream/platform"
export default defineComponent({
props: {
wesupply: {
type: "app",
app: "wesupply",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.wesupply.$auth.client_name}.labs.wesupply.xyz/api/orders/lookup`,
headers: {
Authorization: `Bearer ${this.wesupply.$auth.oauth_access_token}`,
},
})
},
})
Orders can be pushed into the WeSupply platform via a JSON containing the order data. See the docs here
WeSupply uses OAuth authentication. When you connect your WeSupply account, Pipedream will open a popup window where you can sign into WeSupply and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any WeSupply API.
Pipedream requests the following authorization scopes when you connect your account:
POST
https://{{custom_fields.client_name}}.labs.wesupply.xyz/api/oauth/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{custom_fields.client_id}}
&
client_secret={{custom_fields.client_secret}}
&
grant_type=client_credentials
POST
https://{{custom_fields.client_name}}.labs.wesupply.xyz/api/oauth/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{custom_fields.client_id}}
&
client_secret={{custom_fields.client_secret}}
&
grant_type=client_credentials