experteam/api-laravel-ebilling

Laravel library to manage common operations used in electronic billing processes

1.0.1 2025-07-24 00:49 UTC

This package is auto-updated.

Last update: 2025-07-24 00:50:26 UTC


README

Laravel library to manage common operations used in electronic billing processes.
It includes:

  • Document request manager: manage document requests and retrieve them by document ID.

Install

Run the following commands to install:

composer require experteam/api-laravel-ebilling

Update

Run the composer command to update the package:

composer update experteam/api-laravel-ebilling

Use

After installing the package, you should run the migration command to create the necessary tables in your database.

php artisan migrate

this will create the following tables:

  • document_requests

Document Request Manager

You can use the Document Request Manager to store and retrieve document requests:

// Store a document request
$documentRequest = DocumentRequestManager::store($documentId, $service, $observation);

// Get document requests by document ID
$documentRequests = DocumentRequestManager::getByDocumentId($documentId);

API Endpoints

The package provides the following API endpoints:

  • GET /api/document-requests/{documentId}: Get all document requests for a specific document ID.

Example response:

{
  "success": true,
  "data": {
    "requests": [
      {
        "id": 1,
        "document_id": 123,
        "service": "example_service",
        "times": [
          "2025-07-23T18:57:00.000000Z"
        ],
        "observation": "Example observation",
        "created_at": "2025-07-23T18:57:00.000000Z",
        "updated_at": "2025-07-23T18:57:00.000000Z"
      }
    ]
  }
}

License

MIT license.