# Reference Application
source: https://developer.mastercard.com/benefit-allocations-service/documentation/dev-tools/reference-app/index.md

## Overview {#overview}

Please refer to the reference apps below for sample code to authenticate, encrypt and invoke calls to the Benefit Allocation Service API. Reference apps are available in Java and .NET. Each README.md has instructions on generating an OpenAPI client.

## Java Reference Application {#java-reference-application}

### Prerequisites {#prerequisites}

* Java 17 installed

### Technologies Used {#technologies-used}

* Spring Boot 3.2.5
* Maven 3.6.3
* Open Api Generator

### Get the Source Code {#get-the-source-code}

Download the source code of the Java reference app from below
[bas-ref-app-java.zip](https://static.developer.mastercard.com/content/benefit-allocations-service/uploads/bas-ref-app-java.zip) (52KB)

## .NET Reference Application {#net-reference-application}

### Prerequisites {#prerequisites-1}

* .NET SDK installed

### Technologies Used {#technologies-used-1}

* .NET
* Open Api Generator

### Get the Source Code {#get-the-source-code-1}

Download the source code of the .NET reference app from below
[bas-ref-app-dotnet.zip](https://static.developer.mastercard.com/content/benefit-allocations-service/uploads/bas-ref-app-dotnet.zip) (61KB)
