Requires the role: | manager |
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
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
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: application/json
HTTP/1.1 200 OK Content-Type: application/json 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"}}