Start creating your dream marketplace with the ultimate multivendor marketplace solution.
Go to siteThe Dokan API allows you to manage an online marketplace powered by Dokan, an e-commerce solution based on WooCommerce. With this API, you can automate vendor management, product listings, order tracking, and commission calculations. Integrating Dokan with Pipedream opens doors to create powerful serverless workflows that can interact with other services, handle complex automation tasks in your marketplace, and streamline operations without manual intervention.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
dokan: {
type: "app",
app: "dokan",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.dokan.$auth.url}/wp-json/dokan/v1/stores/`,
})
},
})
Vendor Onboarding and Management: Automate the process of adding new vendors to your marketplace. When a vendor submits their details via a web form (like Typeform or Google Forms), Pipedream can capture this data and use the Dokan API to create a new vendor profile, set up their store, and send a welcome email through SendGrid or another email service.
Product Inventory Sync: Keep product listings up-to-date across multiple platforms. For example, if inventory levels change in your ERP system, Pipedream can trigger an update in Dokan to reflect these changes. This ensures that your marketplace is always in sync with your actual stock, preventing overselling and maintaining customer satisfaction.
Automated Commission Payouts: Calculate and disburse vendor commissions automatically. Use Pipedream to schedule a workflow that totals sales for each vendor, calculates the owed commission based on your marketplace's rules, and processes payments through a payment gateway like Stripe or PayPal, minimizing administrative work regarding payouts.
Dokan uses API keys for authentication. When you connect your Dokan account, Pipedream securely stores the keys so you can easily authenticate to Dokan APIs in both code and no-code steps.
Dokan uses the WordPress REST API. Follow these instructions to connect your self hosted Wordpress instance; their authentication credentials will be used to access Dokan API.
This integration requires the Application Passwords plugin to be installed in your Wordpress instance, which allows you to authenticate without having to provide passwords user passwords directly.
The url
field below is your WordPress site's domain. For example, if you have a Wordpress.org site hosted at https://example.com
, then enter example.com
in the url field below.