Billhighway Cloud API

<back to all web services

AchPaymentCollection

The following routes are available for this service:
POST/api/SalesForce/AchPaymentProcesses the ACH Payments.Validates the input values and processes the ACH Payments.
POST/payments/achProcesses the ACH Payments.Validates the input values and processes the ACH Payments.
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class AchPaymentCollection
    {
        public ArrayList<AchPayment> AchPaymentList = null;
        
        public ArrayList<AchPayment> getAchPaymentList() { return AchPaymentList; }
        public AchPaymentCollection setAchPaymentList(ArrayList<AchPayment> value) { this.AchPaymentList = value; return this; }
    }

    public static class AchPayment
    {
        public String ClassName = null;
        public String UniqueId = null;
        public Date CreatedDateTime = null;
        public Integer ClientId = null;
        public String GroupId = null;
        public String UserId = null;
        public Integer BhUserId = null;
        public BigDecimal Amount = null;
        public String CurrencyType = null;
        public String Country = null;
        public String RoutingNumber = null;
        public String AccountNumber = null;
        public String AchReference = null;
        public String AccountType = null;
        public Boolean IsSavingsAccount = null;
        public String PayerName = null;
        public String CheckNumber = null;
        public String PreferredEmailAddress = null;
        public String Memo = null;
        public ArrayList<SalesForceMemberPaymentInvoiceDetail> InvoiceList = null;
        public Boolean AutoPay = null;
        public Boolean StoreAchInfo = null;
        public Integer EncryptionTypeId = null;
        
        public String getClassName() { return ClassName; }
        public AchPayment setClassName(String value) { this.ClassName = value; return this; }
        public String getUniqueId() { return UniqueId; }
        public AchPayment setUniqueId(String value) { this.UniqueId = value; return this; }
        public Date getCreatedDateTime() { return CreatedDateTime; }
        public AchPayment setCreatedDateTime(Date value) { this.CreatedDateTime = value; return this; }
        public Integer getClientId() { return ClientId; }
        public AchPayment setClientId(Integer value) { this.ClientId = value; return this; }
        public String getGroupId() { return GroupId; }
        public AchPayment setGroupId(String value) { this.GroupId = value; return this; }
        public String getUserId() { return UserId; }
        public AchPayment setUserId(String value) { this.UserId = value; return this; }
        public Integer getBhUserId() { return BhUserId; }
        public AchPayment setBhUserId(Integer value) { this.BhUserId = value; return this; }
        public BigDecimal getAmount() { return Amount; }
        public AchPayment setAmount(BigDecimal value) { this.Amount = value; return this; }
        public String getCurrencyType() { return CurrencyType; }
        public AchPayment setCurrencyType(String value) { this.CurrencyType = value; return this; }
        public String getCountry() { return Country; }
        public AchPayment setCountry(String value) { this.Country = value; return this; }
        public String getRoutingNumber() { return RoutingNumber; }
        public AchPayment setRoutingNumber(String value) { this.RoutingNumber = value; return this; }
        public String getAccountNumber() { return AccountNumber; }
        public AchPayment setAccountNumber(String value) { this.AccountNumber = value; return this; }
        public String getAchReference() { return AchReference; }
        public AchPayment setAchReference(String value) { this.AchReference = value; return this; }
        public String getAccountType() { return AccountType; }
        public AchPayment setAccountType(String value) { this.AccountType = value; return this; }
        public Boolean getIsSavingsAccount() { return IsSavingsAccount; }
        public AchPayment setIsSavingsAccount(Boolean value) { this.IsSavingsAccount = value; return this; }
        public String getPayerName() { return PayerName; }
        public AchPayment setPayerName(String value) { this.PayerName = value; return this; }
        public String getCheckNumber() { return CheckNumber; }
        public AchPayment setCheckNumber(String value) { this.CheckNumber = value; return this; }
        public String getPreferredEmailAddress() { return PreferredEmailAddress; }
        public AchPayment setPreferredEmailAddress(String value) { this.PreferredEmailAddress = value; return this; }
        public String getMemo() { return Memo; }
        public AchPayment setMemo(String value) { this.Memo = value; return this; }
        public ArrayList<SalesForceMemberPaymentInvoiceDetail> getInvoiceList() { return InvoiceList; }
        public AchPayment setInvoiceList(ArrayList<SalesForceMemberPaymentInvoiceDetail> value) { this.InvoiceList = value; return this; }
        public Boolean isAutoPay() { return AutoPay; }
        public AchPayment setAutoPay(Boolean value) { this.AutoPay = value; return this; }
        public Boolean isStoreAchInfo() { return StoreAchInfo; }
        public AchPayment setStoreAchInfo(Boolean value) { this.StoreAchInfo = value; return this; }
        public Integer getEncryptionTypeId() { return EncryptionTypeId; }
        public AchPayment setEncryptionTypeId(Integer value) { this.EncryptionTypeId = value; return this; }
    }

    public static class SalesForceMemberPaymentInvoiceDetail
    {
        public String ClassName = null;
        public String UniqueId = null;
        public Date CreatedDateTime = null;
        public Integer ClientId = null;
        public Integer Invoice = null;
        public String AmountPaid = null;
        
        public String getClassName() { return ClassName; }
        public SalesForceMemberPaymentInvoiceDetail setClassName(String value) { this.ClassName = value; return this; }
        public String getUniqueId() { return UniqueId; }
        public SalesForceMemberPaymentInvoiceDetail setUniqueId(String value) { this.UniqueId = value; return this; }
        public Date getCreatedDateTime() { return CreatedDateTime; }
        public SalesForceMemberPaymentInvoiceDetail setCreatedDateTime(Date value) { this.CreatedDateTime = value; return this; }
        public Integer getClientId() { return ClientId; }
        public SalesForceMemberPaymentInvoiceDetail setClientId(Integer value) { this.ClientId = value; return this; }
        public Integer getInvoice() { return Invoice; }
        public SalesForceMemberPaymentInvoiceDetail setInvoice(Integer value) { this.Invoice = value; return this; }
        public String getAmountPaid() { return AmountPaid; }
        public SalesForceMemberPaymentInvoiceDetail setAmountPaid(String value) { this.AmountPaid = value; return this; }
    }

    public static class AchPaymentReplyCollection
    {
        public ArrayList<AchPaymentReply> AchReplyCollection = null;
        
        public ArrayList<AchPaymentReply> getAchReplyCollection() { return AchReplyCollection; }
        public AchPaymentReplyCollection setAchReplyCollection(ArrayList<AchPaymentReply> value) { this.AchReplyCollection = value; return this; }
    }

    public static class AchPaymentReply implements IHaveErrorField
    {
        public String ClassName = null;
        public String UniqueId = null;
        public Date CreatedDateTime = null;
        public Integer ClientId = null;
        public String TransactionId = null;
        public Integer ErrorCode = null;
        public String ErrorMessage = null;
        @ApiMember(ExcludeInSchema=true)
        public Boolean IsError = null;
        
        public String getClassName() { return ClassName; }
        public AchPaymentReply setClassName(String value) { this.ClassName = value; return this; }
        public String getUniqueId() { return UniqueId; }
        public AchPaymentReply setUniqueId(String value) { this.UniqueId = value; return this; }
        public Date getCreatedDateTime() { return CreatedDateTime; }
        public AchPaymentReply setCreatedDateTime(Date value) { this.CreatedDateTime = value; return this; }
        public Integer getClientId() { return ClientId; }
        public AchPaymentReply setClientId(Integer value) { this.ClientId = value; return this; }
        public String getTransactionId() { return TransactionId; }
        public AchPaymentReply setTransactionId(String value) { this.TransactionId = value; return this; }
        public Integer getErrorCode() { return ErrorCode; }
        public AchPaymentReply setErrorCode(Integer value) { this.ErrorCode = value; return this; }
        public String getErrorMessage() { return ErrorMessage; }
        public AchPaymentReply setErrorMessage(String value) { this.ErrorMessage = value; return this; }
        public Boolean getIsError() { return IsError; }
        public AchPaymentReply setIsError(Boolean value) { this.IsError = value; return this; }
    }

}

Java AchPaymentCollection DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /api/SalesForce/AchPayment HTTP/1.1 
Host: devapi.billhighway.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"AchPaymentList":[{"ClassName":"String","UniqueId":"String","CreatedDateTime":"0001-01-01T00:00:00.0000000","ClientId":0,"GroupId":"String","UserId":"String","BhUserId":0,"Amount":0,"CurrencyType":"String","Country":"String","RoutingNumber":"String","AccountNumber":"String","AchReference":"String","AccountType":"String","IsSavingsAccount":false,"PayerName":"String","CheckNumber":"String","PreferredEmailAddress":"String","Memo":"String","InvoiceList":[{"ClassName":"String","UniqueId":"String","CreatedDateTime":"0001-01-01T00:00:00.0000000","ClientId":0,"Invoice":0,"AmountPaid":"String"}],"AutoPay":false,"StoreAchInfo":false,"EncryptionTypeId":0}]}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"AchReplyCollection":[{"ClassName":"String","UniqueId":"String","CreatedDateTime":"0001-01-01T00:00:00.0000000","ClientId":0,"TransactionId":"String","ErrorCode":0,"ErrorMessage":"String","IsError":false}]}