{
  "info": {
    "name": "TankTrack - Fuel Requests (Complete)",
    "_postman_id": "fuel-requests-complete-v1",
    "description": "# Fuel Requests — Complete Postman Collection\n\nEnd-to-end collection to test **Fuel Request** APIs, including Auth, Connections (prerequisite), Wallet, and all Fuel Request endpoints.\n\n## How to use\n1. Import this file into Postman.\n2. Open **Collection variables** and set:\n   - `login_email` / `login_password` → **Sender** (person requesting money)\n   - `receiver_email` / `receiver_password` → **Receiver** (person who pays)\n   - `static_auth_token` is pre-filled for local (matches `.env` BEARER_TOKEN)\n3. Run folders **in order** (1 → 5).\n\n## Important\n- Amount is **USD cents**: `500` = **$5.00**\n- Users must be **accepted friends** before sending a fuel request\n- Receiver needs enough **wallet balance** to Transfer\n- Base URL: `http://localhost:6260/api/v1`\n\n## Suggested run order\n1. Login (Sender) → Login (Receiver)\n2. Ensure friendship (Invite → Accept) **or** My Connections if already friends\n3. Check wallet (Receiver)\n4. Send fuel request → Received list → Transfer **or** Reject",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    { "key": "baseUrl", "value": "http://localhost:6260", "type": "string" },
    { "key": "apiUrl", "value": "{{baseUrl}}/api/v1", "type": "string" },
    {
      "key": "static_auth_token",
      "value": "ab6410c710c7ce43c36e37084a4b5205b0e1608477336023a8520c9f104398f9",
      "type": "string",
      "description": "Must match .env BEARER_TOKEN"
    },
    { "key": "login_email", "value": "jack@yopmail.com", "type": "string" },
    { "key": "login_password", "value": "Password123", "type": "string" },
    { "key": "receiver_email", "value": "jim@yopmail.com", "type": "string" },
    { "key": "receiver_password", "value": "Password123", "type": "string" },
    { "key": "token", "value": "", "type": "string", "description": "Sender JWT" },
    { "key": "receiver_token", "value": "", "type": "string", "description": "Receiver JWT" },
    { "key": "userId", "value": "", "type": "string", "description": "Sender user _id" },
    { "key": "receiverUserId", "value": "", "type": "string", "description": "Receiver user _id" },
    { "key": "connectionRequestId", "value": "", "type": "string" },
    { "key": "fuelRequestId", "value": "", "type": "string" },
    { "key": "amount", "value": "200", "type": "string", "description": "Dollar amount (e.g. 200 = $200.00)" },
    { "key": "device_token", "value": "postman-device-token", "type": "string" }
  ],
  "item": [
    {
      "name": "1. Auth",
      "description": "Login both users. Tokens auto-save.",
      "item": [
        {
          "name": "1.1 Login (Sender)",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Status 200', () => pm.response.to.have.status(200));",
                  "const body = pm.response.json();",
                  "const data = body.data || {};",
                  "if (data.token) {",
                  "  pm.collectionVariables.set('token', data.token);",
                  "  console.log('✓ token (sender) saved');",
                  "}",
                  "const user = data.user || {};",
                  "if (user._id) {",
                  "  pm.collectionVariables.set('userId', String(user._id));",
                  "  console.log('✓ userId', user._id);",
                  "}"
                ]
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              { "key": "auth-token", "value": "{{static_auth_token}}" },
              { "key": "Content-Type", "value": "application/json" }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"email\": \"{{login_email}}\",\n  \"password\": \"{{login_password}}\",\n  \"device\": {\n    \"device_token\": \"{{device_token}}\",\n    \"device_type\": \"android\"\n  }\n}"
            },
            "url": "{{apiUrl}}/auth/login",
            "description": "Login as **sender** (requester). Saves `token` + `userId`.\n\nUpdate collection vars `login_email` / `login_password` to your real sender account."
          },
          "response": [
            {
              "name": "OK",
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [{ "key": "Content-Type", "value": "application/json" }],
              "body": "{\n  \"status\": 200,\n  \"success\": true,\n  \"message\": \"Login Successful\",\n  \"data\": {\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...\",\n    \"user\": {\n      \"_id\": \"683ef251ce7cbc33d8946b9c\",\n      \"email\": \"jack@yopmail.com\",\n      \"fullName\": \"jack\"\n    }\n  }\n}"
            }
          ]
        },
        {
          "name": "1.2 Login (Receiver)",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Status 200', () => pm.response.to.have.status(200));",
                  "const body = pm.response.json();",
                  "const data = body.data || {};",
                  "if (data.token) {",
                  "  pm.collectionVariables.set('receiver_token', data.token);",
                  "  console.log('✓ receiver_token saved');",
                  "}",
                  "const user = data.user || {};",
                  "if (user._id) {",
                  "  pm.collectionVariables.set('receiverUserId', String(user._id));",
                  "  console.log('✓ receiverUserId', user._id);",
                  "}"
                ]
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              { "key": "auth-token", "value": "{{static_auth_token}}" },
              { "key": "Content-Type", "value": "application/json" }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"email\": \"{{receiver_email}}\",\n  \"password\": \"{{receiver_password}}\",\n  \"device\": {\n    \"device_token\": \"{{device_token}}-receiver\",\n    \"device_type\": \"android\"\n  }\n}"
            },
            "url": "{{apiUrl}}/auth/login",
            "description": "Login as **receiver** (payer). Saves `receiver_token` + `receiverUserId`.\n\nUpdate `receiver_email` / `receiver_password` to your real receiver account."
          },
          "response": [
            {
              "name": "OK",
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [{ "key": "Content-Type", "value": "application/json" }],
              "body": "{\n  \"status\": 200,\n  \"success\": true,\n  \"message\": \"Login Successful\",\n  \"data\": {\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...\",\n    \"user\": {\n      \"_id\": \"684a0000ce7cbc33d8946b00\",\n      \"email\": \"jim@yopmail.com\",\n      \"fullName\": \"jim\"\n    }\n  }\n}"
            }
          ]
        }
      ]
    },
    {
      "name": "2. Connections (prerequisite)",
      "description": "Fuel requests require an **accepted** connection. Skip if users are already friends — run **2.4 My Connections** only.",
      "item": [
        {
          "name": "2.1 Invite receiver (as Sender)",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const body = pm.response.json();",
                  "const data = body.data || {};",
                  "if (data.requestId) {",
                  "  pm.collectionVariables.set('connectionRequestId', String(data.requestId));",
                  "  console.log('✓ connectionRequestId', data.requestId);",
                  "}"
                ]
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              { "key": "Authorization", "value": "Bearer {{token}}" },
              { "key": "Content-Type", "value": "application/json" }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"email\": \"{{receiver_email}}\"\n}"
            },
            "url": "{{apiUrl}}/connections/invite",
            "description": "Sender invites receiver by email. Saves `connectionRequestId`.\n\nIf already connected → 409. If already pending → 409. Then skip to **2.4** or accept pending request."
          }
        },
        {
          "name": "2.2 Requests received (as Receiver)",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const body = pm.response.json();",
                  "const list = (body.data && body.data.data) || [];",
                  "if (list.length > 0 && list[0].requestId) {",
                  "  pm.collectionVariables.set('connectionRequestId', String(list[0].requestId));",
                  "  console.log('✓ connectionRequestId from received', list[0].requestId);",
                  "}"
                ]
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [
              { "key": "Authorization", "value": "Bearer {{receiver_token}}" }
            ],
            "url": {
              "raw": "{{apiUrl}}/connections/requests?type=received&page=1&limit=20",
              "host": ["{{apiUrl}}"],
              "path": ["connections", "requests"],
              "query": [
                { "key": "type", "value": "received" },
                { "key": "page", "value": "1" },
                { "key": "limit", "value": "20" }
              ]
            },
            "description": "Receiver lists pending connection requests. Saves first `requestId`."
          }
        },
        {
          "name": "2.3 Accept connection (as Receiver)",
          "request": {
            "method": "PATCH",
            "header": [
              { "key": "Authorization", "value": "Bearer {{receiver_token}}" }
            ],
            "url": "{{apiUrl}}/connections/{{connectionRequestId}}/accept",
            "description": "Receiver accepts the connection request. Users are now friends."
          }
        },
        {
          "name": "2.4 My Connections (Sender) — set receiverUserId",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Status 200', () => pm.response.to.have.status(200));",
                  "const body = pm.response.json();",
                  "const list = (body.data && body.data.data) || [];",
                  "console.log('Friends count:', list.length);",
                  "if (list.length > 0 && list[0]._id) {",
                  "  const desired = pm.collectionVariables.get('receiverUserId');",
                  "  const match = desired",
                  "    ? list.find(u => String(u._id) === String(desired))",
                  "    : list[0];",
                  "  const friend = match || list[0];",
                  "  pm.collectionVariables.set('receiverUserId', String(friend._id));",
                  "  console.log('✓ receiverUserId', friend._id, friend.email);",
                  "}"
                ]
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [
              { "key": "Authorization", "value": "Bearer {{token}}" }
            ],
            "url": {
              "raw": "{{apiUrl}}/connections/my-connections?page=1&limit=20",
              "host": ["{{apiUrl}}"],
              "path": ["connections", "my-connections"],
              "query": [
                { "key": "page", "value": "1" },
                { "key": "limit", "value": "20" }
              ]
            },
            "description": "List accepted friends. Ensures `receiverUserId` is a friend `_id` (needed for Send Fuel Request)."
          },
          "response": [
            {
              "name": "OK",
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [{ "key": "Content-Type", "value": "application/json" }],
              "body": "{\n  \"status\": 200,\n  \"success\": true,\n  \"message\": \"Connections fetched successfully\",\n  \"data\": {\n    \"data\": [\n      {\n        \"_id\": \"684a0000ce7cbc33d8946b00\",\n        \"fullName\": \"jim\",\n        \"email\": \"jim@yopmail.com\",\n        \"image\": \"http://localhost:6260/public/uploads/photo.jpg\",\n        \"connectedAt\": \"2026-07-07T11:54:38.823Z\"\n      }\n    ],\n    \"total\": 1,\n    \"page\": 1,\n    \"totalPages\": 1\n  }\n}"
            }
          ]
        }
      ]
    },
    {
      "name": "3. Wallet (Receiver)",
      "description": "Receiver must have enough balance before Transfer.",
      "item": [
        {
          "name": "3.1 Get wallet balance (Receiver)",
          "request": {
            "method": "GET",
            "header": [
              { "key": "Authorization", "value": "Bearer {{receiver_token}}" }
            ],
            "url": "{{apiUrl}}/wallet",
            "description": "Check `walletBalance` (dollars). Must be >= `amount` (default $200) before Transfer.\n\nIf low, top up via the main Tank Track Wallet APIs first."
          },
          "response": [
            {
              "name": "OK",
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [{ "key": "Content-Type", "value": "application/json" }],
              "body": "{\n  \"status\": 200,\n  \"success\": true,\n  \"message\": \"Wallet fetched\",\n  \"data\": {\n    \"walletBalanceCents\": 10000,\n    \"currency\": \"usd\"\n  }\n}"
            }
          ]
        }
      ]
    },
    {
      "name": "4. Fuel Requests",
      "description": "All Fuel Request endpoints.",
      "item": [
        {
          "name": "4.1 Send fuel request (Sender)",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Status 200', () => pm.response.to.have.status(200));",
                  "const body = pm.response.json();",
                  "const data = body.data || {};",
                  "if (data._id) {",
                  "  pm.collectionVariables.set('fuelRequestId', String(data._id));",
                  "  console.log('✓ fuelRequestId', data._id);",
                  "}"
                ]
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              { "key": "Authorization", "value": "Bearer {{token}}" },
              { "key": "Content-Type", "value": "application/json" }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"receiverUserId\": \"{{receiverUserId}}\",\n  \"amount\": {{amount}},\n  \"message\": \"Need fuel help at the station\"\n}"
            },
            "url": "{{apiUrl}}/fuel-requests",
            "description": "## POST /api/v1/fuel-requests\n\n**Headers**\n```\nAuthorization: Bearer {{token}}\nContent-Type: application/json\n```\n\n**Body**\n| Field | Type | Required |\n|-------|------|----------|\n| receiverUserId | string ObjectId | yes |\n| amount | number (USD dollars, e.g. 200 = $200) | yes |\n| message | string max 255 | no |\n\n**Errors**\n- 400 self-request\n- 403 not connected\n- 404 receiver not found"
          },
          "response": [
            {
              "name": "200 OK",
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [{ "key": "Content-Type", "value": "application/json" }],
              "body": "{\n  \"status\": 200,\n  \"success\": true,\n  \"message\": \"Fuel request sent\",\n  \"data\": {\n    \"_id\": \"686a1b2c3d4e5f6789012345\",\n    \"receiver\": {\n      \"_id\": \"684a0000ce7cbc33d8946b00\",\n      \"fullName\": \"jim\",\n      \"email\": \"jim@yopmail.com\",\n      \"image\": null\n    },\n    \"amountCents\": 500,\n    \"message\": \"Need fuel help at the station\",\n    \"status\": \"pending\",\n    \"createdAt\": \"2026-07-08T14:00:00.000Z\"\n  }\n}"
            },
            {
              "name": "403 Not connected",
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [{ "key": "Content-Type", "value": "application/json" }],
              "body": "{\n  \"statusCode\": 403,\n  \"success\": false,\n  \"message\": \"You can only send fuel requests to your connections\",\n  \"data\": {}\n}"
            }
          ]
        },
        {
          "name": "4.2 Sent fuel requests (Sender)",
          "request": {
            "method": "GET",
            "header": [
              { "key": "Authorization", "value": "Bearer {{token}}" }
            ],
            "url": {
              "raw": "{{apiUrl}}/fuel-requests/sent?page=1&limit=20",
              "host": ["{{apiUrl}}"],
              "path": ["fuel-requests", "sent"],
              "query": [
                { "key": "page", "value": "1" },
                { "key": "limit", "value": "20" },
                { "key": "status", "value": "pending", "disabled": true }
              ]
            },
            "description": "## GET /api/v1/fuel-requests/sent\n\nQuery: `page`, `limit`, optional `status` (`pending`|`accepted`|`rejected`)."
          },
          "response": [
            {
              "name": "200 OK",
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [{ "key": "Content-Type", "value": "application/json" }],
              "body": "{\n  \"status\": 200,\n  \"success\": true,\n  \"message\": \"Fuel requests fetched successfully\",\n  \"data\": {\n    \"data\": [\n      {\n        \"_id\": \"686a1b2c3d4e5f6789012345\",\n        \"receiver\": {\n          \"_id\": \"684a0000ce7cbc33d8946b00\",\n          \"fullName\": \"jim\",\n          \"email\": \"jim@yopmail.com\",\n          \"image\": null\n        },\n        \"amountCents\": 500,\n        \"message\": \"Need fuel help at the station\",\n        \"status\": \"pending\",\n        \"createdAt\": \"2026-07-08T14:00:00.000Z\"\n      }\n    ],\n    \"total\": 1,\n    \"page\": 1,\n    \"totalPages\": 1\n  }\n}"
            }
          ]
        },
        {
          "name": "4.3 Received fuel requests (Receiver)",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Status 200', () => pm.response.to.have.status(200));",
                  "const body = pm.response.json();",
                  "const list = (body.data && body.data.data) || [];",
                  "const pending = list.find(r => r.status === 'pending') || list[0];",
                  "if (pending && pending._id) {",
                  "  pm.collectionVariables.set('fuelRequestId', String(pending._id));",
                  "  console.log('✓ fuelRequestId from received', pending._id);",
                  "}"
                ]
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [
              { "key": "Authorization", "value": "Bearer {{receiver_token}}" }
            ],
            "url": {
              "raw": "{{apiUrl}}/fuel-requests/received?page=1&limit=20",
              "host": ["{{apiUrl}}"],
              "path": ["fuel-requests", "received"],
              "query": [
                { "key": "page", "value": "1" },
                { "key": "limit", "value": "20" },
                { "key": "status", "value": "pending", "disabled": true }
              ]
            },
            "description": "## GET /api/v1/fuel-requests/received\n\nUse **receiver_token**. Auto-saves first pending `_id` to `fuelRequestId`."
          },
          "response": [
            {
              "name": "200 OK",
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [{ "key": "Content-Type", "value": "application/json" }],
              "body": "{\n  \"status\": 200,\n  \"success\": true,\n  \"message\": \"Fuel requests fetched successfully\",\n  \"data\": {\n    \"data\": [\n      {\n        \"_id\": \"686a1b2c3d4e5f6789012345\",\n        \"sender\": {\n          \"_id\": \"683ef251ce7cbc33d8946b9c\",\n          \"fullName\": \"jack\",\n          \"email\": \"jack@yopmail.com\",\n          \"image\": null\n        },\n        \"amountCents\": 500,\n        \"message\": \"Need fuel help at the station\",\n        \"status\": \"pending\",\n        \"createdAt\": \"2026-07-08T14:00:00.000Z\"\n      }\n    ],\n    \"total\": 1,\n    \"page\": 1,\n    \"totalPages\": 1\n  }\n}"
            }
          ]
        },
        {
          "name": "4.4 Transfer / Accept & Pay (Receiver)",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if (pm.response.code === 200) {",
                  "  const body = pm.response.json();",
                  "  console.log('✓ transferred. New balance:', body.data && body.data.walletBalanceCents);",
                  "} else {",
                  "  console.log('Transfer response', pm.response.code, pm.response.text());",
                  "}"
                ]
              }
            }
          ],
          "request": {
            "method": "PATCH",
            "header": [
              { "key": "Authorization", "value": "Bearer {{receiver_token}}" },
              { "key": "Content-Type", "value": "application/json" }
            ],
            "url": "{{apiUrl}}/fuel-requests/{{fuelRequestId}}/transfer",
            "description": "## PATCH /api/v1/fuel-requests/:requestId/transfer\n\n**Only the receiver** can call this.\n\nDebits receiver wallet → credits sender wallet → status `accepted`.\n\n**Errors**\n- 400 `Please top up your wallet first`\n- 403 forbidden\n- 404 not found\n- 409 already processed\n\n**Note:** Do **not** run both Transfer and Reject on the same request."
          },
          "response": [
            {
              "name": "200 OK",
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [{ "key": "Content-Type", "value": "application/json" }],
              "body": "{\n  \"status\": 200,\n  \"success\": true,\n  \"message\": \"Fuel payment transferred successfully\",\n  \"data\": {\n    \"walletBalanceCents\": 9500,\n    \"request\": {\n      \"_id\": \"686a1b2c3d4e5f6789012345\",\n      \"senderId\": \"683ef251ce7cbc33d8946b9c\",\n      \"receiverId\": \"684a0000ce7cbc33d8946b00\",\n      \"amountCents\": 500,\n      \"message\": \"Need fuel help at the station\",\n      \"status\": \"accepted\",\n      \"updatedAt\": \"2026-07-08T14:05:00.000Z\"\n    }\n  }\n}"
            },
            {
              "name": "400 Insufficient funds",
              "status": "Bad Request",
              "code": 400,
              "_postman_previewlanguage": "json",
              "header": [{ "key": "Content-Type", "value": "application/json" }],
              "body": "{\n  \"statusCode\": 400,\n  \"success\": false,\n  \"message\": \"Please top up your wallet first\",\n  \"data\": {}\n}"
            },
            {
              "name": "409 Already processed",
              "status": "Conflict",
              "code": 409,
              "_postman_previewlanguage": "json",
              "header": [{ "key": "Content-Type", "value": "application/json" }],
              "body": "{\n  \"statusCode\": 409,\n  \"success\": false,\n  \"message\": \"This fuel request has already been processed\",\n  \"data\": {}\n}"
            }
          ]
        },
        {
          "name": "4.5 Reject fuel request (Receiver)",
          "request": {
            "method": "PATCH",
            "header": [
              { "key": "Authorization", "value": "Bearer {{receiver_token}}" },
              { "key": "Content-Type", "value": "application/json" }
            ],
            "url": "{{apiUrl}}/fuel-requests/{{fuelRequestId}}/reject",
            "description": "## PATCH /api/v1/fuel-requests/:requestId/reject\n\n**Only the receiver** can reject a **pending** request. No wallet change.\n\nUse this **instead of** Transfer (not after Transfer)."
          },
          "response": [
            {
              "name": "200 OK",
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [{ "key": "Content-Type", "value": "application/json" }],
              "body": "{\n  \"status\": 200,\n  \"success\": true,\n  \"message\": \"Fuel request rejected\",\n  \"data\": {\n    \"_id\": \"686a1b2c3d4e5f6789012345\",\n    \"senderId\": \"683ef251ce7cbc33d8946b9c\",\n    \"receiverId\": \"684a0000ce7cbc33d8946b00\",\n    \"amountCents\": 500,\n    \"message\": \"Need fuel help at the station\",\n    \"status\": \"rejected\",\n    \"updatedAt\": \"2026-07-08T14:06:00.000Z\"\n  }\n}"
            }
          ]
        }
      ]
    },
    {
      "name": "5. Filters",
      "item": [
        {
          "name": "5.1 Sent — status=pending",
          "request": {
            "method": "GET",
            "header": [
              { "key": "Authorization", "value": "Bearer {{token}}" }
            ],
            "url": {
              "raw": "{{apiUrl}}/fuel-requests/sent?status=pending&page=1&limit=20",
              "host": ["{{apiUrl}}"],
              "path": ["fuel-requests", "sent"],
              "query": [
                { "key": "status", "value": "pending" },
                { "key": "page", "value": "1" },
                { "key": "limit", "value": "20" }
              ]
            }
          }
        },
        {
          "name": "5.2 Sent — status=accepted",
          "request": {
            "method": "GET",
            "header": [
              { "key": "Authorization", "value": "Bearer {{token}}" }
            ],
            "url": {
              "raw": "{{apiUrl}}/fuel-requests/sent?status=accepted&page=1&limit=20",
              "host": ["{{apiUrl}}"],
              "path": ["fuel-requests", "sent"],
              "query": [
                { "key": "status", "value": "accepted" },
                { "key": "page", "value": "1" },
                { "key": "limit", "value": "20" }
              ]
            }
          }
        },
        {
          "name": "5.3 Received — status=pending",
          "request": {
            "method": "GET",
            "header": [
              { "key": "Authorization", "value": "Bearer {{receiver_token}}" }
            ],
            "url": {
              "raw": "{{apiUrl}}/fuel-requests/received?status=pending&page=1&limit=20",
              "host": ["{{apiUrl}}"],
              "path": ["fuel-requests", "received"],
              "query": [
                { "key": "status", "value": "pending" },
                { "key": "page", "value": "1" },
                { "key": "limit", "value": "20" }
              ]
            }
          }
        },
        {
          "name": "5.4 Received — status=accepted",
          "request": {
            "method": "GET",
            "header": [
              { "key": "Authorization", "value": "Bearer {{receiver_token}}" }
            ],
            "url": {
              "raw": "{{apiUrl}}/fuel-requests/received?status=accepted&page=1&limit=20",
              "host": ["{{apiUrl}}"],
              "path": ["fuel-requests", "received"],
              "query": [
                { "key": "status", "value": "accepted" },
                { "key": "page", "value": "1" },
                { "key": "limit", "value": "20" }
              ]
            }
          }
        },
        {
          "name": "5.5 Received — status=rejected",
          "request": {
            "method": "GET",
            "header": [
              { "key": "Authorization", "value": "Bearer {{receiver_token}}" }
            ],
            "url": {
              "raw": "{{apiUrl}}/fuel-requests/received?status=rejected&page=1&limit=20",
              "host": ["{{apiUrl}}"],
              "path": ["fuel-requests", "received"],
              "query": [
                { "key": "status", "value": "rejected" },
                { "key": "page", "value": "1" },
                { "key": "limit", "value": "20" }
              ]
            }
          }
        }
      ]
    }
  ]
}
