• Resolved Jota McCready

    (@ota59)


    Hi Everyone,

    This is my first topic here, I’m asking for some help because I get dokan pro few months ago, now I started to working with the API but I can’t get info about get all the “Seller name” and “seller id” from a order.

    I would really appreciate if you can help me because i did not find much information on the web.

    Thanks in advance!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Jahidul Hassan Mojumder

    (@jahidulhassan)

    Hi @ota59,

    If you want to get the seller ID out of an order then you will need to use wp-json/dokan/v1/orders/<id> this API endpoint. The documentation about that API endpoint is available in this doc.

    The response of the endpoint will be something like shown in this screenshot. You will need to fetch _dokan_vendor_id this data under metadata.

    I hope this information will help. Thanks!

    Plugin Support Jahidul Hassan Mojumder

    (@jahidulhassan)

    Hi @ota59,

    Due to inactivity, we are marking this topic as resolved. Feel free to open a new one if you face any further issues.

    Thanks!

    Thread Starter Jota McCready

    (@ota59)

    Sorry, I haven’t see your reply before, I don’t find the information of the vendor in the order using wp-json/dokan/v1/orders/<id>

    {
        "id": 5616,
        "parent_id": 0,
        "number": "5616",
        "order_key": "wc_order_5a8aa16f15e37",
        "created_via": "checkout",
        "version": "3.3.1",
        "status": "processing",
        "currency": "USD",
        "date_created": "2018-02-19T10:05:35",
        "date_created_gmt": "2018-02-19T10:05:35",
        "date_modified": "2018-02-19T10:05:35",
        "date_modified_gmt": "2018-02-19T10:05:35",
        "discount_total": "0",
        "discount_tax": "0",
        "shipping_total": "0",
        "shipping_tax": "0",
        "cart_tax": "0",
        "total": "45",
        "total_tax": "0",
        "prices_include_tax": false,
        "customer_id": 1,
        "customer_ip_address": "::1",
        "customer_user_agent": "mozilla/5.0 (macintosh; intel mac os x 10_13_3) applewebkit/537.36 (khtml, like gecko) chrome/64.0.3282.167 safari/537.36",
        "customer_note": "Sample order",
        "billing": {
            "first_name": "Sk",
            "last_name": "Shaikat",
            "company": "weDevs",
            "address_1": "H/15, Extension Pallabi, Rupnagar",
            "address_2": "",
            "city": "Dhaka",
            "state": "DHA",
            "postcode": "1216",
            "country": "BD",
            "email": "[email protected]",
            "phone": "01670737590"
        },
        "shipping": {
            "first_name": "",
            "last_name": "",
            "company": "",
            "address_1": "",
            "address_2": "",
            "city": "",
            "state": "",
            "postcode": "",
            "country": ""
        },
        "payment_method": "cod",
        "payment_method_title": "Cash on delivery",
        "transaction_id": "",
        "date_paid": null,
        "date_paid_gmt": null,
        "date_completed": null,
        "date_completed_gmt": null,
        "cart_hash": "02debe00d34e20920157a42939a7d0c4",
        "meta_data": [
            {
                "id": 8106,
                "key": "_dokan_admin_fee",
                "value": "4.503"
            }
        ],
        "line_items": [
            {
                "id": 36,
                "name": "Premium Quality REST",
                "product_id": 5611,
                "variation_id": 0,
                "quantity": 1,
                "tax_class": "",
                "subtotal": "25",
                "subtotal_tax": "0",
                "total": "25",
                "total_tax": "0",
                "taxes": [],
                "meta_data": [],
                "sku": "",
                "price": 24.53999999999999914734871708787977695465087890625
            },
            {
                "id": 37,
                "name": "iPhone X",
                "product_id": 5605,
                "variation_id": 0,
                "quantity": 1,
                "tax_class": "",
                "subtotal": "20",
                "subtotal_tax": "0",
                "total": "20",
                "total_tax": "0",
                "taxes": [],
                "meta_data": [],
                "sku": "",
                "price": 20.489999999999998436805981327779591083526611328125
            }
        ],
        "tax_lines": [],
        "shipping_lines": [],
        "fee_lines": [],
        "coupon_lines": [],
        "refunds": []
    }
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘I can get the sellers from a parent order with API’ is closed to new replies.