Start here
Quick start
Add an endpoint path to the base URL. All responses are JSON.
- GET
/categoriesGet categories and their sub-categories. - GET
/productsBrowse and filter the product catalogue. - GET
/products/{identifier}Get product data, stock, images and variant SKUs. - POST
/place-orderForward a customer order from your website for fulfilment. - GET
/orders/{invoice_number}Check status and courier tracking for an order you placed. - GET
/balanceCheck your current wallet balance before placing orders.
- 1. Load categories
- 2. Import products page by page
- 3. Fetch details for variant SKUs
- 4. Forward orders with a unique invoice
- 5. Track status or receive webhooks
Credentials
Authentication
Find your Username, App Key and App Secret in the panel under Profile & My API. Catalogue endpoints need the key and username. Order and balance endpoints also need the secret.
| Name | Type | Required for | Description |
|---|---|---|---|
| App-Key | Header | All requests | Your public API key. |
| Username | Header | All requests | Your reseller username. |
| App-Secret | Header | Orders & balance | Your API secret. Server-side only. |
| Accept | Header | Recommended | application/json |
Keep your App Secret on your server. Never put it in browser JavaScript or a mobile app. If it leaks, regenerate it from your panel. The old secret stops working immediately.
ENDPOINT 01
List categories
/api/v1/dropshippers/categoriesReturns categories sorted by display position, with nested sub-categories. No query parameters or request body are needed.
Auth: App-Key + Username
Examples
{
"success": true,
"message": "Categories fetched successfully",
"data": [
{
"id": "65f1c2a9e4b0a1b2c3d4e5f6",
"name": "Kids Fashion",
"slug": "kids-fashion",
"position": 1,
"image": "https://res.cloudinary.com/web2drop/kids.webp",
"banner": "https://res.cloudinary.com/web2drop/kids-banner.webp",
"sub_categories": [
{ "id": "65f1c2a9e4b0a1b2c3d4e5f7", "name": "Rompers", "slug": "rompers", "image": null }
]
}
]
}ENDPOINT 02
List products
/api/v1/dropshippers/productsReturns published products, newest first, 20 per page by default. Use pagination to import the full catalogue, and updated_since to sync only what changed since your last import.
Auth: App-Key + Username
Optional query parameters
| Name | Type | Default / Rule | Description |
|---|---|---|---|
| page | Integer | 1 | Page number. |
| per_page | Integer | 20 | Products per page, 1–200. |
| in_stock | Boolean | All | true for in-stock products only; false for out-of-stock. |
| has_variant | Boolean | All | true for products with variants; false for simple products. |
| search | String | — | Search product names or SKUs. |
| category_slug | String | — | Filter by category slug (from /categories). |
| subcategory_slug | String | — | Filter by sub-category slug. |
| updated_since | ISO date | — | Only products whose price, stock or details changed after this time. |
Examples
{
"success": true,
"message": "Products fetched successfully",
"data": {
"products": [
{
"id": "66a0f1b2c3d4e5f6a7b8c9d0",
"name": "Kids Cotton Romper",
"slug": "kids-cotton-romper",
"short_description": "Soft and breathable cotton romper.",
"regular_price": 590,
"wholesale_price": 420,
"price_range": { "min": 590, "max": 610 },
"wholesale_price_range": { "min": 400, "max": 420 },
"image": "https://res.cloudinary.com/web2drop/romper.webp",
"has_variants": true,
"in_stock": true,
"stock": 18,
"category": "Kids Fashion",
"brand": "Little Joy",
"rating": 4.5,
"updated_at": "2026-11-20T10:30:00.000Z"
}
],
"pagination": {
"current_page": 1, "per_page": 20, "total": 842,
"total_pages": 43, "has_more": true
},
"links": {
"self": "https://api.web2drop.site/api/v1/dropshippers/products?page=1",
"next": "https://api.web2drop.site/api/v1/dropshippers/products?page=2",
"previous": null
}
}
}ENDPOINT 03
Get product details
/api/v1/dropshippers/products/{identifier}Returns full information for one published product. Use its id or slug from GET /products. For products with variants, send a SKU from variants[].values[].sku when you place an order.
Auth: App-Key + Username
Path values
| Name | Type | Default / Rule | Description |
|---|---|---|---|
| identifier | String | 66a0f1b2… | Product id (24-character hex). |
| identifier | String | kids-cotton-romper | Or the product slug. |
Examples
{
"success": true,
"data": {
"product": {
"id": "66a0f1b2c3d4e5f6a7b8c9d0",
"name": "Kids Cotton Romper",
"slug": "kids-cotton-romper",
"description": "<p>Soft and breathable cotton romper.</p>",
"thumbnail": "https://res.cloudinary.com/web2drop/romper.webp",
"images": ["https://res.cloudinary.com/web2drop/romper-back.webp"],
"video": null,
"category": { "name": "Kids Fashion", "slug": "kids-fashion" },
"brand": { "name": "Little Joy" },
"wholesale_price": 420,
"regular_price": 650,
"inventory": { "sku": "ROMP-001", "stock": 48, "stock_status": "in_stock" },
"has_variants": true,
"variants": [
{
"name": "Age",
"values": [
{ "key": "1-2 years", "sku": "ROMP-1-2", "stock": 20,
"regular_price": 590, "wholesale_price": 400, "image": null }
]
}
],
"specifications": [{ "key": "Fabric", "value": "100% cotton" }],
"updated_at": "2026-11-20T10:30:00.000Z"
}
}
}ENDPOINT 04
Place an order
/api/v1/dropshippers/place-orderSend the order your customer placed on your website. Web2Drop packs it, ships it and collects cash on delivery. Send JSON in the body and all three credential headers. Each invoice_number must be unique for your account.
Auth: App-Key + App-Secret + Username
Required fields
| Name | Type | Default / Rule | Description |
|---|---|---|---|
| invoice_number | String | Required | Your unique order number: letters, digits, - and _, max 64 characters. |
| customer_name | String | Required | Customer name, max 120 characters. |
| customer_phone | String | Required | Bangladeshi mobile number, e.g. 01712345678. |
| customer_address | String | Required | Full delivery address. |
| delivery_cost | Number | Required | Delivery charge in BDT you charge the customer: at least ৳70 inside Dhaka, ৳130 outside (see delivery_charge_type). |
| payment_type | String | Required | cod (cash on delivery). |
| products | Array | Required | 1–50 items. See item fields below. |
Optional fields
| Name | Type | Default / Rule | Description |
|---|---|---|---|
| customer_district | String | — | District, helps courier routing. |
| customer_thana | String | — | Thana / upazila. |
| delivery_charge_type | String | outside_dhaka | inside_dhaka or outside_dhaka. Sets the minimum delivery_cost. |
| discount | Number | ≥ 0 | Discount given to the customer. |
| special_notes | String | — | Delivery notes for the courier. |
Order item fields: products[]
| Name | Type | Default / Rule | Description |
|---|---|---|---|
| id | String | Required | Exact product id from GET /products. Do not change it. |
| price | Number | Required | Your selling price per unit. |
| qty | Integer | Required | Quantity, at least 1. |
| variant_sku | String | If variants | The chosen variant's SKU. Omit for simple products. |
Examples
{
"invoice_number": "MYSHOP-100245",
"customer_name": "Rahim Uddin",
"customer_phone": "01700000000",
"customer_address": "House 00, Road 0, Dhanmondi, Dhaka 1209",
"customer_district": "Dhaka",
"delivery_cost": 120,
"delivery_charge_type": "inside_dhaka",
"discount": 0,
"payment_type": "cod",
"special_notes": "Please call before delivery",
"products": [
{ "id": "66a0f1b2c3d4e5f6a7b8c9d0", "variant_sku": "ROMP-1-2", "price": 600, "qty": 2 },
{ "id": "66a0f1b2c3d4e5f6a7b8c9d1", "price": 100, "qty": 1 }
]
}ENDPOINT 05
Get order status
/api/v1/dropshippers/orders/{invoice_number}Returns the current status (pending, confirmed, processing, booked, shipped, delivered, returned, cancelled), the courier and tracking link, the money and the history. booked means the parcel is booked with the courier and waiting for pickup. tracking_url is null until the courier has a public tracking page for the parcel. Use it to update the order on your own website, or subscribe to webhooks instead of polling.
Auth: App-Key + App-Secret + Username
Examples
{
"success": true,
"data": {
"invoice": "MYSHOP-100245",
"status": "shipped",
"source": "api",
"customer": { "name": "Rahim Uddin", "phone": "01700000000", "address": "House 00, Road 0, Dhanmondi, Dhaka 1209" },
"items": [
{ "id": "66a0f1b2c3d4e5f6a7b8c9d0", "name": "Kids Cotton Romper", "sku": "ROMP-1-2", "variant": "1-2 years", "qty": 2, "price": 600, "wholesale_price": 400 }
],
"courier": {
"provider": "steadfast", "consignment_id": "327681616", "tracking_code": "SFR261130STDC05E78BD",
"tracking_url": "https://steadfast.com.bd/tl/...", "courier_status": "pending"
},
"delivery_cost": 120,
"discount": 0,
"cod_amount": 1420,
"profit": 330,
"deducted": 120,
"cancel_reason": null,
"created_at": "2026-11-20T10:30:00.000Z",
"delivered_at": null,
"returned_at": null,
"history": [
{ "status": "pending", "at": "2026-11-20T10:30:00.000Z", "note": null },
{ "status": "booked", "at": "2026-11-21T08:00:00.000Z", "note": "Booked with Steadfast · CN 327681616" },
{ "status": "shipped", "at": "2026-11-21T09:10:00.000Z", "note": "Steadfast: With the courier (sync)" }
]
}
}ENDPOINT 06
Get wallet balance
/api/v1/dropshippers/balanceReturns your available balance in BDT.
Auth: App-Key + App-Secret + Username
Examples
{ "success": true, "data": { "balance": 4405, "currency": "BDT" } }Push updates
Webhooks
Add a webhook URL under Profile & My API and Web2Drop will POST events to your website as JSON, so you don't need to poll. Reply with any 2xx status within 10 seconds. A failed delivery is retried 6 more times over about 9 hours (after 1 min, 5 min, 30 min, 2 h, 3 h and 3 h); redirects aren't followed. Use Send test event in the panel to check your endpoint.
Every request is signed. Compute an HMAC-SHA256 of timestamp + "." + raw body with your signing secret (shown in Profile & My API) and compare it with the X-Web2Drop-Signature header (sha256=…). The timestamp is the X-Web2Drop-Timestamp header in Unix seconds; reject requests older than a few minutes. Other headers: X-Web2Drop-Event and X-Web2Drop-Delivery (a unique id, to ignore a retry you already handled).
order.status_changedAn order you placed through the API moved to a new status (e.g. booked, shipped, delivered, returned).product.stock_outAn order sold the last unit of a product or variant.product.updatedWeb2Drop changed a product's price, stock or details, or unpublished it (available: false).pingSent when you press "Send test event" in Profile & My API.
{
"id": "evt_3f9c1a7b2d4e6f8091a2b3c4",
"event": "order.status_changed",
"created_at": "2026-11-21T09:10:00.000Z",
"data": {
"previous_status": "booked",
"note": "Steadfast: With the courier (sync)",
"order": { "invoice": "MYSHOP-100245", "status": "shipped", "courier": { "tracking_code": "SFR261130STDC05E78BD", "...": "..." }, "...": "same fields as GET /orders/{invoice_number}" }
}
}Troubleshooting
Errors & retries
Check the HTTP status and the JSON message. Validation errors include an errors object listing each field.
| Status | Meaning | What to do |
|---|---|---|
| 400 | Order rejected by a business rule: low balance, delivery cost too low, or an invoice_number you already used. | Fix the order or top up your balance. After a timeout, check GET /orders/{invoice_number} before sending a new number. |
| 401 | Credentials are missing or invalid. | Check the headers. Keep the secret on your server. |
| 403 | Your account is pending approval or suspended. | Contact Web2Drop support. |
| 404 | Product or order not found, or product unpublished. | Refresh your catalogue and remove unavailable products. |
| 409 | Not enough stock for an item. | Lower the quantity or choose another variant. |
| 422 | One or more fields failed validation. | Read the errors object and fix the listed fields. |
| 429 | Too many requests: 120 a minute per App Key. | Slow down; wait for the Retry-After seconds. |
| 5xx | Temporary server issue. | Retry later with the same invoice number. |
{
"success": false,
"message": "The customer phone field is required.",
"errors": {
"customer_phone": ["The customer phone field is required."]
}
}Tools
Downloads
The OpenAPI 3.1 spec is generated from the same rules the API uses to check requests, so it always matches. Import the Postman collection, then fill in appKey, appSecret and username in its variables.
Need help? Email support@web2drop.com or open a support ticket from your panel.