Files
Kifi/kifi-api/Kifi-API.postman_collection.json
2026-08-16 20:13:21 +05:30

361 lines
9.9 KiB
JSON

{
"info": {
"name": "Kifi API",
"description": "Postman Collection for Kifi API",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"variable": [
{
"key": "base_url",
"value": "https://app.technobeesolutions.in/api/kifi",
"type": "string"
},
{
"key": "token",
"value": "YOUR_JWT_TOKEN",
"type": "string"
}
],
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{token}}",
"type": "string"
}
]
},
"item": [
{
"name": "Auth",
"item": [
{
"name": "Signup",
"request": {
"auth": { "type": "noauth" },
"method": "POST",
"header": [ { "key": "Content-Type", "value": "application/json" } ],
"body": {
"mode": "raw",
"raw": "{\n \"phone\": \"+1234567890\",\n \"password\": \"securepassword\"\n}"
},
"url": {
"raw": "{{base_url}}/auth/signup",
"host": [ "{{base_url}}" ],
"path": [ "auth", "signup" ]
}
}
},
{
"name": "Verify OTP",
"request": {
"auth": { "type": "noauth" },
"method": "POST",
"header": [ { "key": "Content-Type", "value": "application/json" } ],
"body": {
"mode": "raw",
"raw": "{\n \"phone\": \"+1234567890\",\n \"otp\": \"123456\"\n}"
},
"url": {
"raw": "{{base_url}}/auth/verify-otp",
"host": [ "{{base_url}}" ],
"path": [ "auth", "verify-otp" ]
}
}
},
{
"name": "Login",
"request": {
"auth": { "type": "noauth" },
"method": "POST",
"header": [ { "key": "Content-Type", "value": "application/json" } ],
"body": {
"mode": "raw",
"raw": "{\n \"phone\": \"+1234567890\",\n \"password\": \"securepassword\"\n}"
},
"url": {
"raw": "{{base_url}}/auth/login",
"host": [ "{{base_url}}" ],
"path": [ "auth", "login" ]
}
}
}
]
},
{
"name": "Wallets",
"item": [
{
"name": "Get Wallets",
"request": {
"method": "GET",
"url": {
"raw": "{{base_url}}/wallets",
"host": [ "{{base_url}}" ],
"path": [ "wallets" ]
}
}
},
{
"name": "Create Wallet",
"request": {
"method": "POST",
"header": [ { "key": "Content-Type", "value": "application/json" } ],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"My Family Wallet\"\n}"
},
"url": {
"raw": "{{base_url}}/wallets",
"host": [ "{{base_url}}" ],
"path": [ "wallets" ]
}
}
},
{
"name": "Invite User",
"request": {
"method": "POST",
"header": [ { "key": "Content-Type", "value": "application/json" } ],
"body": {
"mode": "raw",
"raw": "{\n \"userPhone\": \"+1987654321\"\n}"
},
"url": {
"raw": "{{base_url}}/wallets/1/invite",
"host": [ "{{base_url}}" ],
"path": [ "wallets", "1", "invite" ]
}
}
}
]
},
{
"name": "Transactions",
"item": [
{
"name": "Get Transactions",
"request": {
"method": "GET",
"url": {
"raw": "{{base_url}}/transactions",
"host": [ "{{base_url}}" ],
"path": [ "transactions" ]
}
}
},
{
"name": "Add Transaction",
"request": {
"method": "POST",
"header": [ { "key": "Content-Type", "value": "application/json" } ],
"body": {
"mode": "raw",
"raw": "{\n \"amount\": 50.0,\n \"type\": \"EXPENSE\",\n \"categoryId\": 1,\n \"merchantId\": 1,\n \"date\": \"2023-10-01T10:00:00\"\n}"
},
"url": {
"raw": "{{base_url}}/transactions",
"host": [ "{{base_url}}" ],
"path": [ "transactions" ]
}
}
},
{
"name": "Update Transaction",
"request": {
"method": "PUT",
"header": [ { "key": "Content-Type", "value": "application/json" } ],
"body": {
"mode": "raw",
"raw": "{\n \"amount\": 75.0,\n \"type\": \"EXPENSE\",\n \"categoryId\": 1,\n \"merchantId\": 1,\n \"date\": \"2023-10-01T10:00:00\"\n}"
},
"url": {
"raw": "{{base_url}}/transactions/1",
"host": [ "{{base_url}}" ],
"path": [ "transactions", "1" ]
}
}
},
{
"name": "Delete Transaction",
"request": {
"method": "DELETE",
"url": {
"raw": "{{base_url}}/transactions/1",
"host": [ "{{base_url}}" ],
"path": [ "transactions", "1" ]
}
}
}
]
},
{
"name": "Budgets",
"item": [
{
"name": "Get Budgets",
"request": {
"method": "GET",
"url": {
"raw": "{{base_url}}/budgets",
"host": [ "{{base_url}}" ],
"path": [ "budgets" ]
}
}
},
{
"name": "Add/Update Budget",
"request": {
"method": "POST",
"header": [ { "key": "Content-Type", "value": "application/json" } ],
"body": {
"mode": "raw",
"raw": "{\n \"categoryId\": 1,\n \"limit\": 500.0,\n \"month\": 10,\n \"year\": 2023\n}"
},
"url": {
"raw": "{{base_url}}/budgets",
"host": [ "{{base_url}}" ],
"path": [ "budgets" ]
}
}
},
{
"name": "Delete Budget",
"request": {
"method": "DELETE",
"url": {
"raw": "{{base_url}}/budgets/1",
"host": [ "{{base_url}}" ],
"path": [ "budgets", "1" ]
}
}
}
]
},
{
"name": "Categories",
"item": [
{
"name": "Get Categories",
"request": {
"method": "GET",
"url": {
"raw": "{{base_url}}/categories",
"host": [ "{{base_url}}" ],
"path": [ "categories" ]
}
}
},
{
"name": "Add Category",
"request": {
"method": "POST",
"header": [ { "key": "Content-Type", "value": "application/json" } ],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"Groceries\",\n \"icon\": \"shopping_cart\",\n \"color\": \"#FF0000\"\n}"
},
"url": {
"raw": "{{base_url}}/categories",
"host": [ "{{base_url}}" ],
"path": [ "categories" ]
}
}
}
]
},
{
"name": "Merchants",
"item": [
{
"name": "Get Merchants",
"request": {
"method": "GET",
"url": {
"raw": "{{base_url}}/merchants",
"host": [ "{{base_url}}" ],
"path": [ "merchants" ]
}
}
},
{
"name": "Add Merchant",
"request": {
"method": "POST",
"header": [ { "key": "Content-Type", "value": "application/json" } ],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"Walmart\"\n}"
},
"url": {
"raw": "{{base_url}}/merchants",
"host": [ "{{base_url}}" ],
"path": [ "merchants" ]
}
}
}
]
},
{
"name": "Recurring Transactions",
"item": [
{
"name": "Get Recurring Transactions",
"request": {
"method": "GET",
"url": {
"raw": "{{base_url}}/recurring-transactions",
"host": [ "{{base_url}}" ],
"path": [ "recurring-transactions" ]
}
}
},
{
"name": "Add Recurring Transaction",
"request": {
"method": "POST",
"header": [ { "key": "Content-Type", "value": "application/json" } ],
"body": {
"mode": "raw",
"raw": "{\n \"amount\": 15.99,\n \"type\": \"EXPENSE\",\n \"categoryId\": 1,\n \"frequency\": \"MONTHLY\",\n \"nextDate\": \"2023-11-01T10:00:00\"\n}"
},
"url": {
"raw": "{{base_url}}/recurring-transactions",
"host": [ "{{base_url}}" ],
"path": [ "recurring-transactions" ]
}
}
},
{
"name": "Delete Recurring Transaction",
"request": {
"method": "DELETE",
"url": {
"raw": "{{base_url}}/recurring-transactions/1",
"host": [ "{{base_url}}" ],
"path": [ "recurring-transactions", "1" ]
}
}
}
]
},
{
"name": "Reports",
"item": [
{
"name": "Export CSV",
"request": {
"method": "GET",
"url": {
"raw": "{{base_url}}/reports/export",
"host": [ "{{base_url}}" ],
"path": [ "reports", "export" ]
}
}
}
]
}
]
}