{
  "info": {
    "name": "Courier Saathi API v1",
    "description": "Docs: https://couriersaathi.com/developers",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://couriersaathi.com/api/v1"
    },
    {
      "key": "apiKey",
      "value": "ship_live_REPLACE_ME"
    },
    {
      "key": "pickupAddressId",
      "value": "addr_1"
    },
    {
      "key": "awb",
      "value": "DLH948201842"
    }
  ],
  "item": [
    {
      "name": "Wallet balance",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{apiKey}}"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/wallet/balance",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "wallet",
            "balance"
          ]
        }
      }
    },
    {
      "name": "Get rates",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{apiKey}}"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/rates?destinationPincode=560001&deadWeightKg=0.5&lengthCm=20&widthCm=15&heightCm=10&paymentMode=PREPAID",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "rates"
          ],
          "query": [
            {
              "key": "destinationPincode",
              "value": "560001"
            },
            {
              "key": "deadWeightKg",
              "value": "0.5"
            },
            {
              "key": "lengthCm",
              "value": "20"
            },
            {
              "key": "widthCm",
              "value": "15"
            },
            {
              "key": "heightCm",
              "value": "10"
            },
            {
              "key": "paymentMode",
              "value": "PREPAID"
            }
          ]
        }
      }
    },
    {
      "name": "Pickup addresses",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{apiKey}}"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/pickup-addresses",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "pickup-addresses"
          ]
        }
      }
    },
    {
      "name": "Create shipment",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{apiKey}}"
          },
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/shipments",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "shipments"
          ]
        },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"orderId\": \"ORD-1001\",\n  \"pickupAddressId\": \"{{pickupAddressId}}\",\n  \"courierCode\": \"delhivery_surface_0_5kg\",\n  \"consigneeName\": \"Rahul Sharma\",\n  \"consigneePhone\": \"9876543210\",\n  \"consigneeAddress\": \"12 MG Road\",\n  \"consigneePincode\": \"560001\",\n  \"paymentMode\": \"PREPAID\",\n  \"declaredValue\": 999,\n  \"productName\": \"Cotton T-shirt\",\n  \"deadWeightKg\": 0.5,\n  \"lengthCm\": 20,\n  \"widthCm\": 15,\n  \"heightCm\": 10\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "Get shipment by AWB",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{apiKey}}"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/shipments/{{awb}}",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "shipments",
            "{{awb}}"
          ]
        }
      }
    },
    {
      "name": "List shipments",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{apiKey}}"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/shipments?page=1&limit=25",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "shipments"
          ],
          "query": [
            {
              "key": "page",
              "value": "1"
            },
            {
              "key": "limit",
              "value": "25"
            }
          ]
        }
      }
    },
    {
      "name": "Find shipment by orderId",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{apiKey}}"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/shipments?orderId=ORD-1001",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "shipments"
          ],
          "query": [
            {
              "key": "orderId",
              "value": "ORD-1001"
            }
          ]
        }
      }
    },
    {
      "name": "Cancel shipment",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{apiKey}}"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/shipments/{{awb}}/cancel",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "shipments",
            "{{awb}}",
            "cancel"
          ]
        }
      }
    }
  ]
}