TicketUserServices

<back to all web services

DonationPayoutManualRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdminRequired permission:Tickets.Add
The following routes are available for this service:
POST/donations/payout/manual

export class DonationPayoutRow
{
    public id?: number;
    public donationId?: number;
    public ownerId?: number;
    public ownerCardId?: number;
    public paymentMethodId?: string;
    public paymentReference?: string;
    public amount?: number;
    public txnPercent?: number;
    public payoutAmount?: number;
    public markPaidReference?: string;
    public source?: string;
    public note?: string;
    public createdUTC?: string;
    public createdBy?: string;
    public donationPaidUTC?: string;

    public constructor(init?: Partial<DonationPayoutRow>) { (Object as any).assign(this, init); }
}

export class DonationPayoutBatchResult
{
    public rows?: DonationPayoutRow[];
    public count?: number;
    public donationAmount?: number;
    public payoutAmount?: number;
    public payoutAmountIsk?: number;
    public alreadyPaidCount?: number;
    public replayed?: boolean;
    public markPaidReference?: string;
    public ownerId?: number;
    public statusCode?: number;
    public message?: string;

    public constructor(init?: Partial<DonationPayoutBatchResult>) { (Object as any).assign(this, init); }
}

export class DonationPayoutManualRequest
{
    public donationId?: number;
    public payoutAmount?: number;
    public txnPercent?: number;
    public markPaidReference?: string;
    public note?: string;
    public createdBy?: string;

    public constructor(init?: Partial<DonationPayoutManualRequest>) { (Object as any).assign(this, init); }
}

TypeScript DonationPayoutManualRequest 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.

POST /donations/payout/manual HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	donationId: 0,
	payoutAmount: 0,
	txnPercent: 0,
	markPaidReference: String,
	note: String,
	createdBy: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	rows: 
	[
		{
			id: 0,
			donationId: 0,
			ownerId: 0,
			ownerCardId: 0,
			paymentMethodId: String,
			paymentReference: String,
			amount: 0,
			txnPercent: 0,
			payoutAmount: 0,
			markPaidReference: String,
			source: String,
			note: String,
			createdUTC: 0001-01-01,
			createdBy: String,
			donationPaidUTC: 0001-01-01
		}
	],
	count: 0,
	donationAmount: 0,
	payoutAmount: 0,
	payoutAmountIsk: 0,
	alreadyPaidCount: 0,
	replayed: False,
	markPaidReference: String,
	ownerId: 0,
	statusCode: 0,
	message: String
}