Deactivating a merchant

It's not possible to delete a merchant after it's created. Instead, a merchant should be deactivated.

Client client = new Client();
client.SetBasicAuth("[email protected]", "notArealpassw0rd");

string merchantId = "9900000301"
var merchant = client.GetMerchantAsync(merchantId).Result;

merchant.IsActive = false;
var updatedMerchant = client.UpdateMerchantAsync(merchantId, merchantUpdate).Result;
ApiClient defaultClient = Configuration.getDefaultApiClient();
        
HttpBasicAuth auth = (HttpBasicAuth)defaultClient.getAuthentication("basicAuth");
auth.setUsername("[email protected]);
auth.setPassword("notArealpassw0rd");

MerchantsApi apiInstance = new MerchantsApi();

String merchantId = "9900000301";
                 
Merchant merchant = apiInstance.getMerchant(merchantId);

//change the merchant to inactive
merchant.setIsActive(false)
apiInstance.updateMerchant(merchantId, merchant);
[[ACHConfiguration sharedConfig] username] = @"[email protected]";
[[ACHConfiguration sharedConfig] password] = @"notArealpassword";

ACHMerchantsApi *apiInstance = [[ACHMerchantsApi alloc] init];

[apiInstance getMerchantWithMerchantId:output.merchantId completionHandler:^(ACHMerchant *output, NSError *error) {
	if (output) {
    //change the merchant to inactive
    [output setIsActive:@0];
    
    [apiInstance updateMerchantWithMerchantId: output.merchantId client: output completionHandler:^(ACHMerchant *output, NSError *error) {
      waitingForBlock = NO;
      if (output) {
				NSLog(@"%@", output);
      }
      if (error) {
        NSLog(@"Error calling ACHMerchantsApi->getMerchantWithMerchantId: %@", error);
      }
    }];
  }
  if (error){
  	NSLog(@"Error calling ACHMerchantsApi->getMerchantWithMerchantId: %@", error);
  }
}