Ecommerce
WE Knife logo

WE Knife API

order.weknife.cn/

WE Knife / CIVIVI / SENCUT B2B wholesale ordering — browse the catalog with dealer pricing and live stock, resolve products, and manage the cart.

Actions
8
Category
Ecommerce
Login
Some actions
Output
JSON

Call the WE Knife API

Submit a task, then poll the job until it settles. This example runs wk_add_items_to_cart.

curl -X POST https://api.anakin.io/v1/wire/task \
  -H "X-API-Key: $ANAKIN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "action_id": "wk_add_items_to_cart",
    "credential_id": "<your-credential-id>",
    "params": {
      "items": []
    }
  }'

8 actions on order.weknife.cn/

Read

  • WE Knife Categories

    wk_categoriesreadlogin required1 credit / call

    List the WE Knife catalog category tree (class_id + name, nested). Use a class_id as the filter for wk_list_products / wk_search_products.

  • WE Knife Get Cart

    wk_get_cartreadlogin required1 credit / call

    Read the WE Knife cart summary — current goods and accessory line counts.

  • WE Knife List Products

    wk_list_productsreadlogin required1 credit / call

    Dump the WE Knife product catalog with dealer price, RRP, and ordering ids, auto-paginated. Filter by category (class_id), brand (brand_id), label (label_id) or free text (search_name); set is_goods=false for accessories. Each product is directly orderable via wk_add_to_cart.

    search_name
    string
    class_id
    string
    brand_id
    string
    label_id
    string
    is_goods
    boolean
    max_pages
    integer
  • WE Knife Product Details

    wk_product_detailsreadlogin required1 credit / call

    Full detail for one WE Knife product by its code (e.g. 'TP-07B') or name — price ex/incl, ids, unit, min-order — with live available quantity overlaid.

    goods_code
    string · required
    is_goods
    boolean
    with_stock
    boolean
  • WE Knife Search Products

    wk_search_productsreadlogin required1 credit / call

    Search the WE Knife catalog by text/code (and optional category/brand/label) and return the matching product rows, each fully orderable.

    query
    string
    class_id
    string
    brand_id
    string
    label_id
    string
    is_goods
    boolean
    page
    integer
    max_pages
    integer

Write

Write actions change state on order.weknife.cn/ and run as the account you connect.

  • WE Knife Add Items To Cart

    wk_add_items_to_cartwritelogin required1 credit / call

    Add many products to the WE Knife cart in one call. Pass items:[{goods_code, quantity}]; each is resolved, added, and verified. Returns per-item results plus the final cart count.

    items
    array · required
    is_goods
    boolean
  • WE Knife Add To Cart

    wk_add_to_cartwritelogin required1 credit / call

    Add one product to the WE Knife cart by its code (resolves the row automatically) or by passing a product object. Verifies via the cart count.

    goods_code
    string
    product
    object
    quantity
    number
    is_goods
    boolean
  • WE Knife Clear Cart

    wk_clear_cartwritelogin required1 credit / call

    Empty the WE Knife cart — removes every line (goods and accessories) and confirms the cart is empty. Clears the cart only; never places or cancels an order.

WE Knife API questions

Is there an API for WE Knife?
WE Knife does not offer a public data API for this, but Anakin Wire provides 8 maintained endpoints for order.weknife.cn/. You call Anakin's REST API with an action ID and parameters and get structured JSON back; Anakin handles the browser, proxies, anti-bot, and parsing.
How do I scrape WE Knife data?
POST to https://api.anakin.io/v1/wire/task with your API key, the action ID, and its parameters, then poll GET /v1/wire/jobs/{id} until the job settles. There is nothing to install and no scraper to maintain — when order.weknife.cn/ changes its markup, Anakin updates the action.
Do I need a WE Knife account?
Some WE Knife actions read data that is only visible when signed in, so those need a credential you connect once. Actions marked "read" without a login requirement run anonymously.
What does the WE Knife API cost?
Usage-based credits, charged per call and refunded automatically when a job fails. New accounts start with 300 free credits and no card. See anakin.io/pricing for the current rates.

More Ecommerce APIs

All Ecommerce sites