With the ecwid API, you can build applications to:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
ecwid: {
type: "app",
app: "ecwid",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.ecwid.com/api/v3/${this.ecwid.$auth.storeId}/profile`,
headers: {
Authorization: `Bearer ${this.ecwid.$auth.oauth_access_token}`,
},
})
},
})
Search for new orders which are PAID and AWAITING_PROCESSING. Emits events for each order and sets order fulfilment status to PROCESSING
Update the Status of an Ecwid Order. Makes use of the Update Order API.
ecwid uses OAuth authentication. When you connect your ecwid account, Pipedream will open a popup window where you can sign into ecwid and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any ecwid API.
Pipedream requests the following authorization scopes when you connect your account:
read_catalog
update_customers
read_customers
create_catalog
update_subscriptions
read_orders
read_discount_coupons
create_discount_coupons
update_catalog
public_storefront
read_invoices
update_discount_coupons
create_orders
read_subscriptions
update_orders
customize_storefront
read_store_profile
create_invoices
update_store_profile
delete_invoices
create_customers
GET
https://my.ecwid.com/api/oauth/authorize
?
client_id={{oauth.client_id}}
&
redirect_uri={{oauth.redirect_uri}}
&
state={{oauth.state}}
&
response_type=code
&
scope={{oauth.space_separated_scopes}}
GET
https://my.ecwid.com/api/oauth/token
?
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
code={{oauth.code}}
&
redirect_uri={{oauth.redirect_uri}}
&
grant_type=authorization_code