Recent Topics

Integrate Order With Fulfillment API



  • Dear Bagisto, Currently i want to integrate the bagisto order with fulfillment(delivery company) API, how to achieve this..

    1. Where is the last order file ? "thank you for order" file and how to get the order number ?
      on the "CheckoutController" i only see the "$order = $this->orderRepository->create(Cart::prepareDataForOrder());" line..but still don't have any idea how to pull the order number(or order id)..when user order the items..

    2. Relate to question one, How to achieve below data ? see marked "==="

    {
    "seller_nick": "xxxxx",
    "tid": "Unique External Order Id",  "==="
    "c_status": 1,
    "status": "Processing",
    "express_code": "",
    "seller_flag": "",
    "invoice_type": "",
    "invoice_title": "",
    "invoice_content": "",
    "invoice_amount": "",
    "express_no": "",
    "warehouse_code": "",
    "user_nick": "zzzzz", "==="
    "consignee": "zzzz", "==="
    "mobile": "999999999", "==="
    "email": "", "==="
    "address": "st zzzzzzz", "==="
    "province": "zzzz", "==="
    "city": "zzzzz", "==="
    "area": "zzzzzzz", "==="
    "zipcode": "0000", "==="
    "buyer_remark": null, "==="
    "seller_remark": "", "==="
    "order_price": "310.00", "==="
    "postage": "5", "==="
    "cod_price": "310.00", "==="
    "order_time": "2020-03-25 00:00:00",
    "payment_time": "2020-03-25 00:00:00",
    "payment_type": 1,
    "distribution_status": 1,
    "plat_lastchanged": "2020-03-25 00:00:00",
    "state": "zzz", "==="
    "payment_way": "COD",
    "shop_code": "zzzz",
    "detail": [
    {
    "title": "CHA-1", "==="
    "sku": "CHA-1", "==="
    "num": 1, "==="
    "goods_price": "100.00", "==="
    }
    ]
    }
    

    Please Advice,
    Thank You



  • Dear Bagisto team,

    Please advice..i still cannot find the way to get the [order number] after user click the 'Place Order' Button on the checkout menu..



  • what will you get when your print the $order ?


Log in to reply