Billiecart API

<back to all web services

GetPaymentRequest

Requires Authentication
Requires the role:manager
The following routes are available for this service:
GET/payments/{Id}
import java.math.*
import java.util.*
import net.servicestack.client.*


open class GetPaymentRequest : GetOperationTenanted<GetPaymentResponse>()
{
    var id:String? = null
}

open class GetOperationTenanted<TResponse> : GetOperationUnTenanted<TResponse>(), ITenantedRequest
{
    var organisationId:String? = null
}

open class GetOperationUnTenanted<TResponse> : IHasGetOptions, IGet
{
    var embed:String? = null
}

open class GetPaymentResponse
{
    var responseStatus:ResponseStatus? = null
    var payment:Payment? = null
}

open class Payment : IIdentifiableResource
{
    var salaryPackageId:String? = null
    var amount:BigDecimal? = null
    var gstAmount:BigDecimal? = null
    var particulars:String? = null
    var budgetCategory:String? = null
    var status:String? = null
    var toAccount:BankAccount? = null
    var id:String? = null
}

open class BankAccount
{
    var bsbNumber:String? = null
    var accountNumber:String? = null
}

Kotlin GetPaymentRequest DTOs

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

HTTP + JSV

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

GET /payments/{Id} HTTP/1.1 
Host: staging-api.billiecart.com.au 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	responseStatus: 
	{
		errorCode: String,
		message: String,
		stackTrace: String,
		errors: 
		[
			{
				errorCode: String,
				fieldName: String,
				message: String,
				meta: 
				{
					String: String
				}
			}
		],
		meta: 
		{
			String: String
		}
	},
	payment: 
	{
		salaryPackageId: String,
		amount: 0,
		gstAmount: 0,
		particulars: String,
		budgetCategory: String,
		status: String,
		toAccount: 
		{
			bsbNumber: String,
			accountNumber: String
		},
		id: String
	}
}