| POST | /api/Ach/AchRefInfo | Create Ref for Ach Info | Creates a reference value for the ACH values passed in. |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class AchRefInfo
{
public Integer ClientId = null;
public String GroupId = null;
public String BankAccount = null;
public String RoutingNumber = null;
public Integer getClientId() { return ClientId; }
public AchRefInfo setClientId(Integer value) { this.ClientId = value; return this; }
public String getGroupId() { return GroupId; }
public AchRefInfo setGroupId(String value) { this.GroupId = value; return this; }
public String getBankAccount() { return BankAccount; }
public AchRefInfo setBankAccount(String value) { this.BankAccount = value; return this; }
public String getRoutingNumber() { return RoutingNumber; }
public AchRefInfo setRoutingNumber(String value) { this.RoutingNumber = value; return this; }
}
public static class AchRefInfoReply implements IHaveErrorField
{
public String AchRef = null;
public Integer ErrorCode = null;
public String ErrorMessage = null;
@ApiMember(ExcludeInSchema=true)
public Boolean IsError = null;
public String getAchRef() { return AchRef; }
public AchRefInfoReply setAchRef(String value) { this.AchRef = value; return this; }
public Integer getErrorCode() { return ErrorCode; }
public AchRefInfoReply setErrorCode(Integer value) { this.ErrorCode = value; return this; }
public String getErrorMessage() { return ErrorMessage; }
public AchRefInfoReply setErrorMessage(String value) { this.ErrorMessage = value; return this; }
public Boolean getIsError() { return IsError; }
public AchRefInfoReply setIsError(Boolean value) { this.IsError = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /api/Ach/AchRefInfo HTTP/1.1
Host: devapi.billhighway.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<AchRefInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BH.CloudAPI.Common4.DTO.SalesForce">
<BankAccount>String</BankAccount>
<ClientId>0</ClientId>
<GroupId>String</GroupId>
<RoutingNumber>String</RoutingNumber>
</AchRefInfo>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <AchRefInfoReply xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BH.CloudAPI.Common4.DTO.SalesForce"> <AchRef>String</AchRef> <ErrorCode>0</ErrorCode> <ErrorMessage>String</ErrorMessage> </AchRefInfoReply>