| Requires any of the roles: | bookingsupplier-administrator-write, superadmin |
| DELETE | /services/prices/{Id} | Delete a price | Delete a price on a service |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| CompanyId | query | Guid? | No | The company id, if empty will use the company id for the user you are logged in with. |
| Id | path | int | No | The price id |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| CompanyId | form | Guid | No | The company id |
| Id | form | int | No | The price id |
| ServiceId | form | int | No | The service id |
| Price | form | double | No | The price |
| CalculationTypeId | form | int | No | The price calculation type id, 1 = Normal, price is for the service total duration, 2 = Price is per minute, 3 = Price is per hour, 4= Price is per day |
| CurrencyId | form | string | Yes | The price currency |
| PriceSign | form | string | Yes | The price sign |
| VAT | form | decimal | No | The price VAT in percent |
| Category | form | string | Yes | The price category if price has a category |
| PriceText | form | string | Yes | The price text to display |
| From | form | DateTime | No | The valid from date for the price. |
| To | form | DateTime | No | The valid to date for the price. |
| DaysOfWeek | form | List<DayOfWeekDto> | Yes | If the price is only valid for specific days in week add a comma separated list of which days this day price belongs to, 1 = Monday .. 7 = Sunday. All old days connected will be removed on update. |
| FromTime | form | TimeSpan? | No | If the price is only valid for specific days in week add a comma separated list of which days this day price belongs to, 1 = Monday .. 7 = Sunday. All old days connected will be removed on update. |
| ToTime | form | TimeSpan? | No | If the price is only valid for a specific time span during a time of day enter the FromTime and ToTime parameters. |
| Service | form | ServiceInfoResponse | Yes | |
| IsTimeSpecific | form | bool | No | If the price is only valid for a specific time span |
| IsDaysOfWeekSpecific | form | bool | No | If the price is only valid for specific days of week |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| DayOfWeekId | form | int | No | |
| DotNetDayOfWeekId | form | int | No | |
| DayOfWeek | form | string | Yes |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | int | No | |
| Name | form | string | Yes | |
| Description | form | string | Yes | |
| ImageUrl | form | Uri | Yes | |
| LengthInMinutes | form | int? | No | |
| MaxNumberOfSpotsPerBooking | form | int | No | |
| MinNumberOfSpotsPerBooking | form | int | No | |
| GroupBooking | form | GroupBookingSettings | Yes | |
| MultipleResource | form | MultipleResourceSettings | Yes | |
| IsGroupBooking | form | bool | No | |
| IsPaymentEnabled | form | bool | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Active | form | bool | No | |
| Min | form | int | No | |
| Max | form | int | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Active | form | bool | No | |
| Min | form | int | No | |
| Max | form | int | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
DELETE /services/prices/{Id} HTTP/1.1
Host: api.bokamera.se
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Id: 0,
ServiceId: 0,
Price: 0,
CalculationTypeId: 0,
CurrencyId: String,
PriceSign: String,
VAT: 0,
Category: String,
PriceText: String,
DaysOfWeek:
[
{
DayOfWeekId: 0,
DotNetDayOfWeekId: 0,
DayOfWeek: String
}
],
FromTime: PT0S,
ToTime: PT0S,
Service:
{
Id: 0,
Name: String,
Description: String,
LengthInMinutes: 0,
MaxNumberOfSpotsPerBooking: 0,
MinNumberOfSpotsPerBooking: 0,
GroupBooking:
{
Active: False,
Min: 0,
Max: 0
},
MultipleResource:
{
Active: False,
Min: 0,
Max: 0
},
IsGroupBooking: False,
IsPaymentEnabled: False
},
IsTimeSpecific: False,
IsDaysOfWeekSpecific: False
}