Skip to content

Latest commit

 

History

History
77 lines (56 loc) · 2.25 KB

DeleteAccountApi.md

File metadata and controls

77 lines (56 loc) · 2.25 KB

DeleteAccountApi

All URIs are relative to https://api.merge.dev/api/hris/v1

Method HTTP request Description
deleteAccountCreate POST /delete-account

deleteAccountCreate

deleteAccountCreate(xAccountToken)

Delete a linked account.

Example

// Import classes:
import merge_hris_client.ApiClient;
import merge_hris_client.ApiException;
import merge_hris_client.Configuration;
import merge_hris_client.auth.*;
import merge_hris_client.models.*;
import merge_hris_client.api.DeleteAccountApi;

public class Example {
  public static void main(String[] args) {
    ApiClient defaultClient = Configuration.getDefaultApiClient();
    defaultClient.setBasePath("https://api.merge.dev/api/hris/v1");
    
    // Configure API key authorization: tokenAuth
    ApiKeyAuth tokenAuth = (ApiKeyAuth) defaultClient.getAuthentication("tokenAuth");
    tokenAuth.setApiKey("YOUR API KEY");
    // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    //tokenAuth.setApiKeyPrefix("Token");

    DeleteAccountApi apiInstance = new DeleteAccountApi(defaultClient);
    String xAccountToken = "xAccountToken_example"; // String | Token identifying the end user.
    try {
      apiInstance.deleteAccountCreate(xAccountToken);
    } catch (ApiException e) {
      System.err.println("Exception when calling DeleteAccountApi#deleteAccountCreate");
      System.err.println("Status code: " + e.getCode());
      System.err.println("Reason: " + e.getResponseBody());
      System.err.println("Response headers: " + e.getResponseHeaders());
      e.printStackTrace();
    }
  }
}

Parameters

Name Type Description Notes
xAccountToken String Token identifying the end user.

Return type

null (empty response body)

Authorization

tokenAuth

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 No response body -