{
  "info": {
    "name": "RMTO Bill of Lading API",
    "description": "API endpoints for RMTO bill of lading integration",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{bearer_token}}",
        "type": "string"
      }
    ]
  },
  "item": [
    {
      "name": "RMTO",
      "item": [
        {
          "name": "Test Bill of Lading Registration",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"bill_number\": 123456789,\n  \"serial\": \"A\",\n  \"issue_date\": {\n    \"year\": 1403,\n    \"month\": 6,\n    \"day\": 15\n  },\n  \"issue_time\": \"10:30\",\n  \"lander_type_code\": 1,\n  \"origin_city_code\": 117,\n  \"destination_city_code\": 166,\n  \"sender\": {\n    \"name\": \"علی رضایی\",\n    \"national_code\": \"0012345678\",\n    \"postal_code\": \"1234567890\",\n    \"address\": \"تهران، خیابان ولیعصر\"\n  },\n  \"receiver\": {\n    \"name\": \"رضا احمدی\",\n    \"national_code\": \"9876543210\",\n    \"postal_code\": \"9876543210\",\n    \"address\": \"مشهد، خیابان امام رضا\"\n  },\n  \"freighter_card_number\": \"9876543210123456\",\n  \"first_driver_card_number\": \"1234567890123456\",\n  \"first_driver_national_id\": \"0012345678\",\n  \"cost\": 5000000,\n  \"total_cost\": 5500000,\n  \"company_commission\": 500000,\n  \"goods\": [\n    {\n      \"good_type_code\": 1,\n      \"weight\": 1000,\n      \"value\": 10000000,\n      \"hs_code\": 84715000,\n      \"packing_type_code\": 1\n    }\n  ]\n}"
            },
            "url": {
              "raw": "{{base_url}}/api/rmto/test-bill",
              "host": ["{{base_url}}"],
              "path": ["api", "rmto", "test-bill"]
            }
          }
        },
        {
          "name": "Get Driver Info by Card",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"type\": \"card\",\n  \"value\": \"1234567890123456\"\n}"
            },
            "url": {
              "raw": "{{base_url}}/api/rmto/driver-info",
              "host": ["{{base_url}}"],
              "path": ["api", "rmto", "driver-info"]
            }
          }
        },
        {
          "name": "Get Driver Info by National ID",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"type\": \"national_id\",\n  \"value\": \"0012345678\"\n}"
            },
            "url": {
              "raw": "{{base_url}}/api/rmto/driver-info",
              "host": ["{{base_url}}"],
              "path": ["api", "rmto", "driver-info"]
            }
          }
        },
        {
          "name": "Get Freighter Info",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"card_number\": \"9876543210123456\"\n}"
            },
            "url": {
              "raw": "{{base_url}}/api/rmto/freighter-info",
              "host": ["{{base_url}}"],
              "path": ["api", "rmto", "freighter-info"]
            }
          }
        },
        {
          "name": "Send OTP",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"mobile\": \"09123456789\"\n}"
            },
            "url": {
              "raw": "{{base_url}}/api/rmto/send-otp",
              "host": ["{{base_url}}"],
              "path": ["api", "rmto", "send-otp"]
            }
          }
        },
        {
          "name": "Get RMTO Current Date",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/api/rmto/current-date",
              "host": ["{{base_url}}"],
              "path": ["api", "rmto", "current-date"]
            }
          }
        }
      ]
    }
  ],
  "variable": [
    {
      "key": "base_url",
      "value": "http://localhost:8000",
      "type": "string"
    },
    {
      "key": "bearer_token",
      "value": "",
      "type": "string"
    }
  ]
}
