POST api/ShoppingCart/AddEventParticipant?sessionGuid={sessionGuid}
Adds an event participant to the shopping cart of the given session guids
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| sessionGuid | globally unique identifier |
Required |
Body Parameters
EventParticipantModel| Name | Description | Type | Additional information |
|---|---|---|---|
| EventId |
The id of the event the participant shall be booked for |
integer |
Required |
| FormOfAddress | string |
Max length: 20 |
|
| FirstName | string |
Required Max length: 255 |
|
| LastName | string |
Required Max length: 255 |
|
| ReservationNote |
Can be used to provide additional informations about the participant. These infos will be available to the instructors of the event. |
string |
Max length: 1000 |
| Birthday | date |
None. |
|
| Company | string |
Max length: 100 |
|
| Phone1 | string |
Max length: 50 |
|
| Mobile | string |
Max length: 50 |
|
| string |
Max length: 200 |
Request Formats
application/json, text/json
Sample:
{
"EventId": 1,
"FormOfAddress": "sample string 2",
"FirstName": "sample string 3",
"LastName": "sample string 4",
"ReservationNote": "sample string 5",
"Birthday": "2026-08-16T09:02:26.2495939+02:00",
"Company": "sample string 6",
"Phone1": "sample string 7",
"Mobile": "sample string 8",
"Email": "sample string 9"
}
application/xml, text/xml
Sample:
<EventParticipantModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BKPBooking.WebBookingApi.Models"> <Birthday>2026-08-16T09:02:26.2495939+02:00</Birthday> <Company>sample string 6</Company> <Email>sample string 9</Email> <EventId>1</EventId> <FirstName>sample string 3</FirstName> <FormOfAddress>sample string 2</FormOfAddress> <LastName>sample string 4</LastName> <Mobile>sample string 8</Mobile> <Phone1>sample string 7</Phone1> <ReservationNote>sample string 5</ReservationNote> </EventParticipantModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ActionResultModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Success |
Is true if the current action was successful |
boolean |
None. |
| ErrorMessage |
Contains an error message if the current action was not successful |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Success": true,
"ErrorMessage": "sample string 2"
}
application/xml, text/xml
Sample:
<ActionResultModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BKPBooking.WebBookingApi.Models"> <ErrorMessage>sample string 2</ErrorMessage> <Success>true</Success> </ActionResultModel>