TicketUserServices

<back to all web services

GiftCardLiabilityRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdminRequires the permission:ReadData
The following routes are available for this service:
POST/GiftCard/LiabilityReport
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class GiftCardLiabilityResult:
    issued_total_minor: Optional[int] = None
    outstanding_total_minor: Optional[int] = None
    redeemed_total_minor: Optional[int] = None
    voided_total_minor: Optional[int] = None
    active_count: Optional[int] = None
    status_code: Optional[int] = None
    message: Optional[str] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class GiftCardLiabilityRequest:
    scope: Optional[str] = None
    owner_id: Optional[int] = None

Python GiftCardLiabilityRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /GiftCard/LiabilityReport HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"scope":"String","ownerId":0}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"issuedTotalMinor":0,"outstandingTotalMinor":0,"redeemedTotalMinor":0,"voidedTotalMinor":0,"activeCount":0,"statusCode":0,"message":"String"}