Shipment Orders

These set of APIs will help you create, manipulate, delete shipment orders as well as get the order details.

Fetch an Order details

GET /orders/shipment/{orderId}

This API is used to get the order and the shipment details of a particular order by passing the orderId in the endpoint URL. Type the orderId in place of {orderId}. Note: The orderId is sent to the customer when an order is created.

Path Parameters

Headers

{
    "status": "PASS",
    "message": {
        "order_details": {
            "order_id": 4892552,
            "reference_number": "000000005-2-7",
            "awb_number": "SH-22T70ZX",
            "status": "Complete",
            "delivery_hub_sn": "Taj MG Road Bengaluru",
            "delivery_address": "MyCornerBakery, Hosa Road, Golden Hill Square, Bangalore, 560068, Karnataka, India",
            "delivery_postal_code": "560068",
            "pickup_address": "Taj MG Road, Bengaluru, Mahatma Gandhi Road, Yellappa Garden, Yellappa Chetty Layout, Sivanchetti Gardens, Bengaluru, Karnataka, India",
            "pickup_postal_code": "560001",
            "customer_name": "John Doe",
            "customer_mobile": 9876543210,
            "alternate_customer_mobile": null,
            "pickup_customer_name": "",
            "pickup_customer_mobile": null,
            "item_details": {
                "2714539": {
                    "item_name": "Fusion Backpack",
                    "item_quantity": 1,
                    "item_qty_picked": 1,
                    "item_qty_delivered": 1
                }
            },
            "cash_on_delivery": "59.00"
        }
    }
}

Create a new order

POST /orders/shipment

Use this API to create an order in the Blowhorn's system. Pass all the required params at the minimum to create an order and optional params as per the preference. The delivery hub, pickup hub is optional as it is automatically deduced from the delivery address pin code unless the customer wants it to be specifically routed via the hub.

Kitting is a process where in KIT (package of SKUs) is created and sellers can define a preconfigured set as displayed in Example Value 2. For e.g. Take a choc box Celebrations box of 25 as a KIT SKU which can have 5 dairy milk, 20 5 star chocolates another configuration could be 15 diary milk, 5 snickers, 5 5 star chocolates and so on.

Headers

Request Body

{
  "status": "PASS",
  "message": {
    "awb_number": "SH-GHT6RTW",
    "item_details": {
      "9325": {
        "item_name": "Wall Fit",
        "item_quantity": 6,
        "item_price_per_each": 80,
        "total_item_price": 480
      },
      "9326": {
        "item_name": "Wires",
        "item_quantity": 4,
        "item_price_per_each": 130,
        "total_item_price": 520
      }
    },
    "child_awb_numbers": []
  }
}
{
  "awb_number": "ORDER0001",
  "delivery_hub": "Bellandur [ BH Micro warehouse ]",
  "pickup_hub": "Koramangala [ BH Micro warehouse ]",
  "is_hyperlocal": "false",
  "customer_name": "Mahadevappa",
  "customer_mobile": "9434343434",
  "pin_number": "1234123",
  "alternate_customer_mobile": "8913452678",
  "customer_email": "test@example.com",
  "delivery_address": "413, 2nd cross, 17th C main, 5th Block, koramangala, Bengaluru",
  "delivery_postal_code": "560095",
  "what3words":"circling.novelists.wades",
  "reference_number": "517082419558167201",
  "customer_reference_number": "TEST0013",
  "delivery_lat": "12.9538477",
  "delivery_lon": "77.3507366",
  "pickup_address": "b-205, Nagarjuna Green Ridge, 19th Main, Sector 2, HSR Layout, Bengaluru",
  "pickup_postal_code": "560102",
  "pickup_lat": "12.9238437",
  "pickup_lon": "77.3509366",
  "pickup_customer_name": "Ambaraya",
  "pickup_customer_mobile": "9753434343",
  "is_return_order": false,
  "commercial_class": "Two Wheeler",
  "priority": "2",
  "weight": "10",
  "volume": "1000",
  "length": "10",
  "breadth": "10",
  "height": "10",
  "is_commercial_address": true,
  "pickup_datetime": "2018-12-07T19:35:06.959084",
  "division": "Bengaluru South",
  "expected_delivery_time": "2018-12-07T19:35:06.959084",
  "is_cod": true,
  "cash_on_delivery": "123456",
  "packages_count": 2
  "item_details": [
    {
      "item_name": "Wall Fit",
      "item_quantity": 6,
      "item_price_per_each": 80,
      "total_item_price": 480,
      "item_category": "Fittings",
      "brand": "WFit",
      "weight": "10",
      "volume": "1000",
      "cgst": "9.0",
      "sgst": "9.0",
      "igst": "100.0"
    },
    {
      "item_name": "Wires",
      "item_quantity": 4,
      "item_price_per_each": 130,
      "total_item_price": 520,
      "item_category": "Hardware",
      "brand": "Finolex",
      "weight": "5",
      "volume": "200"
    }
  ]
}

