{
  "info": {
    "_postman_id": "8c5c89e4-6fca-4d73-8a11-c8bc8d51d301",
    "name": "Finance Reports APIs",
    "description": "Postman collection for finance report APIs: Cost Center Report and Currency Report.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    {
      "key": "base_url",
      "value": "http://localhost/api",
      "type": "string"
    },
    {
      "key": "employee_token",
      "value": "",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "Cost Center Report",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "application/json",
            "type": "text"
          },
          {
            "key": "lang",
            "value": "ar",
            "type": "text"
          },
          {
            "key": "Authorization",
            "value": "Bearer {{employee_token}}",
            "type": "text"
          }
        ],
        "url": {
          "raw": "{{base_url}}/finance/cost-centers/report?cost_center_id=12&from_date=2026-04-01&to_date=2026-04-30&journal_id=5&journal_entry_numner=12132&ledger_number=50001&search=rent&per_page=20&page=1",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "finance",
            "cost-centers",
            "report"
          ],
          "query": [
            {
              "key": "cost_center_id",
              "value": "12"
            },
            {
              "key": "from_date",
              "value": "2026-04-01"
            },
            {
              "key": "to_date",
              "value": "2026-04-30"
            },
            {
              "key": "journal_id",
              "value": "5"
            },
            {
              "key": "journal_entry_numner",
              "value": "12132"
            },
            {
              "key": "ledger_number",
              "value": "50001"
            },
            {
              "key": "search",
              "value": "rent"
            },
            {
              "key": "per_page",
              "value": "20"
            },
            {
              "key": "page",
              "value": "1"
            }
          ]
        },
        "description": "Example request for Cost Center Report API using query params."
      },
      "response": [
        {
          "name": "Cost Center Report Example",
          "originalRequest": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "lang",
                "value": "ar",
                "type": "text"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{employee_token}}",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/finance/cost-centers/report?cost_center_id=12&from_date=2026-04-01&to_date=2026-04-30&per_page=20&page=1",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "finance",
                "cost-centers",
                "report"
              ],
              "query": [
                {
                  "key": "cost_center_id",
                  "value": "12"
                },
                {
                  "key": "from_date",
                  "value": "2026-04-01"
                },
                {
                  "key": "to_date",
                  "value": "2026-04-30"
                },
                {
                  "key": "per_page",
                  "value": "20"
                },
                {
                  "key": "page",
                  "value": "1"
                }
              ]
            }
          },
          "status": "OK",
          "code": 200,
          "_postman_previewlanguage": "json",
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "body": "{\n  \"status\": true,\n  \"message\": \"Success\",\n  \"code\": 200,\n  \"filters\": {\n    \"cost_center_id\": 12,\n    \"from_date\": \"2026-04-01\",\n    \"to_date\": \"2026-04-30\"\n  },\n  \"cost_center\": {\n    \"id\": 12,\n    \"name\": \"Branch Rent\",\n    \"code\": \"CC-12\"\n  },\n  \"data\": [\n    {\n      \"reference_number\": \"12132\",\n      \"journal_entry_numner\": \"12132\",\n      \"ledger_number\": \"50001\",\n      \"date\": \"2026-04-15\",\n      \"date_time\": \"2026-04-15 10:25:00\",\n      \"journal_entry_id\": 55,\n      \"journal_entry_detail_id\": 101,\n      \"journal_id\": 5,\n      \"account_code\": \"1201\",\n      \"account_name\": \"Office Rent\",\n      \"debit\": 1000,\n      \"credit\": 0,\n      \"debit_facility\": 30000,\n      \"credit_facility\": 0,\n      \"currency\": \"US Dollar\",\n      \"currency_code\": \"USD\",\n      \"currency_symbol\": \"$\",\n      \"description\": \"Monthly rent\",\n      \"cost_center_name\": \"Branch Rent\",\n      \"cost_center_code\": \"CC-12\",\n      \"percentage\": 100,\n      \"amount_current\": 1000,\n      \"amount\": 30000\n    }\n  ],\n  \"meta\": {\n    \"totalItems\": 1,\n    \"itemsPerPage\": 20,\n    \"totalPages\": 1,\n    \"currentPage\": 1\n  }\n}"
        }
      ]
    },
    {
      "name": "Currency Report",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "application/json",
            "type": "text"
          },
          {
            "key": "lang",
            "value": "ar",
            "type": "text"
          },
          {
            "key": "Authorization",
            "value": "Bearer {{employee_token}}",
            "type": "text"
          }
        ],
        "url": {
          "raw": "{{base_url}}/finance/currencies/report?currency_id=2&from_date=2026-04-01&to_date=2026-04-30&journal_id=5&journal_entry_numner=12132&ledger_number=50001&search=usd&per_page=20&page=1",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "finance",
            "currencies",
            "report"
          ],
          "query": [
            {
              "key": "currency_id",
              "value": "2"
            },
            {
              "key": "from_date",
              "value": "2026-04-01"
            },
            {
              "key": "to_date",
              "value": "2026-04-30"
            },
            {
              "key": "journal_id",
              "value": "5"
            },
            {
              "key": "journal_entry_numner",
              "value": "12132"
            },
            {
              "key": "ledger_number",
              "value": "50001"
            },
            {
              "key": "search",
              "value": "usd"
            },
            {
              "key": "per_page",
              "value": "20"
            },
            {
              "key": "page",
              "value": "1"
            }
          ]
        },
        "description": "Example request for Currency Report API using query params."
      },
      "response": [
        {
          "name": "Currency Report Example",
          "originalRequest": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "lang",
                "value": "ar",
                "type": "text"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{employee_token}}",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/finance/currencies/report?currency_id=2&from_date=2026-04-01&to_date=2026-04-30&per_page=20&page=1",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "finance",
                "currencies",
                "report"
              ],
              "query": [
                {
                  "key": "currency_id",
                  "value": "2"
                },
                {
                  "key": "from_date",
                  "value": "2026-04-01"
                },
                {
                  "key": "to_date",
                  "value": "2026-04-30"
                },
                {
                  "key": "per_page",
                  "value": "20"
                },
                {
                  "key": "page",
                  "value": "1"
                }
              ]
            }
          },
          "status": "OK",
          "code": 200,
          "_postman_previewlanguage": "json",
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "body": "{\n  \"status\": true,\n  \"message\": \"Success\",\n  \"code\": 200,\n  \"filters\": {\n    \"currency_id\": 2,\n    \"from_date\": \"2026-04-01\",\n    \"to_date\": \"2026-04-30\"\n  },\n  \"currency\": {\n    \"id\": 2,\n    \"name\": \"US Dollar\",\n    \"code\": \"USD\",\n    \"symbol\": \"$\"\n  },\n  \"data\": [\n    {\n      \"serial\": 1,\n      \"reference_number\": \"12132\",\n      \"journal_entry_id\": 55,\n      \"journal_entry_detail_id\": 101,\n      \"date\": \"2026-04-15\",\n      \"date_time\": \"2026-04-15 10:25:00\",\n      \"journal_entry_numner\": \"12132\",\n      \"ledger_number\": \"50001\",\n      \"currency_id\": 2,\n      \"journal_id\": 5,\n      \"account_code\": \"1201\",\n      \"account_name\": \"Office Rent\",\n      \"currency_name\": \"US Dollar\",\n      \"currency_code\": \"USD\",\n      \"currency_symbol\": \"$\",\n      \"debit\": \"1000.00\",\n      \"credit\": \"0.00\",\n      \"debit_local\": \"30000.00\",\n      \"credit_local\": \"0.00\",\n      \"exchange_rate\": \"30.00\",\n      \"description\": \"Monthly rent\",\n      \"balance\": \"1000.00\",\n      \"balance_local\": \"30000.00\"\n    },\n    {\n      \"serial\": 2,\n      \"reference_number\": \"12140\",\n      \"journal_entry_id\": 56,\n      \"journal_entry_detail_id\": 102,\n      \"date\": \"2026-04-20\",\n      \"date_time\": \"2026-04-20 09:10:00\",\n      \"journal_entry_numner\": \"12140\",\n      \"ledger_number\": \"50012\",\n      \"currency_id\": 2,\n      \"journal_id\": 8,\n      \"account_code\": \"2101\",\n      \"account_name\": \"Vendor Payable\",\n      \"currency_name\": \"US Dollar\",\n      \"currency_code\": \"USD\",\n      \"currency_symbol\": \"$\",\n      \"debit\": \"0.00\",\n      \"credit\": \"200.00\",\n      \"debit_local\": \"0.00\",\n      \"credit_local\": \"6000.00\",\n      \"exchange_rate\": \"30.00\",\n      \"description\": \"Vendor settlement\",\n      \"balance\": \"800.00\",\n      \"balance_local\": \"24000.00\"\n    }\n  ],\n  \"meta\": {\n    \"totalItems\": 2,\n    \"itemsPerPage\": 20,\n    \"totalPages\": 1,\n    \"currentPage\": 1\n  }\n}"
        }
      ]
    }
  ]
}
