TicketUserServices

<back to all web services

OwnerCardsPreviewDiscountRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdmin, MobileApp, Admin, TeamAdmin, MobileAppRequires any of the permissions:ReadData, ReadData
The following routes are available for this service:
POST/OrderOwnerCards/previewDiscount
OwnerCardsPreviewDiscountRequest Parameters:
NameParameterData TypeRequiredDescription
CodebodystringNo
OwnerCardTypeIdsbodyList<int>No
FullPhoneNumberbodystringNo
IsSubscriptionbodybool?No
PreviewDiscountResult Parameters:
NameParameterData TypeRequiredDescription
StatusformstringNo
ReasonformstringNo
MessageformLocalizedMessageNo
DiscountCodeIdformint?No
DiscountCodeTypeIdformint?No
DiscountformDiscountSummaryNo
LinesformList<DiscountLineResult>No
SubtotalBeforeformdecimalNo
SubtotalAfterformdecimalNo
TotalSavingsformdecimalNo
CurrencyformstringNo
StatusCodeformintNo
LocalizedMessage Parameters:
NameParameterData TypeRequiredDescription
IsformstringNo
EnformstringNo
DiscountSummary Parameters:
NameParameterData TypeRequiredDescription
TypeformstringNo
ValueformdecimalNo
DiscountLineResult Parameters:
NameParameterData TypeRequiredDescription
TicketTypeIdformint?No
CountformintNo
AppliedformboolNo
UnitBeforeformdecimalNo
UnitAfterformdecimalNo
LineBeforeformdecimalNo
LineAfterformdecimalNo

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 /OrderOwnerCards/previewDiscount HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"code":"String","ownerCardTypeIds":[0],"fullPhoneNumber":"String","isSubscription":false}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"status":"String","reason":"String","message":{"is":"String","en":"String"},"discountCodeId":0,"discountCodeTypeId":0,"discount":{"type":"String","value":0},"lines":[{"ticketTypeId":0,"count":0,"applied":false,"unitBefore":0,"unitAfter":0,"lineBefore":0,"lineAfter":0}],"subtotalBefore":0,"subtotalAfter":0,"totalSavings":0,"currency":"String","statusCode":0}