Search

Reference implementations

Maventa provides reference implementations for Java and C# to help you get started with the REST API. These projects demonstrate common integration patterns — from authentication and account setup to invoice sending, receiving, and webhook handling.

The reference implementations are examples, not production-ready libraries. Use them as a starting point and learning resource for your own integration, but don’t use them as-is in production. Review, adapt, and test the code to fit your specific requirements.

Available implementations

What they cover

Both implementations include examples for the most common integration tasks:

Getting started

To use either reference implementation, you need:

Both projects include setup instructions and environment variable configuration in their README files. The client code follows the same structure as the Swagger documentation, so finding the right method for an API endpoint is straightforward.

If you don’t have API keys yet, see the Getting started page for instructions on how to set up your integration credentials.

How the clients work

The client wrappers organise API endpoints into a namespace structure that mirrors the REST API paths. For example, /v1/company/settings maps to client.company.settings in both implementations.

JavaC#
MaventaConfigBuilder builder = new MaventaConfigBuilder()
    .autoXchangeBaseUrl("https://ax.maventa.com")
    .validateBaseUrl("https://validator-api.maventa.com")
    .userApiKey("your-user-api-key")
    .companyUuid("your-company-uuid")
    .vendorApiKey("your-vendor-api-key")
    .authScopes("eui global company");
Config config = builder.build();
MaventaApiClient client = new MaventaApiClient(config);
var config = new Maventa.RestApi.Config()
{
    AutoXChangeBaseUrl = "https://ax.maventa.com",
    ValidateBaseUrl = "https://validator-api.maventa.com",
    UserApiKey = "your-user-api-key",
    CompanyUuid = "your-company-uuid",
    VendorApiKey = "your-vendor-api-key",
    AuthScopeString = "eui global company"
};
var client = new Maventa.RestApi.ApiClient(config);
Back to top