| POST | /api/SalesForce/AchPayment | Processes the ACH Payments. | Validates the input values and processes the ACH Payments. |
|---|---|---|---|
| POST | /payments/ach | Processes the ACH Payments. | Validates the input values and processes the ACH Payments. |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using BH.CloudAPI.Common4.DTO.SalesForce;
namespace BH.CloudAPI.Common4.DTO.SalesForce
{
public partial class AchPayment
{
public AchPayment()
{
InvoiceList = new List<SalesForceMemberPaymentInvoiceDetail>{};
}
public virtual string ClassName { get; set; }
public virtual string UniqueId { get; set; }
public virtual DateTime CreatedDateTime { get; set; }
public virtual int ClientId { get; set; }
public virtual string GroupId { get; set; }
public virtual string UserId { get; set; }
public virtual int BhUserId { get; set; }
public virtual decimal Amount { get; set; }
public virtual string CurrencyType { get; set; }
public virtual string Country { get; set; }
public virtual string RoutingNumber { get; set; }
public virtual string AccountNumber { get; set; }
public virtual string AchReference { get; set; }
public virtual string AccountType { get; set; }
public virtual bool IsSavingsAccount { get; set; }
public virtual string PayerName { get; set; }
public virtual string CheckNumber { get; set; }
public virtual string PreferredEmailAddress { get; set; }
public virtual string Memo { get; set; }
public virtual List<SalesForceMemberPaymentInvoiceDetail> InvoiceList { get; set; }
public virtual bool AutoPay { get; set; }
public virtual bool StoreAchInfo { get; set; }
public virtual int EncryptionTypeId { get; set; }
}
public partial class AchPaymentCollection
{
public AchPaymentCollection()
{
AchPaymentList = new List<AchPayment>{};
}
public virtual List<AchPayment> AchPaymentList { get; set; }
}
public partial class AchPaymentReply
: IHaveErrorField
{
public virtual string ClassName { get; set; }
public virtual string UniqueId { get; set; }
public virtual DateTime CreatedDateTime { get; set; }
public virtual int ClientId { get; set; }
public virtual string TransactionId { get; set; }
public virtual int ErrorCode { get; set; }
public virtual string ErrorMessage { get; set; }
[ApiMember(ExcludeInSchema=true)]
public virtual bool IsError { get; set; }
}
public partial class AchPaymentReplyCollection
{
public AchPaymentReplyCollection()
{
AchReplyCollection = new List<AchPaymentReply>{};
}
public virtual List<AchPaymentReply> AchReplyCollection { get; set; }
}
public partial class SalesForceMemberPaymentInvoiceDetail
{
public virtual string ClassName { get; set; }
public virtual string UniqueId { get; set; }
public virtual DateTime CreatedDateTime { get; set; }
public virtual int ClientId { get; set; }
public virtual int Invoice { get; set; }
public virtual string AmountPaid { get; set; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
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/jsv
Content-Type: text/jsv
Content-Length: length
{
AchPaymentList:
[
{
ClassName: String,
UniqueId: String,
CreatedDateTime: 0001-01-01,
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-01,
ClientId: 0,
Invoice: 0,
AmountPaid: String
}
],
AutoPay: False,
StoreAchInfo: False,
EncryptionTypeId: 0
}
]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
AchReplyCollection:
[
{
ClassName: String,
UniqueId: String,
CreatedDateTime: 0001-01-01,
ClientId: 0,
TransactionId: String,
ErrorCode: 0,
ErrorMessage: String,
IsError: False
}
]
}