{
  "info": {
    "name": "XpressBees Franchise API",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "item": [
    {
      "name": "Auth - Franchise Login",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "https://ship.xpressbees.com/api/users/franchise_login",
          "protocol": "https",
          "host": [
            "ship",
            "xpressbees",
            "com"
          ],
          "path": [
            "api",
            "users",
            "franchise_login"
          ]
        },
        "body": {
          "mode": "raw",
          "raw": "{\"email\":\"{{email}}\",\"password\":\"{{password}}\"}"
        }
      }
    },
    {
      "name": "Courier List",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{token}}"
          },
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "https://ship.xpressbees.com/api/franchise/shipments/courier",
          "protocol": "https",
          "host": [
            "ship",
            "xpressbees",
            "com"
          ],
          "path": [
            "api",
            "franchise",
            "shipments",
            "courier"
          ]
        }
      }
    },
    {
      "name": "Create Shipment",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{token}}"
          },
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "https://ship.xpressbees.com/api/franchise/shipments",
          "protocol": "https",
          "host": [
            "ship",
            "xpressbees",
            "com"
          ],
          "path": [
            "api",
            "franchise",
            "shipments"
          ]
        },
        "body": {
          "mode": "raw",
          "raw": "{\"id\":\"ord001\",\"payment_method\":\"COD\",\"consigner_name\":\"Sender\",\"consigner_phone\":\"9999999999\",\"consigner_pincode\":\"122002\",\"consigner_city\":\"Gurugram\",\"consigner_state\":\"Haryana\",\"consigner_address\":\"Address\",\"consignee_name\":\"Receiver\",\"consignee_phone\":\"8888888888\",\"consignee_pincode\":\"110011\",\"consignee_city\":\"Delhi\",\"consignee_state\":\"Delhi\",\"consignee_address\":\"Address\",\"products\":[{\"product_name\":\"Prod\",\"product_qty\":\"1\",\"product_price\":\"1200\"}],\"invoice\":[{\"invoice_number\":\"INV001\",\"invoice_date\":\"2022-03-23\"}],\"weight\":\"500\",\"length\":\"12\",\"breadth\":\"12\",\"height\":\"12\",\"courier_id\":\"01\",\"pickup_location\":\"franchise\",\"order_amount\":\"1200\"}"
        }
      }
    },
    {
      "name": "Cancel Shipment",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{token}}"
          },
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "https://ship.xpressbees.com/api/franchise/shipments/cancel_shipment",
          "protocol": "https",
          "host": [
            "ship",
            "xpressbees",
            "com"
          ],
          "path": [
            "api",
            "franchise",
            "shipments",
            "cancel_shipment"
          ]
        },
        "body": {
          "mode": "raw",
          "raw": "{\"awb_number\":\"{{awb_number}}\"}"
        }
      }
    },
    {
      "name": "Track Shipment",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{token}}"
          },
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "https://ship.xpressbees.com/api/franchise/shipments/track_shipment",
          "protocol": "https",
          "host": [
            "ship",
            "xpressbees",
            "com"
          ],
          "path": [
            "api",
            "franchise",
            "shipments",
            "track_shipment"
          ]
        },
        "body": {
          "mode": "raw",
          "raw": "{\"awb_number\":\"{{awb_number}}\"}"
        }
      }
    },
    {
      "name": "Pickup Shipment",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{token}}"
          },
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "https://ship.xpressbees.com/api/franchise/shipments/pickup",
          "protocol": "https",
          "host": [
            "ship",
            "xpressbees",
            "com"
          ],
          "path": [
            "api",
            "franchise",
            "shipments",
            "pickup"
          ]
        },
        "body": {
          "mode": "raw",
          "raw": "{\"awb_numbers\":\"{{awb_numbers}}\"}"
        }
      }
    },
    {
      "name": "Rate Calculator B2C",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{token}}"
          },
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "https://ship.xpressbees.com/api/franchise/shipments/calculate_pricing",
          "protocol": "https",
          "host": [
            "ship",
            "xpressbees",
            "com"
          ],
          "path": [
            "api",
            "franchise",
            "shipments",
            "calculate_pricing"
          ]
        },
        "body": {
          "mode": "raw",
          "raw": "{\"order_type_user\":\"ecom\",\"origin\":\"122002\",\"destination\":\"122006\",\"weight\":\"0.5\",\"length\":\"10\",\"height\":\"10\",\"breadth\":\"10\",\"cod_amount\":\"0\",\"cod\":\"no\"}"
        }
      }
    }
  ]
}