Developer documentation

Connect your store to Web2Drop

Import our products into your own website, then forward the orders your customers place, so we can pack, ship and collect cash on delivery for you.

Base URL

https://api.web2drop.site/api/v1/dropshippers
JSON responsesPaginated cataloguePHP, Node.js & cURL examplesOrder status webhooksWhite-label your own storefront

Start here

Quick start

Add an endpoint path to the base URL. All responses are JSON.

  1. 1. Load categories
  2. 2. Import products page by page
  3. 3. Fetch details for variant SKUs
  4. 4. Forward orders with a unique invoice
  5. 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.

NameTypeRequired forDescription
App-KeyHeaderAll requestsYour public API key.
UsernameHeaderAll requestsYour reseller username.
App-SecretHeaderOrders & balanceYour API secret. Server-side only.
AcceptHeaderRecommendedapplication/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

GET/api/v1/dropshippers/categories

Returns 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 }
      ]
    }
  ]
}
Use a category's slug with GET /products?category_slug=kids-fashion to filter the product list.

ENDPOINT 02

List products

GET/api/v1/dropshippers/products

Returns 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

NameTypeDefault / RuleDescription
pageInteger1Page number.
per_pageInteger20Products per page, 1–200.
in_stockBooleanAlltrue for in-stock products only; false for out-of-stock.
has_variantBooleanAlltrue for products with variants; false for simple products.
searchString—Search product names or SKUs.
category_slugString—Filter by category slug (from /categories).
subcategory_slugString—Filter by sub-category slug.
updated_sinceISO 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
    }
  }
}
Follow data.pagination.has_more or data.links.next to fetch the next page. wholesale_price is set by Web2Drop and cannot be changed by API requests. regular_price is a suggested retail price; you are free to sell at your own price.

ENDPOINT 03

Get product details

GET/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

NameTypeDefault / RuleDescription
identifierString66a0f1b2…Product id (24-character hex).
identifierStringkids-cotton-romperOr 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"
    }
  }
}
A 404 means the product was not found or is no longer published. Remove it from your store.

ENDPOINT 04

Place an order

POST/api/v1/dropshippers/place-order

Send 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

NameTypeDefault / RuleDescription
invoice_numberStringRequiredYour unique order number: letters, digits, - and _, max 64 characters.
customer_nameStringRequiredCustomer name, max 120 characters.
customer_phoneStringRequiredBangladeshi mobile number, e.g. 01712345678.
customer_addressStringRequiredFull delivery address.
delivery_costNumberRequiredDelivery charge in BDT you charge the customer: at least ৳70 inside Dhaka, ৳130 outside (see delivery_charge_type).
payment_typeStringRequiredcod (cash on delivery).
productsArrayRequired1–50 items. See item fields below.

Optional fields

NameTypeDefault / RuleDescription
customer_districtString—District, helps courier routing.
customer_thanaString—Thana / upazila.
delivery_charge_typeStringoutside_dhakainside_dhaka or outside_dhaka. Sets the minimum delivery_cost.
discountNumber≥ 0Discount given to the customer.
special_notesString—Delivery notes for the courier.

Order item fields: products[]

NameTypeDefault / RuleDescription
idStringRequiredExact product id from GET /products. Do not change it.
priceNumberRequiredYour selling price per unit.
qtyIntegerRequiredQuantity, at least 1.
variant_skuStringIf variantsThe 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 }
  ]
}
Balance deduction: when the order is accepted, the delivery cost plus any shortfall (if your total wholesale cost is higher than your selling total) is deducted from your wallet. Your profit is credited when the order is delivered. A low balance or a duplicate invoice_number rejects the order, so retrying with the same invoice_number is always safe.

ENDPOINT 05

Get order status

GET/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

GET/api/v1/dropshippers/balance

Returns 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.

StatusMeaningWhat to do
400Order 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.
401Credentials are missing or invalid.Check the headers. Keep the secret on your server.
403Your account is pending approval or suspended.Contact Web2Drop support.
404Product or order not found, or product unpublished.Refresh your catalogue and remove unavailable products.
409Not enough stock for an item.Lower the quantity or choose another variant.
422One or more fields failed validation.Read the errors object and fix the listed fields.
429Too many requests: 120 a minute per App Key.Slow down; wait for the Retry-After seconds.
5xxTemporary 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.