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 Foundation
import ServiceStack

public class OwnerCardRefundRequest : Codable
{
    public var id:Int?
    public var ownerId:Int?
    public var reason:String?
    public var userId:Int?
    public var idempotencyKey:String?

    required public init(){}
}

public class OwnerCardRefundResult : Codable
{
    public var success:Bool?
    public var statusCode:Int?
    public var message:String?
    public var result:String?
    public var ownerCardId:Int?
    public var ownerId:Int?
    public var orderReference:String?
    public var paymentReference:String?
    public var previousPaymentStatus:String?
    public var paymentStatus:String?
    public var cardRefundAmount:Int?
    public var giftCreditAmount:Int?
    public var giftCreditPendingAmount:Int?
    public var totalRefunded:Int?
    public var donationAmountNotRefunded:Int?
    public var borgunRefunded:Bool?
    public var borgunPartial:Bool?
    public var borgunRefundTransactionId:String?
    public var merchantCredentials:String?
    public var replayed:Bool?
    public var refundId:Int?
    public var refundedUTC:Date?

    required public init(){}
}


Swift 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
}