This document outlines the process of testing the Lawyer Billing System API. The API is designed to help lawyers streamline their billing process by parsing CSV files containing billing information and providing detailed invoice data. The API offers endpoints for parsing CSV files and retrieving invoice details.
- baseUrl: 'https://csvdemomockapp.bundlewallet.com/'
- Endpoint:
{{baseUrl}}/invoice/parse - Description: Allows you to parse the content of a CSV file encoded in Base64. The CSV file must adhere to the specified format.
- Request:
- Headers: Content-Type (application/json)
- Body:
{ "payload": "Base64-encoded CSV content here" }
- Response:
- This endpoint will return a success response with the parsed data in JSON format.
- Endpoint:
{{baseUrl}}/invoice/{{invoice_id}} - Description: Retrieve the parse result for a previously parsed CSV invoice by its specified ID.
- Request:
- Example Request:
curl --location -g '{{baseUrl}}/invoice/:invoiceId'
- Example Request:
- Response:
- Returns JSON data with parsed company details and an empty map when the specified ID is not found.
{ "companies": { "Google": 2400, "Facebook": 500 }, "id": "" }
- Returns JSON data with parsed company details and an empty map when the specified ID is not found.
- Endpoint:
{{baseUrl}}/invoice/{{invoice_id}}/company?companyName=Google - Description: Get a breakdown of the employees, rates, and amounts billed by a company in an invoice result using the ID.
- Request:
- Example Request:
curl --location -g '{{baseUrl}}/invoice/{{invoice_id}}/company?companyName=Google'
- Example Request:
- Response:
- Returns JSON data with detailed company billing information.
- Parse CSV File Content Endpoint: Successfully parses CSV files and provides parsed data as expected.
- Get Invoice Parsing Result by ID Endpoint: Always returns a success response and handles cases where the specified ID is not found.
- Get Company Details from an Invoice Endpoint: Provides detailed company billing information as expected.
πππ Attached is a Mocha reporter to see collection runs and scripts. Doenload and extract file to be able to view report (https://drive.google.com/file/d/1uoqFUGTcPiA2lPyU9241QePyfSaQh_xs/view?usp=sharing)
Overall, the API functions correctly and ensures a streamlined billing process for lawyers, simplifying the creation of invoices.
π API Testing Complete! π