The code libraries, including any sample code, are provided “AS IS”, for demonstration purposes only. Zuora does not guarantee or make any representations regarding the use, results of use, accuracy, security, timeliness, or completeness of any data or information relating to the sample code. You, the customer, are responsible for making sure that your implementation is functional and secure.
Go to Zuora Community to report issues or discuss these samples with your peers.
Building the API client library requires Maven to be installed.
To install the API client library to your local Maven repository, simply execute:
mvn install
To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:
mvn deploy
Refer to the official documentation for more information.
Add this dependency to your project's POM:
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-java-client</artifactId>
<version>1.0.0</version>
<scope>compile</scope>
</dependency>
Add this dependency to your project's build file:
compile "io.swagger:swagger-java-client:1.0.0"
At first generate the JAR by executing:
mvn package
Then manually install the following JARs:
- target/swagger-java-client-1.0.0.jar
- target/lib/*.jar
Please follow the installation instruction and execute the following Java code:
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AccountingCodesApi;
import java.io.File;
import java.util.*;
public class AccountingCodesApiExample {
public static void main(String[] args) {
AccountingCodesApi apiInstance = new AccountingCodesApi();
String acId = "acId_example"; // String | ID of the accounting code you want to delete.
try {
CommonResponseType result = apiInstance.dELETEAccountingCode(acId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccountingCodesApi#dELETEAccountingCode");
e.printStackTrace();
}
}
}
All documentation can be found in the Developer Center, in the API Reference.
It's recommended to create an instance of ApiClient
per thread in a multithreaded environment to avoid any potential issues.