Billhighway Cloud API

<back to all web services

PaymentApplicationRequest

The following routes are available for this service:
GET/payments/paymentApplication
namespace BH.CloudAPI.Common4.DTO.PaymentApplication.Request

open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type LineItem() = 
        member val chartOfAccountRefID:String = null with get,set
        member val chartOfAccountDescription:String = null with get,set
        member val cashAccount:String = null with get,set
        member val amount:Decimal = new Decimal() with get,set
        member val fee:Decimal = new Decimal() with get,set

    [<AllowNullLiteral>]
    type TransactionHistory() = 
        member val type:String = null with get,set
        member val date:String = null with get,set
        member val lineItems:ResizeArray<LineItem> = new ResizeArray<LineItem>() with get,set

    [<AllowNullLiteral>]
    type UserTransaction() = 
        member val transactionID:Int64 = new Int64() with get,set
        member val date:String = null with get,set
        member val type:String = null with get,set
        member val accountLast4:String = null with get,set
        member val amount:Decimal = new Decimal() with get,set
        member val unapplied:Decimal = new Decimal() with get,set
        member val unappliedFee:Decimal = new Decimal() with get,set
        member val returnReason:String = null with get,set
        member val returnDate:String = null with get,set
        member val refundAmount:Decimal = new Decimal() with get,set
        member val lineItems:ResizeArray<LineItem> = new ResizeArray<LineItem>() with get,set
        member val transactionHistory:ResizeArray<TransactionHistory> = new ResizeArray<TransactionHistory>() with get,set

    [<AllowNullLiteral>]
    type PaymentApplicationUser() = 
        member val groupID:String = null with get,set
        member val fiscalYear:Int32 = new Int32() with get,set
        member val userID:String = null with get,set
        member val bhUserID:Int32 = new Int32() with get,set
        member val autoPayStatus:String = null with get,set
        member val userTransactions:ResizeArray<UserTransaction> = new ResizeArray<UserTransaction>() with get,set

    [<AllowNullLiteral>]
    type Paging() = 
        member val page:Int32 = new Int32() with get,set
        member val totalPages:Int32 = new Int32() with get,set
        member val next:String = null with get,set

    [<AllowNullLiteral>]
    type PaymentApplicationResponse() = 
        member val IsError:Boolean = new Boolean() with get,set
        member val users:ResizeArray<PaymentApplicationUser> = new ResizeArray<PaymentApplicationUser>() with get,set
        member val ErrorMessage:String = null with get,set
        member val paging:Paging = null with get,set

    [<AllowNullLiteral>]
    type PaymentApplicationRequest() = 
        member val transactionID:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val groupID:String = null with get,set
        member val userID:String = null with get,set
        member val bhUserID:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val transactionBeginDate:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val transactionEndDate:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val fiscalYear:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val page:Nullable<Int32> = new Nullable<Int32>() with get,set

F# PaymentApplicationRequest 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.

GET /payments/paymentApplication HTTP/1.1 
Host: devapi.billhighway.com 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"IsError":true,"users":[{"groupID":"String","fiscalYear":0,"userID":"String","bhUserID":0,"autoPayStatus":"String","userTransactions":[{"transactionID":0,"date":"String","type":"String","accountLast4":"String","amount":0,"unapplied":0,"unappliedFee":0,"returnReason":"String","returnDate":"String","refundAmount":0,"lineItems":[{"chartOfAccountRefID":"String","chartOfAccountDescription":"String","cashAccount":"String","amount":0,"fee":0}],"transactionHistory":[{"type":"String","date":"String","lineItems":[{"chartOfAccountRefID":"String","chartOfAccountDescription":"String","cashAccount":"String","amount":0,"fee":0}]}]}]}],"ErrorMessage":"String","paging":{"page":0,"totalPages":0,"next":"String"}}