Skip to content
Dokan logo

Connectors / E-commerce · HTTP Connector

Dokan integration and API

Create a product, update an order and create a coupon in Dokan. Connect Dokan to the rest of your e-commerce stack with Tray.ai.

What can you do with Dokan on Tray.ai?

Dokan is a WordPress and WooCommerce plugin for running a multivendor marketplace, where independent sellers manage their own stores, products, orders, and payouts. Tray.ai connects to Dokan through the HTTP Connector, so your workflows can call the Dokan API alongside the rest of your stack.

  • List orders from your marketplace each hour and send them to your fulfillment system.
  • Create a product in your marketplace when a vendor adds an item to your product catalog.
  • List withdrawals and record each vendor payout in your accounting system.
Connects through
HTTP Connector
Authentication
Basic authentication or a bearer token
Base URL
https://{your-site}/wp-json/dokan/v1

Set it up

Connect Dokan to Tray.ai

Each step uses Dokan's own API details, from its documentation.

Save Dokan's username and password

Save the credentials Dokan gives you as a Tray.ai authentication. The HTTP Client sends them as basic auth. They stay out of the workflow and out of the logs.

Point the HTTP Client at the API

Add an HTTP Client step and use https://{your-site}/wp-json/dokan/v1 as the base URL. Or paste a cURL example from Dokan's API docs, and Tray.ai fills in the method, URL, and headers.

Start with “List products”

It's one of 18 documented actions, under Products. The response comes back as data the next step can map into your other apps.

Hand it to an AI agent

Wrap “Get a product” and “Create a product” in workflows, and Tray.ai's Agent Gateway for MCP publishes them as governed tools Claude and other AI agents can call.

Workflows to build with Dokan

Connect Dokan with QuickBooks, Google Sheets and NetSuite

Each one uses actions and events from Dokan's own API documentation.

Record daily Dokan marketplace sales in QuickBooks

When

On a schedule

Then

  1. List orders from the past day
  2. Record the sales in QuickBooks

With QuickBooks

Track Dokan vendor withdrawals in Google Sheets

When

On a schedule

Then

  1. List withdrawals
  2. Add pending vendor payouts to the finance tracker in Google Sheets

With Google Sheets

Sync NetSuite stock levels to Dokan products

When

An item's stock level changes in NetSuite

Then

  1. Update a product with the new stock level

With NetSuite

Apps you can build on Dokan data

Internal tools your team can build with an AI assistant, each one using Dokan calls from its API documentation.

Vendor payout review

Lists withdrawal requests by store with balance details so a marketplace admin can check each payout.

Marketplace order desk

Lists orders across vendor stores and lets support update an order's status.

Vendor catalog review

Shows each store's products and lets an admin update a listing that breaks the rules.

Dokan MCP server for AI agents

Build an MCP server on Dokan in Agent Gateway and choose which actions your agents can call. Every call runs with access control and an audit trail. How Agent Gateway works

  • List products
  • List orders
  • List stores
  • List coupons
  • List withdrawals
  • Get a product
  • Create a product
  • Update a product

What the Dokan API covers

5 resources and 18 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. Connecting it takes a few clicks: here's how.

Products

  • List products
  • Get a product
  • Create a product
  • Update a product
  • Delete a product

Orders

  • List orders
  • Get an order
  • Update an order

Stores

  • List stores
  • Get a store
  • List a store's products

Coupons

  • List coupons
  • Get a coupon
  • Create a coupon
  • Update a coupon

Withdrawals

  • List withdrawals
  • Create a withdrawal
  • Get balance details

Checked against Dokan's own documentation on 2026-10-22

getdokan.github.io/dokan

Frequently asked questions

What can a Tray.ai workflow do in Dokan?

The Dokan API documents 18 actions across 5 resources (Products, Orders, Stores, Coupons, Withdrawals). For example: List products; List orders; List stores. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with Dokan?

The Dokan API uses basic authentication and a bearer token. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

See Dokan working against your stack.

We'll walk through a tailored demo with your systems plugged in.

Great, a couple more details

This helps us connect you with the right person. Optional, and you can skip it.