{
    "variable": [
        {
            "id": "baseUrl",
            "key": "baseUrl",
            "type": "string",
            "name": "string",
            "value": "https:\/\/vereaze.com"
        }
    ],
    "info": {
        "name": "Vereaze",
        "_postman_id": "2c31f12b-508d-4ee9-9ca1-b2eed5863453",
        "description": "",
        "schema": "https:\/\/schema.getpostman.com\/json\/collection\/v2.1.0\/collection.json"
    },
    "item": [
        {
            "name": "Endpoints",
            "description": "",
            "item": [
                {
                    "name": "Connect",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/connect",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/connect"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Confirm the connection"
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n    \"id\": 1,\n    \"name\": \"John Doe\",\n    \"business\": \"My Business\",\n    \"email\": \"nZg0F@example.com\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Get Users",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/users",
                            "query": [
                                {
                                    "key": "id",
                                    "value": "17",
                                    "description": "ID of the user.",
                                    "disabled": false
                                },
                                {
                                    "key": "name",
                                    "value": "aperiam",
                                    "description": "Name of the user.",
                                    "disabled": false
                                },
                                {
                                    "key": "email",
                                    "value": "bmorissette%40example.net",
                                    "description": "Email of the user.",
                                    "disabled": false
                                },
                                {
                                    "key": "role",
                                    "value": "fugiat",
                                    "description": "Role of the user.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/v1\/users?id=17&name=aperiam&email=bmorissette%40example.net&role=fugiat"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Get a list of users"
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "[\n {\n     \"id\": 1,\n     \"name\": \"John Doe\",\n     \"email\": \"nZg0F@example.com\",\n     \"role\": \"admin\"\n },\n ...\n]",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Get Tasks",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/tasks",
                            "query": [
                                {
                                    "key": "client_id",
                                    "value": "8",
                                    "description": "ID of the client.",
                                    "disabled": false
                                },
                                {
                                    "key": "project_code",
                                    "value": "qui",
                                    "description": "Code of the project.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/v1\/tasks?client_id=8&project_code=qui"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Get a list of tasks"
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "[\n {\n     \"id\": \"TA-001\",\n     \"task_number_full\": \"TA-001\",\n     \"client_id\": 1,\n     \"client_name\": \"Client 1\",\n     \"project_code\": \"PRJ\",\n     \"project_name\": \"Project 1\",\n     \"current_status_id\": 1,\n     \"current_status_name\": \"Created\",\n     \"name\": \"Task 1\",\n     \"description\": \"Task 1 description\",\n     \"start_date\": \"2022-01-01\",\n     \"due_date\": \"2022-01-01\",\n     \"created_at\": \"2022-01-01\",\n     \"updated_at\": \"2022-01-01\",\n },\n ...\n]",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Create Task",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/task\/create",
                            "query": [
                                {
                                    "key": "name",
                                    "value": "omnis",
                                    "description": "Name of the task.",
                                    "disabled": false
                                },
                                {
                                    "key": "description",
                                    "value": "Autem+voluptatem+eius+sunt+aut+officiis+error.",
                                    "description": "Description of the task.",
                                    "disabled": false
                                },
                                {
                                    "key": "status_id",
                                    "value": "8",
                                    "description": "ID of the status.",
                                    "disabled": false
                                },
                                {
                                    "key": "client_id",
                                    "value": "20",
                                    "description": "ID of the client.",
                                    "disabled": false
                                },
                                {
                                    "key": "project_code",
                                    "value": "voluptatibus",
                                    "description": "Code of the project.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/v1\/task\/create?name=omnis&description=Autem+voluptatem+eius+sunt+aut+officiis+error.&status_id=8&client_id=20&project_code=voluptatibus"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Create a new task"
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n     \"id\": \"TA-001\",\n     \"task_number_full\": \"TA-001\",\n     \"client_id\": 1,\n     \"client_name\": \"Client 1\",\n     \"project_code\": \"PRJ\",\n     \"project_name\": \"Project 1\",\n     \"current_status_id\": 1,\n     \"current_status_name\": \"Created\",\n     \"name\": \"Task 1\",\n     \"description\": \"Task 1 description\",\n     \"start_date\": \"2022-01-01\",\n     \"due_date\": \"2022-01-01\",\n     \"created_at\": \"2022-01-01\",\n     \"updated_at\": \"2022-01-01\",\n }",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 400,
                            "body": "{\n     \"message\": \"Task name is required.\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Get Statuses",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/statuses",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/statuses"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Get a list of statuses"
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "[\n  {\n     \"id\": 1,\n     \"name\": \"Status Name\",\n  },\n  ...\n]",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Get Projects",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/projects",
                            "query": [
                                {
                                    "key": "client_id",
                                    "value": "2",
                                    "description": "ID of the client.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/v1\/projects?client_id=2"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Get a list of projects"
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "[\n  {\n     \"id\": 4,\n     \"code\": \"PRJ\",\n     \"name\": \"Project 1\",\n  },\n  ...\n]",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Get Clients",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/clients",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/clients"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Get a list of clients"
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "[\n  {\n     \"id\": 1,\n     \"name\": \"Client 1\",\n  },\n  ...\n]",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Get Invoices",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/invoices",
                            "query": [
                                {
                                    "key": "client_id",
                                    "value": "14",
                                    "description": "ID of the client.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/v1\/invoices?client_id=14"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Get a list of invoices"
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "[\n  {\n     \"id\": 1,\n     \"invoice_number\": \"INV-001\",\n     \"client_id\": 1,\n     \"client_name\": \"Client 1\",\n     \"invoice_amount\": 100.00,\n     \"invoice_paid\": 0.00,\n     \"invoice_balance\": 100.00,\n     \"invoice_updated_at\": 2024-07-01\n  },\n  ...\n]",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Get Unpaid Invoices",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/invoices\/unpaid",
                            "query": [
                                {
                                    "key": "client_id",
                                    "value": "15",
                                    "description": "ID of the client.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/v1\/invoices\/unpaid?client_id=15"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Get a list of unpaid invoices"
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "[\n  {\n     \"id\": 1,\n     \"invoice_number\": \"INV-001\",\n     \"client_id\": 1,\n     \"client_name\": \"Client 1\",\n     \"invoice_amount\": 100.00,\n     \"invoice_paid\": 0.00,\n     \"invoice_balance\": 100.00,\n  },\n  ...\n]",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Get Paid Invoices",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/invoices\/paid",
                            "query": [
                                {
                                    "key": "client_id",
                                    "value": "7",
                                    "description": "ID of the client.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/v1\/invoices\/paid?client_id=7"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Get a list of paid invoices"
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "[\n  {\n     \"id\": 1,\n     \"invoice_number\": \"INV-001\",\n     \"client_id\": 1,\n     \"client_name\": \"Client 1\",\n     \"invoice_amount\": 100.00,\n     \"invoice_paid\": 0.00,\n     \"invoice_balance\": 100.00,\n  },\n  ...\n]",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Create Invoice",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/invoice\/create",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/invoice\/create"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"client_id\":11,\"include_unbilled_time\":true,\"email_invoice_to_client\":false,\"item\":{\"description\":\"Sint et iure tempora reprehenderit aut tempore.\",\"quantity\":8,\"item_cost\":0.18919693}}"
                        },
                        "description": "Create a new invoice"
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n     \"id\": 1,\n     \"invoice_number\": \"INV-001\",\n     \"client_id\": 1,\n     \"client_name\": \"Client 1\",\n     \"invoice_amount\": 100.00,\n     \"invoice_paid\": 0.00,\n     \"invoice_balance\": 100.00,\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 400,
                            "body": "{\n     \"message\": \"Client ID is required\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 400,
                            "body": "{\n     \"message\": \"Invalid client ID\"\n}",
                            "name": ""
                        }
                    ]
                }
            ]
        }
    ],
    "auth": {
        "type": "bearer",
        "bearer": [
            {
                "key": "Authentication",
                "type": "string"
            }
        ]
    }
}