TicketUserServices

<back to all web services

OwnerCardRefundRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdminRequires the permission:Tickets.Add
The following routes are available for this service:
POST/OwnerCards/{Id}/refund
import java.math.*
import java.util.*
import net.servicestack.client.*


open class OwnerCardRefundRequest
{
    var id:Int? = null
    var ownerId:Int? = null
    var reason:String? = null
    var userId:Int? = null
    var idempotencyKey:String? = null
}

open class OwnerCardRefundResult
{
    var success:Boolean? = null
    var statusCode:Int? = null
    var message:String? = null
    var result:String? = null
    var ownerCardId:Int? = null
    var ownerId:Int? = null
    var orderReference:String? = null
    var paymentReference:String? = null
    var previousPaymentStatus:String? = null
    var paymentStatus:String? = null
    var cardRefundAmount:Int? = null
    var giftCreditAmount:Int? = null
    var giftCreditPendingAmount:Int? = null
    var totalRefunded:Int? = null
    var donationAmountNotRefunded:Int? = null
    var borgunRefunded:Boolean? = null
    var borgunPartial:Boolean? = null
    var borgunRefundTransactionId:String? = null
    var merchantCredentials:String? = null
    var replayed:Boolean? = null
    var refundId:Int? = null
    var refundedUTC:Date? = null
}

Kotlin OwnerCardRefundRequest 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 /OwnerCards/{Id}/refund HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	id: 0,
	ownerId: 0,
	reason: String,
	userId: 0,
	idempotencyKey: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
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-01
}