| Requires any of the roles: | Admin, TeamAdmin | Requires the permission: | Tickets.Add |
| POST | /OwnerCards/{Id}/refund |
|---|
export class OwnerCardRefundResult
{
public success?: boolean;
public statusCode?: number;
public message?: string;
public result?: string;
public ownerCardId?: number;
public ownerId?: number;
public orderReference?: string;
public paymentReference?: string;
public previousPaymentStatus?: string;
public paymentStatus?: string;
public cardRefundAmount?: number;
public giftCreditAmount?: number;
public giftCreditPendingAmount?: number;
public totalRefunded?: number;
public donationAmountNotRefunded?: number;
public borgunRefunded?: boolean;
public borgunPartial?: boolean;
public borgunRefundTransactionId?: string;
public merchantCredentials?: string;
public replayed?: boolean;
public refundId?: number;
public refundedUTC?: string;
public constructor(init?: Partial<OwnerCardRefundResult>) { (Object as any).assign(this, init); }
}
export class OwnerCardRefundRequest
{
public id?: number;
public ownerId?: number;
public reason?: string;
public userId?: number;
public idempotencyKey?: string;
public constructor(init?: Partial<OwnerCardRefundRequest>) { (Object as any).assign(this, init); }
}
TypeScript OwnerCardRefundRequest DTOs
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.
POST /OwnerCards/{Id}/refund HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/json
Content-Type: application/json
Content-Length: length
{"id":0,"ownerId":0,"reason":"String","userId":0,"idempotencyKey":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"success":false,"statusCode":0,"message":"String","result":"String","ownerCardId":0,"ownerId":0,"orderReference":"String","paymentReference":"String","previousPaymentStatus":"String","paymentStatus":"String","cardRefundAmount":0,"giftCreditAmount":0,"giftCreditPendingAmount":0,"totalRefunded":0,"donationAmountNotRefunded":0,"borgunRefunded":false,"borgunPartial":false,"borgunRefundTransactionId":"String","merchantCredentials":"String","replayed":false,"refundId":0,"refundedUTC":"0001-01-01T00:00:00.0000000"}