Skip to content

andreidore/smartbill-java-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SmartBill API client for java

Table of Contents

Maven

SmartBill client is now in maven central repo.

<dependency>
    <groupId>com.github.andreidore</groupId>
    <artifactId>smartbillclient4j</artifactId>
    <version>0.7.0</version>
</dependency>

Usage

Client

Create client

SmartBillClient client = new SmartBillClient("username", "token");
// or
SmartBillClient client = new SmartBillClient("username", "token","url");

You can find more info about authentication data here.

Invoice

Download

byte[] data = client.getInvoicePdf("cif","0","1")

Estimate

Estimate download

byte[] data = client.getEstimatePdf("cif","0","1")

Email

Configuration

Configuration

Stock

List<Stock> stocks = client.getStocks("cif",new Date());
// or
List<Stock> stocks = client.getStocks("cif",new Date(),"warehouse");
// or
List<Stock> stocks = client.getStocks("cif",new Date(),"warehouse","Product 1",null);
// or
List<Stock> stocks = client.getStocks("cif",new Date(),"warehouse",null,"CODE_1");

Todo

  • Invoice

    • CreateInvoice
    • GetInvoicePdf
    • DeleteInvoice
    • CancelInvoice
    • RestoreInvoice
  • Payment

    • CreatePayment
    • GetReceiptText
    • DeletePaymentByReceipt
    • DeletePayment
    • GetPaymentStatus
  • Estimate (Proforma Invoice)

    • CreateEstimate
    • GetEstimatePdf
    • DeleteEstimate
    • CancelEstimate
    • RestoreEstimate
  • Email

    • SendDocument
  • Configuration

    • GetTaxes
    • GetSeries
  • Stock

    • GetStock

About

A SmartBill API client for Java

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages