{
  "info": {
    "name": "Kraken Express Delivery API",
    "description": "Partner collection for the Kraken Express Delivery API.\n\nBase URL: https://delivery.krakenexpress.ly/api/v1.\nAuth: POST /login, then send Authorization: Bearer {{token}} on every other request. Tokens last 182 days.\n\nThere is no cancel endpoint and no webhooks in this version. Follow status by polling GET /shipments/{{shipmentId}} or GET /shipments/{{shipmentId}}/tracking. Do not poll more than once a minute per shipment.\n\nExample numbers and city ids in requests are illustrative only.\nIf region is omitted, it defaults to the linked store's city/branch.\nOptional Idempotency-Key is honoured on POST /delivery-calculation and POST /shipments only.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://delivery.krakenexpress.ly/api/v1"
    },
    {
      "key": "token",
      "value": ""
    },
    {
      "key": "shipmentId",
      "value": ""
    }
  ],
  "item": [
    {
      "name": "Login",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"email\": \"merchant@example.com\",\n  \"password\": \"your-password\"\n}"
        },
        "url": "{{baseUrl}}/login",
        "description": "Returns a Bearer token valid for 182 days. Rate limit: 5 requests/minute."
      }
    },
    {
      "name": "Cities",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "key": "Authorization",
            "value": "Bearer {{token}}"
          }
        ],
        "url": "{{baseUrl}}/cities"
      }
    },
    {
      "name": "Delivery calculation (GET)",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "key": "Authorization",
            "value": "Bearer {{token}}"
          }
        ],
        "url": "{{baseUrl}}/delivery-calculation?destination=1&sub_city_id=10&length=35&width=30&height=30&price=30&delivery_type=1&payer=sender",
        "description": "Query-string quote. Idempotency-Key is not used on GET. Example ids are illustrative."
      }
    },
    {
      "name": "Delivery calculation (POST)",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Authorization",
            "value": "Bearer {{token}}"
          },
          {
            "key": "Idempotency-Key",
            "value": "quote-ORD-1001"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"destination\": 1,\n  \"sub_city_id\": 10,\n  \"length\": 35,\n  \"width\": 30,\n  \"height\": 30,\n  \"price\": 30,\n  \"delivery_type\": 1,\n  \"payer\": \"sender\"\n}"
        },
        "url": "{{baseUrl}}/delivery-calculation",
        "description": "Same quote as GET. Optional Idempotency-Key is honoured on POST only."
      }
    },
    {
      "name": "Create shipment",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Authorization",
            "value": "Bearer {{token}}"
          },
          {
            "key": "Idempotency-Key",
            "value": "create-ORD-1001"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"recipient_name\": \"Ali Customer\",\n  \"recipient_phone\": \"0910000000\",\n  \"delivery_address\": \"Hay Al-Andalus\",\n  \"store_lat\": 32.8872,\n  \"store_long\": 13.1913,\n  \"payer\": \"sender\",\n  \"delivery_type\": 1,\n  \"destination\": 1,\n  \"sub_city_id\": 10,\n  \"length\": 35,\n  \"width\": 30,\n  \"height\": 30,\n  \"price\": 30,\n  \"external_reference\": \"ORD-1001\",\n  \"items\": [{\"name\": \"Shoes\", \"price\": 30, \"quantity\": 1}]\n}"
        },
        "url": "{{baseUrl}}/shipments",
        "description": "Creates a shipment and a linked package ride. store_lat and store_long are required; delivery coordinates are optional. A package photo is not required. There is no cancel endpoint."
      }
    },
    {
      "name": "List shipments",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "key": "Authorization",
            "value": "Bearer {{token}}"
          }
        ],
        "url": "{{baseUrl}}/shipments?per_page=20&page=1",
        "description": "Lists this client's shipments. per_page defaults to 20 and is capped at 100."
      }
    },
    {
      "name": "Get shipment",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "key": "Authorization",
            "value": "Bearer {{token}}"
          }
        ],
        "url": "{{baseUrl}}/shipments/{{shipmentId}}",
        "description": "Look up by uuid, public code, or external_reference. Syncs ride status first. Poll at most once a minute per shipment. No webhooks."
      }
    },
    {
      "name": "Track shipment",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "key": "Authorization",
            "value": "Bearer {{token}}"
          }
        ],
        "url": "{{baseUrl}}/shipments/{{shipmentId}}/tracking",
        "description": "Flattened tracking payload. Syncs ride status first. Poll at most once a minute per shipment. No cancel endpoint and no webhooks."
      }
    }
  ]
}
