| Requires any of the roles: | Admin, TeamAdmin, MobileApp, Admin, TeamAdmin, MobileApp | Requires any of the permissions: | ReadData, ReadData |
| POST | /OrderOwnerCards/previewDiscount |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Code | body | string | No | |
| OwnerCardTypeIds | body | List<int> | No | |
| FullPhoneNumber | body | string | No | |
| IsSubscription | body | bool? | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Status | form | string | No | |
| Reason | form | string | No | |
| Message | form | LocalizedMessage | No | |
| DiscountCodeId | form | int? | No | |
| DiscountCodeTypeId | form | int? | No | |
| Discount | form | DiscountSummary | No | |
| Lines | form | List<DiscountLineResult> | No | |
| SubtotalBefore | form | decimal | No | |
| SubtotalAfter | form | decimal | No | |
| TotalSavings | form | decimal | No | |
| Currency | form | string | No | |
| StatusCode | form | int | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Is | form | string | No | |
| En | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Type | form | string | No | |
| Value | form | decimal | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| TicketTypeId | form | int? | No | |
| Count | form | int | No | |
| Applied | form | bool | No | |
| UnitBefore | form | decimal | No | |
| UnitAfter | form | decimal | No | |
| LineBefore | form | decimal | No | |
| LineAfter | form | decimal | No |
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 /OrderOwnerCards/previewDiscount HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/json
Content-Type: application/json
Content-Length: length
{"code":"String","ownerCardTypeIds":[0],"fullPhoneNumber":"String","isSubscription":false}
HTTP/1.1 200 OK
Content-Type: application/json
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}