| PUT | /bookingreservations/{SessionKey} | Update a booking reservation | Updates an existing reservation identified by its session key. If the slot (From/To) changes the availability is re-checked for the new slot and the hold expiration is recomputed. |
|---|
import 'package:servicestack/servicestack.dart';
class CustomerBase implements ICustomerBase, IConvertible
{
String? CustomerId;
String Firstname = "";
String Lastname = "";
String Email = "";
String Phone = "";
bool SubscribedToNewsletter;
String PersonalIdentityNumber = "";
CustomerBase({this.CustomerId,this.Firstname,this.Lastname,this.Email,this.Phone,this.SubscribedToNewsletter,this.PersonalIdentityNumber});
CustomerBase.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
CustomerId = json['CustomerId'];
Firstname = json['Firstname'];
Lastname = json['Lastname'];
Email = json['Email'];
Phone = json['Phone'];
SubscribedToNewsletter = json['SubscribedToNewsletter'];
PersonalIdentityNumber = json['PersonalIdentityNumber'];
return this;
}
Map<String, dynamic> toJson() => {
'CustomerId': CustomerId,
'Firstname': Firstname,
'Lastname': Lastname,
'Email': Email,
'Phone': Phone,
'SubscribedToNewsletter': SubscribedToNewsletter,
'PersonalIdentityNumber': PersonalIdentityNumber
};
getTypeName() => "CustomerBase";
TypeContext? context = _ctx;
}
class CustomerToHandle extends CustomerBase implements IConvertible
{
CustomerToHandle();
CustomerToHandle.fromJson(Map<String, dynamic> json) : super.fromJson(json);
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
return this;
}
Map<String, dynamic> toJson() => super.toJson();
getTypeName() => "CustomerToHandle";
TypeContext? context = _ctx;
}
class InvoiceAddressToHandle implements IInvoiceAddress, IConvertible
{
String CorporateIdentityNumber = "";
String InvoiceAddress1 = "";
String InvoiceAddress2 = "";
String InvoiceCity = "";
String InvoicePostalCode = "";
String InvoiceCountryCode = "";
InvoiceAddressToHandle({this.CorporateIdentityNumber,this.InvoiceAddress1,this.InvoiceAddress2,this.InvoiceCity,this.InvoicePostalCode,this.InvoiceCountryCode});
InvoiceAddressToHandle.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
CorporateIdentityNumber = json['CorporateIdentityNumber'];
InvoiceAddress1 = json['InvoiceAddress1'];
InvoiceAddress2 = json['InvoiceAddress2'];
InvoiceCity = json['InvoiceCity'];
InvoicePostalCode = json['InvoicePostalCode'];
InvoiceCountryCode = json['InvoiceCountryCode'];
return this;
}
Map<String, dynamic> toJson() => {
'CorporateIdentityNumber': CorporateIdentityNumber,
'InvoiceAddress1': InvoiceAddress1,
'InvoiceAddress2': InvoiceAddress2,
'InvoiceCity': InvoiceCity,
'InvoicePostalCode': InvoicePostalCode,
'InvoiceCountryCode': InvoiceCountryCode
};
getTypeName() => "InvoiceAddressToHandle";
TypeContext? context = _ctx;
}
class ResourceToBook implements IConvertible
{
int ResourceTypeId = 0;
int ResourceId = 0;
ResourceToBook({this.ResourceTypeId,this.ResourceId});
ResourceToBook.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ResourceTypeId = json['ResourceTypeId'];
ResourceId = json['ResourceId'];
return this;
}
Map<String, dynamic> toJson() => {
'ResourceTypeId': ResourceTypeId,
'ResourceId': ResourceId
};
getTypeName() => "ResourceToBook";
TypeContext? context = _ctx;
}
class ArticleToCreateBase implements IConvertible
{
int ArticleId = 0;
int Quantity = 0;
ArticleToCreateBase({this.ArticleId,this.Quantity});
ArticleToCreateBase.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ArticleId = json['ArticleId'];
Quantity = json['Quantity'];
return this;
}
Map<String, dynamic> toJson() => {
'ArticleId': ArticleId,
'Quantity': Quantity
};
getTypeName() => "ArticleToCreateBase";
TypeContext? context = _ctx;
}
enum PaymentOptions
{
DefaultSetting,
BookWithoutPayment,
BookWithPaymentMessageToCustomer,
BookWithManualPayment,
}
class AddCustomField implements IConvertible
{
int Id = 0;
String Value = "";
AddCustomField({this.Id,this.Value});
AddCustomField.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Id = json['Id'];
Value = json['Value'];
return this;
}
Map<String, dynamic> toJson() => {
'Id': Id,
'Value': Value
};
getTypeName() => "AddCustomField";
TypeContext? context = _ctx;
}
class CreateBookingBase implements ICreateBookingBase, IConvertible
{
/**
* The company id, if empty will use the company id for the user you are logged in with.
*/
// @ApiMember(Description="The company id, if empty will use the company id for the user you are logged in with.")
String? CompanyId;
/**
* If you want to book on an existing customer instead of CustomerToBook info set the CustomerId here. Set Empty Guid (00000000-0000-0000-0000-000000000000) if you want to book without any customer, this is only allowed by admin. The customer id is shown in the customer list named as id. When booking as customer (no admin) leave this field blank.
*/
// @ApiMember(Description="If you want to book on an existing customer instead of CustomerToBook info set the CustomerId here. Set Empty Guid (00000000-0000-0000-0000-000000000000) if you want to book without any customer, this is only allowed by admin. The customer id is shown in the customer list named as id. When booking as customer (no admin) leave this field blank.")
String? CustomerId;
/**
* If company requires to be authenticated or a pin code entered to book on a specific customer, enter it here.
*/
// @ApiMember(Description="If company requires to be authenticated or a pin code entered to book on a specific customer, enter it here.")
String PinCode = "";
/**
* If you want to book with customer information instead of the Customer Id send the customer information here. Note: If customer profile already exists with the same email the information will not be changed, instead the provided information will be added as BookingsComments if it differs from the ordinary profile.
*/
// @ApiMember(Description="If you want to book with customer information instead of the Customer Id send the customer information here. Note: If customer profile already exists with the same email the information will not be changed, instead the provided information will be added as BookingsComments if it differs from the ordinary profile. ")
CustomerToHandle Customer;
/**
* If you want to book with customer information instead of the Customer Id send the customer information here. Note: If customer profile already exists with the same email the information will not be changed, instead the provided information will be added as BookingsComments if it differs from the ordinary profile.
*/
// @ApiMember(Description="If you want to book with customer information instead of the Customer Id send the customer information here. Note: If customer profile already exists with the same email the information will not be changed, instead the provided information will be added as BookingsComments if it differs from the ordinary profile. ")
InvoiceAddressToHandle InvoiceAddress;
/**
* The service to be booked
*/
// @ApiMember(Description="The service to be booked", IsRequired=true)
int ServiceId = 0;
/**
* If you want to add comments to a booking you can add them here, this comments are never shared with the customer
*/
// @ApiMember(Description="If you want to add comments to a booking you can add them here, this comments are never shared with the customer")
String BookedComments = "";
/**
* If you want to add comments to the booking that is sent to the customer, you can add them here. Comments will be sent in the booking confirmation
*/
// @ApiMember(Description="If you want to add comments to the booking that is sent to the customer, you can add them here. Comments will be sent in the booking confirmation")
String CommentsToCustomer = "";
List<ResourceToBook> Resources = [];
/**
* Rebate codes applied to booking
*/
// @ApiMember(Description="Rebate codes applied to booking")
List<int>? RebateCodeIds;
/**
* Article ids that should be booked with the service. The articles must be of type ServiceAddonArticle and connected to the service.
*/
// @ApiMember(Description="Article ids that should be booked with the service. The articles must be of type ServiceAddonArticle and connected to the service.", IsRequired=true)
List<ArticleToCreateBase> Articles = [];
/**
* If you want to send Email reminder
*/
// @ApiMember(Description="If you want to send Email reminder")
bool? SendEmailReminder;
/**
* If you want to send SMS reminder
*/
// @ApiMember(Description="If you want to send SMS reminder")
bool? SendSmsReminder;
/**
* If you want to send SMS confirmation
*/
// @ApiMember(Description="If you want to send SMS confirmation")
bool? SendSmsConfirmation;
/**
* Only admins are allowed to not send an email confirmation. Default is true
*/
// @ApiMember(Description="Only admins are allowed to not send an email confirmation. Default is true")
bool? SendEmailConfirmation;
/**
* If payment is enabled and you're an administrator, optional to choose payment option, if empty then the default settings will be used. Following payment options exists. DefaultSetting = 0, BookWithoutPayment = 1 (will be direcyly booked without payment), BookWithPaymentMessageToCustomer = 2 (will set status AwaitingPayment and send payment instructions to customer), BookWithManualPayment = 3 (Will set status AwaitingPaymentNoTimeLimit and Admin will need to manually mark the booking as payed when recieved payment).
*/
// @ApiMember(Description="If payment is enabled and you're an administrator, optional to choose payment option, if empty then the default settings will be used. Following payment options exists. DefaultSetting = 0, BookWithoutPayment = 1 (will be direcyly booked without payment), BookWithPaymentMessageToCustomer = 2 (will set status AwaitingPayment and send payment instructions to customer), BookWithManualPayment = 3 (Will set status AwaitingPaymentNoTimeLimit and Admin will need to manually mark the booking as payed when recieved payment).")
PaymentOptions PaymentOption;
/**
* If Custom Fields are added to the booking, here you will send the id and the value for each custom field to be saved
*/
// @ApiMember(Description="If Custom Fields are added to the booking, here you will send the id and the value for each custom field to be saved")
List<AddCustomField> CustomFields = [];
/**
* If Custom Fields are added to the customer, here you will send the id and the value for each custom field to be updated
*/
// @ApiMember(Description="If Custom Fields are added to the customer, here you will send the id and the value for each custom field to be updated")
List<AddCustomField> CustomerCustomFields = [];
/**
* If want to allow to book outside the service schedules. This means you can book a time after the schedule opening hours as long as the resource are available. This is only allowed by administrators
*/
// @ApiMember(Description="If want to allow to book outside the service schedules. This means you can book a time after the schedule opening hours as long as the resource are available. This is only allowed by administrators")
bool AllowBookingOutsideSchedules;
/**
* Ids of tags to attach to the booking at creation time. Tags must have Scope = Booking and belong to the company.
*/
// @ApiMember(Description="Ids of tags to attach to the booking at creation time. Tags must have Scope = Booking and belong to the company.")
List<int> TagIds = [];
CreateBookingBase({this.CompanyId,this.CustomerId,this.PinCode,this.Customer,this.InvoiceAddress,this.ServiceId,this.BookedComments,this.CommentsToCustomer,this.Resources,this.RebateCodeIds,this.Articles,this.SendEmailReminder,this.SendSmsReminder,this.SendSmsConfirmation,this.SendEmailConfirmation,this.PaymentOption,this.CustomFields,this.CustomerCustomFields,this.AllowBookingOutsideSchedules,this.TagIds});
CreateBookingBase.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
CompanyId = json['CompanyId'];
CustomerId = json['CustomerId'];
PinCode = json['PinCode'];
Customer = JsonConverters.fromJson(json['Customer'],'CustomerToHandle',context!);
InvoiceAddress = JsonConverters.fromJson(json['InvoiceAddress'],'InvoiceAddressToHandle',context!);
ServiceId = json['ServiceId'];
BookedComments = json['BookedComments'];
CommentsToCustomer = json['CommentsToCustomer'];
Resources = JsonConverters.fromJson(json['Resources'],'List<ResourceToBook>',context!);
RebateCodeIds = JsonConverters.fromJson(json['RebateCodeIds'],'List<int>',context!);
Articles = JsonConverters.fromJson(json['Articles'],'List<ArticleToCreateBase>',context!);
SendEmailReminder = json['SendEmailReminder'];
SendSmsReminder = json['SendSmsReminder'];
SendSmsConfirmation = json['SendSmsConfirmation'];
SendEmailConfirmation = json['SendEmailConfirmation'];
PaymentOption = JsonConverters.fromJson(json['PaymentOption'],'PaymentOptions',context!);
CustomFields = JsonConverters.fromJson(json['CustomFields'],'List<AddCustomField>',context!);
CustomerCustomFields = JsonConverters.fromJson(json['CustomerCustomFields'],'List<AddCustomField>',context!);
AllowBookingOutsideSchedules = json['AllowBookingOutsideSchedules'];
TagIds = JsonConverters.fromJson(json['TagIds'],'List<int>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'CompanyId': CompanyId,
'CustomerId': CustomerId,
'PinCode': PinCode,
'Customer': JsonConverters.toJson(Customer,'CustomerToHandle',context!),
'InvoiceAddress': JsonConverters.toJson(InvoiceAddress,'InvoiceAddressToHandle',context!),
'ServiceId': ServiceId,
'BookedComments': BookedComments,
'CommentsToCustomer': CommentsToCustomer,
'Resources': JsonConverters.toJson(Resources,'List<ResourceToBook>',context!),
'RebateCodeIds': JsonConverters.toJson(RebateCodeIds,'List<int>',context!),
'Articles': JsonConverters.toJson(Articles,'List<ArticleToCreateBase>',context!),
'SendEmailReminder': SendEmailReminder,
'SendSmsReminder': SendSmsReminder,
'SendSmsConfirmation': SendSmsConfirmation,
'SendEmailConfirmation': SendEmailConfirmation,
'PaymentOption': JsonConverters.toJson(PaymentOption,'PaymentOptions',context!),
'CustomFields': JsonConverters.toJson(CustomFields,'List<AddCustomField>',context!),
'CustomerCustomFields': JsonConverters.toJson(CustomerCustomFields,'List<AddCustomField>',context!),
'AllowBookingOutsideSchedules': AllowBookingOutsideSchedules,
'TagIds': JsonConverters.toJson(TagIds,'List<int>',context!)
};
getTypeName() => "CreateBookingBase";
TypeContext? context = _ctx;
}
class BookingReservationResponse implements IConvertible
{
/**
* The opaque session key that identifies the reservation.
*/
// @ApiMember(Description="The opaque session key that identifies the reservation.")
String SessionKey = "";
/**
* The company id.
*/
// @ApiMember(Description="The company id.")
String CompanyId = "";
/**
* The reserved service id.
*/
// @ApiMember(Description="The reserved service id.")
int ServiceId = 0;
/**
* The reservation start.
*/
// @ApiMember(Description="The reservation start.")
DateTime From = DateTime(0);
/**
* The reservation end.
*/
// @ApiMember(Description="The reservation end.")
DateTime To = DateTime(0);
/**
* The BookingReservationStatus value.
*/
// @ApiMember(Description="The BookingReservationStatus value.")
int StatusCode = 0;
/**
* The BookingReservationStatus name.
*/
// @ApiMember(Description="The BookingReservationStatus name.")
String StatusName = "";
/**
* When the hold expires (company-local time).
*/
// @ApiMember(Description="When the hold expires (company-local time).")
DateTime ExpirationDatetime = DateTime(0);
/**
* Number of reserved spots.
*/
// @ApiMember(Description="Number of reserved spots.")
int NumberOfBookedSpots = 0;
/**
* The computed price of the reservation, if any.
*/
// @ApiMember(Description="The computed price of the reservation, if any.")
double? Price;
/**
* The currency of the price, if any.
*/
// @ApiMember(Description="The currency of the price, if any.")
String CurrencyId = "";
/**
* Ids of the resources held by the reservation.
*/
// @ApiMember(Description="Ids of the resources held by the reservation.")
List<int> ResourceIds = [];
/**
* The full in-progress selection payload (wizard/session state) as JSON.
*/
// @ApiMember(Description="The full in-progress selection payload (wizard/session state) as JSON.")
String SelectionPayload = "";
ResponseStatus ResponseStatus;
BookingReservationResponse({this.SessionKey,this.CompanyId,this.ServiceId,this.From,this.To,this.StatusCode,this.StatusName,this.ExpirationDatetime,this.NumberOfBookedSpots,this.Price,this.CurrencyId,this.ResourceIds,this.SelectionPayload,this.ResponseStatus});
BookingReservationResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
SessionKey = json['SessionKey'];
CompanyId = json['CompanyId'];
ServiceId = json['ServiceId'];
From = JsonConverters.fromJson(json['From'],'DateTime',context!);
To = JsonConverters.fromJson(json['To'],'DateTime',context!);
StatusCode = json['StatusCode'];
StatusName = json['StatusName'];
ExpirationDatetime = JsonConverters.fromJson(json['ExpirationDatetime'],'DateTime',context!);
NumberOfBookedSpots = json['NumberOfBookedSpots'];
Price = JsonConverters.toDouble(json['Price']);
CurrencyId = json['CurrencyId'];
ResourceIds = JsonConverters.fromJson(json['ResourceIds'],'List<int>',context!);
SelectionPayload = json['SelectionPayload'];
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
return this;
}
Map<String, dynamic> toJson() => {
'SessionKey': SessionKey,
'CompanyId': CompanyId,
'ServiceId': ServiceId,
'From': JsonConverters.toJson(From,'DateTime',context!),
'To': JsonConverters.toJson(To,'DateTime',context!),
'StatusCode': StatusCode,
'StatusName': StatusName,
'ExpirationDatetime': JsonConverters.toJson(ExpirationDatetime,'DateTime',context!),
'NumberOfBookedSpots': NumberOfBookedSpots,
'Price': Price,
'CurrencyId': CurrencyId,
'ResourceIds': JsonConverters.toJson(ResourceIds,'List<int>',context!),
'SelectionPayload': SelectionPayload,
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!)
};
getTypeName() => "BookingReservationResponse";
TypeContext? context = _ctx;
}
class QuantityToBook implements IConvertible
{
/**
* If service has a price, enter the price id for that price. If no price exists for the service set 0 as PriceId. If you put 0 and a price exists, it will use that price (only works if just one price exists for the current selected date to book)
*/
// @ApiMember(Description="If service has a price, enter the price id for that price. If no price exists for the service set 0 as PriceId. If you put 0 and a price exists, it will use that price (only works if just one price exists for the current selected date to book)", IsRequired=true)
int PriceId = 0;
/**
* Set the number of spots or resources you want to book on the specific price category
*/
// @ApiMember(Description="Set the number of spots or resources you want to book on the specific price category", IsRequired=true)
int Quantity = 0;
/**
* If the quantity you add should occupy a spot. Default is true. If no it will only be a row that includes price information.
*/
// @ApiMember(Description="If the quantity you add should occupy a spot. Default is true. If no it will only be a row that includes price information.")
bool OccupiesSpot;
QuantityToBook({this.PriceId,this.Quantity,this.OccupiesSpot});
QuantityToBook.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
PriceId = json['PriceId'];
Quantity = json['Quantity'];
OccupiesSpot = json['OccupiesSpot'];
return this;
}
Map<String, dynamic> toJson() => {
'PriceId': PriceId,
'Quantity': Quantity,
'OccupiesSpot': OccupiesSpot
};
getTypeName() => "QuantityToBook";
TypeContext? context = _ctx;
}
// @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401)
// @ApiResponse(Description="No reservation found for the given session key", StatusCode=404)
// @ApiResponse(Description="The selected slot is no longer available", StatusCode=409)
class UpdateBookingReservation extends CreateBookingBase implements IInterval, IConvertible
{
/**
* The opaque session key that identifies the reservation.
*/
// @ApiMember(Description="The opaque session key that identifies the reservation.", IsRequired=true, ParameterType="path")
String SessionKey = "";
/**
* The datetime you want to start the reservation.
*/
// @ApiMember(Description="The datetime you want to start the reservation.", IsRequired=true)
DateTime From = DateTime(0);
/**
* The datetime you want to end the reservation.
*/
// @ApiMember(Description="The datetime you want to end the reservation.", IsRequired=true)
DateTime To = DateTime(0);
/**
* Set the number of spots you want to reserve. You add number of spots per price category. Multiple spots require that the service has GroupBooking enabled. Default is one spot.
*/
// @ApiMember(Description="Set the number of spots you want to reserve. You add number of spots per price category. Multiple spots require that the service has GroupBooking enabled. Default is one spot.")
List<QuantityToBook> Quantities = [];
UpdateBookingReservation({this.SessionKey,this.From,this.To,this.Quantities});
UpdateBookingReservation.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
SessionKey = json['SessionKey'];
From = JsonConverters.fromJson(json['From'],'DateTime',context!);
To = JsonConverters.fromJson(json['To'],'DateTime',context!);
Quantities = JsonConverters.fromJson(json['Quantities'],'List<QuantityToBook>',context!);
return this;
}
Map<String, dynamic> toJson() => super.toJson()..addAll({
'SessionKey': SessionKey,
'From': JsonConverters.toJson(From,'DateTime',context!),
'To': JsonConverters.toJson(To,'DateTime',context!),
'Quantities': JsonConverters.toJson(Quantities,'List<QuantityToBook>',context!)
});
getTypeName() => "UpdateBookingReservation";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'testapi.bokamera.se', types: <String, TypeInfo> {
'CustomerBase': TypeInfo(TypeOf.Class, create:() => CustomerBase()),
'CustomerToHandle': TypeInfo(TypeOf.Class, create:() => CustomerToHandle()),
'InvoiceAddressToHandle': TypeInfo(TypeOf.Class, create:() => InvoiceAddressToHandle()),
'ResourceToBook': TypeInfo(TypeOf.Class, create:() => ResourceToBook()),
'ArticleToCreateBase': TypeInfo(TypeOf.Class, create:() => ArticleToCreateBase()),
'PaymentOptions': TypeInfo(TypeOf.Enum, enumValues:PaymentOptions.values),
'AddCustomField': TypeInfo(TypeOf.Class, create:() => AddCustomField()),
'CreateBookingBase': TypeInfo(TypeOf.Class, create:() => CreateBookingBase()),
'List<ResourceToBook>': TypeInfo(TypeOf.Class, create:() => <ResourceToBook>[]),
'List<ArticleToCreateBase>': TypeInfo(TypeOf.Class, create:() => <ArticleToCreateBase>[]),
'List<AddCustomField>': TypeInfo(TypeOf.Class, create:() => <AddCustomField>[]),
'BookingReservationResponse': TypeInfo(TypeOf.Class, create:() => BookingReservationResponse()),
'QuantityToBook': TypeInfo(TypeOf.Class, create:() => QuantityToBook()),
'UpdateBookingReservation': TypeInfo(TypeOf.Class, create:() => UpdateBookingReservation()),
'List<QuantityToBook>': TypeInfo(TypeOf.Class, create:() => <QuantityToBook>[]),
});
Dart UpdateBookingReservation DTOs
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.
PUT /bookingreservations/{SessionKey} HTTP/1.1
Host: testapi.bokamera.se
Accept: application/json
Content-Type: application/json
Content-Length: length
{"Quantities":[{"PriceId":0,"Quantity":0,"OccupiesSpot":false}],"CompanyId":"00000000-0000-0000-0000-000000000000","CustomerId":"00000000-0000-0000-0000-000000000000","PinCode":"String","Customer":{"CustomerId":"00000000-0000-0000-0000-000000000000","Firstname":"String","Lastname":"String","Email":"String","Phone":"String","SubscribedToNewsletter":false,"PersonalIdentityNumber":"String"},"InvoiceAddress":{"CorporateIdentityNumber":"String","InvoiceAddress1":"String","InvoiceAddress2":"String","InvoiceCity":"String","InvoicePostalCode":"String","InvoiceCountryCode":"String"},"ServiceId":0,"BookedComments":"String","CommentsToCustomer":"String","Resources":[{"ResourceTypeId":0,"ResourceId":0}],"RebateCodeIds":[0],"Articles":[{"ArticleId":0,"Quantity":0}],"SendEmailReminder":false,"SendSmsReminder":false,"SendSmsConfirmation":false,"SendEmailConfirmation":false,"PaymentOption":"DefaultSetting","CustomFields":[{"Id":0,"Value":"String"}],"CustomerCustomFields":[{"Id":0,"Value":"String"}],"AllowBookingOutsideSchedules":false,"TagIds":[0]}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"ServiceId":0,"StatusCode":0,"StatusName":"String","NumberOfBookedSpots":0,"Price":0,"CurrencyId":"String","ResourceIds":[0],"SelectionPayload":"String","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}