| Requires any of the roles: | Admin, TeamAdmin | Required permission: | Tickets.Add |
| POST | /donations/payout/manual |
|---|
import java.math.*
import java.util.*
import net.servicestack.client.*
open class DonationPayoutManualRequest
{
var donationId:Int? = null
var payoutAmount:BigDecimal? = null
var txnPercent:BigDecimal? = null
var markPaidReference:String? = null
var note:String? = null
var createdBy:String? = null
}
open class DonationPayoutBatchResult
{
var rows:ArrayList<DonationPayoutRow> = ArrayList<DonationPayoutRow>()
var count:Int? = null
var donationAmount:Long? = null
var payoutAmount:BigDecimal? = null
var payoutAmountIsk:Long? = null
var alreadyPaidCount:Int? = null
var replayed:Boolean? = null
var markPaidReference:String? = null
var ownerId:Int? = null
var statusCode:Int? = null
var message:String? = null
}
open class DonationPayoutRow
{
var id:Int? = null
var donationId:Int? = null
var ownerId:Int? = null
var ownerCardId:Int? = null
var paymentMethodId:String? = null
var paymentReference:String? = null
var amount:BigDecimal? = null
var txnPercent:BigDecimal? = null
var payoutAmount:BigDecimal? = null
var markPaidReference:String? = null
var source:String? = null
var note:String? = null
var createdUTC:Date? = null
var createdBy:String? = null
var donationPaidUTC:Date? = null
}
Kotlin DonationPayoutManualRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /donations/payout/manual HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<DonationPayoutManualRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<CreatedBy>String</CreatedBy>
<DonationId>0</DonationId>
<MarkPaidReference>String</MarkPaidReference>
<Note>String</Note>
<PayoutAmount>0</PayoutAmount>
<TxnPercent>0</TxnPercent>
</DonationPayoutManualRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<DonationPayoutBatchResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<AlreadyPaidCount>0</AlreadyPaidCount>
<Count>0</Count>
<DonationAmount>0</DonationAmount>
<MarkPaidReference>String</MarkPaidReference>
<Message>String</Message>
<OwnerId>0</OwnerId>
<PayoutAmount>0</PayoutAmount>
<PayoutAmountIsk>0</PayoutAmountIsk>
<Replayed>false</Replayed>
<Rows>
<DonationPayoutRow>
<Amount>0</Amount>
<CreatedBy>String</CreatedBy>
<CreatedUTC>0001-01-01T00:00:00</CreatedUTC>
<DonationId>0</DonationId>
<DonationPaidUTC>0001-01-01T00:00:00</DonationPaidUTC>
<Id>0</Id>
<MarkPaidReference>String</MarkPaidReference>
<Note>String</Note>
<OwnerCardId>0</OwnerCardId>
<OwnerId>0</OwnerId>
<PaymentMethodId>String</PaymentMethodId>
<PaymentReference>String</PaymentReference>
<PayoutAmount>0</PayoutAmount>
<Source>String</Source>
<TxnPercent>0</TxnPercent>
</DonationPayoutRow>
</Rows>
<StatusCode>0</StatusCode>
</DonationPayoutBatchResult>