SmartBill API client for java
SmartBill client is now in maven central repo.
<dependency>
<groupId>com.github.andreidore</groupId>
<artifactId>smartbillclient4j</artifactId>
<version>0.7.0</version>
</dependency>
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.
byte[] data = client.getInvoicePdf("cif","0","1")
byte[] data = client.getEstimatePdf("cif","0","1")
Configuration
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");
-
Invoice
- CreateInvoice
GetInvoicePdf- DeleteInvoice
- CancelInvoice
- RestoreInvoice
-
Payment
- CreatePayment
- GetReceiptText
- DeletePaymentByReceipt
- DeletePayment
- GetPaymentStatus
-
Estimate (Proforma Invoice)
- CreateEstimate
GetEstimatePdf- DeleteEstimate
- CancelEstimate
- RestoreEstimate
-
EmailSendDocument
-
ConfigurationGetTaxesGetSeries
-
StockGetStock