Update an Order

PUT /orders/shipment/{orderId}

Use this API to update the shipment order already created with Blowhorn by using the same orderId which was received while creating an order with the "Create new order" Api. Type the received orderId in place of {orderId}. Note: The orderId is sent to the customer when an order is created.

Headers

Request Body

{
  "status": "PASS",
  "message": {
    "awb_number": "SH-GHT6RTW",
    "item_details": {
      "9325": {
        "item_name": "Wall Fit",
        "item_quantity": 6,
        "item_price_per_each": 80,
        "total_item_price": 480
      },
      "9326": {
        "item_name": "Wires",
        "item_quantity": 4,
        "item_price_per_each": 130,
        "total_item_price": 520
      }
    }
  }
}
{
  "customer_name": "Mahadev",
  "customer_mobile": "9434343500",
  "customer_email": "test@example.com",
  "delivery_address": "413, 2nd cross, 17th C main, 5th Block, koramangala, Bengaluru",
  "delivery_postal_code": "560095",
  "delivery_lat": "12.9538477",
  "delivery_lon": "77.3507366",
  "pickup_address": "b-205, Nagarjuna Green Ridge, 19th Main, Sector 2, HSR Layout, Bengaluru",
  "pickup_postal_code": "560102",
  "pickup_lat": "12.9238437",
  "pickup_lon": "77.3509366",
  "is_cod": true,
  "cash_on_delivery": "123456",
  "item_details": {
    "9325": {
      "item_name": "Wall Fit",
      "item_quantity": 60,
      "item_price_per_each": 80,
      "total_item_price": 480
    },
    "9326": {
      "item_name": "Wires",
      "item_quantity": 40,
      "item_price_per_each": 130,
      "total_item_price": 520
    }
  }
}

Add items to an Order

PUT /orders/add/items/{orderId}

Use this API to add items to an already created order using the orderId received while creating the order using the "Create new order" Api. Type the received orderId in place of {orderId}. Note: The orderId is sent to the customer when an order is created.

Headers

Request Body

{
  "status": "PASS",
  "message": {
    "awb_number": "SH-GHT6RTW",
    "item_details": {
      "9325": {
        "item_name": "Wall Fit",
        "item_quantity": 6,
        "item_price_per_each": 80,
        "total_item_price": 480
      },
      "9326": {
        "item_name": "Wires",
        "item_quantity": 4,
        "item_price_per_each": 130,
        "total_item_price": 520
      }
    }
  }
}
{
    "item_details": {
        "9325": {
            "item_name": "Wall Fit",
            "item_quantity": 60,
            "item_price_per_each": 80,
            "total_item_price": 480,
            "item_category": "Hardware",
            "brand": "Finolex",
            "weight": "5",
            "volume": "200"
        },
        "9326": {
            "item_name": "Wires",
            "item_quantity": 40,
            "item_price_per_each": 130,
            "total_item_price": 520,
            "item_category": "Hardware",
            "brand": "Finolex",
            "weight": "5",
            "volume": "200"
        }
    }
}

Delete items from an Order

PUT /orders/delete/items/{orderId}

Use this API to delete the items of the existing order using the OrderId received while creating the order. Type the OrderId received in place of {orderId}. Note: The orderId is sent to the customer when an order is created.

Path Parameters

Headers

{
  "status": "PASS",
  "message": "Items deleted for AWB Number : AILP0000000043"
}
{
  "item_list": [
    "9325",
    "9326"
  ]
}

We have a Postman collection to make the integration quicker and easier. You can test all our APIs by importing the full API collection through the 'Run in Postman' button and running them in the Postman app.

Last updated