Skip to main content

InvoiceApi

valkyrai-api

All URIs are relative to http://localhost:8080/v1

MethodHTTP requestDescription
deleteInvoiceDELETE InvoiceApiDelete a Invoice.

deleteInvoice

Void
deleteInvoice(id)

Delete a Invoice.

Deletes a specific Invoice.

Example

Import classes:
import com.valkyrlabs.ApiException;
import com.valkyrlabs.api.InvoiceApi;


InvoiceApi apiInstance = new InvoiceApi();
UUID id = UUID.randomUUID(); // UUID | Unique identifier for the Invoice.

try {
Void result = apiInstance.deleteInvoice(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling InvoiceApi#deleteInvoice");
e.printStackTrace();
}

Parameters

NameTypeDescriptionNotes
idUUIDUnique identifier for the Invoice.

Return type

Void

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

getInvoice

Invoice
getInvoice(id)

Retrieve a single Invoice

Retrieves a single Invoice for a specific uid.

Example

Import classes:
import com.valkyrlabs.ApiException;
import com.valkyrlabs.api.InvoiceApi;


InvoiceApi apiInstance = new InvoiceApi();
UUID id = UUID.randomUUID(); // UUID | Unique identifier for the Invoice.

try {
Invoice result = apiInstance.getInvoice(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling InvoiceApi#getInvoice");
e.printStackTrace();
}

Parameters

NameTypeDescriptionNotes
idUUIDUnique identifier for the Invoice.

Return type

Invoice

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

getInvoiceList

Invoice
getInvoiceList()

Retrieve a list of Invoices

Retrieves a list of Invoices.

Example

Import classes:
import com.valkyrlabs.ApiException;
import com.valkyrlabs.api.InvoiceApi;


InvoiceApi apiInstance = new InvoiceApi();

try {
Invoice result = apiInstance.getInvoiceList();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling InvoiceApi#getInvoiceList");
e.printStackTrace();
}

Parameters

This endpoint does not need any parameter.

Return type

Invoice

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

postInvoice

Invoice
postInvoice(invoice)

Create a new Invoice

Creates a new Invoice.

Example

Import classes:
import com.valkyrlabs.ApiException;
import com.valkyrlabs.api.InvoiceApi;


InvoiceApi apiInstance = new InvoiceApi();
Invoice invoice = new Invoice(); // Invoice | Invoice details.

try {
Invoice result = apiInstance.postInvoice(invoice);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling InvoiceApi#postInvoice");
e.printStackTrace();
}

Parameters

NameTypeDescriptionNotes
invoiceInvoiceInvoice details.

Return type

Invoice

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

updateInvoice

Invoice
updateInvoice(idinvoice)

Update an existing Invoice

Updates an existing Invoice.

Example

Import classes:
import com.valkyrlabs.ApiException;
import com.valkyrlabs.api.InvoiceApi;


InvoiceApi apiInstance = new InvoiceApi();
UUID id = UUID.randomUUID(); // UUID | Unique identifier for the Invoice.
Invoice invoice = new Invoice(); // Invoice | Updated Invoice details.

try {
Invoice result = apiInstance.updateInvoice(idinvoice);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling InvoiceApi#updateInvoice");
e.printStackTrace();
}

Parameters

NameTypeDescriptionNotes
idUUIDUnique identifier for the Invoice.
invoiceInvoiceUpdated Invoice details.

Return type

Invoice

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

Generated Version Details

~value
GENERATOR VERSIONcom.valkyrlabs:ValkyrAI API 1.0-SNAPSHOT
API ARTIFACTcom.valkyrlabs.valkyrai-api.jar
GENERATOR VERSIONorg.openapitools.openapi-generator:7.5.0
GENERATOR CLASSorg.openapitools.codegen.languages.SpringCodegen
GENERATED DATE2025-04-09T20:27:13.881184-07:00[America/Los_Angeles]