Billhighway Cloud API

<back to all web services

RefundACHPayment

The following routes are available for this service:
POST/api/SalesForce/RefundACHPayment
POST/payments/ach/refund
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class RefundACHPayment
    {
        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 RefundAmount = null;
        public String Memo = null;
        public Long TransactionId = null;
        public String Reason = null;
        
        public String getClassName() { return ClassName; }
        public RefundACHPayment setClassName(String value) { this.ClassName = value; return this; }
        public String getUniqueId() { return UniqueId; }
        public RefundACHPayment setUniqueId(String value) { this.UniqueId = value; return this; }
        public Date getCreatedDateTime() { return CreatedDateTime; }
        public RefundACHPayment setCreatedDateTime(Date value) { this.CreatedDateTime = value; return this; }
        public Integer getClientId() { return ClientId; }
        public RefundACHPayment setClientId(Integer value) { this.ClientId = value; return this; }
        public String getGroupId() { return GroupId; }
        public RefundACHPayment setGroupId(String value) { this.GroupId = value; return this; }
        public String getUserId() { return UserId; }
        public RefundACHPayment setUserId(String value) { this.UserId = value; return this; }
        public Integer getBhUserId() { return BhUserId; }
        public RefundACHPayment setBhUserId(Integer value) { this.BhUserId = value; return this; }
        public BigDecimal getRefundAmount() { return RefundAmount; }
        public RefundACHPayment setRefundAmount(BigDecimal value) { this.RefundAmount = value; return this; }
        public String getMemo() { return Memo; }
        public RefundACHPayment setMemo(String value) { this.Memo = value; return this; }
        public Long getTransactionId() { return TransactionId; }
        public RefundACHPayment setTransactionId(Long value) { this.TransactionId = value; return this; }
        public String getReason() { return Reason; }
        public RefundACHPayment setReason(String value) { this.Reason = value; return this; }
    }

    public static class RefundACHPaymentReply implements IHaveErrorField
    {
        public String ClassName = null;
        public String UniqueId = null;
        public Date CreatedDateTime = null;
        public Integer ErrorCode = null;
        public String ErrorMessage = null;
        public String ConfirmationNumber = null;
        public Boolean IsError = null;
        
        public String getClassName() { return ClassName; }
        public RefundACHPaymentReply setClassName(String value) { this.ClassName = value; return this; }
        public String getUniqueId() { return UniqueId; }
        public RefundACHPaymentReply setUniqueId(String value) { this.UniqueId = value; return this; }
        public Date getCreatedDateTime() { return CreatedDateTime; }
        public RefundACHPaymentReply setCreatedDateTime(Date value) { this.CreatedDateTime = value; return this; }
        public Integer getErrorCode() { return ErrorCode; }
        public RefundACHPaymentReply setErrorCode(Integer value) { this.ErrorCode = value; return this; }
        public String getErrorMessage() { return ErrorMessage; }
        public RefundACHPaymentReply setErrorMessage(String value) { this.ErrorMessage = value; return this; }
        public String getConfirmationNumber() { return ConfirmationNumber; }
        public RefundACHPaymentReply setConfirmationNumber(String value) { this.ConfirmationNumber = value; return this; }
        public Boolean getIsError() { return IsError; }
        public RefundACHPaymentReply setIsError(Boolean value) { this.IsError = value; return this; }
    }

}

Java RefundACHPayment 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/RefundACHPayment HTTP/1.1 
Host: devapi.billhighway.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"ClassName":"String","UniqueId":"String","CreatedDateTime":"0001-01-01T00:00:00.0000000","ClientId":0,"GroupId":"String","UserId":"String","BhUserId":0,"RefundAmount":0,"Memo":"String","TransactionId":0,"Reason":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"ClassName":"String","UniqueId":"String","CreatedDateTime":"0001-01-01T00:00:00.0000000","ErrorCode":0,"ErrorMessage":"String","ConfirmationNumber":"String","IsError":false}