POST v{version}/{lang}/add-activity?trackingCode={trackingCode}¤cy={currency}&wp={wp}&invsys={invsys}
Add item to cart
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
lang | string |
Required |
|
trackingCode |
Affiliate tracking code. |
string |
Default value is |
currency | string |
Default value is ISK |
|
wp | string |
Default value is GG |
|
invsys | InventorySystem |
Default value is Bokun |
|
version |
The requested API version |
string |
Required Default value is 1.0 |
Body Parameters
WidgetActivityBookingRequestDtoName | Description | Type | Additional information |
---|---|---|---|
activityId | string |
Required |
|
rateId | integer |
None. |
|
date | string |
Required Matching regular expression pattern: [0-9]{4}-[0-9]{1,2}-[0-9]{1,2} |
|
pricingCategoryBookings | Collection of WidgetActivityPricingCategoryBookingRequestDto |
Required |
|
startTimeId | integer |
Required |
|
pickupGroups | Collection of WidgetPickupGroupRequestDto |
None. |
|
dropoffGroups | Collection of WidgetPickupGroupRequestDto |
None. |
|
cartManagerId | integer |
None. |
|
analyticsActivityName | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "activityId": "sample string 1", "rateId": 2, "date": "sample string 3", "pricingCategoryBookings": [ { "pricingCategoryId": 1 }, { "pricingCategoryId": 1 } ], "startTimeId": 4, "pickupGroups": [ { "id": 1, "place": { "id": 1, "title": "sample string 1", "pickupMinutesBefore": 1 }, "placeDescription": "sample string 2" }, { "id": 1, "place": { "id": 1, "title": "sample string 1", "pickupMinutesBefore": 1 }, "placeDescription": "sample string 2" } ], "dropoffGroups": [ { "id": 1, "place": { "id": 1, "title": "sample string 1", "pickupMinutesBefore": 1 }, "placeDescription": "sample string 2" }, { "id": 1, "place": { "id": 1, "title": "sample string 1", "pickupMinutesBefore": 1 }, "placeDescription": "sample string 2" } ], "cartManagerId": 1, "analyticsActivityName": "sample string 5" }
application/xml, text/xml
Sample:
<WidgetActivityBookingRequestDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Adventures.WidgetAPI.Core.Models.Widget"> <activityId>sample string 1</activityId> <analyticsActivityName>sample string 5</analyticsActivityName> <cartManagerId>1</cartManagerId> <date>sample string 3</date> <dropoffGroups> <WidgetPickupGroupRequestDto> <id>1</id> <place> <id>1</id> <pickupMinutesBefore>1</pickupMinutesBefore> <title>sample string 1</title> </place> <placeDescription>sample string 2</placeDescription> </WidgetPickupGroupRequestDto> <WidgetPickupGroupRequestDto> <id>1</id> <place> <id>1</id> <pickupMinutesBefore>1</pickupMinutesBefore> <title>sample string 1</title> </place> <placeDescription>sample string 2</placeDescription> </WidgetPickupGroupRequestDto> </dropoffGroups> <pickupGroups> <WidgetPickupGroupRequestDto> <id>1</id> <place> <id>1</id> <pickupMinutesBefore>1</pickupMinutesBefore> <title>sample string 1</title> </place> <placeDescription>sample string 2</placeDescription> </WidgetPickupGroupRequestDto> <WidgetPickupGroupRequestDto> <id>1</id> <place> <id>1</id> <pickupMinutesBefore>1</pickupMinutesBefore> <title>sample string 1</title> </place> <placeDescription>sample string 2</placeDescription> </WidgetPickupGroupRequestDto> </pickupGroups> <pricingCategoryBookings> <WidgetActivityPricingCategoryBookingRequestDto> <pricingCategoryId>1</pricingCategoryId> </WidgetActivityPricingCategoryBookingRequestDto> <WidgetActivityPricingCategoryBookingRequestDto> <pricingCategoryId>1</pricingCategoryId> </WidgetActivityPricingCategoryBookingRequestDto> </pricingCategoryBookings> <rateId>2</rateId> <startTimeId>4</startTimeId> </WidgetActivityBookingRequestDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |